/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ── Decorative Circles (Hero) ── */
.deco-circle {
    animation: float 8s ease-in-out infinite;
}

.deco-circle:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
}

.deco-circle:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s;
}

.deco-circle:nth-child(4) {
    animation-delay: -1s;
    animation-duration: 9s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.03); }
    66% { transform: translate(-10px, 10px) scale(0.97); }
}

/* ── Product Cards ── */
.product-card {
    will-change: transform;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Navbar scroll state ── */
nav.scrolled {
    background: rgba(255, 251, 235, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 2px 20px rgba(123, 45, 142, 0.08);
}

/* ── Mobile menu transitions ── */
#mobileMenu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Form focus ring ── */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(162, 62, 207, 0.15);
}

/* ── Button press effect ── */
button:active, a:active {
    transform: scale(0.97);
}

/* ── Selection color ── */
::selection {
    background: rgba(123, 45, 142, 0.2);
    color: #3d1047;
}
