/* ==========================================================================
   Cerutu Jakarta — satu file CSS (docs/cerutujkt.md §4 tokens, mobile-first)
   ========================================================================== */

@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/playfair-display-var.woff2') format('woff2');
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-var.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --c-bg: #FAF7F2;
    --c-surface: #FFFFFF;
    --c-surface-warm: #F6EFE6;
    --c-ink: #221810;
    --c-ink-soft: #5C4D3F;
    --c-ink-muted: #8C7C6D;
    --c-primary: #382517;
    --c-primary-hover: #24170E;
    --c-accent: #B08D57;
    --c-accent-hover: #C5A059;
    --c-accent-soft: #F4ECE1;
    --c-success: #2E6B48;
    --c-danger: #9C3D2E;
    --c-line: #E7DECE;
    --c-line-soft: #F1EAE0;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;

    --radius-card: 12px;
    --radius-btn: 8px;
    --radius-badge: 4px;

    --shadow-1: 0 1px 3px rgba(36, 26, 18, 0.06);
    --shadow-2: 0 8px 24px rgba(36, 26, 18, 0.10);
    --shadow-card: 0 4px 18px -2px rgba(36, 26, 18, 0.06);
    --shadow-card-hover: 0 12px 28px -4px rgba(36, 26, 18, 0.12), 0 0 0 1px rgba(176, 141, 87, 0.35);
    --shadow-float: 0 16px 36px -4px rgba(36, 26, 18, 0.18);
    --shadow-modal: 0 24px 48px -8px rgba(20, 12, 8, 0.32);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --container: 1200px;
}

/* Reset ringkas */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul {
    list-style: none;
}

[x-cloak] {
    display: none !important;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.01em;
}

/* Util dasar */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.section {
    padding-block: 64px;
}

.section-alt {
    background: var(--c-surface);
}

.section-head {
    margin-bottom: 40px;
}

.section-head.text-center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 8px;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--c-accent);
    margin: 12px auto 0;
}

.section-more {
    text-align: center;
    margin-top: 40px;
}

/* Tombol */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    border: 1px solid transparent;
    transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-sm {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 13.5px;
}

