/* ==========================================
   EXTENDED ANIMATIONS - PHASE 3
   Enhanced Product Cards & Micro-Interactions
   ========================================== */

/* Enhanced Product Card Hover */
.product-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.12),
        0 15px 30px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(212, 163, 115, 0.1);
}

/* Enhanced Image Zoom with Rotation */
.product-card:hover .product-image img {
    transform: scale(1.15) rotate(2deg);
}

/* Price Bounce Animation on Hover */
.product-price {
    transition: all 0.3s ease;
    display: inline-block;
}

.product-card:hover .product-price {
    animation: priceBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes priceBounce {

    0%,
    100% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.15);
    }

    50% {
        transform: scale(0.95);
    }

    70% {
        transform: scale(1.05);
    }
}

/* Badge Spin on Card Hover */
.product-badge {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.product-card:hover .product-badge {
    transform: scale(1.15) rotate(-8deg);
}

/* Category Card Enhanced Hover */
.category-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card:hover .category-image {
    transform: scale(1.2) rotate(5deg);
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

/* Button Ripple Effect on Click */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:active::after {
    width: 300px;
    height: 300px;
}

/* Stagger Animation for Grids */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stagger-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Add progressive delays */
.stagger-item:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-item:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-item:nth-child(6) {
    transition-delay: 0.6s;
}

.stagger-item:nth-child(7) {
    transition-delay: 0.7s;
}

.stagger-item:nth-child(8) {
    transition-delay: 0.8s;
}

/* Icon Hover Animations */
.feature-icon i {
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-item:hover .feature-icon i {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent);
}

/* Social Icons Bounce */
.social-links a {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
}

/* Stats Counter Animation */
.stat-number {
    display: inline-block;
    transition: all 0.3s ease;
}

.stats:hover .stat-number {
    transform: scale(1.15);
    color: var(--accent);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading Skeleton for Images */
.img-loading {
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    min-height: 200px;
}

@keyframes skeletonShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.img-loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Smooth Page Transitions */
body {
    animation: pageLoad 0.5s ease;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Divider Animations */
.section-divider {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.section-divider:hover {
    opacity: 1;
}

/* Newsletter Section Background Animation */
.newsletter {
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(212, 163, 115, 0.05) 0%,
            transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Reduce Motion Accessibility */
@media (prefers-reduced-motion: reduce) {

    .product-card:hover,
    .category-card:hover,
    .stagger-item {
        transform: none;
        animation: none;
    }

    .newsletter::before {
        animation: none;
    }
}