/**
 * Warung Dwi v2 — tema selaras warungdwi.com (styles.css)
 */

/* Loader — light / dark via CSS vars (spesifisitas sama, tidak “nempel putih” di dark) */
:root {
    --wr-loader-bg: linear-gradient(160deg, #faf5ff 0%, #ffffff 42%, #eff6ff 100%);
    --wr-loader-label: #5b21b6;
    --wr-loader-tagline: #64748b;
    --wr-loader-core-image: #ffffff;
    --wr-loader-glow: rgba(124, 58, 237, 0.22);
    --wr-loader-glow-strong: rgba(124, 58, 237, 0.35);
}

html[data-theme="dark"],
html.dark {
    --wr-loader-bg: linear-gradient(160deg, #0b1220 0%, #111827 48%, #1e1033 100%);
    --wr-loader-label: #c4b5fd;
    --wr-loader-tagline: #94a3b8;
    --wr-loader-core-image: #1e293b;
    --wr-loader-glow: rgba(139, 92, 246, 0.28);
    --wr-loader-glow-strong: rgba(167, 139, 250, 0.4);
}

#page-loader:not([data-v2-hidden="1"]):not(.is-removed):not(.fade-out),
#page-loader.wr-page-loader:not([data-v2-hidden="1"]):not(.is-removed):not(.fade-out),
.wr-page-loader:not([data-v2-hidden="1"]):not(.is-removed):not(.fade-out) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--wr-loader-bg) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    transition: opacity 0.45s ease, visibility 0.45s ease, background 0.25s ease;
}

#page-loader.fade-out,
#page-loader[data-v2-hidden="1"],
#page-loader.is-removed,
.wr-page-loader[data-v2-hidden="1"],
.wr-page-loader.is-removed {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

/* Logo & hero — tanpa fade opacity (menghindari glitch kedip) */
img[data-store-logo] {
    opacity: 1;
    min-width: 2.5rem;
    min-height: 2.5rem;
    object-fit: cover;
    transition: none !important;
}

[data-hero-image] {
    opacity: 1;
    transition: none;
}

[data-hero-image]:not([src]),
[data-hero-image][src=""] {
    opacity: 0;
    visibility: hidden;
}

.hero-visual--empty [data-hero-image] {
    display: none;
}

#page-loader img,
#page-loader img[data-store-logo] {
    opacity: 1 !important;
}

/* Loader premium — tidak pakai logo/favicon */
.wr-loader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.wr-loader__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9rem;
    height: 9rem;
    margin: -4.5rem 0 0 -4.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--wr-loader-glow) 0%, transparent 70%);
    animation: wr-loader-glow 2.2s ease-in-out infinite;
    pointer-events: none;
}

.wr-loader__orb {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    margin-bottom: 0.15rem;
}

.wr-loader__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    box-sizing: border-box;
}

.wr-loader__ring--a {
    border-top-color: #7c3aed;
    border-right-color: #e11d48;
    animation: wr-loader-spin 1.1s linear infinite;
}

.wr-loader__ring--b {
    inset: 0.45rem;
    border-bottom-color: #2563eb;
    border-left-color: #f59e0b;
    animation: wr-loader-spin-rev 0.85s linear infinite;
}

.wr-loader__ring--c {
    inset: 0.9rem;
    border-top-color: #ec4899;
    border-right-color: #8b5cf6;
    animation: wr-loader-spin 1.45s linear infinite;
    opacity: 0.75;
}

.wr-loader__core {
    position: absolute;
    inset: 1.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5b21b6, #7c3aed 55%, #e11d48);
    box-shadow: 0 10px 28px rgba(91, 33, 182, 0.35);
    animation: wr-loader-pulse 1.8s ease-in-out infinite;
    overflow: hidden;
}

.wr-loader__core--image {
    background: var(--wr-loader-core-image);
    padding: 0.15rem;
    box-shadow: 0 10px 28px rgba(91, 33, 182, 0.25);
}

html[data-theme="dark"] .wr-loader__core--image,
html.dark .wr-loader__core--image {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.wr-loader__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.wr-loader__tagline {
    margin: 0;
    font: 500 0.8rem/1.35 'Outfit', system-ui, sans-serif;
    color: var(--wr-loader-tagline);
    text-align: center;
    max-width: 15rem;
}

.wr-loader__monogram {
    font: 800 1rem/1 'Outfit', system-ui, sans-serif;
    letter-spacing: -0.04em;
    color: #fff;
}

.wr-loader__label {
    margin: 0;
    font: 600 0.82rem/1 'Outfit', system-ui, sans-serif;
    color: var(--wr-loader-label);
    letter-spacing: 0.03em;
}

.wr-loader__dots {
    display: inline-flex;
    gap: 0.12rem;
    margin-left: 0.15rem;
    vertical-align: baseline;
}

.wr-loader__dots i {
    display: inline-block;
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: currentColor;
    animation: wr-loader-dot 1.2s ease-in-out infinite;
}

.wr-loader__dots i:nth-child(2) { animation-delay: 0.15s; }
.wr-loader__dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes wr-loader-spin { to { transform: rotate(360deg); } }
@keyframes wr-loader-spin-rev { to { transform: rotate(-360deg); } }
@keyframes wr-loader-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
@keyframes wr-loader-glow {
    0%, 100% { opacity: 0.55; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.08); }
}
@keyframes wr-loader-dot {
    0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

/* Hero floating badges (Netflix, ChatGPT, …) */
@keyframes hero-bounce {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-12px) rotate(-6deg); }
}

.hero-bounce { animation: hero-bounce 2.5s ease-in-out infinite; }

@keyframes hero-swing {
    0%, 100% { transform: rotate(3deg); }
    25% { transform: rotate(8deg); }
    75% { transform: rotate(-2deg); }
}

.hero-swing { animation: hero-swing 3s ease-in-out infinite; }

@keyframes hero-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

.hero-wiggle { animation: hero-wiggle 2s ease-in-out infinite; }

