/* DRW Clinic — gaya bersama aplikasi pelanggan & panel admin. Mobile-first. */
:root {
  /* Palet "timeless" ala DRW Prime: gading, tinta hitam hangat, aksen emas. */
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f4efe6;
  --ink: #1b1813;
  --ink-2: #5a5247;
  --ink-3: #8f8577;
  --line: #ebe3d6;
  --brand: #1b1813;          /* tombol utama: hitam */
  --brand-dark: #000000;
  --brand-soft: #f5edda;     /* emas muda */
  --brand-ink: #f6e7b8;      /* teks emas di atas hitam */
  --gold: #b8923a;
  --gold-2: #d4af37;
  --gold-ink: #7d5f1c;       /* emas tua — teks di atas putih (kontras ≥ 5:1) */
  --accent: #b8923a;
  --night: #15120e;
  --ok: #1d7a4a;
  --ok-soft: #e1f3e8;
  --warn: #9a5b00;
  --warn-soft: #fbf0d9;
  --bad: #b42318;
  --bad-soft: #fbe7e4;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 24, 19, .04), 0 8px 24px rgba(27, 24, 19, .06);
  --shadow-lg: 0 18px 48px rgba(27, 24, 19, .16);
  --nav-h: 66px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -.005em; line-height: 1.1; }
h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 0; line-height: 1.15; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 700; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.stack.lg { gap: 20px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
/* Item grid/flex boleh menyusut — mencegah konten lebar (deret tanggal, chip) melebarkan halaman. */
.stack > *, .layout-2 > *, .detail-grid > *, .grid-cards > *, .t-list > *, .p-grid > *, .form-grid > * { min-width: 0; }
html, body { overflow-x: hidden; }

/* ── Kerangka aplikasi ── */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(250, 247, 242, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--night); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .55); }
.logo-mark svg { width: 18px; height: 18px; }
.logo-text { display: grid; line-height: 1; }
.logo-text b { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .02em; }
.logo-text small { font-size: 9px; font-weight: 700; letter-spacing: .28em; color: var(--gold); margin-top: 3px; }
.topnav { display: none; gap: 4px; margin-left: 12px; }
.topnav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.topnav a.on { background: var(--night); color: var(--brand-ink); }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.badge-dot { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
main { max-width: 1120px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 28px); }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.bottomnav a { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.bottomnav a.on { color: var(--ink); }
.bottomnav a.on svg { color: var(--gold); }
.bottomnav a.on::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--gold); }
@media (min-width: 860px) {
  .topnav { display: flex; }
  .bottomnav { display: none; }
  main { padding-bottom: 48px; }
}

/* ── Komponen ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s, transform .05s; }
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.soft { background: var(--brand-soft); color: var(--gold-ink); }
.btn.soft:hover { background: #efe2c2; }
.btn.gold { background: linear-gradient(135deg, #d9b54a, #b8923a); color: #1b1813; }
.btn.gold:hover { background: linear-gradient(135deg, #e2c160, #c49c40); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: #f3c5c0; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.brand { background: var(--brand-soft); color: var(--gold-ink); }
.price { font-weight: 800; color: var(--gold-ink); }
.price small { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-right: 3px; }
.price s { color: var(--ink-3); font-weight: 500; font-size: 12px; margin-left: 4px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; }
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 58, .18); }
.search { position: relative; }
.search .input { padding-left: 44px; min-height: 50px; border-radius: 14px; box-shadow: var(--shadow); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-h a { color: var(--gold-ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.section-h p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 600; font-size: 14px; margin-bottom: 12px; cursor: pointer; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv > :nth-child(odd) { color: var(--ink-3); }
.kv > :nth-child(even) { text-align: right; font-weight: 600; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: #6b3d00; font-size: 13px; }
.notice.info { background: var(--brand-soft); color: #5c4512; }
.notice.ok { background: var(--ok-soft); color: #0c4f2d; }

/* Lokasi */
.locbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.locbar b { font-weight: 700; }
.locbar > .grow { flex: 1 1 120px; }
.locbar .btn.sm { padding: 0 10px; gap: 5px; }
.locbar button { flex: none; }

