/* Animations and Transitions for LUNAYA E-commerce */

/* General Transitions */
a, button, .btn, input, select, textarea {
    transition: all 0.3s ease-in-out;
}

/* Hover Effects */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.category-card img {
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.instagram-post img {
    transition: transform 0.3s ease;
}

.instagram-post:hover img {
    transform: scale(1.05);
}

/* Image Zoom (for product detail page) */
.product-images .main-image {
    position: relative;
    overflow: hidden;
}

.product-images .main-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-out;
    cursor: zoom-in;
}

.product-images .main-image.zoomed img {
    transform: scale(1.5); /* Adjust zoom level as needed */
    cursor: zoom-out;
}

/* Scroll Animations (using Intersection Observer - JS will handle classes) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.appear {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}

.scale-up {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-up.appear {
    opacity: 1;
    transform: scale(1);
}

/* Newsletter Popup Animations */
.newsletter-popup {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-popup.show {
    opacity: 1;
    visibility: visible;
}

.newsletter-content {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.newsletter-popup.show .newsletter-content {
    transform: translateY(0);
    opacity: 1;
}

/* Cookie Consent Banner Animations */
.cookie-consent-banner {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.cookie-consent-banner.show {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Accordion Animation */
.faq-answer {
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.faq-question i {
    transition: transform 0.3s ease;
}

/* General button hover effects */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Navigation link hover effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--color-golden-champagne);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
    background: var(--color-golden-champagne);
}