@keyframes hero-pop {
    0%, 100% { transform: scale(1) rotate(3deg); }
    50% { transform: scale(1.08) rotate(3deg); }
}

.hero-pop { animation: hero-pop 2.2s ease-in-out infinite; }

@keyframes hero-pulse {
    0%, 100% { transform: scale(1) rotate(6deg); opacity: 1; }
    50% { transform: scale(1.05) rotate(6deg); opacity: 0.9; }
}

.hero-pulse { animation: hero-pulse 2.8s ease-in-out infinite; }

@keyframes hero-slide {
    0%, 100% { transform: translateX(0) rotate(-2deg); }
    50% { transform: translateX(6px) rotate(-2deg); }
}

.hero-slide { animation: hero-slide 3.5s ease-in-out infinite; }

#product-container:not(.catalog-ready) .product-item,
#productsGrid:not(.catalog-ready) .product-card {
    display: none !important;
}

/* Katalog — selalu tampil setelah siap (tanpa scroll-reveal) */
#productsGrid.catalog-ready,
#product-container.catalog-ready {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    visibility: visible !important;
}

#productsGrid.catalog-ready .product-card,
#product-container.catalog-ready .product-card,
#productsGrid.catalog-ready .product-item,
#product-container.catalog-ready .product-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    visibility: visible !important;
    animation: none !important;
}

/* Search filter: tetap boleh disembunyikan meski catalog-ready */
#productsGrid.catalog-ready .product-card.hidden,
#product-container.catalog-ready .product-card.hidden,
#product-container.catalog-ready .product-item.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Leaderboard — selalu tampil setelah siap (hindari anim-in opacity:0 di Safari) */
#leaderboardGrid.lb-ready,
#leaderboardGrid.lb-ready .lb-card {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
}

#leaderboardGrid.lb-ready .lb-card {
    transform: none !important;
    animation: none !important;
}

.lb-section-head {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Katalog — loading & reveal halus */
.product-grid.catalog-loading {
    min-height: 14rem;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.product-grid.catalog-is-swapping {
    pointer-events: none;
}

.product-card.catalog-card-in {
    animation: catalog-card-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes catalog-card-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-grid.catalog-loading,
    .product-grid.catalog-is-swapping {
        transition: none;
    }
    .product-card.catalog-card-in {
        animation: none;
    }
}

@media (max-width: 767px), (pointer: coarse) {
    .product-grid.catalog-loading,
    .product-grid.catalog-is-swapping {
        transition: none;
    }
    .product-card.catalog-card-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
:root {
    --wr-primary: #5b21b6;
    --wr-primary-dark: #4c1d95;
    --wr-primary-light: #7c3aed;
    --wr-tagline: #2563eb;
    --wr-hero-from: #eff6ff;
    --wr-hero-mid: #ffffff;
    --wr-hero-to: #f3e8ff;
    --wr-surface: #fafbff;
    --wr-surface-soft: #f5f3ff;
}

/* Brand di header — sama seperti .wr-nav-title / .wr-nav-tagline */
.store-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 0.75rem;
    gap: 0.1rem;
    flex-shrink: 0;
    min-width: 7.5rem;
    max-width: 11rem;
    line-height: 1.1;
    overflow: visible;
}

.store-brand__name {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: normal;
    color: #000;
}

.store-brand__tagline,
[data-store-tagline] {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    color: var(--wr-tagline) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block;
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 480px) {
    .store-brand {
        min-width: 0;
        max-width: 9.5rem;
    }

    .store-brand__tagline,
    [data-store-tagline] {
        white-space: normal;
        font-size: 0.7rem;
    }
}

/* Header mobile: logo + ID/EN + menu muat 1 baris, tanpa overflow */
@media (max-width: 767px) {
    #main-header > .max-w-7xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        max-width: 100%;
        overflow: hidden;
    }

    #main-header .flex.justify-between.items-center {
        gap: 0.4rem;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    #main-header a.flex.items-center.group,
    #main-header a.flex.items-center {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    #main-header .store-brand {
        margin-left: 0.4rem;
        min-width: 0;
        max-width: 100%;
        flex-shrink: 1;
    }

    #main-header .store-brand__name {
        font-size: 0.92rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #main-header .store-brand__tagline,
    #main-header [data-store-tagline] {
        display: block !important;
        font-size: 0.62rem !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100%;
    }

    #main-header .flex.items-center.space-x-4,
    #main-header .v2-header-actions {
        gap: 0.4rem !important;
        flex: 0 0 auto;
        margin-left: 0;
        max-width: none;
    }

    #main-header .flex.items-center.space-x-4 > :not([hidden]) ~ :not([hidden]),
    #main-header .v2-header-actions > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0.4rem !important;
    }

    /* Dark mode di HP: ikon kecil di sebelah ID/EN (bukan di menu hamburger) */
    #main-header #v2-theme-toggle {
        display: inline-flex !important;
        width: 1.75rem !important;
        height: 1.75rem !important;
        border-radius: 0.55rem;
        padding: 0;
    }

    #main-header #v2-theme-toggle .v2-theme-toggle__icon {
        font-size: 0.72rem;
    }

    #mobile-menu-btn {
        width: 2.25rem !important;
        height: 2.25rem !important;
        flex-shrink: 0;
    }

    #mobile-menu-btn i {
        font-size: 1rem !important;
    }

    #v2-theme-toggle-mobile {
        display: none !important;
    }

    /* Menu mobile: ikon & teks sejajar (bukan belok-belok) */
    #mobile-menu > nav {
        gap: 0.35rem;
        row-gap: 0.35rem;
    }

    #mobile-menu > nav.space-y-4 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.35rem !important;
    }

    #mobile-menu > nav > a,
    #mobile-menu #mobile-sitemap-btn {
        display: flex !important;
        align-items: center;
        gap: 0.7rem;
        width: 100%;
        min-height: 2.65rem;
        padding: 0.55rem 0.9rem !important;
        line-height: 1.25;
        text-align: left;
        box-sizing: border-box;
    }

    #mobile-menu > nav > a > i:first-child,
    #mobile-menu #mobile-sitemap-btn > span > i:first-child {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 1.35rem;
        min-width: 1.35rem;
        margin: 0 !important;
        font-size: 0.95rem;
        line-height: 1;
        text-align: center;
        color: var(--wr-primary);
        flex-shrink: 0;
    }

    #mobile-menu #mobile-sitemap-btn > span {
        display: inline-flex;
        align-items: center;
        gap: 0.7rem;
        min-width: 0;
    }

    #mobile-menu #mobile-sitemap-btn > .fa-chevron-down,
    #mobile-menu #mobile-sitemap-btn > i.fa-chevron-down {
        margin-left: auto;
        flex-shrink: 0;
        color: #94a3b8;
    }

    #mobile-menu #mobile-sitemap a {
        display: flex !important;
        align-items: center;
        gap: 0.65rem;
        padding: 0.45rem 0.9rem !important;
    }

    #mobile-menu #mobile-sitemap a > i:first-child {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 1.2rem;
        min-width: 1.2rem;
        margin: 0 !important;
        text-align: center;
        color: var(--wr-primary);
        flex-shrink: 0;
    }
}