.btn-lg {
    min-height: 56px;
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(180deg, #4c3520 0%, var(--c-primary) 100%);
    color: var(--c-bg);
    border-color: rgba(176, 141, 87, 0.5);
    box-shadow: 0 4px 14px rgba(56, 37, 23, 0.35);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, var(--c-primary-hover) 0%, #22160d 100%);
    border-color: rgba(176, 141, 87, 0.7);
    box-shadow: 0 6px 20px rgba(56, 37, 23, 0.45);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline {
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    background: transparent;
    font-weight: 700;
}

.btn-outline:hover {
    background: var(--c-primary);
    color: var(--c-bg);
}

.btn-outline-hero {
    border-color: rgba(250, 246, 239, 0.6);
    color: var(--c-bg);
    background: rgba(36, 26, 18, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-outline-hero:hover {
    background: rgba(250, 246, 239, 0.2);
    border-color: var(--c-bg);
    color: var(--c-bg);
}

.btn-accent {
    background: linear-gradient(135deg, #C5A059 0%, #A07D42 100%);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(176, 141, 87, 0.35);
    text-shadow: 0 1px 2px rgba(36, 26, 18, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #B08D57 100%);
    box-shadow: 0 4px 16px rgba(176, 141, 87, 0.45);
}

.btn-link {
    min-height: 40px;
    padding: 8px 18px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--c-line);
    background: var(--c-surface-warm);
    color: var(--c-ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-link:hover {
    background: #e6e1d5;
    border-color: #c2baa9;
    color: var(--c-ink);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(36, 26, 18, 0.08);
}

.btn-link:active {
    transform: scale(0.985);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-badge);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge-sale {
    background: var(--c-danger);
    color: #FFF;
}

.badge-new {
    background: var(--c-accent);
    color: var(--c-ink);
}

.badge-soldout {
    background: var(--c-ink);
    color: var(--c-bg);
}

/* Promo bar */
.promo-bar {
    background: var(--c-accent);
    color: var(--c-ink);
    text-align: center;
    font-size: 13px;
    line-height: 36px;
    min-height: 36px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(56, 37, 23, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--c-bg);
    border-bottom: 1px solid rgba(176, 141, 87, 0.22);
    box-shadow: 0 4px 20px rgba(20, 12, 8, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(176, 141, 87, 0.4);
    flex-shrink: 0;
}

.header-wordmark {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 0.16em;
    font-size: 15px;
    color: #FAF7F2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-slot {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.header-cart {
    border: 0;
    background: transparent;
    cursor: pointer;
    display: none;
}

/* Hotline WhatsApp di header (gaya Javan: label kecil + nomor tebal) */
.wa-hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border: 1px solid rgba(176, 141, 87, 0.4);
    border-radius: var(--radius-btn);
    transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.wa-hotline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--c-accent);
}

.wa-hotline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    flex-shrink: 0;
}

.wa-hotline-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.wa-hotline-text small {
    font-size: 11px;
    color: rgba(250, 247, 242, 0.65);
}

.wa-hotline-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #FAF7F2;
    white-space: nowrap;
}

/* Sub-header: bar menu kategori di bawah header utama (gaya Javan) */
.header-sub {
    display: none;
    background: rgba(36, 23, 14, 0.96);
    border-top: 1px solid rgba(176, 141, 87, 0.22);
}

.header-sub-list {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-block: 0;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.header-sub-list::-webkit-scrollbar {
    display: none;
}

.header-sub-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(250, 247, 242, 0.9);
    transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.header-sub-list > li > a:hover {
    color: var(--c-accent-hover);
    background: rgba(255, 255, 255, 0.06);
}

/* Item pertama sejajar tepat dengan logo di atasnya */
.header-sub-list > li:first-child > a {
    padding-left: 0;
}

/* Dropdown subkategori di sub-header (desktop ≥768px, hover CSS murni) */
.header-sub-has-dd {
    position: relative;
}

.header-sub-dd {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 6px;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    background: rgba(36, 23, 14, 0.98);
    border: 1px solid rgba(176, 141, 87, 0.22);
    border-top: 2px solid var(--c-accent);
    box-shadow: var(--shadow-card-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s;
    z-index: 60;
}

.header-sub-has-dd:hover .header-sub-dd,
.header-sub-has-dd:focus-within .header-sub-dd {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-sub-dd a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(250, 247, 242, 0.85);
    border-radius: 8px;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.header-sub-dd a:hover {
    color: var(--c-accent-hover);
    background: rgba(255, 255, 255, 0.06);
}

/* Legacy nav (tidak dipakai — sub-header + bottom-nav sudah mencukupi) */
.header-nav {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    color: inherit;
    transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--c-accent-soft);
}

.header-search {
    display: none;
    position: relative;
}

.header-search input[type="search"] {
    width: 200px;
    padding: 9px 44px 9px 14px;
    border: 1px solid rgba(176, 141, 87, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--c-bg);
    font-size: 14px;
}

.header-search input[type="search"]::placeholder {
    color: rgba(250, 247, 242, 0.55);
}

.header-search input[type="search"]:focus {
    outline: none;
    border-color: var(--c-accent);
    background: rgba(255, 255, 255, 0.12);
}

.header-search-box {
    position: relative;
}

.header-search-box .header-icon {
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
}

.header-search-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 60vh;
    overflow-y: auto;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(20, 12, 8, 0.25);
    padding: 6px;
    z-index: 60;
}

.search-loading {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--c-ink-muted);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    color: var(--c-ink);
}

.search-result-item:hover {
    background: var(--c-accent-soft);
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.search-result-text strong {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-text small {
    font-size: 12px;
    color: var(--c-ink-muted);
}

.search-result-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-primary);
    white-space: nowrap;
}

@media (max-width: 1023px) {
    .wa-hotline {
        padding: 6px;
        border: 0;
    }

    .wa-hotline-text {
        display: none;
    }

    .wa-hotline-icon {
        width: 38px;
        height: 38px;
    }

    .header-search {
        display: none;
    }

    .header-search.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 10px 16px;
        background: rgba(56, 37, 23, 0.98);
        border-bottom: 1px solid rgba(176, 141, 87, 0.22);
    }

    .header-search.is-open input[type="search"] {
        width: 100%;
    }

    .header-search.is-open .search-results {
        left: 16px;
        right: 16px;
        width: auto;
    }
}

@media (min-width: 1024px) {
    .header-search {
        display: block;
        width: 100%;
        max-width: 480px;
    }

    .header-search input[type="search"] {
        width: 100%;
    }

    .header-search-toggle {
        display: none;
    }
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding-inline: 4px;
    border-radius: 9px;
    background: linear-gradient(135deg, #C5A059 0%, #A07D42 100%);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Bottom nav (mobile) — floating dock card */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    display: flex;
    gap: 4px;
    margin: 0 12px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(176, 141, 87, 0.32);
    border-radius: 18px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(34, 24, 16, 0.15);
    transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

/* Home: dock sembunyi di atas hero, muncul mulus saat discroll (toggle di app.js) */
.bottom-nav.is-hidden {
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.bottom-nav-link {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 0 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--c-ink-soft);
    border-radius: 12px;
    transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.bottom-nav-link.is-active {
    color: var(--c-primary);
    background: var(--c-accent-soft);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(176, 141, 87, 0.25);
}

.bottom-nav-link:active {
    transform: scale(0.92);
}

.bottom-nav .cart-badge {
    top: 0;
    right: 22%;
}

/* Cart FAB (desktop) */
.cart-fab {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #382517 0%, #20130B 100%);
    border: 1px solid rgba(176, 141, 87, 0.4);
    color: var(--c-bg);
    border-radius: 50%;
    box-shadow: var(--shadow-float);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.cart-fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 20px 40px rgba(34, 24, 16, 0.28);
}

.cart-fab:active {
    transform: scale(0.95);
}

.cart-fab .cart-badge {
    top: -2px;
    right: -2px;
}

/* Hero */
.hero {
    position: relative;
    background: var(--c-primary);
    overflow: hidden;
}

.hero-track {
    display: flex;
    /* JANGAN overflow:hidden di sini: track sendiri yang di-translateX,
       jadi clip window-nya ikut geser & memotong slide 2..n.
       Clip dilakukan oleh .hero (section, overflow:hidden). */
    overflow: visible;
    touch-action: pan-y;
    cursor: grab;
    height: clamp(440px, 62vh, 580px);
    transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.hero-track.is-dragging {
    transition: none;
    cursor: grabbing;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

/* Teks overlay per-banner — hanya dirender kalau banner punya teks.
   Posisi = grid 3x3 (justify × align), text-align terpisah. */
.hero-slide-text {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 28px;
    color: var(--c-bg);
    background: linear-gradient(180deg, rgba(36, 26, 18, 0.45) 0%, rgba(36, 26, 18, 0.25) 45%, rgba(36, 26, 18, 0.55) 100%);
    pointer-events: none;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.hero-slide.is-active .hero-slide-text {
    opacity: 1;
    transform: none;
    /* Sekuens: gambar bergeser dulu (track 600ms), teks menyusul setelah
       gambar hampir sampai — delay 380ms, exit tanpa delay (default 0).
       transition-delay TIDAK diwariskan → title/sub perlu delay sendiri. */
    transition-delay: 380ms;
}

.hero-slide.is-active .hero-title {
    transition-delay: 380ms;
}

.hero-slide.is-active .hero-sub {
    /* Subtitle nyusul title sedikit → efek stagger */
    transition-delay: 500ms;
}

.hero-pos-top-left { justify-content: flex-start; align-items: flex-start; }
.hero-pos-top-center { justify-content: flex-start; align-items: center; }
.hero-pos-top-right { justify-content: flex-start; align-items: flex-end; }
.hero-pos-middle-left { justify-content: center; align-items: flex-start; }
.hero-pos-middle-center { justify-content: center; align-items: center; }
.hero-pos-middle-right { justify-content: center; align-items: flex-end; }
.hero-pos-bottom-left { justify-content: flex-end; align-items: flex-start; }
.hero-pos-bottom-center { justify-content: flex-end; align-items: center; }
.hero-pos-bottom-right { justify-content: flex-end; align-items: flex-end; }

.hero-text-left { text-align: left; }
.hero-text-center { text-align: center; }
.hero-text-right { text-align: right; }

.hero-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #F4ECE1;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(36, 26, 18, 0.65);
    border: 1px solid rgba(176, 141, 87, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 700;
    color: #FAF7F2;
    text-shadow: 0 2px 20px rgba(20, 12, 8, 0.7);
    letter-spacing: -0.01em;
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.hero-slide:not(.is-active) .hero-title,
.hero-slide:not(.is-active) .hero-sub {
    opacity: 0;
    transform: translateY(18px);
}

.hero-sub {
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(250, 247, 242, 0.92);
    max-width: 52ch;
    line-height: 1.6;
    text-shadow: 0 1px 12px rgba(20, 12, 8, 0.7);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 6px;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(to bottom, transparent, rgba(56, 37, 23, 0.5));
    pointer-events: none;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dots .dot {
    width: 10px;
    height: 6px;
    border-radius: 4px;
    background: rgba(250, 247, 242, 0.4);
    transition: all 0.25s var(--ease-out);
}

.hero-dots .dot.is-active {
    width: 28px;
    background: var(--c-accent);
    box-shadow: 0 0 10px rgba(176, 141, 87, 0.6);
}

.hero-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--c-bg);
    background: rgba(36, 26, 18, 0.6);
    border: 1px solid rgba(176, 141, 87, 0.35);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.2s var(--ease-out);
}

.hero-arrow:hover {
    background: rgba(56, 37, 23, 0.92);
    border-color: var(--c-accent);
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow-prev {
    left: 16px;
}

.hero-arrow-next {
    right: 16px;
}

/* Kategori */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (min-width: 640px) {
    .category-grid {
        gap: 16px;
    }
}

/* 4 kartu kategori (Cigar/Accessories/Others/Gift Series) — 4 per baris ≥640px,
   2×2 mobile (chip subkategori sudah ada di halaman kategori) */
.category-card {
    flex: 1 1 46%;
    min-width: 0;
    max-width: 360px;
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    aspect-ratio: 1;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

@media (min-width: 640px) {
    .category-card {
        flex: 1 1 22%;
    }
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(176, 141, 87, 0.5);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.category-card:hover img {
    transform: scale(1.04);
}

.category-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 12px 12px;
    background: linear-gradient(to bottom, transparent, rgba(36, 26, 18, 0.75));
    color: var(--c-bg);
    font-family: var(--font-serif);
    font-weight: 600;
    text-align: center;
    transition: transform 0.25s var(--ease-out);
}

.category-card:hover span {
    transform: translateY(-2px);
}

/* Kartu kategori home: nama + sub-link kecil di atas gradient */
.category-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 6px 8px;
    background: linear-gradient(to bottom, transparent, rgba(36, 26, 18, 0.82));
    text-align: center;
}

.category-card-name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-bg);
    text-decoration: none;
    transition: transform 0.25s var(--ease-out);
}

.category-card-subs {
    display: none;
}

@media (min-width: 640px) {
    .category-card-body {
        gap: 8px;
        padding: 32px 14px 14px;
    }

    .category-card-name {
        font-size: 1.15rem;
    }

    .category-card-subs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 6px;
        position: relative;
        z-index: 2;
    }
}

/* Seluruh kartu jadi area klik nama kategori (stretched link) */
.category-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.category-card:hover .category-card-name {
    transform: translateY(-2px);
    color: var(--c-accent-hover);
}

.category-card-subs a {
    font-size: 0.66rem;
    line-height: 1;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: rgba(250, 247, 242, 0.92);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.category-card-subs a:hover {
    background: rgba(176, 141, 87, 0.35);
    border-color: var(--c-accent);
    color: var(--c-bg);
}

.category-card-subs .category-card-more {
    font-weight: 600;
    border-style: dashed;
}

/* Grid produk & kartu */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
    border-color: var(--c-accent);
}

.product-card-media {
    position: relative;
    aspect-ratio: 1;
    background: var(--c-accent-soft);
}

.product-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s var(--ease-out);
}

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

.product-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 3rem;
    color: var(--c-accent);
}

.product-card-placeholder-lg {
    font-size: 6rem;
}

.product-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 12px 0;
}

.product-card-foot {
    padding: 12px;
}

/* Indikator multi-varian sudah ada di cart — klik buka cart drawer */
.product-card-incart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(176, 141, 87, 0.45);
    border-radius: var(--radius-btn);
    background: rgba(176, 141, 87, 0.12);
    color: var(--c-primary);
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.product-card-incart:hover {
    background: rgba(176, 141, 87, 0.22);
    border-color: var(--c-accent);
}

.product-card-incart svg {
    flex: none;
    color: var(--c-accent);
}

.product-card-incart span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-incart em {
    font-style: normal;
    color: rgba(56, 37, 23, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-add,
.product-card-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: var(--radius-btn);
    background: var(--c-primary);
    color: var(--c-accent-soft);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.product-card-add:hover {
    background: var(--c-primary-hover);
}

.product-card-add:active {
    transform: scale(0.97);
}

.product-card-stepper {
    cursor: default;
}

.product-card-stepper button {
    display: inline-flex;
    padding: 2px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--c-accent-soft);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.product-card-stepper button:hover {
    background: rgba(229, 213, 188, 0.18);
}

.product-card-stepper button:active {
    transform: scale(0.9);
}

.product-card-stepper span {
    min-width: 36px;
    text-align: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 16px;
}

.product-card-habis {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-btn);
    background: var(--c-bg);
    border: 1px dashed var(--c-line);
    color: var(--c-ink-soft);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.product-card-media .badge {
    position: absolute;
    top: 8px;
    left: 8px;
}

.product-card-media .badge-new,
.product-media .badge-new {
    left: auto;
    right: 8px;
}

.product-media .badge-new {
    right: 14px;
}

.product-card.is-sold-out .product-card-media img {
    filter: grayscale(1);
    opacity: 0.7;
}

.product-card.is-sold-out .badge-soldout {
    position: absolute;
    top: 8px;
    left: 8px;
}

.product-card.is-sold-out .badge-sale {
    top: 40px;
}

.product-card-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-card-price {
    margin-top: 6px;
    font-family: var(--font-serif);
}

.product-card-price strong {
    font-weight: 700;
    font-size: 18px;
}

.product-card-price s {
    display: block;
    color: var(--c-ink-soft);
    font-size: 13px;
    line-height: 1.4;
}

/* Kepala halaman */
.page-head {
    padding-block: 40px 0;
}

.page-head-band {
    padding-block: 36px 28px;
    background: linear-gradient(180deg, #F2EAD9 0%, var(--c-bg) 100%);
    border-bottom: 1px solid var(--c-line);
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-head-band .page-title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 10px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--c-accent), rgba(176, 141, 87, 0.3));
}

.search-form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 220px;
}

.page-head-tools {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    padding: 12px;
    box-shadow: var(--shadow-1);
}

.sort-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sort-label {
    font-size: 0.85rem;
    color: var(--c-ink-soft);
    white-space: nowrap;
}

.sort-form select {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
    background: var(--c-surface);
    font: inherit;
    color: var(--c-ink);
    cursor: pointer;
}

.sort-form select:focus {
    outline: 2px solid var(--c-accent);
    outline-offset: -1px;
}

.search-form input {
    flex: 1;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
    background: var(--c-surface);
    font: inherit;
    color: var(--c-ink);
}

.search-form input:focus {
    outline: 2px solid var(--c-accent);
    outline-offset: -1px;
}

/* Chip filter */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.chip {
    padding: 8px 16px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
    background: var(--c-surface);
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.chip:hover {
    border-color: var(--c-accent);
    background: color-mix(in srgb, var(--c-accent) 8%, var(--c-surface));
    transform: translateY(-1px);
}

.chip.is-active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-bg);
    box-shadow: 0 4px 12px rgba(56, 37, 23, 0.25);
    transform: translateY(-1px);
}

.chip-sub {
    background: var(--c-surface-warm);
    font-size: 13px;
    padding: 7px 14px;
}

/* Baris chip subkategori — hanya muncul saat parent-nya aktif */
.chip-row-sub {
    margin-top: -24px;
    padding-left: 4px;
}

.chip-select {
    display: block;
    position: sticky;
    top: 64px;
    z-index: 40;
    width: 100%;
    min-height: 48px;
    margin-bottom: 32px;
    padding: 10px 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
    background: var(--c-surface);
    font: inherit;
    color: var(--c-ink);
    box-shadow: 0 4px 16px rgba(20, 12, 8, 0.12);
}

.chip-row {
    display: none;
}

@media (min-width: 768px) {
    .chip-row {
        display: flex;
    }

    .chip-select {
        display: none;
    }
}

/* Pagination (template default CI4: ul.pagination) */
.catalog-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    row-gap: 12px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.catalog-foot .pagination ul.pagination {
    margin-top: 0;
}

.pagination ul.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.per-page {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.per-page-label {
    font-size: 0.82rem;
    color: var(--c-ink-soft);
}

/* Segmented control "View per page" — angka 20/50/100 digabung dalam satu
   pill ber-label, biar jelas ini jumlah produk per halaman (bukan nomor
   halaman / filter kategori). Mengikuti bahasa visual chip-select mobile. */
.per-page-select {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-surface);
    box-shadow: 0 2px 8px rgba(20, 12, 8, 0.06);
}

.per-page-caption {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--c-ink-soft);
    white-space: nowrap;
}

.per-page-caption svg {
    color: var(--c-accent);
}

.per-page-chip {
    min-width: 40px;
    padding: 6px 12px;
    border-radius: 999px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-ink-soft);
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.per-page-chip:hover {
    color: var(--c-ink);
    background: color-mix(in srgb, var(--c-accent) 10%, var(--c-surface));
}

.per-page-chip.is-active {
    background: var(--c-primary);
    color: var(--c-bg);
    box-shadow: 0 3px 10px rgba(56, 37, 23, 0.28);
}

.pagination ul.pagination a,
.pagination ul.pagination strong {
    display: inline-block;
    min-width: 40px;
    padding: 8px 10px;
    text-align: center;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
    background: var(--c-surface);
    font-size: 14px;
}

.pagination ul.pagination strong {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-bg);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--c-ink-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--c-ink-soft);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--c-ink-soft);
    transition: color 0.2s var(--ease-out);
}

