/* ==========================================================================
   FOREVER LINK | DIGITAL GALLERY LOCAL STYLES (store.css)
   ========================================================================== */

/* --- 1. ARCHIVAL HEADING & LAYOUT --- */
.store-core { padding-top: 100px; min-height: 100vh; }

.store-heading { font-family: var(--font-mono); font-size: clamp(1.2rem, 4vw, 1.6rem); font-weight: 700; letter-spacing: 0.3em; text-align: center; margin-bottom: 40px; color: var(--corp-icon); transition: opacity 0.3s ease, transform 0.3s ease; will-change: opacity, transform; }

.fluid-marketplace { padding: 0 5% 100px; max-width: 1200px; margin: 0 auto; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }


/* --- 2. STICKY UI (Search & Categories) --- */
.sticky-controls { position: sticky; top: 60px; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 15px; padding: 10px 0 20px; background: linear-gradient(to bottom, var(--global-bg) 80%, transparent); }

/* ... keep the .category-pills CSS exactly as it is below this ... */
/* ==========================================================================
   AMBIENT AURA BACKGROUND (Pure CSS Engine)
   ========================================================================== */

/* 1. The Fixed Container */
.ambient-aura-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Keeps it strictly behind all content */
    overflow: hidden;
    background-color: var(--global-bg); /* #FAFAFA base fallback */
    pointer-events: none; /* Crucial: Prevents invisible orbs from blocking clicks */
}

/* 2. The Base Orb Physics */
.aura-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px); /* Massive blur diffuses the shape into a glow */
    opacity: 0.55;
    animation: aura-drift 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform; /* Hardware acceleration for smooth performance */
}

/* 3. The Color Tokens (Pulled from global.css) */
.orb-1 {
    width: 60vw;
    height: 60vw;
    background-color: var(--product-surface); /* The Minty Green */
    top: -10%;
    left: -10%;
    animation-duration: 28s;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background-color: var(--brand-soft); /* The Soft Coral */
    bottom: -20%;
    right: -10%;
    animation-duration: 34s;
    animation-direction: alternate-reverse; /* Moves out of sync with orb 1 */
}

.orb-3 {
    width: 45vw;
    height: 45vw;
    background-color: var(--corp-surface); /* The Soft Blue/Grey */
    top: 40%;
    left: 30%;
    animation-duration: 22s;
}

/* 4. The Editorial Frosting Layer */
/* This is the secret to making it look premium. It washes out the raw colors 
   so they don't overpower the product images. */
.aura-frosting {
    position: absolute;
    inset: 0;
    background: rgba(250, 250, 250, 0.65); /* Your global background, 65% opaque */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

/* 5. The Drift Animation */
@keyframes aura-drift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(6vw, 6vh) scale(1.05); }
    66%  { transform: translate(-4vw, 8vh) scale(0.95); }
    100% { transform: translate(-8vw, -4vh) scale(1.1); }
}

/* 6. Mobile Optimization */
@media (max-width: 768px) {
    .aura-orb { filter: blur(70px); }
    /* Make them larger relative to the small screen so the colors bleed properly */
    .orb-1 { width: 100vw; height: 100vw; }
    .orb-2 { width: 90vw; height: 90vw; }
    .orb-3 { width: 80vw; height: 80vw; }
}




/* --- 6. RESPONSIVE SCALING (TABLET & DESKTOP) --- */
@media (min-width: 768px) {
    .premium-grid { grid-template-columns: repeat(3, 1fr); column-gap: 30px; row-gap: 80px; }
    .card-analog { padding: 0 2rem 2rem 2rem; }
    .image-breakout { margin-top: -50px; }
    .product-title { font-size: 1.05rem; }
    .product-story { display: block; font-size: 0.8rem; line-height: 1.4; padding-top: 4px; }
    .ingredient-bar { gap: 1rem; margin-top: 1rem; }
    .ingredient-bar i { font-size: 1.05rem; }
    .action-swap-area { height: 48px; margin-top: 1rem; }
    .price-pill { font-size: 0.9rem; }
}
@media (min-width: 1024px) {
    .premium-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; }
}

