/* Stark, luxury variables and premium animations for Burnyourlife */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=JetBrains+Mono:wght@100..800&family=Work+Sans:wght@100..900&display=swap');

:root {
    --transition-speed: 0.4s;
    --ease-premium: cubic-bezier(0.25, 1, 0.5, 1);
    --luxury-green: #3b7a57;
    --luxury-green-light: #488b63;
    --luxury-green-dark: #2e6f4a;
}

/* Enforce refined luxury atelier green across all UI states (replaces harsh neon mint/lime) */
.text-emerald-400,
.text-emerald-500,
.text-emerald-300,
.text-emerald-200,
.text-green-400,
.text-green-500 {
    color: #488b63 !important;
}

.dark .text-emerald-400,
.dark .text-emerald-500,
.dark .text-emerald-300,
.dark .text-emerald-200,
.dark .text-green-400,
.dark .text-green-500 {
    color: #488b63 !important;
}

.bg-emerald-400,
.bg-emerald-500,
.bg-green-400,
.bg-green-500 {
    background-color: #3b7a57 !important;
}

.dark .bg-emerald-400,
.dark .bg-emerald-500,
.dark .bg-green-400,
.dark .bg-green-500 {
    background-color: #3b7a57 !important;
}

.border-emerald-400,
.border-emerald-500,
.border-emerald-300,
.border-green-400,
.border-green-500 {
    border-color: rgba(72, 139, 99, 0.35) !important;
}

/* Custom Scrollbars */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
.dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* Custom Animations */
@keyframes strike-match {
    0% {
        transform: rotate(-10deg) translate(-20px, 10px);
        opacity: 0.8;
    }
    30% {
        transform: rotate(5deg) translate(5px, -5px);
        filter: brightness(2);
    }
    50% {
        transform: rotate(0deg) translate(0, 0);
        filter: brightness(1.5);
    }
    100% {
        transform: rotate(0deg);
        filter: brightness(1);
    }
}

@keyframes flicker-flame {
    0%, 100% {
        transform: scale(1) rotate(-1deg);
        border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    }
    20% {
        transform: scale(0.95, 1.05) rotate(1deg);
    }
    40% {
        transform: scale(1.05, 0.95) rotate(-2deg);
        opacity: 0.9;
    }
    60% {
        transform: scale(0.98, 1.02) rotate(1.5deg);
    }
    80% {
        transform: scale(1.02, 0.98) rotate(-0.5deg);
        opacity: 0.95;
    }
}

@keyframes flame-glow {
    0%, 100% {
        box-shadow: 0 0 20px 5px rgba(254, 214, 91, 0.2), 0 0 40px 10px rgba(245, 158, 11, 0.1);
    }
    50% {
        box-shadow: 0 0 25px 8px rgba(254, 214, 91, 0.3), 0 0 50px 15px rgba(245, 158, 11, 0.2);
    }
}

@keyframes spark-particles {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}

/* Custom Interactive States & Visual Elements */
.candle-wick {
    width: 2px;
    height: 12px;
    background: #1c1b1b;
    margin: 0 auto;
    position: relative;
    border-radius: 1px;
}
.dark .candle-wick {
    background: #e5e2e1;
}

.candle-flame {
    width: 14px;
    height: 28px;
    background: linear-gradient(to bottom, #ffffff 0%, #ffe088 25%, #735c00 90%);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    animation: flicker-flame 1.5s infinite ease-in-out, flame-glow 1.5s infinite ease-in-out;
    transform-origin: center bottom;
    filter: blur(0.5px);
}

.candle-flame::after {
    content: '';
    width: 6px;
    height: 12px;
    background: #3b82f6;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    opacity: 0.8;
}

/* Match striking animation during checkout */
.match-stick {
    width: 80px;
    height: 6px;
    background: #d7ccc8;
    position: relative;
    transform-origin: right center;
    border-radius: 2px;
}
.match-head {
    width: 12px;
    height: 10px;
    background: #d32f2f;
    border-radius: 50%;
    position: absolute;
    right: -4px;
    top: -2px;
}
.striking {
    animation: strike-match 0.8s forwards var(--ease-premium);
}

/* Noise overlay for raw, textured feel */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    content: "";
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='noiseFilter'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3e%3c/filter%3e%3crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3e%3c/svg%3e");
}

/* Sound visualization bars */
.visualizer-bar {
    width: 3px;
    height: 4px;
    background-color: currentColor;
    transition: height 0.1s ease;
    border-radius: 1px;
}