.breadcrumb a:hover {
    color: var(--c-primary);
}

.breadcrumb-sep {
    display: inline-flex;
    color: var(--c-accent);
    opacity: 0.7;
}

.breadcrumb-current {
    color: var(--c-primary);
    font-weight: 600;
}

/* Detail produk */
.product-detail {
    display: grid;
    gap: 32px;
}

/* Info produk sebagai kartu — pemisah visual dari gambar */
.product-info {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: var(--shadow-1);
}

.product-media {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--c-surface-warm);
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-card);
}

.product-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.product-media:hover img {
    transform: scale(1.03);
}

.product-media .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 13px;
    box-shadow: var(--shadow-1);
}

/* Konsisten dengan kartu produk: BARU kanan-atas (sale kiri-atas) */
.product-media .badge-new {
    left: auto;
    right: 14px;
}

/* Area klik zoom + hint ikon kanan-bawah */
.product-media-zoom {
    display: block;
    width: 100%;
    padding: 0;
    cursor: zoom-in;
}

.product-media-zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--c-bg);
    background: rgba(36, 26, 18, 0.65);
    border: 1px solid rgba(176, 141, 87, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    transition: background 0.2s var(--ease-out);
}

.product-media:hover .product-media-zoom-hint {
    background: rgba(56, 37, 23, 0.92);
}

/* Lightbox fullscreen (x-teleport ke body) */
.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: rgba(20, 13, 9, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.media-lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 84svh;
    object-fit: contain;
    border-radius: var(--radius-card);
}

.media-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #FAF7F2;
    background: rgba(250, 247, 242, 0.12);
    border: 1px solid rgba(250, 247, 242, 0.28);
    border-radius: 50%;
    transition: background 0.2s var(--ease-out);
}

.media-lightbox-close:hover {
    background: rgba(250, 247, 242, 0.24);
}

.product-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-accent);
    border-bottom: 1px solid var(--c-accent);
    padding-bottom: 2px;
}

.product-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-top: 10px;
    line-height: 1.25;
}

.product-price-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.product-price {
    font-family: var(--font-serif);
}

.product-price strong {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--c-primary);
}

.product-price s {
    color: var(--c-ink-soft);
    font-size: 1.05rem;
    margin-right: 8px;
}

.badge-hemat {
    display: inline-block;
    padding: 3px 8px;
    background: var(--c-accent-soft);
    color: var(--c-primary);
    border: 1px solid rgba(176, 141, 87, 0.4);
    border-radius: var(--radius-badge);
    font-size: 12px;
    font-weight: 600;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    width: max-content;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-status.is-ready {
    background: rgba(46, 107, 72, 0.1);
    color: var(--c-success);
}

.stock-status.is-ready .stock-dot {
    background: var(--c-success);
    box-shadow: 0 0 0 0 rgba(46, 107, 72, 0.6);
    animation: stockPulse 2s infinite;
}

.stock-status.is-soldout {
    background: rgba(156, 61, 46, 0.1);
    color: var(--c-danger);
}

.stock-status.is-soldout .stock-dot {
    background: var(--c-danger);
}

@keyframes stockPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 107, 72, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(46, 107, 72, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 107, 72, 0);
    }
}

.product-desc {
    margin-top: 20px;
    max-width: 65ch;
    color: var(--c-ink-soft);
    line-height: 1.75;
    white-space: pre-line;
}

.desc-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.desc-toggle {
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-accent);
    text-decoration: underline;
    cursor: pointer;
}

.product-actions {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-actions-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.flex-1 {
    flex: 1;
}

.product-trust-badges {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--c-line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--c-ink-soft);
}

.product-trust-item svg {
    color: var(--c-accent);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 50%;
    background: var(--c-accent-soft);
    border: 1px solid rgba(176, 141, 87, 0.3);
}

/* Qty stepper */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
    background: var(--c-surface);
    width: max-content;
}

.qty-stepper button {
    display: inline-flex;
    padding: 10px;
    color: var(--c-ink-soft);
}

.qty-stepper button:hover {
    color: var(--c-ink);
}

.qty-stepper span {
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

.qty-stepper-lg span {
    min-width: 48px;
    font-size: 17px;
}

.qty-stepper-lg button {
    padding: 14px;
}

/* Cart drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(36, 26, 18, 0.5);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    width: min(400px, 100vw);
    display: flex;
    flex-direction: column;
    background: var(--c-bg);
    box-shadow: var(--shadow-2);
    transform: translateX(100%);
    transition: transform 0.2s ease-out;
}

.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--c-primary);
    color: var(--c-bg);
}

.cart-drawer-head h2 {
    font-size: 1.25rem;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 20px;
}

.cart-drawer-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 36px 24px;
    text-align: center;
    color: var(--c-ink-soft);
}

.cart-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--c-surface-warm);
    color: var(--c-accent);
    border: 1px solid var(--c-line);
    margin-bottom: 4px;
}

.cart-empty-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--c-primary);
}

.cart-empty-desc {
    font-size: 14px;
    color: var(--c-ink-soft);
    max-width: 28ch;
    line-height: 1.5;
    margin-bottom: 8px;
}

.cart-drawer-foot {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--c-line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-subtotal-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--c-ink-soft);
    margin-top: 2px;
    margin-bottom: 4px;
}

.cart-subtotal-note svg {
    color: var(--c-accent);
    flex-shrink: 0;
}

.cart-row {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--c-line);
}

.cart-row img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-badge);
    background: var(--c-accent-soft);
}

.cart-row-page img {
    width: 96px;
    height: 96px;
}

.cart-row-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.cart-row-info a {
    font-weight: 500;
    line-height: 1.4;
}

.cart-row-price {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 15px;
}

.cart-row-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.cart-row-total {
    font-family: var(--font-serif);
    font-weight: 700;
}

.cart-row-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--c-danger);
    font-size: 13px;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 15px;
}

.cart-subtotal strong {
    font-family: var(--font-serif);
    font-size: 1.15rem;
}

/* Halaman keranjang */
.cart-page {
    display: grid;
    gap: 32px;
}

.cart-summary {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-1);
    height: max-content;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-summary h2 {
    font-size: 1.3rem;
}

.cart-note {
    font-size: 13px;
    color: var(--c-ink-soft);
}

/* Cara pesan — strip kompak 1 baris: 3 step sejajar di semua ukuran layar */
#cara-pesan {
    padding-block: 24px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-align: center;
    padding: 12px 8px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(176, 141, 87, 0.45);
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--c-accent-soft);
    color: var(--c-primary);
    border: 1px solid rgba(176, 141, 87, 0.3);
    transition: transform 0.2s var(--ease-out);
}