@media (min-width: 992px) {
    .store-brand__name {
        font-size: 1.25rem;
    }
}

/* Override tailwind "rose" yang salah (biru) → ungu Warung Dwi */
.text-rose-500 { color: var(--wr-tagline) !important; }
.text-rose-600 { color: var(--wr-primary) !important; }
.text-rose-700 { color: var(--wr-primary-dark) !important; }
.bg-rose-600 { background-color: var(--wr-primary) !important; }
.bg-rose-700 { background-color: var(--wr-primary-dark) !important; }
.hover\:bg-rose-700:hover { background-color: var(--wr-primary-dark) !important; }
.hover\:text-rose-600:hover { color: var(--wr-primary) !important; }
.border-rose-100 { border-color: #e9d5ff !important; }
.border-rose-200 { border-color: #ddd6fe !important; }
.bg-rose-50 { background-color: #f5f3ff !important; }
.bg-rose-100 { background-color: #ede9fe !important; }
.shadow-rose-200 { --tw-shadow-color: rgba(91, 33, 182, 0.15) !important; }
.from-rose-50 { --tw-gradient-from: #f5f3ff !important; }
.to-orange-50 { --tw-gradient-to: #faf5ff !important; }

.group:hover .group-hover\:text-rose-600 { color: var(--wr-primary) !important; }
.group-hover\/sitemap\:text-rose-600 { color: var(--wr-primary) !important; }

/* Hero halaman dalam — gradient terang seperti homepage warungdwi.com */
.page-hero,
.hero-bg {
    background: linear-gradient(to bottom right, var(--wr-hero-from) 0%, var(--wr-hero-mid) 50%, var(--wr-hero-to) 100%) !important;
    position: relative;
    overflow: hidden !important;
    max-width: 100%;
    width: 100%;
    touch-action: pan-y;
    overscroll-behavior-x: none;
    color: #1f2937;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(91, 33, 182, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 85%);
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero::after,
.hero-bg::after {
    display: none !important;
}

.page-hero-badge i.fa-crown {
    color: var(--wr-primary);
    opacity: 0.9;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(243, 232, 255, 0.9);
    color: var(--wr-primary);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid #e9d5ff;
    text-transform: none;
    letter-spacing: normal;
}

.page-hero-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: #111827 !important;
}

.page-hero-desc {
    color: #334155 !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.cms-page-intro {
    position: relative;
    z-index: 2;
    max-width: 42rem;
    margin: 1rem auto 0;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #475569;
}

.cms-page-intro p {
    margin: 0;
}

.cms-page-intro p + p {
    margin-top: 1rem;
}

.cms-page-intro a {
    color: var(--wr-primary);
    font-weight: 700;
}

.cms-page-intro a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .page-hero-desc {
        font-size: 1.05rem;
    }
}

/* Hero katalog produk — lebih kaya seperti homepage */
.page-hero--catalog {
    padding-bottom: 3.5rem;
    overflow: hidden !important;
    touch-action: pan-y;
    overscroll-behavior-x: none;
}

.page-hero--catalog .max-w-4xl,
.page-hero--catalog .page-hero-pills,
.page-hero--catalog .page-hero-desc,
.page-hero--catalog .page-hero-title {
    max-width: 100%;
    box-sizing: border-box;
}

.page-hero-title--lg {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.page-hero-accent {
    color: var(--wr-primary) !important;
    position: relative;
    display: inline-block;
}

.page-hero-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1em;
    height: 0.35em;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 2px;
    z-index: -1;
}

.page-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
}

.page-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #e9d5ff;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(91, 33, 182, 0.06);
}

.page-hero-pill i {
    color: var(--wr-primary);
    font-size: 0.7rem;
}

.page-hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.page-hero-blob--1 {
    top: -4rem;
    right: -6rem;
    width: 22rem;
    height: 22rem;
    background: rgba(139, 92, 246, 0.12);
}

.page-hero-blob--2 {
    bottom: -2rem;
    left: -4rem;
    width: 18rem;
    height: 18rem;
    background: rgba(37, 99, 235, 0.08);
}

@media (min-width: 768px) {
    .page-hero--catalog {
        padding-bottom: 4rem;
    }
}

/* Hero pattern lama (products dll) — gradient terang, bukan dots biru gelap */
.hero-pattern {
    background: linear-gradient(to bottom right, var(--wr-hero-from) 0%, var(--wr-hero-mid) 50%, var(--wr-hero-to) 100%) !important;
    color: #1f2937 !important;
}

.hero-pattern h1,
.hero-pattern .text-white,
.hero-pattern .text-white\/90 {
    color: #111827 !important;
}

.hero-pattern .text-white\/90 {
    color: #475569 !important;
    opacity: 1 !important;
}

#main-header {
    background: #fff !important;
    border-bottom: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

#main-header nav a {
    color: #374151 !important;
    font-weight: 600;
}

#main-header nav a i {
    color: var(--wr-tagline);
}

#main-header nav a:hover,
#main-header nav a:hover i {
    color: var(--wr-primary) !important;
}

