/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up {
    transform: translateY(30px);
}

.fade-right {
    transform: translateX(-30px);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* Icon Animations */
.nav-logo-icon:hover,
.feature-icon:hover,
.cart-item-image:hover span {
    animation: bounce 1s;
}

.category-tab:hover {
    animation: pulse 0.5s;
}

.whatsapp-float:hover,
.scroll-top:hover {
    animation: float 2s infinite ease-in-out;
}

/* Staggered Delay for Grid Items */
.products-grid .product-card:nth-child(1) {
    transition-delay: 0.1s;
}

.products-grid .product-card:nth-child(2) {
    transition-delay: 0.2s;
}

.products-grid .product-card:nth-child(3) {
    transition-delay: 0.3s;
}

.products-grid .product-card:nth-child(4) {
    transition-delay: 0.4s;
}

.products-grid .product-card:nth-child(5) {
    transition-delay: 0.1s;
}

.products-grid .product-card:nth-child(6) {
    transition-delay: 0.2s;
}

.products-grid .product-card:nth-child(7) {
    transition-delay: 0.3s;
}

.products-grid .product-card:nth-child(8) {
    transition-delay: 0.4s;
}

/* Apply float animation to hero image if present */
/* .hero-image img {
    animation: float 4s ease-in-out infinite;
} */