.step:hover .step-badge {
    transform: scale(1.08);
}

.step h3 {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--c-primary);
    overflow-wrap: break-word;
}

/* How to Order mobile: teks lebih kecil & tidak bold — desktop ≥640px tetap
   0.95rem/700 (breakpoint mengikuti perubahan layout .step di min-width:640px) */
@media (max-width: 639.98px) {
    #cara-pesan .step h3 {
        font-size: 0.75rem;
        font-weight: 500;
    }
}

/* 3 Langkah Pemesanan — nyambung visual dengan hero (dark) + reveal stagger per step */
#cara-pesan {
    background: var(--c-primary);
}

#cara-pesan .step {
    background: rgba(250, 247, 242, 0.05);
    border-color: rgba(176, 141, 87, 0.35);
    box-shadow: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s var(--ease-out), border-color 0.25s var(--ease-out);
}

#cara-pesan .step:hover {
    border-color: rgba(176, 141, 87, 0.7);
}

#cara-pesan.reveal.is-visible .step {
    opacity: 1;
    transform: none;
}

#cara-pesan.reveal.is-visible .step:nth-child(2) {
    transition-delay: 0.15s;
}

#cara-pesan.reveal.is-visible .step:nth-child(3) {
    transition-delay: 0.3s;
}

#cara-pesan.reveal.is-visible .step:hover {
    transform: translateY(-4px);
}

#cara-pesan .step h3 {
    color: #FAF7F2;
}

/* Keunggulan — mobile: baris kompak (ikon kiri, teks kanan); ≥640px: 3 kartu kolom */
.features {
    display: grid;
    gap: 12px;
}

.feature {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon title"
        "icon desc";
    align-items: start;
    column-gap: 14px;
    text-align: left;
    padding: 18px 20px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--c-surface-warm);
    border: 1px solid rgba(176, 141, 87, 0.35);
    color: var(--c-accent);
    grid-area: icon;
    align-self: center;
    box-shadow: 0 2px 8px rgba(176, 141, 87, 0.15);
}

.feature h3 {
    grid-area: title;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--c-primary);
}

.feature p {
    grid-area: desc;
    color: var(--c-ink-soft);
    font-size: 13px;
    line-height: 1.5;
}

/* CTA band */
.cta-band {
    background: linear-gradient(180deg, #382517 0%, #20130B 100%);
    color: var(--c-bg);
    padding-block: 72px;
    border-top: 1px solid rgba(176, 141, 87, 0.3);
    border-bottom: 1px solid rgba(176, 141, 87, 0.3);
}

.cta-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #E5D5BC;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(176, 141, 87, 0.4);
    margin-bottom: 4px;
}

.cta-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-inner h2 {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    color: #FAF7F2;
}

.cta-inner p {
    color: rgba(250, 247, 242, 0.88);
    max-width: 50ch;
    font-size: 16px;
    line-height: 1.6;
}

/* Hero kontak */
.contact-hero {
    background:
        radial-gradient(90% 120% at 8% 0%, rgba(176, 141, 87, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, #4a331f 0%, var(--c-primary) 55%, #2b1d12 100%);
    color: var(--c-bg);
    padding-block: 64px;
    border-bottom: 1px solid rgba(176, 141, 87, 0.3);
}

.contact-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #E5D5BC;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(176, 141, 87, 0.4);
}

.contact-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-top: 16px;
    color: #FAF7F2;
    text-align: left;
}

.contact-hero-desc {
    margin-top: 10px;
    color: rgba(250, 246, 239, 0.75);
    max-width: 52ch;
    font-size: 16px;
}

/* Kartu kontak modern */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.contact-section {
    margin-top: -40px;
}

.contact-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    padding: 22px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--c-accent), transparent);
    opacity: 0;
    transition: opacity 0.15s;
}

a.contact-card {
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

a.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(36, 26, 18, 0.14);
    border-color: rgba(176, 141, 87, 0.55);
}

a.contact-card:hover::after {
    opacity: 1;
}

.contact-icon-circle {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-accent-soft) 0%, #EFE0C6 100%);
    color: var(--c-accent);
    box-shadow: inset 0 0 0 1px rgba(176, 141, 87, 0.35);
}

.contact-card-primary .contact-icon-circle {
    background: linear-gradient(135deg, var(--c-accent) 0%, #8a6a3c 100%);
    color: #241a12;
}

.contact-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.contact-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-ink-soft);
}

.contact-card-value {
    font-family: var(--font-serif);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--c-ink);
    overflow-wrap: anywhere;
}

.contact-card-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-accent);
}

.contact-card-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--c-ink-soft);
}

.contact-card-note:last-child {
    margin-bottom: 0;
}

/* Kartu marketplace — pola contact-card + logo brand */
.marketplace-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.marketplace-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    padding: 22px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.marketplace-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(36, 26, 18, 0.14);
    border-color: rgba(176, 141, 87, 0.55);
}

.marketplace-logo {
    flex: 0 0 96px;
    display: grid;
    place-items: center;
    height: 64px;
    padding: 8px;
    background: #FFFFFF;
    border: 1px solid var(--c-line-soft);
    border-radius: 12px;
}

.marketplace-logo img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

.cta-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(229, 213, 188, 0.75);
}

/* Footer */
.footer {
    background: var(--c-primary);
    color: var(--c-bg);
    margin-top: 64px;
}

main:has(> .cta-band:last-child) + .footer {
    margin-top: 0;
}

.footer-grid {
    display: grid;
    gap: 32px;
    padding-block: 48px;
}

.footer-brand {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.4rem;
}

.footer-tagline {
    color: var(--c-accent-soft);
    font-size: 14px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a:hover {
    color: var(--c-accent);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--c-accent);
}

.footer-contact a:hover {
    color: var(--c-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(250, 246, 239, 0.15);
    padding-block: 16px;
    font-size: 13px;
    color: var(--c-accent-soft);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 95;
    background: var(--c-ink);
    color: var(--c-bg);
    padding: 12px 20px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    box-shadow: var(--shadow-2);
}

/* Sticky add-to-cart bar (halaman produk, < 1024px) — mobile di atas bottom-nav dock */
.sticky-atc {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 65;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--c-surface);
    border-top: 1px solid var(--c-line);
    box-shadow: 0 -6px 24px rgba(34, 24, 16, 0.14);
    transform: translateY(120%);
    visibility: hidden;
    transition: transform 0.25s var(--ease-out), visibility 0.25s;
}

.sticky-atc.is-visible {
    transform: none;
    visibility: visible;
}

.sticky-atc-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--c-line);
    flex-shrink: 0;
}