/* Smoother transitions for theme toggle */
html {
    scroll-behavior: smooth;
    transition: background-color var(--transition-speed) var(--ease-premium), color var(--transition-speed) var(--ease-premium);
}

body {
    transition: background-color var(--transition-speed) var(--ease-premium), color var(--transition-speed) var(--ease-premium);
}

/* Custom button states */
.btn-outline-hover {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-outline-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: currentColor;
    z-index: -1;
    transition: height 0.3s var(--ease-premium);
}
.btn-outline-hover:hover::after {
    height: 100%;
}

/* Discovery builder grid */
.builder-slot {
    border: 1px dashed rgba(0, 0, 0, 0.2);
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-premium);
    position: relative;
}
.dark .builder-slot {
    border-color: rgba(255, 255, 255, 0.2);
}
.builder-slot.active {
    border-style: solid;
    border-color: currentColor;
    background: rgba(0, 0, 0, 0.05);
}
.dark .builder-slot.active {
    background: rgba(255, 255, 255, 0.05);
}

/* Spark particle styling */
.spark-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ff9800;
    border-radius: 50%;
    pointer-events: none;
    animation: spark-particles 0.6s forwards ease-out;
}

/* ─── Scrolling Marquee Ticker ─────────────────────────────── */
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
}

/* ─── Scroll Reveal Entrance Animations ───────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
}

.reveal.visible,
#collection,
#collection-header,
#product-grid,
#product-grid > div,
#atmospheres,
#atmospheres .reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delays for grid children */
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.15s; }
.reveal-delay-3 { transition-delay: 0.25s; }
.reveal-delay-4 { transition-delay: 0.35s; }
.reveal-delay-5 { transition-delay: 0.45s; }

/* ─── Ambient Status Pulse ────────────────────────────────── */
@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.85); }
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    animation: status-pulse 2s ease-in-out infinite;
}

/* ─── Cursor Crosshair on Product Cards ──────────────────── */
[data-quickview-product] {
    cursor: crosshair;
}

/* ─── Product card image subtle parallax feel ─────────────── */
[data-quickview-product] .aspect-square img:first-child {
    will-change: transform;
}

/* ─── Image blend overlay shimmer ────────────────────────── */
@keyframes shimmer-pass {
    0%   { left: -60%; }
    100% { left: 120%; }
}

.shimmer-host {
    position: relative;
    overflow: hidden;
}

.shimmer-host::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.06) 50%,
        transparent 100%
    );
    animation: shimmer-pass 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

/* ─── Admin Controller Styles ────────────────────────────────── */
body.admin-bar-active {
    padding-top: 144px !important;
}

body.admin-bar-active #top-app-bar {
    top: 48px !important;
}

/* Prevent fixed header from covering section tops on anchor jump */
#collection,
#atmospheres,
#curations {
    scroll-margin-top: 130px;
}

body.admin-bar-active #collection,
body.admin-bar-active #atmospheres,
body.admin-bar-active #curations {
    scroll-margin-top: 170px;
}

body.admin-edit-enabled [data-cms-key] {
    position: relative !important;
}

body.admin-edit-enabled [data-cms-key]:hover {
    outline: 1px dashed #f59e0b !important;
    outline-offset: 4px;
}

body.admin-edit-enabled .cms-actions-group,
body.admin-edit-enabled .cms-edit-btn,
body.admin-edit-enabled .cms-eye-btn {
    display: flex !important;
}

.cms-actions-group,
.cms-edit-btn,
.cms-eye-btn {
    display: none !important;
}

