/* ==========================================================================
   Toko Sembako Bima — Clean Editorial Minimalist Theme
   ========================================================================== */

:root {
    color-scheme: light dark;
    --bg-page: #faf9f6;
    --bg-surface: #ffffff;
    --bg-subtle: #f2efe9;
    --text-primary: #141413;
    --text-secondary: #5c5b57;
    --accent: #d94e1f;
    --accent-hover: #b83d14;
    --accent-soft: rgba(217, 78, 31, 0.1);
    --border-subtle: rgba(20, 20, 19, 0.09);
    --border-strong: rgba(20, 20, 19, 0.18);
    --footer-bg: #141413;
    --footer-text: #a8a6a1;
    --shadow-sm: 0 4px 16px rgba(20, 20, 19, 0.05);
    --shadow-md: 0 16px 36px rgba(20, 20, 19, 0.09);
    --radius-card: 18px;
    --radius-pill: 999px;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
    color-scheme: dark;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.metric-value {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--accent) !important;
}

/* ==========================================================================
   Navbar Glassmorphism
   ========================================================================== */

.editorial-navbar {
    background-color: rgba(250, 249, 246, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding-block: 0.85rem;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: var(--text-primary);
    color: var(--bg-page);
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.navbar-brand:hover .brand-mark {
    background-color: var(--accent);
    transform: rotate(-6deg);
}

.brand-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.editorial-navbar .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-inline: 0.25rem;
    transition: color 0.2s ease;
}

.editorial-navbar .nav-link:hover,
.editorial-navbar .nav-link.active {
    color: var(--text-primary);
}

.editorial-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.15rem;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.editorial-navbar .nav-link:hover::after,
.editorial-navbar .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-cart-pill {
    background-color: var(--text-primary);
    color: #ffffff;
    border: 1px solid var(--text-primary);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-cart-pill:hover,
.btn-cart-pill:focus-visible {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-1px);
}

.cart-count-badge {
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.btn-cart-pill:hover .cart-count-badge {
    background-color: var(--text-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-editorial-primary {
    background-color: var(--accent);
    border: 1px solid var(--accent);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-editorial-primary:hover,
.btn-editorial-primary:focus-visible {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 78, 31, 0.25);
}

.btn-editorial-primary:disabled {
    background-color: var(--border-strong);
    border-color: var(--border-strong);
    color: var(--text-secondary);
    opacity: 0.7;
}

.btn-editorial-ghost {
    background-color: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.4rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-editorial-ghost:hover,
.btn-editorial-ghost:focus-visible {
    background-color: var(--bg-subtle);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* ==========================================================================
   Hero Section (Editorial Split)
   ========================================================================== */

.hero-editorial {
    padding-block: 4rem 4.5rem;
    background: radial-gradient(circle at 85% 20%, rgba(217, 78, 31, 0.07), transparent 45%),
                var(--bg-page);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 52ch;
}

.hero-metrics {
    border-color: var(--border-subtle) !important;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.metric-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.hero-showcase {
    position: relative;
}

.hero-image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--bg-subtle);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image-frame:hover img {
    transform: scale(1.03);
}

.hero-floating-card {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.badge-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
}

/* ==========================================================================
   Katalog & Filter
   ========================================================================== */

.section-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.section-heading {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text-primary);
}

.editorial-search .input-group-text {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-right: none;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    color: var(--text-secondary);
    padding-left: 1rem;
}

.editorial-search .form-control {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-left: none;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    color: var(--text-primary);
    padding-block: 0.6rem;
}

.editorial-select {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    padding-block: 0.6rem;
    padding-left: 1rem;
}

.editorial-search .form-control:focus,
.editorial-select:focus {
    box-shadow: 0 0 0 3px var(--accent-soft);
    border-color: var(--accent);
}

.pill-filter {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    padding: 0.42rem 1.05rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pill-filter:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.pill-filter.active {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: #ffffff;
}

/* ==========================================================================
   Product Cards
   ========================================================================== */

.product-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.product-img-wrapper {
    height: 240px;
    overflow: hidden;
    background-color: var(--bg-subtle);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

.product-category-pill {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
}

.product-price {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.15rem;
}

.size-option-btn {
    min-width: 48px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.42rem 0.75rem;
    transition: all 0.18s ease;
}

.size-option-btn:hover {
    border-color: var(--text-primary);
    background-color: var(--bg-subtle);
}

.size-option-btn.active {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: #ffffff;
}

.btn-card-detail {
    background-color: var(--bg-subtle);
    border: 1px solid transparent;
    color: var(--text-primary);
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-card-detail:hover {
    background-color: var(--bg-surface);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-card-cart {
    background-color: var(--text-primary);
    border: 1px solid var(--text-primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-card-cart:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* ==========================================================================
   Features / Keunggulan
   ========================================================================== */

.features-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.feature-card {
    background-color: var(--bg-page);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.feature-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--border-strong);
}

/* ==========================================================================
   Footer Multi-Kolom
   ========================================================================== */

.editorial-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

.brand-mark-footer {
    background-color: var(--accent);
    color: #ffffff;
}

.footer-desc {
    color: var(--footer-text);
    line-height: 1.65;
}

.footer-heading {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact li {
    margin-bottom: 0.65rem;
    color: var(--footer-text);
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 0.15rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    padding-left: 1rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    box-shadow: none;
}

.newsletter-form .btn {
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    padding-inline: 1.1rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   Modals, Offcanvas & Toast
   ========================================================================== */

.editorial-modal {
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background-color: var(--bg-surface);
    overflow: hidden;
}

.modal-img-wrap {
    background-color: var(--bg-subtle);
    border-radius: 14px;
    overflow: hidden;
}

.modal-img {
    max-height: 320px;
    object-fit: cover;
}

.editorial-badge {
    background-color: var(--bg-subtle);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.85rem;
}

.editorial-offcanvas {
    background-color: var(--bg-page);
}

.cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background-color: var(--bg-subtle);
}

.checkout-summary {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
}

.editorial-toast {
    background-color: var(--text-primary);
    color: #ffffff;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Mobile Side Navigation: Liquid Rail
   ========================================================================== */

.liquid-rail {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1040;
    width: 56px;
    padding: 8px;
    border-radius: 28px;
    background: rgba(250, 249, 246, 0.74);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 36px rgba(20, 20, 19, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.liquid-rail.expanded {
    width: 158px;
    box-shadow: 0 20px 44px rgba(20, 20, 19, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.liquid-rail-toggle {
    height: 36px;
    border: none;
    border-radius: 18px;
    background: rgba(20, 20, 19, 0.06);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.liquid-rail-toggle:hover,
.liquid-rail-toggle:active {
    background: rgba(20, 20, 19, 0.12);
    transform: scale(0.96);
}

.liquid-rail-track {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.liquid-rail-indicator {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 40px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), #ef6c3f);
    box-shadow: 0 8px 18px rgba(217, 78, 31, 0.35);
    pointer-events: none;
    transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.25s ease;
    z-index: 0;
}

.liquid-rail-item {
    position: relative;
    z-index: 1;
    height: 40px;
    padding: 0 11px;
    border-radius: 18px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    transition: color 0.25s ease, transform 0.2s ease;
}

.liquid-rail-item i {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.liquid-rail-item:hover {
    color: var(--text-primary);
}

.liquid-rail-item.active {
    color: #ffffff;
}

.liquid-rail-label {
    font-size: 0.84rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.liquid-rail.expanded .liquid-rail-label {
    opacity: 1;
    transform: translateX(0);
}

.liquid-rail-divider {
    height: 1px;
    margin: 2px 6px;
    background: var(--border-subtle);
}

.liquid-rail-cart {
    background: rgba(20, 20, 19, 0.06);
    color: var(--text-primary);
}

.liquid-rail-cart:hover {
    background: var(--text-primary);
    color: #ffffff;
}

.rail-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: right 0.25s ease;
}

.liquid-rail.expanded .rail-badge {
    position: static;
    margin-left: auto;
}

@media (max-width: 991.98px) {
    header.hero-editorial,
    main.catalog-section,
    section.features-section,
    footer.editorial-footer {
        padding-left: 68px;
    }
}

/* ==========================================================================
   Mobile Katalog Bottom Sheet
   ========================================================================== */

.editorial-bottom-sheet {
    height: 82vh !important;
    max-height: 85vh;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background-color: var(--bg-page);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -16px 40px rgba(20, 20, 19, 0.16);
}

.bottom-sheet-handle-wrap {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 4px;
}

.bottom-sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background-color: var(--border-strong);
}

.sheet-pills-scroll {
    scrollbar-width: none;
}

.sheet-pills-scroll::-webkit-scrollbar {
    display: none;
}

.sheet-product-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.sheet-product-item:hover {
    border-color: var(--accent);
}

.sheet-product-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background-color: var(--bg-subtle);
    flex-shrink: 0;
}

/* ==========================================================================
   Mobile Detail Produk sebagai Bottom Sheet (< 992px)
   ========================================================================== */

@media (max-width: 991.98px) {
    #productDetailModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100%;
        display: flex;
        align-items: flex-end;
    }

    #productDetailModal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    }

    #productDetailModal.show .modal-dialog {
        transform: translateY(0);
    }

    #productDetailModal .editorial-modal {
        width: 100%;
        max-height: 88vh;
        overflow-y: auto;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        border-bottom: none;
        box-shadow: 0 -16px 40px rgba(20, 20, 19, 0.2);
    }

    #productDetailModal .modal-img {
        max-height: 220px;
    }
}

/* ==========================================================================
   Payment Success Modal Icon
   ========================================================================== */

.success-icon-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: rgba(25, 135, 84, 0.12);
    color: #198754;
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Celestial Day / Night Morphing Theme Switch
   ========================================================================== */

.theme-switch-pill {
    position: relative;
    width: 68px;
    height: 34px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid rgba(217, 78, 31, 0.25);
    background: linear-gradient(135deg, #fde68a 0%, #fdba74 55%, #fb923c 100%);
    box-shadow: inset 0 2px 6px rgba(20, 20, 19, 0.12),
                0 4px 12px rgba(217, 78, 31, 0.15);
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.theme-switch-compact {
    width: 58px;
    height: 30px;
}

.theme-switch-pill:hover {
    transform: translateY(-1px);
}

.theme-switch-thumb {
    position: relative;
    z-index: 2;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    transform: translateX(0) rotate(0deg);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.35s ease,
                color 0.35s ease;
}

.theme-switch-compact .theme-switch-thumb {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
}

.theme-switch-thumb .icon-moon {
    display: none;
}

.theme-switch-clouds {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.7) 0 4px, transparent 5px),
                radial-gradient(circle at 80% 58%, rgba(255, 255, 255, 0.55) 0 5px, transparent 6px),
                radial-gradient(circle at 63% 65%, rgba(255, 255, 255, 0.45) 0 3px, transparent 4px);
    opacity: 1;
    transition: opacity 0.35s ease, transform 0.45s ease;
}

.theme-switch-stars {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 22% 34%, #ffffff 0 1.2px, transparent 1.8px),
                radial-gradient(circle at 38% 66%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.6px),
                radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.7) 0 0.9px, transparent 1.5px),
                radial-gradient(circle at 46% 30%, #fde68a 0 1.3px, transparent 1.9px);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s ease, transform 0.45s ease;
}

[data-bs-theme="dark"] .theme-switch-pill {
    border-color: rgba(148, 163, 184, 0.35);
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45),
                0 4px 14px rgba(99, 102, 241, 0.25);
}

[data-bs-theme="dark"] .theme-switch-thumb {
    transform: translateX(34px) rotate(360deg);
    background: #1e293b;
    color: #fde68a;
    box-shadow: 0 0 12px rgba(253, 230, 138, 0.45);
}

[data-bs-theme="dark"] .theme-switch-compact .theme-switch-thumb {
    transform: translateX(28px) rotate(360deg);
}

[data-bs-theme="dark"] .theme-switch-thumb .icon-sun {
    display: none;
}

[data-bs-theme="dark"] .theme-switch-thumb .icon-moon {
    display: inline-block;
}

[data-bs-theme="dark"] .theme-switch-clouds {
    opacity: 0;
    transform: translateY(6px);
}

[data-bs-theme="dark"] .theme-switch-stars {
    opacity: 1;
    transform: translateY(0);
}

.liquid-rail-theme .icon-moon {
    display: none;
}

[data-bs-theme="dark"] .liquid-rail-theme .icon-sun {
    display: none;
}

[data-bs-theme="dark"] .liquid-rail-theme .icon-moon {
    display: inline-block;
    color: #fde68a;
}

/* ==========================================================================
   Dark Mode Theme Tokens & Glass Surfaces
   ========================================================================== */

[data-bs-theme="dark"] {
    --bg-page: #111110;
    --bg-surface: #1b1b19;
    --bg-subtle: #252421;
    --text-primary: #f5f4f0;
    --text-secondary: #a8a6a1;
    --accent: #f06535;
    --accent-hover: #ff7a4d;
    --accent-soft: rgba(240, 101, 53, 0.18);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --footer-bg: #0a0a09;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .editorial-navbar {
    background-color: rgba(17, 17, 16, 0.82);
}

[data-bs-theme="dark"] .brand-mark {
    background-color: var(--accent);
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-cart-pill {
    background-color: var(--bg-subtle);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .btn-cart-pill:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

[data-bs-theme="dark"] .hero-floating-card {
    background-color: rgba(27, 27, 25, 0.9);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .hero-floating-card .text-muted {
    color: var(--text-secondary) !important;
}

[data-bs-theme="dark"] .product-category-pill {
    background-color: rgba(27, 27, 25, 0.88);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .pill-filter.active,
[data-bs-theme="dark"] .size-option-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-card-cart {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-card-cart:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

[data-bs-theme="dark"] .liquid-rail {
    background: rgba(24, 24, 22, 0.78);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .liquid-rail-toggle,
[data-bs-theme="dark"] .liquid-rail-cart {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .editorial-toast {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
}