.sticky-atc-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sticky-atc-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-atc-price {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.sticky-atc .btn {
    flex: 1;
}

/* Kompensasi ruang bawah — hanya halaman produk (bar ada di DOM) */
body:has(.sticky-atc) {
    padding-bottom: calc(160px + env(safe-area-inset-bottom));
}

body:has(.sticky-atc.is-visible) .toast {
    bottom: calc(160px + env(safe-area-inset-bottom));
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .toast {
        bottom: calc(104px + env(safe-area-inset-bottom));
    }

    /* Kompak: halaman produk mobile tidak perlu scroll panjang */
    .product-detail-section,
    .product-detail-section + .section {
        padding-block: 40px;
    }

    /* Banner promo = landscape 16:9 — tinggi mengikuti rasio gambar, bukan
       satu layar penuh, supaya foto tidak ter-crop/ter-stretch di mobile. */
    .hero-track {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* Hero pendek → teks & fade diperkecil biar tidak memakan gambar */
    .hero-slide-text {
        padding: 14px 16px;
        gap: 6px;
    }

    /* Naikkan teks posisi bottom — dot tracker menempati zona ±20–26px
       dari bawah (bottom: 20px + tinggi dot 6px) dan sering menutupi
       baris terakhir teks. Padding 44px menjaga jarak aman di atasnya. */
    .hero-slide-text[class*="hero-pos-bottom"] {
        padding-bottom: 44px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-sub {
        font-size: 13px;
        max-width: 100%;
    }

    .hero::after {
        height: 40px;
    }

    .breadcrumb {
        margin-bottom: 12px;
        font-size: 12px;
        flex-wrap: nowrap;
    }

    .breadcrumb-current {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        flex: 1;
    }

    .product-media img {
        aspect-ratio: 1;
    }

    .product-detail {
        gap: 20px;
    }

    .product-info {
        padding: 16px;
    }

    .product-actions {
        margin-top: 20px;
    }

    .product-desc {
        margin-top: 14px;
    }

    .desc-clamp {
        -webkit-line-clamp: 3;
    }

    .product-trust-badges {
        margin-top: 20px;
        padding-top: 16px;
    }

    /* Tombol & angka lebih ringkas di mobile */
    .btn-lg {
        min-height: 48px;
        padding: 10px 20px;
        font-size: 15px;
    }

    .qty-stepper-lg button {
        padding: 10px;
    }

    .qty-stepper-lg span {
        min-width: 40px;
        font-size: 15px;
    }

    .product-actions {
        gap: 10px;
    }

    .product-price strong {
        font-size: 1.4rem;
    }
}

@media (min-width: 768px) {
    /* Dock bottom-nav hanya < 768px — bar turun ke bawah */
    .sticky-atc {
        bottom: 0;
    }

    body:has(.sticky-atc) {
        padding-bottom: 84px;
    }

    /* FAB tidak menutup tombol bar saat bar tampil */
    body:has(.sticky-atc.is-visible) .cart-fab {
        bottom: 84px;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    body:has(.sticky-atc.is-visible) .toast {
        bottom: 84px;
    }
}

@media (min-width: 1024px) {
    .sticky-atc {
        display: none;
    }

    body:has(.sticky-atc) {
        padding-bottom: 0;
    }

    .product-media img {
        aspect-ratio: 1;
    }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-slide.is-active .hero-slide-text {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-slide.is-active .hero-slide-text .hero-title,
    .hero-slide.is-active .hero-slide-text .hero-sub {
        transition: none;
    }

    .hero-slide:not(.is-active) .hero-slide-text {
        opacity: 0;
        transition: none;
    }

    .hero-track {
        transition: none;
    }

    #cara-pesan .step {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Tablet ≥ 640px */
@media (min-width: 640px) {
    .container {
        padding-inline: 32px;
    }

    .section {
        padding-block: 96px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 340px));
        justify-content: center;
        gap: 24px;
    }

    .steps {
        gap: 16px;
    }

    .step {
        flex-direction: row;
        text-align: left;
        padding: 16px;
    }

    .step-badge {
        width: 40px;
        height: 40px;
    }

    .step h3 {
        font-size: 0.95rem;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .feature {
        display: block;
        text-align: center;
        padding: 28px 20px;
    }

    .feature-icon-box {
        grid-area: auto;
        width: 58px;
        height: 58px;
        margin-bottom: 16px;
    }

    .feature h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .feature p {
        font-size: 14px;
        line-height: 1.6;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .marketplace-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .marketplace-logo {
        flex-basis: 110px;
        height: 72px;
    }

    .cart-page {
        grid-template-columns: 1fr 360px;
        align-items: start;
    }
}

/* Tablet landscape & desktop ≥ 768px */
@media (min-width: 768px) {
    .header-sub {
        display: block;
    }

    /* overflow-x:auto memotong dropdown subkategori — menu muat di ≥768px */
    .header-sub-list {
        overflow: visible;
    }

    .bottom-nav {
        display: none;
    }

    .cart-fab {
        display: inline-flex;
    }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 300px));
        justify-content: center;
    }

    .hero-arrow {
        display: inline-flex;
    }

    .product-detail {
        grid-template-columns: 55% 45%;
        gap: 48px;
        align-items: start;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 1fr;
    }
}

/* ===== Checkout, sukses & lacak ===== */
.container-narrow {
    max-width: 560px;
}

.checkout-grid {
    display: grid;
    gap: 32px;
}

.checkout-grid > * {
    min-width: 0;
}

.checkout-form {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    padding: 20px;
}

.checkout-subtitle {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.field .req {
    color: var(--c-danger);
}

.field .opt {
    color: var(--c-ink-soft);
    font-weight: 400;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: inherit;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2);
}

.field-error {
    color: var(--c-danger);
    font-size: 0.85rem;
    margin-top: 6px;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: var(--c-danger);
}

.checkout-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--c-surface-warm);
    border: 1px solid rgba(176, 141, 87, 0.35);
    border-radius: var(--radius-btn);
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--c-ink-soft);
    line-height: 1.4;
}

.checkout-trust svg {
    color: var(--c-accent);
    flex-shrink: 0;
}

.checkout-summary {
    align-self: start;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    padding: 20px;
    position: sticky;
    top: 96px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-line);
}

.checkout-item img {
    border-radius: var(--radius-badge);
    object-fit: cover;
}

.checkout-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 0.9rem;
}

.checkout-item-info span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-item-qty {
    color: var(--c-ink-soft);
    font-size: 0.8rem;
}

.checkout-item > strong {
    margin-left: auto;
    white-space: nowrap;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: rgb(0 0 0 / 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal {
    background: var(--c-surface);
    border: 1px solid rgba(36, 26, 18, 0.08);
    border-radius: var(--radius-card);
    padding: 24px;
    width: 100%;
    max-width: 440px;
    max-height: 88vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 24px 64px -8px rgba(36, 26, 18, 0.45), 0 4px 16px -4px rgba(36, 26, 18, 0.25);
}

.modal-ask {
    margin-bottom: 14px;
    font-weight: 600;
}

.modal-items {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.modal-items li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--c-line);
    font-size: 0.9rem;
}

.modal-customer {
    margin: 16px 0 20px;
    font-size: 0.9rem;
}

.modal-customer div {
    display: flex;
    gap: 8px;
    padding: 4px 0;
}

.modal-customer dt {
    color: var(--c-ink-soft);
    min-width: 64px;
}

.modal-customer dd {
    margin: 0;
}

.success-card,
.track-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    color: var(--c-success);
    background: color-mix(in srgb, var(--c-success) 12%, transparent);
}

.success-card h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.success-order {
    margin-bottom: 12px;
}

.success-note {
    font-size: 0.9rem;
    color: var(--c-ink-soft);
    margin-bottom: 16px;
}

.success-card > .btn-primary {
    margin-bottom: 20px;
}

.track-box {
    background: var(--c-bg);
    border: 1px dashed var(--c-primary);
    border-radius: var(--radius-btn);
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.track-box-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.track-box-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.track-box-row code {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    word-break: break-all;
    padding: 8px 10px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-badge);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.track-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.track-order {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.track-date {
    color: var(--c-ink-soft);
    font-size: 0.85rem;
}

.badge-status-pending {
    background: var(--c-accent);
    color: #fff;
}

.badge-status-confirmed {
    background: #6b5b3d;
    color: #fff;
}

.badge-status-shipped,
.badge-status-completed {
    background: var(--c-success);
    color: #fff;
}

.timeline {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    text-align: left;
}

.timeline li {
    position: relative;
    padding: 0 0 28px 32px;
    color: var(--c-ink-soft);
}

.timeline li:last-child {
    padding-bottom: 4px;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 20px;
    bottom: -4px;
    width: 2px;
    background: var(--c-line);
}

.timeline li:last-child::before {
    display: none;
}

.timeline li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-line);
}

.timeline li.is-done {
    color: inherit;
}

.timeline li.is-done::before {
    background: var(--c-success);
}

.timeline li.is-done::after {
    background: var(--c-success);
}

.timeline li.is-current {
    font-weight: 600;
}

.timeline li.is-current::after {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-success) 25%, transparent);
}

.alert-cancelled {
    background: color-mix(in srgb, var(--c-danger) 10%, transparent);
    border: 1px solid var(--c-danger);
    color: var(--c-danger);
    border-radius: var(--radius-btn);
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: left;
}

.track-card .modal-items,
.success-card .modal-items {
    text-align: left;
}

.track-card .cart-subtotal,
.success-card .cart-subtotal {
    text-align: left;
    margin-bottom: 16px;
}

.track-card .modal-customer {
    text-align: left;
}

@media (min-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr 380px;
    }

    .modal-backdrop {
        align-items: center;
    }
}

/* ==========================================================================
   Admin Panel (docs/cerutujkt.md §4.3 — background #F4F1EB, sidebar coklat, kartu putih)
   ========================================================================== */

.admin-body {
    --c-bg: #EFECE6;
    --c-line: #D5D1C8;
    --c-line-soft: #E3DFD7;
    --c-surface-warm: #EBE7DF;
    background: var(--c-bg);
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 236px;
    background:
        radial-gradient(120% 40% at 0% 0%, rgba(176, 141, 87, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, #4a331f 0%, var(--c-primary) 42%, #2b1d12 100%);
    color: #FAF6EF;
    display: flex;
    flex-direction: column;
    padding: 20px 14px 16px;
    z-index: 60;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 16px;
    border-bottom: 1px solid rgba(250, 246, 239, 0.14);
    margin-bottom: 6px;
    font-family: var(--font-serif);
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
}

.admin-nav-label {
    margin: 14px 12px 5px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(229, 213, 188, 0.55);
}

.admin-nav-label:first-child {
    margin-top: 4px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(250, 246, 239, 0.72);
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav a svg {
    color: rgba(229, 213, 188, 0.6);
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.admin-nav a:hover {
    background: rgba(250, 246, 239, 0.07);
    color: #FAF6EF;
}

.admin-nav a:hover svg {
    color: var(--c-accent-soft);
    transform: translateX(2px);
}

.admin-nav a.is-active {
    background: linear-gradient(90deg, rgba(176, 141, 87, 0.26), rgba(176, 141, 87, 0.08));
    color: #F3E3C4;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--c-accent);
}

.admin-nav a.is-active svg {
    color: var(--c-accent);
}

.admin-nav .nav-count {
    margin-left: auto;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--c-danger);
    color: #FAF6EF;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 0 0 3px rgba(156, 61, 46, 0.25);
}

/* Honeypot checkout — tersembunyi dari manusia, terlihat bot */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.admin-side-foot {
    border-top: 1px solid rgba(250, 246, 239, 0.14);
    padding-top: 14px;
    margin-top: 10px;
    font-size: 0.85rem;
}

.admin-side-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 2px;
}

.admin-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--c-accent) 0%, #8a6a3c 100%);
    color: #241a12;
    font-family: var(--font-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.2;
}

.admin-user-info strong {
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-info .badge-role {
    padding: 1px 6px;
}

.admin-view-site,
.admin-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 0;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.admin-view-site {
    border: 1px solid rgba(250, 246, 239, 0.18);
    color: rgba(250, 246, 239, 0.75);
    margin-bottom: 8px;
}

.admin-view-site:hover {
    border-color: rgba(176, 141, 87, 0.8);
    background: rgba(176, 141, 87, 0.15);
    color: #FAF6EF;
}

.admin-logout {
    border: 1px solid transparent;
    background: var(--c-danger);
    color: #FAF6EF;
}

.admin-logout:hover {
    background: #7E2F23;
    color: #FAF6EF;
}

.admin-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(36, 26, 18, 0.5);
    z-index: 55;
}

.admin-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    padding: 14px 20px;
}