.cms-actions-group {
    position: absolute;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cms-actions-group .cms-edit-btn,
.cms-actions-group .cms-eye-btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.cms-edit-btn {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.dark .cms-edit-btn {
    background: #fff;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.4);
}

.cms-edit-btn:hover {
    background: #f59e0b !important;
    color: #000 !important;
    border-color: #f59e0b !important;
    transform: scale(1.08);
}

.cms-eye-btn {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.dark .cms-eye-btn {
    background: #fff;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.4);
}

.cms-eye-btn:hover {
    background: #f59e0b !important;
    color: #000 !important;
    border-color: #f59e0b !important;
    transform: scale(1.08);
}

.cms-eye-btn.cms-eye-hidden {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

.cms-eye-btn.cms-eye-hidden:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
    border-color: #f87171 !important;
    transform: scale(1.08);
}

/* Hidden section & item styling in admin preview */
body:not(.admin-edit-enabled) [data-cms-hidden="true"],
body:not(.admin-edit-enabled) .cms-hidden-element {
    display: none !important;
}

body.admin-edit-enabled .cms-hidden-preview {
    opacity: 0.42 !important;
    position: relative !important;
    outline: 2px dashed #ef4444 !important;
    outline-offset: -2px !important;
    transition: opacity 0.3s ease !important;
}

body.admin-edit-enabled .cms-hidden-preview:hover {
    opacity: 0.8 !important;
}

.cms-hidden-badge {
    pointer-events: none !important;
    user-select: none !important;
    z-index: 35 !important;
}

/* ─── Out of Stock Styling ─────────────────────────────────────── */
.product-out-of-stock .aspect-square img,
.product-out-of-stock .aspect-video img,
.product-out-of-stock #modal-img {
    filter: grayscale(70%) brightness(0.85) !important;
    opacity: 0.75 !important;
}

/* Full item sticker overlay covering the whole item */
.cms-out-of-stock-overlay {
    position: absolute !important;
    inset: 0 !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.42) !important;
    z-index: 35 !important;
    pointer-events: none !important;
    backdrop-filter: blur(1.5px) !important;
    padding: 12px !important;
}

.cms-out-of-stock-overlay.hidden {
    display: none !important;
}

/* Authentic physical black & white sticker / stamp design */
.cms-out-of-stock-sticker {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 28px !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: 3.5px solid #ffffff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.6) !important;
    transform: rotate(-6deg) scale(1) !important;
    text-transform: uppercase !important;
    pointer-events: none !important;
    user-select: none !important;
    max-width: 90% !important;
    text-align: center !important;
    letter-spacing: 0.22em !important;
    position: relative !important;
}

/* Decorative sticker dashed inner border */
.cms-out-of-stock-sticker::before {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px dashed rgba(255, 255, 255, 0.65);
    pointer-events: none;
}

.cms-out-of-stock-sticker .sticker-title {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.25em !important;
    line-height: 1 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
}

.cms-out-of-stock-badge {
    pointer-events: none !important;
    user-select: none !important;
    letter-spacing: 0.15em !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.btn-out-of-stock {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: #3f3f46 !important;
    color: #a1a1aa !important;
    border-color: #3f3f46 !important;
    pointer-events: none !important;
}

/* ─── Stable Layout Geometry (Prevents FOUC & Height Collapse on Refresh) ─── */
section[data-cms-key="hero"] {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* ─── Product Card Swipe / Slider & Bio Styling ─────────────────── */
.product-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
    touch-action: pan-y;
}

.product-slider-track {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

/* Explicit CSS state transforms for guaranteed slider transition */
.product-slider-container[data-slider-index="1"] .product-slider-track {
    transform: translateX(-50%) !important;
}

.product-slider-container[data-slider-index="0"] .product-slider-track {
    transform: translateX(0%) !important;
}

.product-slide {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Nav Arrow Buttons */
.slide-nav-btn {
    opacity: 0.95;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer !important;
    user-select: none;
    z-index: 45 !important;
    pointer-events: auto !important;
}

.slide-nav-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.12);
}

.slide-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Editorial Bio Card Styling - Ultra-Neat High-End Print Aesthetic */
.candle-bio-card {
    background-color: #f7f6f2 !important;
    color: #121212 !important;
    width: 100%;
    height: 100%;
    padding: 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    position: relative;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

.candle-bio-card-inner {
    border: 1px solid rgba(18, 18, 18, 0.16) !important;
    background-color: #fbfaf7 !important;
    padding: 20px 22px 18px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.candle-bio-card .bio-tagline {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 8.5px !important;
    letter-spacing: 0.28em !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    color: #222222 !important;
}

.candle-bio-card h3.bio-title {
    font-family: 'Bodoni Moda', 'Playfair Display', serif !important;
    font-weight: 700 !important;
    font-size: 26px !important;
    line-height: 1.12 !important;
    letter-spacing: 0.05em !important;
    color: #111111 !important;
    text-transform: uppercase !important;
    margin-top: 4px !important;
    margin-bottom: 3px !important;
}

@media (min-width: 640px) {
    .candle-bio-card h3.bio-title {
        font-size: 28px !important;
    }
}

.candle-bio-card .bio-subtitle {
    font-family: 'Cormorant Garamond', serif !important;
    font-style: italic !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    color: #4a4a4a !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.02em !important;
    font-weight: 400 !important;
}

.candle-bio-card .candle-bio-desc {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.72 !important;
    color: #262626 !important;
    font-weight: 400 !important;
    letter-spacing: 0.015em !important;
    text-align: left !important;
}

.candle-bio-card .spec-label {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 7.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.16em !important;
    line-height: 1.35 !important;
    color: #222222 !important;
    text-transform: uppercase !important;
}

.candle-bio-card .spec-icon {
    width: 20px !important;
    height: 20px !important;
    color: #121212 !important;
    margin-bottom: 4px !important;
}

.candle-bio-card .notes-label {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 8.5px !important;
    letter-spacing: 0.26em !important;
    font-weight: 700 !important;
    color: #222222 !important;
    text-transform: uppercase !important;
}

.candle-bio-card .notes-value {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em !important;
    color: #0b0b0b !important;
    text-transform: uppercase !important;
}

/* Lightbox & Zoom Viewer Styles */
#image-lightbox-modal {
    transition: opacity 0.25s ease-in-out;
}

#lightbox-img {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
    max-height: 82vh;
    max-width: 90vw;
}

#lightbox-image-wrapper {
    cursor: zoom-in;
    touch-action: none;
}

#lightbox-image-wrapper.zoomed {
    cursor: grab;
}