/* Banner promo */
.banners { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.banners::-webkit-scrollbar { display: none; }
.banner { scroll-snap-align: start; border-radius: 20px; padding: 18px; min-height: 150px; color: #fff; display: grid; align-content: end; gap: 4px; position: relative; overflow: hidden; background: var(--night); isolation: isolate; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(21, 18, 14, .92) 0%, rgba(21, 18, 14, .6) 55%, rgba(21, 18, 14, .15) 100%); }
.banner .eyebrow { color: var(--gold-2); }
.banner h3 { font-family: var(--serif); font-size: 25px; font-weight: 700; max-width: 80%; line-height: 1.1; }
.banner p { font-size: 12.5px; opacity: .88; max-width: 78%; }
.tone-rose::before { background: linear-gradient(100deg, rgba(60, 18, 34, .92), rgba(60, 18, 34, .55) 55%, rgba(60, 18, 34, .1)); }
.tone-violet::before { background: linear-gradient(100deg, rgba(21, 18, 14, .94), rgba(21, 18, 14, .6) 55%, rgba(21, 18, 14, .1)); }
.tone-teal::before { background: linear-gradient(100deg, rgba(10, 46, 40, .92), rgba(10, 46, 40, .55) 55%, rgba(10, 46, 40, .1)); }
.tone-amber::before { background: linear-gradient(100deg, rgba(74, 52, 8, .92), rgba(74, 52, 8, .55) 55%, rgba(74, 52, 8, .1)); }
@media (min-width: 860px) { .banners { grid-auto-columns: calc((100% - 24px) / 3); margin: 0; padding: 0; } }

/* Kategori treatment */
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.cats::-webkit-scrollbar { display: none; }
.cat { position: relative; height: 164px; border-radius: 18px; overflow: hidden; display: grid; align-content: end; padding: 12px; color: #fff; background: var(--night); isolation: isolate; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.cat:hover img { transform: scale(1.05); }
.cat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 18, 14, 0) 30%, rgba(21, 18, 14, .88)); }
.cat .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(21, 18, 14, .55); color: var(--gold-2); border: 1px solid rgba(212, 175, 55, .5); margin-bottom: 6px; backdrop-filter: blur(4px); }
.cat .ico svg { width: 16px; height: 16px; }
.cat b { font-size: 14px; font-weight: 700; }
.cat small { font-size: 11px; opacity: .8; }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(8, 1fr); grid-auto-flow: row; margin: 0; padding: 0; } }

/* Keluhan kulit */
.concerns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.concern { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.concern span.ico { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--gold-ink); }
.concern span.ico svg { width: 17px; height: 17px; }
@media (min-width: 700px) { .concerns { grid-template-columns: repeat(6, 1fr); } }

/* Hero beranda */
.hero { position: relative; border-radius: 24px; overflow: hidden; padding: 26px 18px 18px; color: #fff; background: var(--night); isolation: isolate; display: grid; gap: 14px; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 18, 14, .55), rgba(21, 18, 14, .92) 75%); }
.hero h1 { font-size: 36px; color: #fff; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 600; }
.hero p { font-size: 14px; opacity: .85; max-width: 40ch; }
.hero .search .input { border: 0; }
.hero .stats-mini { display: flex; gap: 18px; font-size: 12px; opacity: .9; }
.hero .stats-mini b { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold-2); }
@media (min-width: 860px) { .hero { padding: 48px 40px 32px; } .hero h1 { font-size: 52px; } }

/* Kartu klinik */
.clinic-card { display: grid; gap: 10px; padding: 14px; }
.clinic-card .top { display: flex; gap: 12px; min-width: 0; }
.clinic-card .grow, .clinic-card h3 { min-width: 0; }
.clinic-thumb { width: 56px; height: 56px; border-radius: 16px; flex: none; background: var(--night); display: grid; place-items: center; color: var(--gold-2); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .35); }
.clinic-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dist { font-weight: 800; color: var(--gold-ink); font-size: 13px; white-space: nowrap; }
.open-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.open-dot.off { background: var(--ink-3); }
.grid-cards { display: grid; gap: 12px; }
@media (min-width: 700px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-cards.three { grid-template-columns: repeat(3, 1fr); } }