.admin-burger {
    display: inline-flex;
}

.admin-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.admin-content {
    flex: 1;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding: 20px;
}

.admin-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-1);
    padding: 20px;
    margin-bottom: 24px;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-head-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-card-head h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-link {
    font-size: 0.88rem;
    color: var(--c-ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.admin-link:hover {
    color: var(--c-ink);
}

.admin-link-strong {
    font-weight: 600;
}

.admin-link-strong:hover {
    color: var(--c-accent);
}

/* Stat cards (dashboard) */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-1);
    padding: 18px 20px;
}

.stat-card svg {
    color: var(--c-accent);
    flex: none;
}

.stat-card strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.2;
}

.stat-card span {
    font-size: 0.85rem;
    color: var(--c-ink-soft);
}

/* Tables */
.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.admin-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-ink-soft);
    padding: 8px 10px;
    border-bottom: 2px solid var(--c-line);
    white-space: nowrap;
}

.admin-table td {
    padding: 10px;
    border-bottom: 1px solid var(--c-line);
    vertical-align: middle;
}

.admin-table tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--c-bg) 45%, transparent);
}

/* Tabel kategori admin: dikelompokkan — baris parent lalu anak-annya ter-indent.
   Zebra nth-child dimatikan karena indeks baris tidak sejajar dengan grup parent/sub. */
.admin-table tr.cat-row:nth-child(even) {
    background: none;
}

.cat-row-parent > td {
    background: color-mix(in srgb, var(--c-surface-warm) 60%, transparent);
    border-top: 2px solid var(--c-line);
    font-weight: 600;
}

.cat-row-parent:first-child > td {
    border-top: 0;
}

/* flex TIDAK boleh di <td> — td berhenti jadi table-cell, tingginya menyusut ke
   konten dan border-nya tidak sejajar dengan sel lain di baris yang sama */
.cat-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-cell-sub .cat-flex {
    gap: 6px;
}

.cat-count {
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--c-ink-muted);
    background: var(--c-accent-soft);
    border: 1px solid var(--c-line);
    padding: 2px 8px;
    border-radius: 999px;
}

.cat-row-sub > td {
    background: transparent;
    color: var(--c-ink-soft);
}

.cat-cell-sub {
    padding-left: 34px;
    font-weight: 400;
}

.cat-cell-sub svg {
    color: var(--c-accent);
    flex-shrink: 0;
}

/* ===== Drag & drop urutan kategori (admin) =====
   Handle grip = petunjuk visual baris bisa di-drag; baris aktif sedang
   di-drag dibuat semi-transparan, target drop disorot. */
.drag-grip {
    color: var(--c-ink-muted);
    cursor: grab;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.cat-row-parent .drag-grip {
    margin-right: 2px;
}

.drag-grip:hover {
    opacity: 1;
    color: var(--c-accent);
}

tr.is-dragging {
    opacity: 0.45;
}

tr.is-dragging .drag-grip {
    cursor: grabbing;
}

tr.is-drop-target > td {
    border-top: 2px solid var(--c-accent) !important;
}

/* Badge nomor urut di kolom Order — angka live hasil renumber drag & drop */
.badge-order {
    display: inline-block;
    min-width: 34px;
    padding: 2px 8px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--c-ink-muted);
    background: var(--c-bg);
    text-align: center;
}

.drag-hint {
    color: var(--c-danger);
    font-size: 0.85rem;
    margin: 0 0 10px;
}

/* Kategori virtual Gift Series: terkunci (badge) + baris anak auto read-only */
.badge-lock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 0.68rem;
    color: var(--c-ink-muted);
    background: var(--c-accent-soft);
    border: 1px solid var(--c-line);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-lock svg {
    flex-shrink: 0;
}

.cat-count-virtual {
    color: var(--c-accent);
    background: var(--c-bg);
}

tr.cat-row-auto > td {
    opacity: 0.75;
}

.lock-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--c-ink-muted);
    background: var(--c-accent-soft);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    padding: 8px 10px;
    margin: 0 0 12px;
}

.table-empty {
    text-align: center;
    color: var(--c-ink-soft);
    padding: 28px 10px !important;
}

.th-actions,
.td-actions {
    text-align: right;
    white-space: nowrap;
}

.td-actions form {
    display: inline;
}

.td-actions > * {
    margin-left: 4px;
}

.td-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

.td-product-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.td-opt-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.2;
}

.td-opt-kind {
    font-weight: 600;
    color: var(--c-ink-soft);
}

.stock-select {
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.stock-select.is-ready {
    background-color: #edf7ee;
    border: 1px solid #9fd6a9;
    color: #166534;
}

.stock-select.is-sold-out {
    background-color: #fdf2f2;
    border: 1px solid #f8a8a8;
    color: #b91c1c;
}

.td-opt-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.71rem;
    white-space: nowrap;
}

.td-opt-chip.is-ready {
    background: #edf7ee;
    color: #166534;
    border: 1px solid #b7dfc3;
    font-weight: 500;
}

.td-opt-chip.is-habis {
    background: #fdf2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    text-decoration: line-through;
    text-decoration-color: rgba(185, 28, 28, 0.6);
}

.td-opt-chip.is-habis small {
    margin-left: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #dc2626;
    text-decoration: none;
    display: inline-block;
}

.td-stock-ratio {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.2;
    white-space: nowrap;
}

.td-stock-ratio.is-all-ready {
    color: #166534;
}

.td-stock-ratio.is-partial {
    color: #b45309;
}

.td-stock-ratio.is-all-habis {
    color: #b91c1c;
}

.td-compare {
    color: var(--c-ink-soft);
    font-size: 0.8rem;
    margin-left: 6px;
}

.td-muted {
    color: var(--c-ink-soft);
    font-size: 0.82rem;
}

.tr-total td {
    border-top: 2px solid var(--c-line);
    border-bottom: 0;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
}

.thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-badge);
    object-fit: cover;
    border: 1px solid var(--c-line);
    display: inline-block;
}

.thumb-wide {
    width: 96px;
    height: 54px;
}

.thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-accent-soft);
    color: var(--c-ink-soft);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.8rem;
}

/* Icon buttons */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--c-line);
    background: var(--c-surface);
    color: var(--c-ink-soft);
    vertical-align: middle;
}

.icon-btn:hover {
    color: var(--c-ink);
    border-color: var(--c-accent);
}

.icon-btn-danger:hover {
    color: var(--c-danger);
    border-color: var(--c-danger);
}

/* Badges admin */
.badge-ok,
.badge-info,
.badge-warn,
.badge-err,
.badge-role {
    display: inline-block;
    border-radius: var(--radius-badge);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    white-space: nowrap;
}

.badge-ok {
    background: #edf5f0;
    color: #235839;
    border: 1px solid #cbe3d3;
}

.badge-info {
    background: #f5efe6;
    color: var(--c-primary);
    border: 1px solid #dfd2be;
}

.badge-warn {
    background: #fcf6ea;
    color: #8c5d23;
    border: 1px solid #ebd9b8;
}

.badge-err {
    background: #f6eee9;
    color: #8f3422;
    border: 1px solid #dfc5bb;
}

.badge-role {
    background: rgba(250, 246, 239, 0.15);
    color: #FAF6EF;
    font-weight: 400;
    font-size: 0.68rem;
}

/* Flash */
.flash {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-btn);
    padding: 10px 14px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    border: 1px solid;
}

.flash-ok {
    background: #edf5f0;
    border-color: #cbe3d3;
    color: #235839;
}

.flash-err {
    background: #f6eee9;
    border-color: #dfc5bb;
    color: #8f3422;
}

/* Forms admin */
.admin-form {
    max-width: 640px;
}

.admin-form-narrow {
    max-width: 420px;
}

.admin-form select,
.admin-filter select,
.admin-table select {
    font: inherit;
    color: var(--c-ink);
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
    padding: 8px 10px;
}

.field-help {
    font-size: 0.8rem;
    color: var(--c-ink-soft);
    margin-top: 4px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 16px;
}

.field-num {
    max-width: 140px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin: 10px 0;
}

.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--c-primary);
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 16px;
    align-items: end;
}

.upload-preview {
    margin-top: 10px;
    max-width: 220px;
    border-radius: var(--radius-badge);
    border: 1px solid var(--c-line);
}

.field-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-upload .upload-preview {
    max-height: 160px;
    width: auto;
    object-fit: cover;
    border-radius: var(--radius-btn);
    border: 1px solid var(--c-line);
    box-shadow: 0 2px 8px rgba(36, 26, 18, 0.08);
}

