/* TokoZoom shop (customers' phones, kiosk, self-checkout). Same brand tokens as the Zoom Group AI Hub. */
:root {
  --navy-900: #071440; --navy-800: #0c1d5a; --navy-700: #15297a; --navy-600: #1f3796;
  --orange: #ff8a1f; --orange-soft: #ffb066; --bg: #f4f6fb; --surface: #fff; --text: #0c1d5a; --muted: #5b6690;
  --line: #e2e6f2; --ok: #18a058; --warn: #d9822b; --err: #d03050; --radius: 14px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); line-height: 1.5; padding-bottom: env(safe-area-inset-bottom, 0px); }
a { color: var(--navy-600); }
button, input, select { font: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
.top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--navy-800); color: #fff; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.topnav { display: flex; gap: 6px; flex-wrap: wrap; }
.topnav a { color: #dfe4fb; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .35em .7em; border-radius: 99px; }
.topnav a:hover { background: rgba(255,255,255,.1); }
.cartbtn { background: var(--orange) !important; color: var(--navy-900) !important; }
.cartbtn b { background: var(--navy-900); color: #fff; border-radius: 99px; padding: 0 .45em; margin-left: 2px; font-size: .8rem; }
.simbar { background: repeating-linear-gradient(135deg, #fff1e3 0 14px, #ffe6cc 14px 28px); border-bottom: 1.5px solid var(--warn); color: #7a3e00; padding: .5em 16px; font-size: .88rem; }
main { max-width: 1100px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 60px max(16px, env(safe-area-inset-left, 0px)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; border: 0; border-radius: 12px; padding: .7em 1.2em; background: var(--navy-700); color: #fff; cursor: pointer; font-weight: 700; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.orange { background: var(--orange); color: var(--navy-900); }
.btn.ghost { background: transparent; color: var(--navy-700); border: 1.5px solid var(--line); }
.btn.wide { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 2px; }
.input, select.input { width: 100%; padding: .7em .85em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); }
label.field { display: block; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: .9rem; }
label.field > .input { margin-top: .3rem; font-weight: 400; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.hint { color: var(--muted); font-size: .88rem; }
.bad { color: var(--err); } .ok { color: var(--ok); }
.mono { font-family: ui-monospace, Consolas, monospace; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { display: flex; gap: 8px; margin-bottom: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: .3em .85em; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--text); }
.chip[aria-pressed="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pcard .img { aspect-ratio: 4 / 3; background: #f0f2f9; display: grid; place-items: center; }
.pcard .img img { width: 100%; height: 100%; object-fit: contain; }
.pcard .b { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .nm { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.pcard .sp { font-size: .8rem; color: var(--muted); }
.price { font-weight: 800; font-size: 1.1rem; }
.stock { font-size: .8rem; font-weight: 700; }
.stock.in { color: var(--ok); } .stock.out { color: var(--err); }
.pill { display: inline-block; padding: .15em .65em; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #eef1fb; color: var(--navy-700); }
.pill.promo { background: #fff1e2; color: #b35c00; }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 760px) { .pdp { grid-template-columns: 1fr; } }
.pdp .img { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.pdp .img img { max-width: 100%; max-height: 100%; object-fit: contain; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .55em .4em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; width: 40%; }
td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp { overflow-x: auto; }
.cmp table { min-width: 560px; }
.cmp th { width: auto; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { border: 0; background: #f3f5fb; width: 34px; height: 34px; cursor: pointer; font-weight: 800; }
.qty span { min-width: 32px; text-align: center; }
.methods { display: grid; gap: 8px; margin-bottom: 14px; }
.methods label { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: .7em .9em; cursor: pointer; background: #fff; }
.methods label:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange-soft); }
.paybox { text-align: center; }
.qr { display: inline-block; background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }
.qr svg, .qr img { width: min(260px, 70vw); height: auto; display: block; }
.big { font-size: 1.6rem; font-weight: 800; letter-spacing: .02em; }
.status { font-weight: 800; }
.receipt { max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); background: var(--navy-800); color: #fff; padding: .7em 1.1em; border-radius: 12px; z-index: 99; display: none; }
#reader { width: 100%; max-width: 420px; margin: 0 auto 12px; border-radius: 12px; overflow: hidden; }
body.kiosk { font-size: 18px; }
body.kiosk .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media print { .top, .simbar, .noprint { display: none !important; } body { background: #fff; } .receipt { border: 0; } }