/* Peta */
.map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; z-index: 1; }
.map.mini { height: 200px; }
.leaflet-popup-content { font: 13px/1.4 var(--font); }
.toggle { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 12px; }
.toggle button, .toggle a { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.toggle button.on, .toggle a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Kartu treatment */
.t-row { display: grid; grid-auto-flow: column; grid-auto-columns: 236px; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.t-row::-webkit-scrollbar { display: none; }
.t-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.t-art { height: 150px; display: grid; place-items: center; color: rgba(255, 255, 255, .95); position: relative; overflow: hidden; background: var(--night); }
.t-art.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 18, 14, 0) 55%, rgba(21, 18, 14, .45)); }
.t-art svg.i { width: 40px; height: 40px; stroke-width: 1.5; }
.t-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .4s; }
.t-card:hover .t-art img { transform: scale(1.04); }
.t-art .tag { position: absolute; left: 10px; top: 10px; z-index: 1; background: var(--gold-2); color: var(--night); }
.t-art .sub { position: absolute; left: 10px; bottom: 9px; z-index: 1; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.t-body { padding: 12px; display: grid; gap: 6px; align-content: start; }
.t-list { display: grid; gap: 12px; }
@media (min-width: 700px) { .t-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .t-list { grid-template-columns: repeat(3, 1fr); } }
.t-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; align-items: start; }
.t-item .t-art { height: 96px; border-radius: 14px; }
.t-item .t-art .sub { display: none; }
.t-item .t-art svg.i { width: 30px; height: 30px; }
.t-art:not(.has-img) { background: linear-gradient(135deg, #2a241b, #4a3d26); color: var(--gold-2); }
.sub-h { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin: 18px 0 8px; grid-column: 1 / -1; }

/* Produk */
.p-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .p-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .p-grid { grid-template-columns: repeat(4, 1fr); } }
.p-card { overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.p-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.p-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.p-body { padding: 10px 12px 12px; display: grid; gap: 4px; align-content: start; }
.p-body .name { font-size: 13px; font-weight: 600; }
.add-btn { margin-top: 6px; }

/* Detail */
.hero-art { height: 240px; border-radius: 22px; }
@media (min-width: 860px) { .hero-art { height: 340px; } }
.hero-art svg.i { width: 64px; height: 64px; }
.detail-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .detail-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.sticky-cta { position: sticky; bottom: calc(var(--nav-h) + 10px); z-index: 20; display: flex; gap: 10px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 30px rgba(35, 19, 31, .12); }
@media (min-width: 860px) { .sticky-cta { bottom: 16px; } }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr.today td { color: var(--brand-dark); font-weight: 800; }

/* Booking */
.steps { display: flex; gap: 6px; margin-bottom: 16px; }
.steps span { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.steps span.on { background: var(--gold); }
.pick { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.pick.on { border-color: var(--gold); background: #fffbf1; box-shadow: 0 0 0 3px rgba(184, 146, 58, .14); }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.days::-webkit-scrollbar { display: none; }
.day { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font-size: 12px; color: var(--ink-2); }
.day b { font-size: 18px; color: var(--ink); }
.day.on { border-color: var(--night); background: var(--night); color: var(--brand-ink); }
.day.on b { color: #fff; }
.day:disabled { opacity: .4; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 600px) { .slots { grid-template-columns: repeat(6, 1fr); } }
.slot { min-height: 42px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; cursor: pointer; font-size: 14px; }
.slot.on { border-color: var(--night); background: var(--night); color: var(--brand-ink); }
.slot:disabled { text-decoration: line-through; color: var(--ink-3); background: var(--surface-2); cursor: not-allowed; }
.ticket { border-radius: 20px; overflow: hidden; }
.ticket-h { padding: 20px 18px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #3a2f1c 0%, var(--night) 60%); display: grid; gap: 6px; border-bottom: 1px solid rgba(212, 175, 55, .35); }
.ticket-h .code { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: .06em; color: var(--gold-2); }

/* Keranjang */
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 56px; height: 56px; flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; }
.cart-thumb:not(.t-art) { background: #fff; }
.cart-thumb.t-art { border: 0; }
.cart-thumb.t-art svg.i { width: 24px; height: 24px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: var(--surface-2); cursor: pointer; font-weight: 800; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }
.layout-2 { display: grid; gap: 16px; }
@media (min-width: 860px) { .layout-2 { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* Pembayaran */
.pay-ch { display: grid; gap: 8px; }
.qr-box { display: grid; justify-items: center; gap: 10px; padding: 16px; }
.qr-box img { width: 240px; height: 240px; }
.va { font-size: 24px; font-weight: 800; letter-spacing: .06em; }
details.instr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
details.instr summary { font-weight: 700; cursor: pointer; }
details.instr ol { margin: 8px 0 0; padding-left: 20px; font-size: 13px; color: var(--ink-2); }

/* Akun */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--ink-3); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--gold); }
.list-item { display: flex; gap: 12px; align-items: center; padding: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); overflow: hidden; display: grid; place-items: center; color: var(--gold-ink); font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.voucher { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px 16px 14px 20px; background: var(--night); color: #fff; border-radius: 16px; overflow: hidden; }
.voucher::before, .voucher::after { content: ''; position: absolute; left: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); top: 50%; transform: translateY(-50%); }
.voucher::after { left: auto; right: -9px; }
.voucher .code { font-family: var(--serif); font-weight: 700; letter-spacing: .08em; font-size: 20px; color: var(--gold-2); }
.voucher .tag { background: rgba(255, 255, 255, .12); color: #fff; }
.voucher .tag.ok { background: rgba(80, 200, 130, .2); color: #b9f0cf; }
.voucher .muted { color: rgba(255, 255, 255, .6); }
.voucher .btn { background: var(--gold-2); color: var(--night); }

/* Toast & overlay */
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sheet-bg { position: fixed; inset: 0; background: rgba(20, 8, 16, .45); z-index: 90; display: grid; align-items: end; justify-items: center; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), #fff, var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 90px; }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 22px; height: 22px; border: 3px solid var(--brand-soft); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.footer { max-width: 1120px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + 24px); color: var(--ink-3); font-size: 12px; text-align: center; }
@media (min-width: 860px) { .footer { padding-bottom: 24px; } }

/* Footer merek */
.brandfoot { max-width: 1120px; margin: 24px auto 0; padding: 0 16px; }
.brandfoot .card { background: var(--night); color: #fff; border: 0; padding: 22px; display: grid; gap: 6px; text-align: center; }
.brandfoot h2 { color: #fff; font-size: 26px; }
.brandfoot h2 em { color: var(--gold-2); font-style: italic; }
.brandfoot p { font-size: 13px; opacity: .75; }