/* Modern File Upload Input */
input[type='file'] {
    width: 100%;
    padding: 8px 12px;
    background: var(--c-surface);
    border: 1.5px dashed var(--c-line);
    border-radius: var(--radius-btn);
    font-size: 0.84rem;
    color: var(--c-ink-soft);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
}

input[type='file']:hover {
    border-color: var(--c-accent);
    background: var(--c-surface-warm);
}

input[type='file']:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18);
}

input[type='file']::file-selector-button {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    margin-right: 12px;
    border-radius: 6px;
    border: 1px solid rgba(176, 141, 87, 0.35);
    background: linear-gradient(135deg, #4a331f 0%, var(--c-primary) 100%);
    color: #FAF6EF;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 1px 4px rgba(36, 26, 18, 0.16);
    display: inline-flex;
    align-items: center;
}

input[type='file']:hover::file-selector-button {
    background: linear-gradient(135deg, #382517 0%, #24170E 100%);
    border-color: var(--c-accent);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(36, 26, 18, 0.25);
}

input[type='file']::-webkit-file-upload-button {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    margin-right: 12px;
    border-radius: 6px;
    border: 1px solid rgba(176, 141, 87, 0.35);
    background: linear-gradient(135deg, #4a331f 0%, var(--c-primary) 100%);
    color: #FAF6EF;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 1px 4px rgba(36, 26, 18, 0.16);
}

input[type='file']:hover::-webkit-file-upload-button {
    background: linear-gradient(135deg, #382517 0%, #24170E 100%);
    border-color: var(--c-accent);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(36, 26, 18, 0.25);
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--c-line-soft);
}

.modal .btn-block + .btn-block {
    margin-top: 10px;
}

.admin-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-filter input[type='search'] {
    font: inherit;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
    padding: 8px 12px;
    background: var(--c-surface);
    min-width: 200px;
    flex: 1;
    max-width: 320px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Product form + live preview */
.product-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.admin-preview-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-ink-soft);
    margin-bottom: 10px;
}

.p-preview {
    max-width: 280px;
    pointer-events: none;
}

/* Order detail */
.order-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.order-block {
    margin-bottom: 24px;
}

.order-block h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.order-dl div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--c-line);
    font-size: 0.9rem;
}

.order-dl dt {
    color: var(--c-ink-soft);
}

.order-dl dd {
    white-space: pre-wrap;
}

.order-side .btn-block {
    margin-bottom: 10px;
    justify-content: center;
}

.order-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.order-track code {
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-badge);
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* Login & deny pages */
.admin-login-body {
    background-color: #171009;
    background-image:
        radial-gradient(ellipse 700px 400px at 50% -40px, rgba(176, 141, 87, 0.22) 0%, rgba(176, 141, 87, 0.04) 55%, transparent 100%),
        radial-gradient(circle 900px at 50% 100%, rgba(36, 24, 16, 0.9) 0%, transparent 70%),
        linear-gradient(180deg, #150E08 0%, #23170E 50%, #150E08 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    position: relative;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

.admin-login-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(176, 141, 87, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.7;
}

.admin-login-ambient-orb {
    position: absolute;
    top: -120px;
    left: 0;
    right: 0;
    height: 320px;
    background: radial-gradient(ellipse 260px 160px at 50% 50%, rgba(176, 141, 87, 0.18) 0%, rgba(176, 141, 87, 0.03) 55%, transparent 75%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.admin-login {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: adminLoginEntrance 0.45s var(--ease-out);
}

@keyframes adminLoginEntrance {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-login-card {
    background: var(--c-surface);
    border-radius: var(--radius-card);
    border: 1px solid rgba(176, 141, 87, 0.28);
    box-shadow:
        0 24px 50px -12px rgba(0, 0, 0, 0.55),
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    padding: 36px 32px 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9C773D 0%, #E5D5BC 50%, #9C773D 100%);
}

.admin-login-brand {
    text-align: center;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-login-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.admin-login-logo-wrap {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #FAF7F2;
    border: 1.5px solid var(--c-line);
    box-shadow: 0 4px 14px rgba(36, 26, 18, 0.08), inset 0 0 0 2px rgba(176, 141, 87, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-login-logo-link:hover .admin-login-logo-wrap {
    transform: scale(1.05);
    border-color: var(--c-accent);
    box-shadow: 0 6px 18px rgba(176, 141, 87, 0.25);
}

.admin-login-logo-wrap img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.admin-login-brand-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-primary);
    background: var(--c-accent-soft);
    padding: 3px 10px;
    border-radius: var(--radius-badge);
    margin-bottom: 8px;
}

.admin-login-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--c-ink);
    margin: 0;
    line-height: 1.3;
}

.admin-login-desc {
    font-size: 0.82rem;
    color: var(--c-ink-soft);
    margin-top: 4px;
    margin-bottom: 0;
}

.admin-login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #FDF2F0;
    border: 1px solid #F3C7C0;
    border-left: 3px solid var(--c-danger);
    border-radius: var(--radius-badge);
    color: var(--c-danger);
    font-size: 0.84rem;
    line-height: 1.4;
    margin-bottom: 18px;
    animation: adminAlertFade 0.3s ease;
}

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

.admin-login-alert svg {
    flex-shrink: 0;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
}

.admin-login-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
}

.admin-login-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.admin-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-login-input-icon {
    position: absolute;
    left: 12px;
    color: var(--c-ink-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.admin-login-input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 12px 0 40px;
    background: #FAF7F2;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-badge);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--c-ink);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-login-input-wrap input::placeholder {
    color: var(--c-ink-muted);
    opacity: 0.7;
    font-size: 0.85rem;
}

.admin-login-input-wrap input:focus {
    background: #FFFFFF;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2);
    outline: none;
}

.admin-login-input-wrap:focus-within .admin-login-input-icon {
    color: var(--c-accent);
}

.admin-login-input-wrap input.has-toggle {
    padding-right: 42px;
}

.admin-login-pw-toggle {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--c-ink-muted);
    border-radius: var(--radius-badge);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, background 0.2s ease;
}

.admin-login-pw-toggle:hover {
    color: var(--c-ink);
    background: rgba(0, 0, 0, 0.04);
}

.admin-login-pw-toggle svg {
    display: block;
}

.admin-login-btn {
    width: 100%;
    height: 46px;
    background: var(--c-primary);
    color: #FAF6EF;
    border: 1px solid rgba(176, 141, 87, 0.35);
    border-radius: var(--radius-btn);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(36, 26, 18, 0.15);
}

.admin-login-btn:hover {
    background: var(--c-primary-hover);
    border-color: var(--c-accent);
    box-shadow: 0 6px 18px rgba(36, 26, 18, 0.25), 0 0 0 1px rgba(176, 141, 87, 0.4);
}

.admin-login-btn:active {
    transform: scale(0.985);
}

.admin-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.admin-login-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-login-spinner {
    animation: spin 0.8s linear infinite;
}

.admin-login-divider {
    height: 1px;
    background: var(--c-line-soft);
    margin: 22px 0 16px;
}

.admin-login-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--c-ink-soft);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    margin: 0 auto;
    font-weight: 500;
}

.admin-login-back:hover {
    color: var(--c-accent);
    transform: translateX(-2px);
}

.admin-login-footer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.74rem;
    color: rgba(227, 217, 201, 0.6);
    text-align: center;
    letter-spacing: 0.03em;
}

.admin-login-footer-badge svg {
    color: var(--c-accent);
    opacity: 0.9;
}

@media (max-width: 480px) {
    /* Cukup 1 layar di HP kecil — tanpa scroll */
    .admin-login-body {
        min-height: 100vh;
        min-height: 100svh;
        padding: 12px 14px;
    }

    .admin-login {
        gap: 12px;
    }

    .admin-login-card {
        padding: 20px 18px 16px;
    }

    .admin-login-brand {
        margin-bottom: 14px;
    }

    .admin-login-desc {
        display: none;
    }

    .admin-login-logo-wrap {
        width: 54px;
        height: 54px;
        margin-bottom: 8px;
    }

    .admin-login-logo-wrap img {
        width: 36px;
        height: 36px;
    }

    .admin-login-title {
        font-size: 1.2rem;
    }

    .admin-login-fields {
        gap: 12px;
        margin-bottom: 16px;
    }

    .admin-login-field label {
        margin-bottom: 4px;
    }

    .admin-login-divider {
        margin: 14px 0 10px;
    }
}

.admin-deny {
    align-items: center;
    text-align: center;
    gap: 12px;
}

.admin-deny h1 {
    margin: 0;
}

.admin-deny p {
    color: var(--c-ink-soft);
    margin-bottom: 8px;
}

.admin-deny .btn {
    margin-top: 4px;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .field-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .admin-burger {
        display: none;
    }

    .admin-sidebar {
        transform: none;
    }

    .admin-main {
        margin-left: 236px;
    }

    .admin-backdrop {
        display: none !important;
    }

    .product-form-grid {
        grid-template-columns: 1fr 300px;
    }

    .order-grid {
        grid-template-columns: 1fr 300px;
    }

    .field-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Sidebar off-canvas (mobile) */
@media (max-width: 1023.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 200ms ease-out;
    }

    .admin-sidebar.is-open {
        transform: none;
    }
}

/* ===== Galeri & opsi produk (varian/warna) ===== */

.product-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 10px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.product-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid var(--c-line);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--c-surface);
    scroll-snap-align: start;
    transition: border-color 0.15s ease;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb:hover { border-color: var(--c-accent); }