/* Dark: nav desktop + menu HP harus terbaca */
html[data-theme="dark"] #main-header nav a,
html.dark #main-header nav a,
html[data-theme="dark"] #mobile-menu a,
html.dark #mobile-menu a,
html[data-theme="dark"] #mobile-menu #mobile-sitemap-btn,
html.dark #mobile-menu #mobile-sitemap-btn {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] #main-header nav a i,
html.dark #main-header nav a i,
html[data-theme="dark"] #mobile-menu a > i,
html.dark #mobile-menu a > i,
html[data-theme="dark"] #mobile-menu #mobile-sitemap-btn i,
html.dark #mobile-menu #mobile-sitemap-btn i {
    color: #c4b5fd !important;
}

html[data-theme="dark"] #main-header nav a:hover,
html[data-theme="dark"] #main-header nav a:hover i,
html.dark #main-header nav a:hover,
html.dark #main-header nav a:hover i,
html[data-theme="dark"] #mobile-menu a:hover,
html[data-theme="dark"] #mobile-menu a:hover > i,
html.dark #mobile-menu a:hover,
html.dark #mobile-menu a:hover > i {
    color: #e9d5ff !important;
}

html[data-theme="dark"] #mobile-menu a:hover,
html[data-theme="dark"] #mobile-menu #mobile-sitemap-btn:hover,
html.dark #mobile-menu a:hover,
html.dark #mobile-menu #mobile-sitemap-btn:hover {
    background-color: rgba(91, 33, 182, 0.28) !important;
}

html[data-theme="dark"] #mobile-menu #mobile-sitemap-btn > .fa-chevron-down,
html.dark #mobile-menu #mobile-sitemap-btn > .fa-chevron-down {
    color: #94a3b8 !important;
}

.bg-rose-500 { background-color: #8b5cf6 !important; }

body {
    background: linear-gradient(180deg, var(--wr-surface) 0%, #ffffff 35%, #ffffff 100%) !important;
    background-attachment: fixed;
}

main,
body > .flex-grow {
    background: transparent;
}

/* Area konten — sedikit ungu muda, tidak flat putih */
.v2-content-surface,
main.flex-grow:not(:empty) {
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.35) 0%, rgba(255, 255, 255, 0) 12rem);
}

/* ========== Flash Sale — catchy header + countdown ========== */
.flash-sale-container {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(251, 191, 36, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(244, 63, 94, 0.16) 0%, transparent 50%),
        linear-gradient(135deg, #7c3aed 0%, #5b21b6 45%, #312e81 100%) !important;
    box-shadow:
        0 14px 32px -14px rgba(91, 33, 182, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.flash-sale-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.07) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: flash-sale-shine 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes flash-sale-shine {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.flash-sale-head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.55rem;
}

@media (min-width: 768px) {
    .flash-sale-head {
        margin-bottom: 0.75rem;
        align-items: center;
        gap: 0.75rem 1rem;
    }
}

.flash-sale-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1 1 auto;
}

@media (min-width: 768px) {
    .flash-sale-brand { gap: 0.85rem; }
}

.flash-sale-bolt {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    font-size: 0.72rem;
    color: #fef08a;
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    box-shadow:
        0 0 0 2px rgba(251, 191, 36, 0.22),
        0 6px 14px -6px rgba(245, 158, 11, 0.55);
    animation: flash-bolt-pulse 1.6s ease-in-out infinite;
}

@media (min-width: 768px) {
    .flash-sale-bolt {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 0.82rem;
        border-radius: 0.75rem;
    }
}

@keyframes flash-bolt-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25), 0 8px 20px -6px rgba(245, 158, 11, 0.65); }
    50% { transform: scale(1.08) rotate(-6deg); box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.35), 0 12px 28px -6px rgba(245, 158, 11, 0.8); }
}

.flash-sale-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
}

.flash-sale-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(90deg, #fff 0%, #fde68a 45%, #fff 90%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: flash-title-shimmer 2.8s linear infinite;
    text-shadow: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

@media (min-width: 768px) {
    .flash-sale-title { font-size: 1.2rem; }
}

@keyframes flash-title-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.flash-sale-live {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px -4px rgba(239, 68, 68, 0.7);
}

@media (min-width: 768px) {
    .flash-sale-live { font-size: 0.62rem; padding: 0.25rem 0.6rem; }
}

.flash-sale-live-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #fff;
    animation: flash-live-blink 1s ease-in-out infinite;
}

@keyframes flash-live-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

.flash-sale-sub {
    margin: 0.25rem 0 0;
    font-size: 0.58rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .flash-sale-sub {
        font-size: 0.72rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

/* Countdown — satu baris compact di kanan judul (bukan turun ke bawah) */
.flash-sale-countdown {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    text-align: right;
    max-width: 58%;
}

@media (min-width: 768px) {
    .flash-sale-countdown {
        max-width: none;
        gap: 0.28rem;
    }
}

.flash-sale-countdown-label {
    margin: 0;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    line-height: 1;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .flash-sale-countdown-label { font-size: 0.65rem; gap: 0.35rem; }
}

.flash-timer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.12rem;
}

.flash-timer__units {
    display: flex;
    align-items: center;
    gap: 0.12rem;
}

@media (min-width: 768px) {
    .flash-timer__units { gap: 0.3rem; }
}

.flash-timer__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    padding: 0.2rem 0.22rem 0.14rem;
    border-radius: 0.4rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 12px -8px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
    .flash-timer__unit {
        min-width: 2.15rem;
        padding: 0.28rem 0.35rem 0.22rem;
        border-radius: 0.5rem;
    }
}

.flash-timer__unit--sec {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(251, 191, 36, 0.2),
        0 6px 16px -8px rgba(0, 0, 0, 0.45);
}

