/* Custom Animations & Interactions for Hanout Theme */

/* General smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fade in animation for product items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product, .type-product, .wc-block-grid__product {
    animation: fadeInUp 0.6s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effects for product cards */
.product:hover, .type-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Smooth scaling for product images */
.product img, .type-product img, .wc-block-grid__product-image img {
    transition: transform 0.4s ease;
}

.product:hover img, .type-product:hover img, .wc-block-grid__product:hover .wc-block-grid__product-image img {
    transform: scale(1.05);
}

/* Button enhancements (glassmorphism/glow effect) */
button, .button, input[type="submit"], .add_to_cart_button {
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

button:hover, .button:hover, input[type="submit"]:hover, .add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 231, 187, 0.4); /* Assuming green/teal theme color from the logo */
}

/* Button ripple shine effect */
button::after, .button::after, input[type="submit"]::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

button:hover::after, .button:hover::after, input[type="submit"]:hover::after {
    left: 100%;
    top: 100%;
    opacity: 1;
}

/* Navigation Menu hover effects */
.main-navigation ul li a {
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation ul li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover::before {
    width: 100%;
}
