/* ==========================================================================
   Dasar bersama untuk Design Style 2–6.
   Setiap style-N.css mengisi variabel di bawah, lalu menambahkan tata letaknya sendiri.
   ========================================================================== */
:root {
  --s-bg: #0b0b0d;
  --s-surface: #141417;
  --s-surface-2: #1c1c20;
  --s-ink: #f4f4f5;
  --s-muted: #9a9aa2;
  --s-line: rgba(255, 255, 255, 0.08);
  --s-accent: #f4f4f5;
  --s-accent-rgb: 244, 244, 245;
  --s-accent-ink: #0b0b0d;
  --s-font: system-ui, sans-serif;
  --s-head-font: var(--s-font);
  --s-r: 12px;
  --s-r-sm: 8px;
  --s-r-lg: 18px;
  --s-header-h: 64px;
  --bs-body-bg: var(--s-bg);
  --bs-body-color: var(--s-ink);
  --bs-body-font-family: var(--s-font);
  --bs-border-color: var(--s-line);
  --bs-link-color-rgb: var(--s-accent-rgb);
  --bs-secondary-color: var(--s-muted);
}
body { background: var(--s-bg); color: var(--s-ink); font-family: var(--s-font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--s-head-font); color: var(--s-ink); }
html { scroll-behavior: smooth; }
img { max-width: 100%; }

/* Tombol */
.s-btn { --bs-btn-font-weight: 600; --bs-btn-padding-x: 1.1rem; --bs-btn-padding-y: 0.6rem; --bs-btn-font-size: 0.9375rem; --bs-btn-border-radius: var(--s-r); display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; }
.s-btn.btn-sm { min-height: 36px; --bs-btn-padding-y: 0.35rem; --bs-btn-font-size: 0.8125rem; }
.s-btn-primary { --bs-btn-bg: var(--s-accent); --bs-btn-border-color: var(--s-accent); --bs-btn-color: var(--s-accent-ink); --bs-btn-hover-bg: var(--s-accent); --bs-btn-hover-border-color: var(--s-accent); --bs-btn-hover-color: var(--s-accent-ink); --bs-btn-active-bg: var(--s-accent); --bs-btn-active-border-color: var(--s-accent); --bs-btn-active-color: var(--s-accent-ink); }
.s-btn-primary:hover { filter: brightness(1.08); }
.s-btn-line { --bs-btn-color: var(--s-ink); --bs-btn-border-color: var(--s-line); --bs-btn-hover-color: var(--s-ink); --bs-btn-hover-bg: var(--s-surface-2); --bs-btn-hover-border-color: var(--s-line); --bs-btn-active-bg: var(--s-surface-2); --bs-btn-active-color: var(--s-ink); border-width: 1px; }
.s-btn-ghost { --bs-btn-color: var(--s-ink); --bs-btn-border-color: transparent; --bs-btn-hover-bg: var(--s-surface-2); --bs-btn-hover-color: var(--s-ink); --bs-btn-active-bg: var(--s-surface-2); --bs-btn-active-color: var(--s-ink); }
.s-icon { width: 44px; padding: 0 !important; font-size: 1.2rem; }

/* Banner */
.s-dots { position: static; margin: 0.75rem 0 0; justify-content: center; gap: 6px; }
.s-dots [data-bs-target] { width: 7px; height: 7px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--s-ink); opacity: 0.25; transition: width 0.2s, opacity 0.2s; }
.s-dots .active { width: 22px; opacity: 1; }
.carousel-item img { width: 100%; height: auto; aspect-ratio: 2000 / 783; object-fit: cover; display: block; }

/* Logo metode bayar */
.s-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s-pay { height: 30px; min-width: 60px; padding: 0 0.6rem; border-radius: var(--s-r-sm); background: #fff; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(0, 0, 0, 0.06); }
.s-pay img { height: 15px; width: auto; display: block; }

/* Kosong */
.s-empty { text-align: center; padding: 3rem 1rem; color: var(--s-muted); }
.s-empty i { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.s-empty-title { font-weight: 600; color: var(--s-ink); margin-bottom: 0.25rem; }

/* Akordeon FAQ */
.accordion { --bs-accordion-bg: transparent; --bs-accordion-color: var(--s-ink); --bs-accordion-border-color: var(--s-line); --bs-accordion-btn-color: var(--s-ink); --bs-accordion-active-color: var(--s-ink); --bs-accordion-active-bg: transparent; --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-body-color: var(--s-muted); --bs-accordion-border-radius: var(--s-r); --bs-accordion-inner-border-radius: calc(var(--s-r) - 1px); }
.accordion-button { font-weight: 600; }
[data-bs-theme="dark"] .accordion-button::after { filter: invert(1) grayscale(1) brightness(1.4); }

/* Bantuan & popup */
.s-help { position: fixed; right: 20px; bottom: 20px; z-index: 1029; height: 44px; padding: 0 1rem 0 0.85rem; display: inline-flex; align-items: center; gap: 0.5rem; border-radius: var(--s-r); background: var(--s-surface); border: 1px solid var(--s-line); color: var(--s-ink); font-weight: 600; font-size: 0.875rem; text-decoration: none; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.5); }
.s-help i { color: #25d366; font-size: 1.1rem; }
.s-help:hover { color: var(--s-ink); }
.s-popup-close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--s-line); background: var(--s-surface); color: var(--s-ink); display: grid; place-items: center; }
.s-popup-img { border-radius: var(--s-r-lg); }
@media (max-width: 575.98px) { .s-popup-close { top: 8px; right: 8px; } }