.flash-timer__num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .flash-timer__num { font-size: 0.95rem; }
}

.flash-timer__num.is-tick {
    animation: flash-digit-tick 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #fde68a;
}

@keyframes flash-digit-tick {
    0% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-3px) scale(1.12); }
    100% { transform: translateY(0) scale(1); }
}

.flash-timer__lbl {
    margin-top: 0.1rem;
    font-size: 0.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
}

@media (min-width: 768px) {
    .flash-timer__lbl { font-size: 0.5rem; margin-top: 0.15rem; }
}

.flash-timer__colon {
    font-family: ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1;
    padding-bottom: 0.45rem;
    user-select: none;
    align-self: center;
}

@media (min-width: 768px) {
    .flash-timer__colon { font-size: 1rem; padding-bottom: 0.7rem; }
}

.flash-timer__colon--pulse {
    animation: flash-colon-pulse 1s step-end infinite;
}

@keyframes flash-colon-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.flash-timer__tz {
    margin: 0;
    font-size: 0.42rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .flash-timer__tz { font-size: 0.46rem; }
}

/* Mobile sempit: ikon jam + digit sejajar judul FLASH SALE */
@media (max-width: 420px) {
    .flash-sale-countdown {
        flex-direction: row;
        align-items: center;
        gap: 0.35rem;
        max-width: none;
        padding-top: 0.1rem;
    }

    .flash-sale-countdown-label {
        font-size: 0;
        letter-spacing: 0;
        gap: 0;
    }

    .flash-sale-countdown-label i {
        font-size: 0.7rem;
        opacity: 0.9;
    }

    .flash-timer__tz {
        display: none;
    }

    .flash-timer__lbl {
        font-size: 0.36rem;
    }

    .flash-timer__unit {
        min-width: 1.55rem;
        padding: 0.16rem 0.18rem 0.1rem;
    }

    .flash-timer__num {
        font-size: 0.72rem;
    }

    .flash-timer__colon {
        padding-bottom: 0.38rem;
        font-size: 0.72rem;
    }
}

.flash-timer--ended .flash-timer__num {
    color: #fca5a5;
}

@media (prefers-reduced-motion: reduce) {
    .flash-sale-container::before,
    .flash-sale-bolt,
    .flash-sale-title,
    .flash-sale-live-dot,
    .flash-timer__colon--pulse,
    .flash-timer__num.is-tick {
        animation: none !important;
    }
}

/* ---------- Flash sale product track & cards ---------- */
.flash-sale-track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.1rem 0.05rem 0.2rem;
    width: 100%;
    cursor: grab;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

@media (min-width: 768px) {
    .flash-sale-track { gap: 0.65rem; }
}

.flash-sale-track:active {
    cursor: grabbing;
}

.flash-sale-empty {
    margin: 0;
    padding: 0.65rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.flash-item {
    flex: 0 0 auto;
    width: 7.25rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.32);
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

@media (min-width: 640px) {
    .flash-item { width: 7.75rem; }
}

@media (min-width: 768px) {
    .flash-item { width: 8.25rem; border-radius: 0.85rem; }
}

.flash-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -14px rgba(15, 23, 42, 0.4);
}

.flash-item--oos {
    opacity: 0.72;
    pointer-events: none;
    filter: grayscale(0.35);
}

.flash-item__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #f8fafc, #f5f3ff);
    overflow: hidden;
}

.flash-item__badge {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    z-index: 2;
    padding: 0.18rem 0.45rem;
    border-radius: 0.45rem;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 10px -4px rgba(220, 38, 38, 0.65);
}

.flash-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.flash-item:hover .flash-item__img {
    transform: scale(1.06);
}

.flash-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.45rem 0.5rem 0.5rem;
    min-height: 4.35rem;
}

.flash-item__name {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.35em;
}

@media (min-width: 768px) {
    .flash-item__name { font-size: 0.66rem; }
}

.flash-item__prices {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: auto;
}

.flash-item__was {
    font-size: 0.58rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flash-item__now {
    font-size: 0.7rem;
    font-weight: 900;
    color: #dc2626;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .flash-item__now { font-size: 0.74rem; }
}

.flash-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    font-size: 0.55rem;
    font-weight: 700;
    color: #64748b;
}

.flash-item__stock {
    color: #059669;
}

.flash-item__stock--low {
    color: #d97706;
}

.flash-item__stock--out {
    color: #dc2626;
}

.flash-item__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.1rem;
    padding: 0.3rem 0.4rem;
    border-radius: 0.45rem;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.flash-item__cta i {
    font-size: 0.5rem;
    transition: transform 0.2s ease;
}

.flash-item:hover .flash-item__cta i {
    transform: translateX(2px);
}

.flash-item--oos .flash-item__cta {
    background: #94a3b8;
}

.scroll-hide::-webkit-scrollbar {
    display: none;
}

.scroll-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Kartu produk — hover lebih soft ungu */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.product-card:hover {
    box-shadow: 0 12px 28px -8px rgba(91, 33, 182, 0.14) !important;
    border-color: #e9d5ff !important;
}

.product-card .aspect-square {
    background: linear-gradient(145deg, #f8fafc 0%, #f5f3ff 100%) !important;
}

#page-loader [style*="006eff"],
#page-loader [style*="110, 255"] {
    filter: drop-shadow(0 10px 15px rgba(91, 33, 182, 0.3)) !important;
}

/* Homepage section headers */
.home-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wr-primary);
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
}