.product-thumb.is-active { border-color: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent-soft); }

.product-option { margin: 0 0 14px; }

.product-option-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-ink-soft);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.option-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-chip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0;
    padding: 8px 16px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-ink);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.option-chip:hover { border-color: var(--c-accent); }

.option-chip.is-active {
    border-color: var(--c-accent);
    background: var(--c-accent-soft);
    font-weight: 600;
}

.cart-row-variant,
.checkout-item-variant,
.item-variant {
    font-size: 0.8rem;
    color: var(--c-ink-muted);
    margin: 2px 0;
}

/* Admin: galeri produk */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0;
}

.gallery-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--c-ink-muted);
}

.gallery-item input {
    position: absolute;
    top: 4px;
    left: 4px;
}

.gallery-item img {
    border-radius: 8px;
    border: 1px solid var(--c-line);
    object-fit: cover;
}

.gallery-item:has(input:checked) img {
    border-color: var(--c-danger);
    opacity: 0.55;
}

.gallery-item-del {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Harga varian terpilih di popup add-to-cart */
.picker-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-card);
    background: rgba(176, 141, 87, 0.12);
    border: 1px solid rgba(176, 141, 87, 0.35);
}

.picker-price strong {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--c-primary);
}

.picker-price small {
    font-size: 0.85rem;
    color: rgba(56, 37, 23, 0.75);
}

.picker-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 12px;
}

/* Chip opsi habis (publik) */
.option-chip.is-habis {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.option-chip:disabled {
    cursor: not-allowed;
}

.option-chip-habis {
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--c-danger);
    text-decoration: none;
    margin-left: 6px;
}

/* Harga per varian: chip produk + prefix "From" (harga produk = varian termurah) */
.option-chip-price {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 5px;
    font-style: normal;
    font-size: 0.7rem;
    color: var(--c-ink-muted);
    margin-left: 6px;
}

.option-chip-price s {
    font-size: 0.64rem;
    color: rgba(56, 37, 23, 0.45);
    text-decoration-color: rgba(176, 61, 38, 0.65);
}

.price-from {
    font-style: normal;
    font-size: 0.75em;
    font-weight: 500;
    color: var(--c-ink-muted);
    margin-right: 2px;
}

/* Admin: editor daftar varian/warna */
.option-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.option-editor-head label {
    margin: 0;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.option-row input[type='text'] {
    flex: 1;
    min-width: 0;
}

.option-row-habis {
    white-space: nowrap;
    font-size: 0.85rem;
    margin: 0;
}

.option-row-del {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
    background: var(--c-surface);
    color: var(--c-danger);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.option-row-del:hover {
    background: var(--c-danger);
    border-color: var(--c-danger);
    color: #fff;
}

/* ===== Admin: form produk v2 ===== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pf-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.pf-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
    background: var(--c-surface);
    color: var(--c-ink-soft);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.pf-back:hover {
    border-color: var(--c-accent);
    color: var(--c-primary);
}

.pf-topbar-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--c-primary);
}

.pf-card {
    padding: 22px;
}

.pf-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-line-soft);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-primary);
}

/* Slug dengan prefix URL */
.pf-slug-wrap {
    display: flex;
    align-items: center;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
    overflow: hidden;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.pf-slug-wrap:focus-within {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.2);
}

.pf-slug-prefix {
    flex: 0 0 auto;
    padding: 12px 4px 12px 14px;
    background: var(--c-surface-warm);
    color: var(--c-ink-muted);
    font-size: 0.9rem;
    border-right: 1px solid var(--c-line);
}

.pf-slug-wrap input {
    border: none !important;
    box-shadow: none !important;
    background: transparent;
}

/* Toggle row */
.pf-toggle-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--c-surface-warm);
    border: 1px solid var(--c-line-soft);
    border-radius: var(--radius-btn);
}

/* Dropzone upload */
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 150px;
    padding: 20px;
    border: 2px dashed var(--c-line);
    border-radius: var(--radius-card);
    background: var(--c-surface-warm);
    color: var(--c-ink-muted);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover {
    border-color: var(--c-accent);
    background: var(--c-accent-soft);
    color: var(--c-primary);
}

.dropzone.is-dragover {
    border-color: var(--c-accent);
    background: var(--c-accent-soft);
    box-shadow: inset 0 0 0 2px var(--c-accent);
}

.dropzone-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.dropzone-placeholder svg {
    color: var(--c-accent);
}

.dropzone-placeholder strong {
    font-size: 0.9rem;
    color: var(--c-primary);
}

.dropzone-placeholder small {
    font-size: 0.78rem;
    line-height: 1.5;
}

.dropzone .upload-preview {
    max-width: 220px;
    max-height: 220px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--c-line);
    object-fit: cover;
}

.dropzone-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-accent);
}

.dropzone-mini {
    flex-direction: row;
    min-height: 0;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 6px;
}

.dropzone-mini svg {
    color: var(--c-accent);
}

/* Option editor polish */
.option-editor + .option-editor {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--c-line);
}

.option-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.option-editor-head label {
    margin: 0;
}

.option-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: var(--c-surface-warm);
    border: 1px solid var(--c-line-soft);
    border-radius: var(--radius-btn);
    transition: border-color 0.15s ease;
}

.option-row.is-habis {
    background: var(--c-accent-soft);
    border-color: var(--c-line);
}

/* Input nama varian: basis 150px supaya tak ciut di layar sempit —
   di mobile ia wrap ke baris sendiri (flex-wrap) */
.option-row input[type='text'] {
    flex: 1 1 150px;
    min-width: 0;
    background: var(--c-surface);
}

.option-row-price {
    flex: 0 1 110px;
    min-width: 80px;
    background: var(--c-surface);
}

.option-row-disc {
    flex: 0 0 72px;
    background: var(--c-surface);
}

.option-row-final {
    flex: 1 1 100%;
    margin: -2px 0 0;
    font-size: 0.78rem;
    color: rgba(56, 37, 23, 0.75);
}

.option-row-final strong {
    color: var(--c-primary);
}

.option-row-habis {
    white-space: nowrap;
    font-size: 0.85rem;
    margin: 0;
}

/* Sidebar kanan: preview + aksi */
.pf-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* align-self wajib: tanpa ini flex ketarik setinggi kolom form → sticky gak punya ruang */
    align-self: start;
}

@media (min-width: 1024px) {
    .pf-side {
        position: sticky;
        top: 84px;
    }
}

.pf-actions {
    padding: 16px;
}

.pf-actions .btn-block + .btn-block {
    margin-top: 4px;
}

.pf-preview-meta {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--c-ink-soft);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pf-mode-note {
    margin: -10px 0 16px;
}

/* Radio cards (settings: mode opsi) */
.radio-card-group {
    display: grid;
    gap: 12px;
    margin: 14px 0 6px;
}

.radio-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--c-surface);
    border: 2px solid var(--c-line);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.radio-card:hover {
    border-color: var(--c-accent);
}

.radio-card input[type='radio'] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--c-primary);
    cursor: pointer;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.radio-card-content strong {
    font-size: 0.95rem;
    color: var(--c-primary);
}

.radio-card-content small {
    font-size: 0.8rem;
    color: var(--c-ink-muted);
    line-height: 1.4;
}

.radio-card:has(input:checked) {
    border-color: var(--c-primary);
    background: var(--c-surface-warm);
    box-shadow: 0 2px 8px rgba(36, 26, 18, 0.08);
}

.pf-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--c-surface-warm);
    border: 1px solid var(--c-line);
    font-size: 0.8rem;
    color: var(--c-ink-soft);
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.pf-mode-badge:hover {
    border-color: var(--c-accent);
    color: var(--c-primary);
}

/* Mode opsi per produk (form admin) */
.pf-mode-intro {
    margin: -8px 0 16px;
}

.pf-mode-radios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.pf-mode-opt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--c-surface-warm);
    border: 2px solid var(--c-line);
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pf-mode-opt:hover {
    border-color: var(--c-accent);
}

.pf-mode-opt input[type='radio'] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--c-primary);
    cursor: pointer;
}

.pf-mode-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pf-mode-text strong {
    font-size: 0.9rem;
    color: var(--c-primary);
}

.pf-mode-text small {
    font-size: 0.78rem;
    color: var(--c-ink-muted);
    line-height: 1.4;
}

.pf-mode-opt.is-active,
.pf-mode-opt:has(input:checked) {
    border-color: var(--c-primary);
    background: var(--c-surface);
    box-shadow: 0 2px 8px rgba(36, 26, 18, 0.08);
}

/* Toggle mode harga varian — di kartu Price & Stock (2 kartu radio besar) dan
   di editor opsi (versi ringkas); keduanya bind state pricingMode yang sama */
.pf-pricing-radios {
    margin-bottom: 16px;
}

.pf-pricing-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--c-surface-warm);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-btn);
}

.pf-pricing-toggle .check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--c-primary);
}

.pf-final-price,
.pf-auto-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 4px 0 14px;
    padding: 12px 14px;
    border-radius: var(--radius-card);
    background: rgba(176, 141, 87, 0.12);
    border: 1px solid rgba(176, 141, 87, 0.35);
}

.pf-final-price > span:first-child,
.pf-auto-price {
    font-size: 0.85rem;
    color: rgba(56, 37, 23, 0.75);
}

.pf-final-price strong,
.pf-auto-price strong {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--c-primary);
}

.pf-final-price s {
    color: rgba(56, 37, 23, 0.55);
}

.pf-final-price-orig {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
