
/* ============================================
   EFFECTS — Scroll Reveal, Sprinkles, Sparkles
   ============================================ */

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Section Title Reveal */
.section-title::after {
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.section-title.title-visible::after {
    transform: scaleX(1);
}

/* Floating Sprinkles */
.sprinkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sprinkle {
    position: absolute;
    top: -10px;
    animation: sprinkleFall linear forwards;
    will-change: transform;
}

@keyframes sprinkleFall {
    0% {
        opacity: 0;
        transform: translateY(-20px) translateX(0) rotate(0deg);
    }
    10% {
        opacity: 0.35;
    }
    90% {
        opacity: 0.35;
    }
    100% {
        opacity: 0;
        transform: translateY(calc(100vh + 20px)) translateX(var(--drift, 0px)) rotate(720deg);
    }
}

/* Card Sparkle on Hover */
.card-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #D4AF37;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: sparkleOut 0.6s ease forwards;
}

@keyframes sparkleOut {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-15px);
    }
}

/* CTA Button Pulse */
.pulse-btn {
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(255, 184, 209, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(255, 184, 209, 0.7), 0 0 20px rgba(212, 175, 55, 0.15);
    }
}

/* Product Card — subtle glow on hover */
.product-card {
    transition: all 0.4s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 18px 45px rgba(255, 184, 209, 0.35), 0 0 15px rgba(212, 175, 55, 0.1) !important;
}

/* Category Card — bounce on hover */
.category-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.03) !important;
}

/* Smooth scroll for the whole page */
html {
    scroll-behavior: smooth;
}
