/* ============================================
   91mobile — Animations
   Smooth scroll-triggered + micro-interactions
   ============================================ */

/* Fade in on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ripple effect on buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.ripple:active::after {
    animation: rippleEffect 0.4s ease-out;
}

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Card hover lift */
.product-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.product-card:active {
    transform: scale(0.98);
}

/* Slide in for mobile menu */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* FOMO badge pulse */
.fomo-viewers {
    animation: fadeIn 0.5s ease 0.1s both;
}

.fomo-stock {
    animation: fadeIn 0.5s ease 0.2s both;
}

.fomo-timer {
    animation: fadeIn 0.5s ease 0.3s both;
}

/* Tab switch animation */
.tab-content {
    animation: fadeIn 0.3s ease;
}

/* Compare link hover */
.compare-link-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.compare-link-card:hover {
    transform: translateX(4px);
}

/* Buy Now pulse */
.buy-now-btn {
    position: relative;
    overflow: hidden;
}

.buy-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Gallery image transition */
.gallery-scroll {
    scroll-behavior: smooth;
}

/* Progress step animation */
.progress-step {
    transition: all 0.3s ease;
}

.progress-step.active {
    animation: stepPop 0.4s ease;
}

@keyframes stepPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Notification slide */
.recent-purchase-popup {
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Link hover underline */
.silo-link::after {
    content: '→';
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    margin-left: auto;
    padding-left: 8px;
}

.silo-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}