#lightbox-image-wrapper.zoomed:active {
    cursor: grabbing;
}

/* Enlarged Bio Card Modal */
#bio-card-lightbox-modal {
    transition: opacity 0.25s ease-in-out;
}

/* Enhancing Base Bio Card Readability in Thumbnails */
.candle-bio-card {
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.candle-bio-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

.candle-bio-card .candle-bio-desc {
    font-size: 11.5px !important;
    line-height: 1.62 !important;
    color: #1a1a1a !important;
    font-weight: 450 !important;
}

.candle-bio-card .spec-label {
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    color: #111111 !important;
}

.bio-expand-btn {
    transition: all 0.2s ease;
}

.bio-expand-btn:hover {
    transform: scale(1.05);
}

.slide-zoom-btn {
    transition: all 0.2s ease;
}

.slide-zoom-btn:hover {
    transform: scale(1.1);
}

/* Editorial Navigation Header Styling */
.header-nav-item {
    font-family: 'Bodoni Moda', 'Playfair Display', serif !important;
    font-size: 15px;
    letter-spacing: 0.02em;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 1024px) {
    .header-nav-item {
        font-size: 16px;
    }
}

.header-nav-item:hover {
    opacity: 0.7;
}

/* Modal and FAQ Accordion Transitions */
.faq-accordion-item {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-answer.open {
    max-height: 400px;
    opacity: 1;
}

/* Search Highlights */
.search-chip-btn {
    transition: all 0.2s ease;
}
.search-chip-btn:hover {
    border-color: currentColor;
    transform: translateY(-1px);
}

/* ─── COMPREHENSIVE DARK MODE TEXT READABILITY FIXES ──────────────────────── */
html.dark,
.dark {
    color-scheme: dark;
}

html.dark body {
    color: #f5f3f0;
}

/* Cart Drawer in Dark Mode */
html.dark #cart-drawer,
.dark #cart-drawer {
    background-color: #0b0b0b !important;
    color: #f5f3f0 !important;
    border-left-color: rgba(245, 243, 240, 0.12) !important;
}

html.dark #cart-drawer h3,
html.dark #cart-drawer h4,
html.dark #cart-drawer p,
html.dark #cart-drawer span,
html.dark #cart-drawer button,
.dark #cart-drawer h3,
.dark #cart-drawer h4,
.dark #cart-drawer p,
.dark #cart-drawer span,
.dark #cart-drawer button {
    color: #f5f3f0 !important;
}

html.dark #cart-drawer .text-primary,
.dark #cart-drawer .text-primary {
    color: #f5f3f0 !important;
}

html.dark #cart-drawer .opacity-60,
html.dark #cart-drawer .opacity-70,
html.dark #cart-drawer .opacity-75,
.dark #cart-drawer .opacity-60,
.dark #cart-drawer .opacity-70,
.dark #cart-drawer .opacity-75 {
    color: rgba(245, 243, 240, 0.7) !important;
}

html.dark #cart-drawer li,
.dark #cart-drawer li {
    border-bottom-color: rgba(245, 243, 240, 0.12) !important;
}

html.dark #cart-drawer .border-primary,
html.dark #cart-drawer .border-primary\/5,
html.dark #cart-drawer .border-primary\/10,
html.dark #cart-drawer .border-primary\/20,
.dark #cart-drawer .border-primary,
.dark #cart-drawer .border-primary\/5,
.dark #cart-drawer .border-primary\/10,
.dark #cart-drawer .border-primary\/20 {
    border-color: rgba(245, 243, 240, 0.18) !important;
}

