/* TokoAPI Store — desain v2 (modern).
   Brand: warm gray + putih + SATU aksen teal #0f766e, hero teal gelap.
   Tipografi: Plus Jakarta Sans, DI-HOST SENDIRI di fonts/ (bukan Google
   Fonts CDN — CSP TokoAPI memblokir stylesheet eksternal, jadi font
   eksternal tidak pernah dimuat). Satu file variable latin (400–800).
   Skill: pro-design, ux-designer, impeccable, better-ui, unslop, frontend-design. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}
:root {
  --bg: #f5f5f4;
  --surface: #ffffff;
  --surface-muted: #fafaf9;
  --text: #1c1917;
  --text-muted: #57534e;
  --border: #e7e5e4;
  --accent: #0f766e;
  --accent-hover: #0d5c56;
  --accent-ink: #115e59;
  --accent-tint: #e6f2ef;
  --hero-deep: #0b3f3a;
  --hero-teal: #0f766e;
  --hero-chip: rgb(255 255 255 / 0.12);
  --danger: #b91c1c;
  --danger-tint: #fee2e2;
  --success: #15803d;
  --success-tint: #dcfce7;
  --radius-card: 16px;
  --radius-inner: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.05), 0 10px 30px rgb(0 0 0 / 0.07);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.06), 0 16px 40px rgb(0 0 0 / 0.12);
  --tile-0: #e7e5e4;
  --tile-1: #ece5d8;
  --tile-2: #dde5dc;
  --tile-3: #eaded2;
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}
h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 26px; line-height: 1.25; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 18px; margin: 0; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: var(--accent-ink); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Tombol — satu aksi utama per layar (teal), sisanya netral. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-inner);
  border: 1px solid transparent; background: var(--surface);
  font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out, box-shadow 150ms ease-out;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-ghost { background: var(--surface); border-color: var(--border); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.icon-btn { min-height: 40px; min-width: 40px; padding: 8px; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-ghost:hover { border-color: var(--text-muted); }
  .btn.is-disabled { background: var(--border); color: var(--text-muted); box-shadow: none; cursor: default; }
}
.btn:active { transform: scale(0.97); }

/* Header — putih tembus pandang, menempel saat menggulir. */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-inner);
  background: var(--accent); color: #fff; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand-tag { font-size: 13px; color: var(--text-muted); }
.search-form { display: flex; gap: 8px; flex: 1 1 320px; max-width: 520px; min-width: 200px; margin: 0 auto; }
.search-form input {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 16px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: var(--surface-muted); outline: none;
  transition: border-color 150ms ease-out, background 150ms ease-out;
}
.search-form input:focus { border-color: var(--accent); background: var(--surface); }
.search-form input::placeholder { color: var(--text-muted); }
.search-form .btn { border-radius: var(--radius-pill); }
.header-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-btn { min-height: 44px; }
.cart-btn { position: relative; border-radius: var(--radius-pill); }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.user-chip { display: inline-flex; align-items: center; gap: 8px; }
.user-name { font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hero — panel teal gelap, foto produk di kanan. */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 32px;
  background: linear-gradient(120deg, var(--hero-deep) 0%, var(--hero-teal) 100%);
  border-radius: 20px; box-shadow: var(--shadow-card);
  padding: 40px; margin-top: 24px; color: #fff; overflow: hidden;
}
.hero-copy { animation: hero-in 600ms ease-out both; }
.hero-visual { animation: hero-in 600ms ease-out 120ms both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero h1 { color: #fff; }
.hero-lead { color: rgb(255 255 255 / 0.82); max-width: 56ch; font-size: 17px; }
.proof-list {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.proof-list li {
  display: flex; align-items: center; gap: 8px;
  background: var(--hero-chip); border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-pill); padding: 8px 14px; font-size: 14px; color: #fff;
}
.proof-list svg { color: #5eead4; flex: none; }
.hero-cta { min-height: 48px; padding: 12px 28px; font-weight: 700; background: #fff; color: var(--hero-deep); box-shadow: var(--shadow-sm); }
@media (hover: hover) {
  .hero-cta:hover { background: #f0fdfa; }
}
.hero-visual img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 16px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.25);
}

/* Tab tampilan (Katalog / Pesanan saya) — segmented control. */
.view-tabs {
  display: inline-flex; gap: 4px; margin: 32px 0 0;
  background: var(--border); border-radius: var(--radius-pill); padding: 4px;
}
.view-tabs .nav-btn {
  border: none; background: transparent; border-radius: var(--radius-pill);
  padding: 10px 20px; min-height: 40px; font-weight: 600; color: var(--text-muted);
  box-shadow: none;
}
.view-tabs .nav-btn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Bagian + toolbar */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 28px 0 16px;
}
.result-count {
  color: var(--text-muted); margin: 0; font-size: 14px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 6px 12px;
}
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; font-weight: 600; font-size: 14px;
  transition: background 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.sort-label { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); margin-left: auto; font-size: 14px; }
.sort-label select {
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-pill); background: var(--surface); font-weight: 600;
}