/* Menu HP & navigasi bawah */
.offcanvas { --bs-offcanvas-bg: var(--s-bg); --bs-offcanvas-color: var(--s-ink); --bs-offcanvas-border-color: var(--s-line); }
.s-oc-acc { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.s-oc-h { padding: 0 0.25rem 0.45rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s-muted); }
.s-oc-list { display: flex; flex-direction: column; border-radius: var(--s-r); background: var(--s-surface); border: 1px solid var(--s-line); overflow: hidden; }
.s-oc-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.9rem; color: var(--s-ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.s-oc-link + .s-oc-link { border-top: 1px solid var(--s-line); }
.s-oc-link > i:first-child { width: 20px; text-align: center; color: var(--s-accent); }
.s-oc-link span { flex: 1; }
.s-oc-go { color: var(--s-muted); font-size: 0.8rem; }
.s-oc-link:hover { background: var(--s-surface-2); color: var(--s-ink); }
.s-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; background: var(--s-surface); border-top: 1px solid var(--s-line); padding-bottom: env(safe-area-inset-bottom); }
.s-bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0.55rem 0 0.5rem; font-size: 0.6875rem; font-weight: 600; color: var(--s-muted); text-decoration: none; }
.s-bottom a i { font-size: 1.2rem; }
.s-bottom a.active { color: var(--s-ink); }
@media (max-width: 991.98px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .s-help { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; width: 44px; padding: 0; justify-content: center; }
  .s-help span { display: none; }
}

/* Teks bantu & tautan footer */
.s-foot-h { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.9rem; color: var(--s-ink); }
.s-foot-links { display: grid; gap: 0.55rem; margin: 0; font-size: 0.875rem; color: var(--s-muted); }
.s-foot-links a { color: var(--s-muted); text-decoration: none; }
.s-foot-links a:hover { color: var(--s-ink); }
.nv-demo-bar { display: none; }

/* DEMO: pemilih warna utama (hapus saat integrasi) */
.nv-color-demo { position: fixed; left: 20px; bottom: 20px; z-index: 1040; }
.nv-color-btn { display: inline-flex; align-items: center; gap: 0.5rem; height: 40px; padding: 0 0.9rem 0 0.6rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(20, 20, 22, 0.92); color: #f4f4f5; font: 600 0.8125rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nv-color-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); }
.nv-color-menu { --bs-dropdown-bg: #141416; --bs-dropdown-color: #f4f4f5; --bs-dropdown-border-color: rgba(255, 255, 255, 0.14); width: 240px; border-radius: 14px; font: 0.8125rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: #f4f4f5; }
.nv-color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nv-color-grid button { height: 36px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.12); cursor: pointer; }
.nv-color-grid button:hover { border-color: #fff; }
.nv-color-menu input[type="color"] { width: 44px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.nv-color-reset { background: none; border: 0; color: #a1a1aa; text-decoration: underline; padding: 0; font-size: 0.75rem; margin-top: 0.75rem; }
@media (max-width: 991.98px) { .nv-color-demo { left: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); } .nv-color-btn span.nv-color-label { display: none; } .nv-color-btn { padding: 0 0.5rem; } }
.nv-shot .nv-color-demo, .nv-shot .nv-demo-bar { display: none !important; }

/* Banner tegak 4:5 + tombol CTA di bagian bawah banner (Style 13) */
.s-pban { position: relative; border-radius: var(--s-r-lg); overflow: hidden; background: #000; }
.s-pban .carousel-item img { aspect-ratio: 4 / 5; height: 100%; }
.s-pban-cta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 3.5rem 1rem 1rem; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82) 60%); }
.s-pban-cta .s-btn { min-height: 48px; padding-inline: 0.5rem; white-space: nowrap; }
.s-btn-onimg { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, 0.55); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, 0.14); --bs-btn-hover-border-color: #fff; --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, 0.2); border-width: 1px; }