.home-section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.home-testimonial-card {
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 1rem;
    padding: 1.125rem 1.25rem;
    flex: 0 0 min(272px, 70vw);
    width: min(272px, 70vw);
    box-shadow: 0 4px 18px -10px rgba(91, 33, 182, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonials-marquee-shell {
    position: relative;
    border-radius: 1.25rem;
    border: 1px solid #e9d5ff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 243, 255, 0.55) 100%);
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(91, 33, 182, 0.06);
}

.testimonials-marquee-outer {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.testimonials-marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: 0.25rem 0;
    animation: testimonials-marquee 50s linear infinite;
    will-change: transform;
}

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

@keyframes testimonials-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-marquee-track {
        animation: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .home-testimonial-card {
        scroll-snap-align: start;
    }
}

.home-testimonial-card .home-testimonial-message {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -12px rgba(91, 33, 182, 0.2);
}

.home-testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    flex-shrink: 0;
    box-shadow: 0 8px 20px -6px rgba(91, 33, 182, 0.45);
}

.home-testimonial-featured {
    border-color: #fcd34d;
    box-shadow: 0 6px 24px -10px rgba(245, 158, 11, 0.22);
}

.home-testimonial-top {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #b45309;
    margin-bottom: 0.75rem;
}

.home-testimonial-crown {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    font-size: 0.85rem;
    color: #f59e0b;
    filter: drop-shadow(0 1px 2px rgba(180, 83, 9, 0.35));
}

.modal-animate {
    animation: v2ModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-animate-out {
    animation: v2ModalOut 0.2s ease-in forwards;
}

@keyframes v2ModalIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes v2ModalOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.92); opacity: 0; }
}

.v2-live-order-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.v2-live-order-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.v2-live-order-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
}

.v2-live-order-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #5b21b6;
    border-radius: 14px 0 0 14px;
}

.v2-live-order-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 4px;
    padding-right: 14px;
}