html.dark #cart-drawer #cart-subtotal,
.dark #cart-drawer #cart-subtotal {
    color: #ffffff !important;
}

html.dark #cart-drawer #cart-checkout-btn,
.dark #cart-drawer #cart-checkout-btn {
    background-color: #f5f3f0 !important;
    color: #0b0b0b !important;
}

html.dark #cart-drawer #cart-checkout-btn:hover,
.dark #cart-drawer #cart-checkout-btn:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Discovery Set Builder in Dark Mode */
html.dark #discovery-builder,
.dark #discovery-builder {
    background-color: #0b0b0b !important;
    color: #f5f3f0 !important;
}

html.dark #discovery-builder h3,
html.dark #discovery-builder h5,
html.dark #discovery-builder p,
html.dark #discovery-builder span,
html.dark #discovery-builder button,
.dark #discovery-builder h3,
.dark #discovery-builder h5,
.dark #discovery-builder p,
.dark #discovery-builder span,
.dark #discovery-builder button {
    color: #f5f3f0 !important;
}

html.dark #discovery-builder .text-primary,
.dark #discovery-builder .text-primary {
    color: #f5f3f0 !important;
}

html.dark #discovery-builder .border-primary,
html.dark #discovery-builder .border-primary\/10,
html.dark #discovery-builder .border-primary\/20,
.dark #discovery-builder .border-primary,
.dark #discovery-builder .border-primary\/10,
.dark #discovery-builder .border-primary\/20 {
    border-color: rgba(245, 243, 240, 0.18) !important;
}

/* Checkout Modal in Dark Mode */
html.dark #checkout-modal,
.dark #checkout-modal {
    color: #f5f3f0 !important;
}

html.dark #checkout-modal .text-primary,
.dark #checkout-modal .text-primary {
    color: #f5f3f0 !important;
}

/* Checkout Step Indicators - Ensure vibrant, crystal-clear circles in Light & Dark Mode */
.checkout-step-indicator {
    border-width: 2px !important;
    border-style: solid !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Light Mode */
.checkout-step-indicator.active {
    border-color: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15) !important;
}

.checkout-step-indicator.completed {
    border-color: #000000 !important;
    background-color: rgba(0, 0, 0, 0.08) !important;
    color: #000000 !important;
    font-weight: 700 !important;
}

.checkout-step-indicator.upcoming {
    border-color: rgba(0, 0, 0, 0.45) !important;
    background-color: transparent !important;
    color: rgba(0, 0, 0, 0.75) !important;
    font-weight: 600 !important;
}

/* Dark Mode Overrides */
html.dark .checkout-step-indicator.active,
.dark .checkout-step-indicator.active {
    border-color: #f5f3f0 !important;
    background-color: #f5f3f0 !important;
    color: #0b0b0b !important;
    font-weight: 800 !important;
    box-shadow: 0 0 0 2px rgba(245, 243, 240, 0.4), 0 0 12px rgba(245, 243, 240, 0.35) !important;
}

html.dark .checkout-step-indicator.completed,
.dark .checkout-step-indicator.completed {
    border-color: #f5f3f0 !important;
    background-color: rgba(245, 243, 240, 0.14) !important;
    color: #f5f3f0 !important;
    font-weight: 700 !important;
}

html.dark .checkout-step-indicator.upcoming,
.dark .checkout-step-indicator.upcoming {
    border-color: rgba(245, 243, 240, 0.55) !important;
    background-color: transparent !important;
    color: rgba(245, 243, 240, 0.75) !important;
    font-weight: 600 !important;
}

/* Connectors in Dark Mode */
html.dark .checkout-step-connector,
.dark .checkout-step-connector {
    background-color: rgba(245, 243, 240, 0.35);
}
html.dark .checkout-step-connector.bg-primary,
.dark .checkout-step-connector.bg-primary {
    background-color: #f5f3f0 !important;
}

/* ========================================================
   Patron Account Dropdown Menu (Kaufland Style Popover)
   ======================================================== */
#account-modal {
    box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.16), 0 4px 16px -2px rgba(0, 0, 0, 0.06);
    transition: width 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s ease, opacity 0.15s ease;
}
html.dark #account-modal,
.dark #account-modal {
    box-shadow: 0 20px 52px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

#account-modal-arrow {
    transition: right 0.15s ease;
}

.account-menu-item-row {
    transition: background-color 0.15s ease, color 0.15s ease;
}
.account-menu-item-row:hover {
    background-color: rgba(0, 0, 0, 0.04);
}
html.dark .account-menu-item-row:hover,
.dark .account-menu-item-row:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