/* Banner "intip": slide tengah besar, kiri-kanan terlihat sebagian (Style 16, 17, 22, 24) */
.s-peek { position: relative; }
.s-peek-track { display: flex; gap: var(--peek-gap, 16px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: calc((100% - var(--peek-w, 72%)) / 2); }
.s-peek-track::-webkit-scrollbar { display: none; }
.s-peek-slide { flex: 0 0 var(--peek-w, 72%); scroll-snap-align: center; border-radius: var(--peek-r, 16px); overflow: hidden; opacity: 0.4; transform: scale(0.94); transition: opacity 0.35s, transform 0.35s; }
.s-peek-slide.is-active { opacity: 1; transform: none; }
.s-peek-slide img { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 783; object-fit: cover; }
.s-peek-dots { display: flex; justify-content: center; gap: 6px; margin-top: 0.85rem; }
.s-peek-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: var(--s-ink); opacity: 0.2; transition: width 0.2s, opacity 0.2s; }
.s-peek-dots button.active { width: 22px; opacity: 1; background: var(--s-accent); }
@media (max-width: 767.98px) { .s-peek-track { --peek-w: 88%; --peek-gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .s-peek-slide { transition: none; } }

/* DEMO: tombol mode terang/gelap di pemilih warna (hanya untuk desain yang punya data-mode) */
.nv-mode-row { display: none; align-items: center; justify-content: space-between; gap: 0.5rem; }
[data-mode] .nv-mode-row { display: flex; }
.nv-mode-btns { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); }
.nv-mode-btns button { display: inline-flex; align-items: center; gap: 0.3rem; border: 0; border-radius: 8px; padding: 0.3rem 0.6rem; background: none; color: #a1a1aa; font-size: 0.75rem; }
.nv-mode-btns button.active { background: #f4f4f5; color: #0b0b0d; }

/* ---- Bersama untuk Style 16–24 (mode terang & gelap lewat token) ---- */
.s-gi { min-width: 0; }
.s-more-wrap { text-align: center; margin-top: 1.5rem; }
.s-cat-l { white-space: nowrap; }
/* Form Cek Pesanan ringkas */
.s-of-label { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.6rem; color: var(--s-ink); }
.s-of-label i { color: var(--s-accent); }
.s-of-row { display: flex; gap: 0.4rem; }
.s-of-row .form-control { min-width: 0; height: 42px; border-radius: var(--s-r); border-color: var(--s-line); background: var(--s-bg); color: var(--s-ink); font-size: 0.875rem; }
.s-of-row .form-control:focus { border-color: var(--s-accent); box-shadow: 0 0 0 3px rgba(var(--s-accent-rgb), 0.15); }
.s-of-row .s-btn { min-height: 42px; padding-inline: 1rem; }
/* Tombol panah banner */
.s-car-ctl { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; gap: 8px; }
.s-car-ctl button { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.s-car-ctl button:hover { background: rgba(0, 0, 0, 0.75); }
/* Footer ringkas */
.s-mfoot { padding: 2rem 0 1.5rem; border-top: 1px solid var(--s-line); background: var(--s-foot-bg, var(--s-surface)); color: var(--s-ink); }
.s-mfoot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.s-mfoot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.875rem; }
.s-mfoot-links a { color: var(--s-muted); text-decoration: none; }
.s-mfoot-links a:hover { color: var(--s-ink); }
.s-mfoot-social { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--s-surface-2); color: var(--s-ink); }
.s-mfoot-social:hover { background: var(--s-accent); color: var(--s-accent-ink); }
.s-mfoot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--s-line); font-size: 0.8rem; color: var(--s-muted); }
@media (max-width: 767.98px) { .s-mfoot-top { flex-direction: column; align-items: flex-start; } }
/* Komponen Bootstrap ikut token di kedua mode */
[data-mode] .offcanvas { --bs-offcanvas-bg: var(--s-bg); --bs-offcanvas-color: var(--s-ink); }
[data-mode] .s-bottom { background: var(--s-nav-bg, var(--s-surface)); border-top-color: var(--s-line); }
[data-mode] .s-help { background: var(--s-nav-bg, var(--s-surface)); color: var(--s-ink); border-color: var(--s-line); }
[data-mode] .s-btn-line { --bs-btn-color: var(--s-ink); --bs-btn-border-color: var(--s-line); --bs-btn-hover-color: var(--s-ink); --bs-btn-hover-bg: var(--s-surface-2); --bs-btn-hover-border-color: var(--s-line); }
[data-mode] .s-btn-ghost { --bs-btn-color: var(--s-ink); }
[data-mode] .s-empty-title { color: var(--s-ink); }

/* Banner per mode (Style 16–24): .s-bl tampil di mode terang, .s-bd di mode gelap */
.s-bd { display: none !important; }
[data-mode="dark"] .s-bl { display: none !important; }
[data-mode="dark"] .s-bd { display: block !important; }

/* Disembunyikan selama ada kata kunci pencarian (data-nv-hide-on-query); terpisah dari d-none agar kelas responsif tetap utuh */
.nv-qh { display: none !important; }

/* Inter: rapat ala SF Pro untuk judul, angka sejajar */
body { font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, .nv-page-title { letter-spacing: -0.02em; }