.v2-live-order-thumb {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v2-live-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-live-order-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
    font-size: 9px;
    font-weight: 800;
    color: #5b21b6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.v2-live-order-dot {
    width: 7px;
    height: 7px;
    background: #5b21b6;
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

.v2-live-order-product {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-live-order-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

/* Popup orderan masuk — pojok kiri bawah */
#liveOrderPopup,
.v2-live-order-popup {
    display: none;
    position: fixed !important;
    top: auto !important;
    right: auto !important;
    bottom: 16px !important;
    left: 16px !important;
    z-index: 10050 !important;
    max-width: 280px;
    width: calc(100vw - 32px);
    font-family: Outfit, Inter, sans-serif;
    margin: 0 !important;
    pointer-events: auto !important;
}

#liveOrderPopup.is-open,
.v2-live-order-popup.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (min-width: 640px) {
    #liveOrderPopup,
    .v2-live-order-popup {
        bottom: 24px !important;
        left: 24px !important;
        width: auto;
        max-width: 260px;
    }
}

/* ========== Tema gelap (toggle via v2-theme.js) ========== */
.v2-theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.v2-theme-toggle:hover {
    transform: scale(1.04);
    border-color: #c4b5fd;
    color: var(--wr-primary);
}

.v2-theme-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.v2-theme-toggle__icon--sun {
    display: none;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --wr-hero-from: #0b1220;
    --wr-hero-mid: #111827;
    --wr-hero-to: #1e1b4b;
    --wr-surface: #0b1220;
    --wr-surface-soft: #151f32;
    --wr-text-primary: #f8fafc;
    --wr-text-body: #e8edf5;
    --wr-text-muted: #cbd5e1;
    --wr-text-faint: #a8b6c8;
    --wr-border: #3d4f66;
}

/* Dark loader vars di :root / html.dark — fallback eksplisit biar pasti menang */
html[data-theme="dark"] #page-loader:not([data-v2-hidden="1"]):not(.is-removed):not(.fade-out),
html[data-theme="dark"] #page-loader.wr-page-loader:not([data-v2-hidden="1"]):not(.is-removed):not(.fade-out),
html.dark #page-loader:not([data-v2-hidden="1"]):not(.is-removed):not(.fade-out),
html.dark #page-loader.wr-page-loader:not([data-v2-hidden="1"]):not(.is-removed):not(.fade-out) {
    background: var(--wr-loader-bg) !important;
}

html[data-theme="dark"] .wr-loader__label,
html.dark .wr-loader__label {
    color: var(--wr-loader-label) !important;
}

html[data-theme="dark"] .wr-loader__tagline,
html.dark .wr-loader__tagline {
    color: var(--wr-loader-tagline) !important;
}

html[data-theme="dark"] .wr-loader__glow,
html.dark .wr-loader__glow {
    background: radial-gradient(circle, var(--wr-loader-glow-strong) 0%, transparent 72%);
}

html[data-theme="dark"] .v2-theme-toggle {
    background: #334155;
    border-color: #475569;
    color: #fbbf24;
}

html[data-theme="dark"] .v2-theme-toggle__icon--moon {
    display: none;
}

html[data-theme="dark"] .v2-theme-toggle__icon--sun {
    display: inline-flex;
}

html[data-theme="dark"] body {
    background-color: var(--wr-surface) !important;
    color: var(--wr-text-body) !important;
}

html[data-theme="dark"] main,
html[data-theme="dark"] #invoice-app {
    color: var(--wr-text-body);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 {
    color: var(--wr-text-primary) !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] dd,
html[data-theme="dark"] dt {
    color: var(--wr-text-body);
}

html[data-theme="dark"] strong,
html[data-theme="dark"] .font-bold:not([class*="text-green"]):not([class*="text-white"]) {
    color: var(--wr-text-primary);
}

html[data-theme="dark"] #main-header,
html[data-theme="dark"] header.sticky {
    background-color: rgba(15, 23, 42, 0.92) !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .store-brand__name {
    color: #f8fafc !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-white\/90,
html[data-theme="dark"] .bg-white\/80 {
    background-color: #1e293b !important;
}

html[data-theme="dark"] .bg-slate-50 { background-color: #0f172a !important; }
html[data-theme="dark"] .bg-slate-100 { background-color: #1e293b !important; }
html[data-theme="dark"] .bg-gray-50 { background-color: #0f172a !important; }
html[data-theme="dark"] .bg-gray-100 { background-color: #1e293b !important; }
html[data-theme="dark"] .bg-gray-200 { background-color: #334155 !important; }

html[data-theme="dark"] .text-black,
html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-gray-900 { color: #f8fafc !important; }

html[data-theme="dark"] .text-slate-800,
html[data-theme="dark"] .text-gray-800 { color: #e2e8f0 !important; }

html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-gray-600 { color: var(--wr-text-body) !important; }

html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .text-gray-500 { color: var(--wr-text-muted) !important; }

html[data-theme="dark"] .text-slate-400,
html[data-theme="dark"] .text-gray-400 { color: var(--wr-text-faint) !important; }

html[data-theme="dark"] .border-gray-50,
html[data-theme="dark"] .border-gray-100,
html[data-theme="dark"] .border-gray-200,
html[data-theme="dark"] .border-slate-100,
html[data-theme="dark"] .border-slate-200 { border-color: #334155 !important; }

html[data-theme="dark"] .border-rose-100,
html[data-theme="dark"] .border-rose-200,
html[data-theme="dark"] .border-violet-100 { border-color: #4c1d95 !important; }

html[data-theme="dark"] .bg-rose-50,
html[data-theme="dark"] .hover\:bg-rose-50:hover,
html[data-theme="dark"] .v2-theme-toggle-mobile:hover {
    background-color: rgba(91, 33, 182, 0.18) !important;
}

html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .hero-bg,
html[data-theme="dark"] .hero-pattern {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .page-hero-title,
html[data-theme="dark"] .page-hero-title--lg {
    color: #f8fafc !important;
}

html[data-theme="dark"] .page-hero-desc,
html[data-theme="dark"] .cms-page-intro {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .page-hero-badge {
    background: rgba(91, 33, 182, 0.25) !important;
    border-color: #5b21b6 !important;
    color: #ddd6fe !important;
}

html[data-theme="dark"] .page-hero-pill {
    background: #1e293b !important;
    border-color: #4c1d95 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .glass {
    background: rgba(30, 41, 59, 0.75) !important;
    border-color: rgba(71, 85, 105, 0.45) !important;
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .product-item,
html[data-theme="dark"] .home-testimonial-card,
html[data-theme="dark"] .v2-live-order-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .v2-live-order-product {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .v2-live-order-meta {
    color: #94a3b8 !important;
}

html[data-theme="dark"] #mobile-menu-btn {
    background-color: rgba(91, 33, 182, 0.2) !important;
}

html[data-theme="dark"] #mobile-menu {
    border-color: #334155 !important;
}

html[data-theme="dark"] .v2-theme-toggle-mobile {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #64748b !important;
}

html[data-theme="dark"] .shadow-sm,
html[data-theme="dark"] .shadow-md,
html[data-theme="dark"] .shadow-lg,
html[data-theme="dark"] .shadow-xl {
    --tw-shadow-color: rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .bg-red-50 {
    background-color: rgba(127, 29, 29, 0.25) !important;
    color: #fecaca !important;
}

html[data-theme="dark"] .bg-violet-50 {
    background-color: rgba(91, 33, 182, 0.15) !important;
}

html[data-theme="dark"] .bg-amber-50 {
    background-color: rgba(120, 53, 15, 0.2) !important;
}

html[data-theme="dark"] #cms-page-body,
html[data-theme="dark"] #cms-page-body p,
html[data-theme="dark"] #cms-page-body li {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] #cms-page-body h2,
html[data-theme="dark"] #cms-page-body h3,
html[data-theme="dark"] #cms-page-body strong {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] details.bg-white,
html[data-theme="dark"] details.border-violet-100 {
    background-color: #1e293b !important;
    border-color: #4c1d95 !important;
}

html[data-theme="dark"] .checkout-main,
html[data-theme="dark"] .checkout-page main {
    background-color: #0f172a !important;
}

html[data-theme="dark"] .modal-content,
html[data-theme="dark"] #product-modal .bg-white {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .text-slate-200 {
    color: #64748b !important;
}

html[data-theme="dark"] [class*="bg-gradient"],
html[data-theme="dark"] .from-violet-50\/40,
html[data-theme="dark"] .from-violet-50\/80,
html[data-theme="dark"] .from-violet-50,
html[data-theme="dark"] .to-white,
html[data-theme="dark"] .to-orange-50 {
    background-image: none !important;
    background-color: var(--wr-surface) !important;
}

html[data-theme="dark"] .bg-gradient-to-r.from-violet-50\/80 {
    background: #1a2438 !important;
}

html[data-theme="dark"] .bg-violet-50,
html[data-theme="dark"] .bg-violet-50\/40,
html[data-theme="dark"] .bg-violet-50\/50,
html[data-theme="dark"] .bg-violet-100 {
    background-color: rgba(91, 33, 182, 0.28) !important;
}

html[data-theme="dark"] .text-violet-700,
html[data-theme="dark"] .text-violet-800 {
    color: #e9d5ff !important;
}

html[data-theme="dark"] .border-violet-50,
html[data-theme="dark"] .border-violet-200 {
    border-color: #6d28d9 !important;
}

html[data-theme="dark"] .bg-emerald-50,
html[data-theme="dark"] .bg-emerald-50\/50 {
    background-color: rgba(6, 78, 59, 0.38) !important;
}

html[data-theme="dark"] .text-emerald-600,
html[data-theme="dark"] .text-emerald-800 {
    color: #6ee7b7 !important;
}

html[data-theme="dark"] .border-emerald-100,
html[data-theme="dark"] .border-emerald-200 {
    border-color: #047857 !important;
}

html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-amber-50\/60 {
    background-color: rgba(120, 53, 15, 0.38) !important;
}

html[data-theme="dark"] .text-amber-600,
html[data-theme="dark"] .text-amber-800 {
    color: #fcd34d !important;
}

html[data-theme="dark"] .border-amber-100 {
    border-color: #b45309 !important;
}

html[data-theme="dark"] .bg-emerald-100 {
    background-color: rgba(6, 95, 70, 0.45) !important;
    color: #a7f3d0 !important;
}

html[data-theme="dark"] .bg-amber-100 {
    background-color: rgba(146, 64, 14, 0.45) !important;
    color: #fde68a !important;
}

html[data-theme="dark"] .text-rose-600 {
    color: #f0abfc !important;
}

html[data-theme="dark"] .text-green-700 {
    color: #86efac !important;
}

html[data-theme="dark"] .hover\:bg-slate-50:hover {
    background-color: #334155 !important;
    color: var(--wr-text-primary) !important;
}

html[data-theme="dark"] .shadow-xl,
html[data-theme="dark"] [class*="shadow-violet"] {
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] .border-dashed {
    border-color: #475569 !important;
}

html[data-theme="dark"] .font-semibold {
    color: var(--wr-text-primary);
}

html[data-theme="dark"] #invoice-app .rounded-3xl {
    background-color: #1a2438 !important;
}

html[data-theme="dark"] footer.bg-slate-900 {
    background-color: #020617 !important;
}

html[data-theme="dark"] footer img.bg-white {
    background-color: #1e293b !important;
}


/* ========== Language switcher (kanan header, bukan samping logo) ========== */
.wr-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    margin-left: 0.25rem;
    margin-right: 0.15rem;
}
.wr-lang-switch--header-end {
    margin-left: auto;
}
.wr-lang-switch__icon {
    display: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    color: #7c3aed;
    font-size: 0.75rem;
}
@media (min-width: 640px) {
    .wr-lang-switch__icon { display: inline-flex; }
}
.wr-lang-switch__track {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 3px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    min-width: 5.5rem;
}
.wr-lang-switch__pill {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
    pointer-events: none;
}
.wr-lang-switch__track[data-active="en"] .wr-lang-switch__pill {
    transform: translateX(100%);
}
.wr-lang-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.4rem 0.55rem;
    border: 0;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #64748b;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.wr-lang-btn.is-active { color: #fff; }
.wr-lang-btn__flag {
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0.95;
}
/* Full names must never render — they used to concat as IDIndonesiaENEnglish without CSS */
.wr-lang-btn__label {
    display: none !important;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.wr-lang-switch--float {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 100050;
    padding: 0.35rem 0.45rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}
html[data-theme="dark"] .wr-lang-switch__track,
html.dark .wr-lang-switch__track {
    background: #1e293b;
    border-color: #334155;
}
html[data-theme="dark"] .wr-lang-btn,
html.dark .wr-lang-btn { color: #94a3b8; }
html[data-theme="dark"] .wr-lang-btn.is-active,
html.dark .wr-lang-btn.is-active { color: #fff; }

/* Mobile: switch ID/EN kecil rapi — HARUS setelah rule dasar (min-width 9.5rem) */
@media (max-width: 767px) {
    .wr-lang-switch {
        margin-left: 0;
        margin-right: 0;
        gap: 0;
    }

    .wr-lang-switch__icon {
        display: none !important;
    }

    .wr-lang-switch__track {
        min-width: 0 !important;
        width: 4.9rem !important;
        max-width: 4.9rem !important;
        padding: 2px;
    }

    .wr-lang-btn {
        padding: 0.32rem 0;
        font-size: 0.74rem;
        gap: 0;
        letter-spacing: 0;
        min-height: 1.7rem;
        line-height: 1;
        justify-content: center;
    }

    .wr-lang-btn__flag {
        font-size: 0.74rem;
        font-weight: 800;
    }

    .wr-lang-btn__label {
        display: none !important;
    }

    .wr-lang-switch__pill {
        top: 2px;
        bottom: 2px;
        left: 2px;
        width: calc(50% - 2px);
    }
}

@media (max-width: 360px) {
    .wr-lang-switch__track {
        width: 4.5rem !important;
        max-width: 4.5rem !important;
    }

    .wr-lang-btn {
        font-size: 0.68rem;
        min-height: 1.55rem;
    }

    #mobile-menu-btn {
        width: 2rem !important;
        height: 2rem !important;
    }
}

/* Cegah geser kiri-kanan di HP */
html {
    overflow-x: hidden;
    max-width: 100%;
    overscroll-behavior-x: none;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    overscroll-behavior-x: none;
}

#main-header,
.wr-hero-3d,
main,
footer {
    max-width: 100%;
}

/* ========== Checkout payment method cards ========== */
.wr-pay-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
    user-select: none;
}
.wr-pay-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}
.wr-pay-card.is-selected {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #faf5ff 0%, #fff 60%);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.14);
}
.wr-pay-card--crypto.is-selected {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 60%);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.14);
}
.wr-pay-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.wr-pay-card__icon--qris {
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    color: #7c3aed;
}
.wr-pay-card__icon--usdt {
    background: linear-gradient(135deg, #fef3c7, #ffedd5);
    color: #d97706;
}
.wr-pay-card__body { flex: 1; min-width: 0; }
.wr-pay-card__title {
    font-weight: 800;
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.25;
}
.wr-pay-card__meta {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.15rem;
    line-height: 1.35;
}
.wr-pay-card__rate {
    font-size: 0.65rem;
    color: #b45309;
    font-weight: 700;
    margin-top: 0.2rem;
}
.wr-pay-card__badge {
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    flex-shrink: 0;
}
.wr-pay-card__badge--usdt {
    background: #fef3c7;
    color: #b45309;
}
.wr-pay-card__check {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #7c3aed;
    color: #fff;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.wr-pay-card.is-selected .wr-pay-card__check {
    opacity: 1;
    transform: scale(1);
}
.wr-pay-card--crypto.is-selected .wr-pay-card__check {
    background: #d97706;
}
html[data-theme="dark"] .wr-pay-card,
html.dark .wr-pay-card {
    background: #0f172a;
    border-color: #334155;
}
html[data-theme="dark"] .wr-pay-card__title,
html.dark .wr-pay-card__title { color: #f1f5f9; }
html[data-theme="dark"] .wr-pay-card.is-selected,
html.dark .wr-pay-card.is-selected {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 70%);
}