/* Katalog — kartu foto penuh di atas, isi di bawah. */
.catalog-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.product-card {
  position: relative;
  background: var(--surface); border-radius: var(--radius-card);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 0; display: flex; flex-direction: column;
  text-align: left; cursor: pointer; width: 100%; overflow: hidden;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
  animation: card-in 450ms ease-out both;
}
@media (hover: hover) {
  .product-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: var(--shadow-lift); }
  .product-card:hover .product-tile img { transform: scale(1.04); }
}
/* Kartu muncul berurutan (fade saja — transform dipakai hover, jadi
   tidak dianimasikan supaya lift saat hover tidak tertimpa). */
.product-card:nth-child(2) { animation-delay: 50ms; }
.product-card:nth-child(3) { animation-delay: 100ms; }
.product-card:nth-child(4) { animation-delay: 150ms; }
.product-card:nth-child(5) { animation-delay: 200ms; }
.product-card:nth-child(6) { animation-delay: 250ms; }
.product-card:nth-child(7) { animation-delay: 300ms; }
.product-card:nth-child(8) { animation-delay: 350ms; }
@keyframes card-in { from { opacity: 0; } to { opacity: 1; } }
.product-tile {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center; overflow: hidden;
  font-size: 28px; font-weight: 700; color: var(--text-muted);
}
.product-tile.t0 { background: var(--tile-0); }
.product-tile.t1 { background: var(--tile-1); }
.product-tile.t2 { background: var(--tile-2); }
.product-tile.t3 { background: var(--tile-3); }
.product-tile img, .pd-tile img, .cart-item-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-tile img { transition: transform 300ms ease-out; }
.product-cat-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: rgb(255 255 255 / 0.95); color: var(--text);
  font-size: 12px; font-weight: 700; padding: 5px 10px;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.product-name { font-weight: 700; font-size: 16px; line-height: 1.35; padding: 14px 16px 0; }