/* ==========================================================================
   7. THE DEPTH UNVEIL (Cinematic Landing Animation)
   ========================================================================== */
:root { --ease-depth: cubic-bezier(0.16, 1, 0.3, 1); }

body.is-waking-up .gallery-nav, body.is-waking-up .store-heading, body.is-waking-up .sticky-controls, body.is-waking-up .card-analog { will-change: transform, opacity, filter, letter-spacing; transition: transform 1.2s var(--ease-depth), opacity 1.2s var(--ease-depth), filter 1.2s var(--ease-depth), letter-spacing 1.2s var(--ease-depth) !important; }

/* The Sleep State */
body.is-loading .gallery-nav { opacity: 0; }
body.is-loading .store-heading { opacity: 0; transform: scale(0.96) translateY(10px); letter-spacing: 0.1em; filter: blur(8px); }
body.is-loading .sticky-controls { opacity: 0; transform: translateY(15px); }
body.is-loading .card-analog { opacity: 0; transform: translateY(40px) scale(0.92); filter: blur(12px); }

/* The Wake Up State */
body.is-waking-up:not(.is-loading) .gallery-nav { transition-delay: 0.1s; opacity: 1; }
body.is-waking-up:not(.is-loading) .store-heading { transition-delay: 0.15s; letter-spacing: 0.3em; opacity: 1; filter: blur(0); transform: scale(1) translateY(0); }
body.is-waking-up:not(.is-loading) .sticky-controls { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
body.is-waking-up:not(.is-loading) .card-analog { transition-delay: calc(0.3s + (var(--i, 0) * 0.08s)); opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

.card-analog:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   PHASE 3: UPCOMING / WAITLIST PRODUCTS STYLING
   ========================================================================== */

/* 1. The Ghost Aesthetic (The Blueprint Card) */
.upcoming-card {
    background: rgba(250, 250, 250, 0.6) !important;
    border: 1px dashed #D1D5DB !important; /* Dashed border signals "in progress" */
    box-shadow: none !important; /* Flattened so active products pop forward */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. The Desaturation Filter */
.upcoming-card .image-breakout {
    /* Mute the colors by 60% and slightly fade it out */
    filter: grayscale(60%) opacity(0.8) contrast(1.05);
    transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. The "Color Bloom" Hover Interaction */
.upcoming-card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-style: solid !important;
    border-color: #E5E7EB !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-4px);
}

.upcoming-card:hover .image-breakout {
    /* Full color returns gracefully when they interact with it */
    filter: grayscale(0%) opacity(1) contrast(1); 
}

/* Dim the typography slightly to push it back in visual hierarchy */
.upcoming-card .typography-group {
    opacity: 0.75;
    transition: opacity 0.4s ease;
}
.upcoming-card:hover .typography-group {
    opacity: 1;
}

/* ==========================================================================
   WAITLIST UI ELEMENTS
   ========================================================================== */

/* 1. The Coming Soon Badge */
.upcoming-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    background: #F3F4F6; /* Neutral, unclickable gray */
    color: var(--corp-icon);
    border-radius: 100px;
    text-transform: uppercase;
    border: 1px solid #E5E7EB;
}

/* 2. The VIP Pass (Waitlist Button) */
.cta-waitlist {
    /* Inverse colors: Dark base makes it look like an exclusive VIP action */
    background: var(--global-text) !important; 
    color: #FFFFFF !important;
    border: 1px solid var(--global-text) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.cta-waitlist:hover {
    background: var(--corp-heading) !important;
    color: #FFFFFF !important;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cta-waitlist i {
    color: #FFFFFF !important; /* Ensure the arrow icon stays white */
}