.product-meta { color: var(--text-muted); font-size: 13px; padding: 2px 16px 0; }
.product-stock { white-space: nowrap; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 12px 16px 16px; }
.product-foot .btn { border-radius: var(--radius-pill); padding: 9px 16px; min-height: 40px; }
.product-price { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stock-out { color: var(--danger); font-weight: 600; }
.catalog-loading, .orders-loading, .cart-loading { color: var(--text-muted); padding: 24px 0; }
.empty-state, .error-state {
  background: var(--surface); border-radius: var(--radius-card);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 32px 24px; text-align: center;
}
.empty-title, .error-title { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.empty-text, .error-text { color: var(--text-muted); }
.error-title { color: var(--danger); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px 0 8px; }
.pagination .btn { border-radius: var(--radius-pill); }
.page-info { color: var(--text-muted); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* Pesanan */
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border-radius: var(--radius-card);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 18px;
  transition: border-color 150ms ease-out;
}
@media (hover: hover) {
  .order-row:hover { border-color: var(--text-muted); }
}
.order-id { font-weight: 700; }
.order-date { color: var(--text-muted); font-size: 14px; }
.order-total { font-weight: 800; margin-left: auto; font-variant-numeric: tabular-nums; }
.status-badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.status-badge.st-menunggu_bayar { background: var(--tile-0); color: #44403c; }
.status-badge.st-dibayar, .status-badge.st-dikirim { background: var(--accent-tint); color: var(--accent-ink); }
.status-badge.st-selesai { background: var(--success-tint); color: #166534; }
.status-badge.st-gagal, .status-badge.st-kedaluwarsa, .status-badge.st-dibatalkan { background: var(--danger-tint); color: #991b1b; }

/* Dashboard penjual (admin) — mode Operate: padat, rapi, satu aksen. */
.dash-note { color: var(--text-muted); font-size: 14px; margin: 0; }
.dash-tabs { margin-bottom: 20px; }
.dash-subhead { margin: 24px 0 12px; }
.dash-subhead:first-of-type { margin-top: 4px; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm); padding: 16px;
}
.stat-value { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.stat-label { color: var(--text-muted); font-size: 14px; font-weight: 600; margin-top: 2px; }
.kv-list { display: flex; flex-direction: column; gap: 8px; }
.kv-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-inner); padding: 12px 16px;
}
.kv-row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv-row span { color: var(--text-muted); font-size: 14px; }
.kv-row span:first-child { color: var(--text); font-weight: 600; }
.dash-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.dash-list { display: flex; flex-direction: column; gap: 12px; }
.dash-loading { color: var(--text-muted); padding: 24px 0; }
.dash-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  background: var(--surface); border-radius: var(--radius-card);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 16px 18px;
}
.dash-row-main { flex: 1 1 220px; min-width: 0; }
.dash-row-title { font-weight: 700; }
.dash-row-meta { color: var(--text-muted); font-size: 14px; }
.dash-row-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-danger { background: transparent; border-color: transparent; color: var(--danger); }
.btn.is-armed { background: var(--danger); border-color: var(--danger); color: #fff; }
@media (hover: hover) {
  .btn-danger:hover { background: var(--danger-tint); border-color: transparent; }
  .btn.is-armed:hover { background: #991b1b; }
}
#dash-order-chips { margin-bottom: 16px; }

/* Keranjang (drawer) */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(420px, 100%); background: var(--surface);
  border-radius: 20px 0 0 20px;
  box-shadow: -8px 0 24px rgb(0 0 0 / 0.12);
  transform: translateX(102%); visibility: hidden;
  transition: transform 200ms ease-out, visibility 0s linear 200ms;
  display: flex; flex-direction: column; overscroll-behavior: contain;
}
.cart-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform 200ms ease-out, visibility 0s; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 16px; border-bottom: 1px solid var(--border);
}
.drawer-head h2 { font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.drawer-foot { border-top: 1px solid var(--border); padding: 16px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 18px; }
.cart-total-row strong { font-variant-numeric: tabular-nums; font-weight: 800; }
.drawer-note { color: var(--text-muted); font-size: 14px; margin: 12px 0 0; }
.cart-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start;
  background: var(--surface-muted); border-radius: var(--radius-inner); padding: 12px;
}
.cart-item-tile {
  width: 56px; height: 56px; border-radius: var(--radius-inner);
  display: grid; place-items: center; font-weight: 700; color: var(--text-muted); overflow: hidden;
  outline: 1px solid rgb(0 0 0 / 0.08); outline-offset: -1px;
}
.cart-item-tile.t0 { background: var(--tile-0); }
.cart-item-tile.t1 { background: var(--tile-1); }
.cart-item-tile.t2 { background: var(--tile-2); }
.cart-item-tile.t3 { background: var(--tile-3); }
.cart-item-name { font-weight: 700; line-height: 1.35; }
.cart-item-price { color: var(--text-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.cart-item-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cart-item-subtotal { font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-item-remove { color: var(--danger); background: none; border: none; padding: 8px; cursor: pointer; font-weight: 600; min-height: 40px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper-btn { min-width: 40px; min-height: 40px; padding: 6px 10px; }
.stepper-value { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer-overlay {
  position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 0.4);
}

/* Dialog */
.dialog {
  width: min(480px, calc(100vw - 32px)); border: none; border-radius: 20px;
  padding: 0; box-shadow: var(--shadow-card); color: var(--text);
}
.dialog::backdrop { background: rgb(0 0 0 / 0.45); }
.dialog-body { padding: 28px 24px; position: relative; }
.dialog-close { position: absolute; top: 12px; right: 12px; }
.dialog-lead { color: var(--text-muted); }
.tab-row { display: flex; gap: 4px; margin-bottom: 20px; background: var(--border); border-radius: var(--radius-pill); padding: 4px; }
.tab-btn {
  flex: 1; min-height: 44px; border-radius: var(--radius-pill);
  border: none; background: transparent; cursor: pointer; font-weight: 600; color: var(--text-muted);
}
.tab-btn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-inner); background: var(--surface);
  transition: border-color 150ms ease-out;
}
.field textarea {
  width: 100%; min-height: 88px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-inner); background: var(--surface);
  resize: vertical; transition: border-color 150ms ease-out;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input::placeholder { color: var(--text-muted); }
.field-error { color: var(--danger); font-weight: 600; }
.pd-tile {
  aspect-ratio: 4 / 3; border-radius: var(--radius-card);
  display: grid; place-items: center; font-size: 36px; font-weight: 700;
  color: var(--text-muted); margin-bottom: 16px; overflow: hidden;
  outline: 1px solid rgb(0 0 0 / 0.08); outline-offset: -1px;
}
.pd-tile.t0 { background: var(--tile-0); }
.pd-tile.t1 { background: var(--tile-1); }
.pd-tile.t2 { background: var(--tile-2); }
.pd-tile.t3 { background: var(--tile-3); }
.pd-meta { color: var(--text-muted); }
.pd-price { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pd-desc { color: var(--text-muted); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
.od-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text-muted); }
.od-items { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.od-items li {
  display: flex; justify-content: space-between; gap: 12px;
  background: var(--surface-muted); border-radius: var(--radius-inner); padding: 12px;
}
.od-items .od-item-sub { font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-total-row { display: flex; justify-content: space-between; font-size: 18px; border-top: 1px solid var(--border); padding-top: 12px; }
.od-total-row strong { font-variant-numeric: tabular-nums; font-weight: 800; }
.od-expiry { background: var(--surface-muted); border-radius: var(--radius-inner); padding: 12px; margin-top: 16px; }
.od-expiry p { margin: 0 0 4px; }
.od-note { color: var(--text-muted); font-size: 14px; }
.od-pay { margin-top: 16px; }
.od-pay-title { font-weight: 700; }
.od-pay-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.od-method-group { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 12px 0 6px; }
.od-method-group:first-child { margin-top: 8px; }
.od-method {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-inner); cursor: pointer;
  transition: border-color 150ms ease-out, background 150ms ease-out;
}
.od-method:hover { border-color: var(--accent); }
.od-method.is-selected { border-color: var(--accent); background: var(--accent-tint); }
.od-method-name { font-weight: 700; }
.od-method-hint { font-size: 13px; color: var(--text-muted); }
.od-payinfo-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.od-payinfo-head strong { font-size: 17px; }
.od-payinfo-head span { font-weight: 800; font-variant-numeric: tabular-nums; }
#od-pi-qr { text-align: center; margin-top: 12px; }
#od-qr-img { width: 220px; height: 220px; border-radius: var(--radius-inner); background: var(--surface); }
.od-paycode { margin: 4px 0 8px; }
.od-paycode code {
  display: inline-block; font-size: 22px; font-weight: 800; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums; background: var(--surface-muted);
  border: 1px dashed var(--border); border-radius: var(--radius-inner); padding: 10px 14px;
  word-break: break-all;
}
.od-steps { margin: 12px 0; padding-left: 20px; color: var(--text-muted); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
#od-pi-redirect { margin-top: 12px; }
.od-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.od-actions .btn { flex: 1; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 80; max-width: calc(100vw - 32px);
  background: var(--text); color: #fff; border-radius: var(--radius-pill);
  padding: 12px 20px; box-shadow: var(--shadow-card); font-weight: 600;
}

/* Footer — panel gelap. */
.site-footer { background: var(--text); margin-top: 64px; padding: 40px 0; }
.site-footer a { color: #5eead4; display: inline-block; min-height: 24px; }
.footer-inner p { color: #d6d3d1; }
.footer-inner p strong { color: #fff; }
.footer-note { font-size: 14px; color: #a8a29e; }

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .header-inner { row-gap: 10px; }
  .brand-tag { display: none; }
  #auth-area { order: 2; display: inline-flex; }
  #auth-area .btn { padding: 10px 14px; }
  .header-nav { order: 2; }
  .search-form { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  .cart-btn span:not(.cart-badge) { display: none; }
  .user-name { max-width: 96px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px; margin-top: 16px; }
  .hero-visual img { aspect-ratio: 16 / 10; }
  .hero-lead { font-size: 16px; }
  .proof-list { gap: 6px; }
  .proof-list li { font-size: 13px; padding: 6px 12px; }
  .view-tabs { width: 100%; }
  .view-tabs .nav-btn { flex: 1; min-width: 0; padding: 10px 8px; font-size: 14px; white-space: nowrap; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-name { font-size: 15px; padding: 12px 12px 0; }
  .product-meta { padding: 2px 12px 0; }
  .product-foot { flex-direction: column; align-items: stretch; padding: 10px 12px 12px; }
  .product-foot .btn { width: 100%; }
  .product-price { font-size: 16px; }
  .sort-label { margin-left: 0; }
  .pagination { flex-wrap: wrap; gap: 8px 12px; }
  .pagination .btn { padding: 8px 12px; font-size: 14px; min-height: 40px; }
  .page-info { font-size: 14px; }
  .od-actions .btn { flex: 1 1 100%; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-tabs .tab-btn { font-size: 14px; padding: 10px 4px; }
  .dash-row { padding: 14px; }
  .kv-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
