/* ============================================================
   Antar Flo — dunia visual flocoffee.id
   Putih dominan, tinta hitam, garis tipis, sudut hampir siku.
   Poppins (judul, harga), Lato (deskripsi), Inter (UI).
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --ink-2: #1f1f1f;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --line-strong: #cfcfcf;
  --mist: #f4f4f5;
  --brass: #b8975a;
  --warn-bg: #fff8e6;
  --warn-ink: #7a5c00;
  --err: #b00020;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --headline: "Poppins", "Inter", -apple-system, sans-serif;
  --sub: "Lato", "Inter", -apple-system, sans-serif;
  --r: 2px;
  --maxw: 1120px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 112px; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font-family: inherit; cursor: pointer; color: inherit; }
input, textarea { font-family: inherit; font-size: 16px; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: -3px; }
.ico.sm { width: 15px; height: 15px; vertical-align: -2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.test-ribbon { background: var(--ink); color: #fff; text-align: center; font-size: 12px; letter-spacing: .06em; padding: 5px 8px; }

/* ── Header ── */
.top { position: sticky; top: 0; z-index: 1100; background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 24px; width: auto; }
.brand span { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.shop-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); text-decoration: none; min-height: 44px; }
.shop-link:hover { color: var(--ink); }

.closed { background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; padding: 10px 16px; text-align: center; border-bottom: 1px solid #f0e2b8; }

/* ── Tombol ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r); border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; letter-spacing: .02em; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: #262626; border-color: #262626; }
.btn[disabled], .btn[disabled]:hover { background: #d4d4d4; border-color: #d4d4d4; color: #6b6b6b; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn.block { width: 100%; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

/* ── Layar pertama: peta + kartu alamat ── */
.where { display: grid; }
.map-wrap { position: relative; }
.map { height: 50vh; min-height: 300px; max-height: 520px; background: var(--mist); }
.map-legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 500; background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line); border-radius: var(--r); font-size: 12px; padding: 4px 10px; display: flex; align-items: center; gap: 8px;
}
.map-legend .ring { width: 14px; height: 14px; border: 1.5px dashed var(--ink); border-radius: 50%; }

.where-card { padding: 20px 16px 28px; display: grid; gap: 12px; align-content: start; }
.where-card h1 { font-family: var(--headline); font-weight: 400; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; }
.lede { font-family: var(--sub); color: var(--ink-2); font-size: 15px; }

.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ink); border-radius: var(--r); padding: 4px 4px 4px 12px; background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; height: 40px; background: transparent; }
.search input::-webkit-search-cancel-button { display: none; }
.results { list-style: none; border: 1px solid var(--line); border-radius: var(--r); max-height: 260px; overflow-y: auto; }
.results li button { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.results li:last-child button { border-bottom: 0; }
.results li button:hover, .results li button:focus-visible { background: var(--mist); }
.results .empty { padding: 10px 12px; font-size: 14px; color: var(--muted); }
.where-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; }

.quote { border: 1px solid var(--ink); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; }
.quote .addr { font-size: 14px; color: var(--ink-2); }
.quote .big { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.quote .big b { font-family: var(--headline); font-weight: 400; font-size: 26px; }
.quote .big span { font-size: 14px; color: var(--muted); }
.quote .note { font-size: 13px; color: var(--muted); }
.quote.out { border-color: var(--line-strong); background: var(--mist); }
.quote.out b { font-size: 18px; }
.quote .btn { margin-top: 6px; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiers div { padding: 10px 4px; text-align: center; display: grid; }
.tiers div + div { border-left: 1px solid var(--line); }
.tiers b { font-family: var(--headline); font-weight: 400; font-size: 16px; }
.tiers span { font-size: 12px; color: var(--muted); }
.tiers div.on { background: var(--ink); color: #fff; }
.tiers div.on span { color: #d4d4d4; }
.browse { justify-self: start; }

/* Penanda peta */
.pin-shop { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #000; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin-shop span { color: #fff; font-family: var(--headline); font-weight: 500; font-size: 12px; letter-spacing: -.02em; line-height: 1; }
.pin-drop { width: 28px; height: 40px; }
.vespa-marker { width: 64px; height: 46px; transition: none; }
.vespa-marker img { width: 64px; height: 46px; }
.vespa-marker.flip img { transform: scaleX(-1); }
.leaflet-container { font-family: var(--sans); }
.leaflet-control-attribution { font-size: 10px; }

/* ── Menu ── */
.menu { border-top: 1px solid var(--line); padding-top: 28px; }
.menu-head { display: grid; gap: 6px; margin-bottom: 12px; }
.menu-head h2 { font-family: var(--headline); font-weight: 400; font-size: 26px; }
.promo { font-size: 13px; color: var(--muted); }
.chips-bar { position: sticky; top: 56px; z-index: 1050; background: #fff; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.cat { padding-top: 24px; }
.cat h3 { font-family: var(--headline); font-weight: 500; font-size: 17px; margin-bottom: 4px; }
.items { list-style: none; display: grid; }
.item { display: grid; grid-template-columns: 1fr 88px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.item-info { display: grid; gap: 3px; align-content: start; }
.item-name { font-family: var(--headline); font-weight: 400; font-size: 16px; line-height: 1.3; }
.item-desc { font-family: var(--sub); font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { font-family: var(--headline); font-weight: 400; font-size: 15px; margin-top: 2px; }
.item-media { position: relative; width: 88px; }
.item-media .ph { width: 88px; height: 88px; border-radius: var(--r); background: var(--mist); object-fit: cover; }
.item-media .add {
  position: absolute; right: -4px; bottom: -6px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink);
  background: #fff; display: grid; place-items: center; font-size: 22px; line-height: 1;
}
.item-media .add:hover { background: var(--ink); color: #fff; }
.item-media.noimg { width: 88px; display: flex; justify-content: flex-end; }
.item-media.noimg .add { position: static; }
.item-media.noimg .qty-badge { left: auto; right: 30px; top: -6px; }
.item.off { opacity: .45; }
.item .qty-badge { position: absolute; left: -6px; top: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; }
.loading { padding: 24px 0; }

.foot { padding: 40px 16px 120px; display: grid; gap: 4px; font-size: 13px; }

/* ── Keranjang melayang ── */
.cart-bar {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1150;
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; max-width: 560px; margin: 0 auto;
  background: var(--ink); color: #fff; border: 0; border-radius: var(--r); font-size: 15px; font-weight: 500;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.cart-bar .count { min-width: 26px; height: 26px; border-radius: 13px; background: #fff; color: #000; font-size: 13px; display: grid; place-items: center; padding: 0 6px; }
.cart-bar .label { flex: 1; text-align: left; }

/* ── Sheet bawah ── */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1200; opacity: 0; transition: opacity .25s; }
.sheet-backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1201; max-height: 92vh; background: #fff; display: flex; flex-direction: column;
  border-radius: 10px 10px 0 0; transform: translateY(100%); transition: transform .32s var(--ease-out); max-width: 640px; margin: 0 auto;
}
.sheet.show { transform: translateY(0); }
.sheet-head { padding: 10px 8px 10px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-head b { font-family: var(--headline); font-weight: 500; font-size: 17px; }
.sheet-close { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); }
.sheet-close:hover { background: var(--mist); }
.sheet-body { overflow-y: auto; padding: 16px 20px; flex: 1; overscroll-behavior: contain; display: grid; gap: 16px; align-content: start; }
.sheet-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; }

.pick-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); background: var(--mist); }
.pick-desc { font-family: var(--sub); font-size: 14px; color: var(--ink-2); }
.opt-group { display: grid; gap: 8px; }
.opt-group > span { font-size: 13px; font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.opt small { color: var(--muted); font-size: 12px; }
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt[aria-pressed="true"] small { color: #d4d4d4; }
.opt:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px 12px; min-height: 44px; background: #fff; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); }
.field .hint { font-size: 12px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; }
.stepper button:disabled { color: #bbb; }
.stepper output { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.qty-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.lines { list-style: none; display: grid; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .nm { font-size: 15px; }
.line .nt { font-size: 12px; color: var(--muted); grid-column: 1; }
.line .pr { font-variant-numeric: tabular-nums; text-align: right; }
.line .stepper { grid-column: 1; justify-self: start; margin-top: 4px; }
.line .stepper button { width: 36px; height: 36px; }
.sums { display: grid; gap: 4px; font-size: 14px; }
.sums div { display: flex; justify-content: space-between; gap: 12px; }
.sums .total { font-family: var(--headline); font-size: 19px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.sums .disc { color: var(--ink); }
.nudge { font-size: 13px; background: var(--mist); padding: 8px 12px; border-radius: var(--r); }
.err-list { font-size: 13px; color: var(--err); display: grid; gap: 2px; }
.ice-note { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }

.done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 8px 0; }
.done .code { font-family: var(--headline); font-size: 32px; font-weight: 400; letter-spacing: .02em; }
.done p { font-size: 14px; color: var(--ink-2); max-width: 36ch; }

.toast { position: fixed; left: 50%; top: 68px; transform: translateX(-50%); z-index: 1300; background: var(--ink); color: #fff; font-size: 14px; padding: 10px 16px; border-radius: var(--r); max-width: calc(100% - 32px); }

/* ── Halaman status ── */
.status-page { padding: 24px 0 60px; display: grid; gap: 20px; max-width: 560px; }
.status-page h1 { font-family: var(--headline); font-weight: 400; font-size: 26px; }
.steps { list-style: none; display: grid; gap: 0; border-left: 1px solid var(--line-strong); margin-left: 8px; }
.steps li { position: relative; padding: 0 0 18px 22px; }
.steps li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line-strong); }
.steps li.done::before { background: var(--ink); border-color: var(--ink); }
.steps li.now::before { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0,0,0,.08); }
.steps b { font-weight: 500; }
.steps span { display: block; font-size: 13px; color: var(--muted); }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; }
.status-map { height: 220px; border-radius: var(--r); }

@media (min-width: 900px) {
  .wrap { padding: 0 24px; }
  .where { grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); border-bottom: 1px solid var(--line); }
  .map { height: calc(100vh - 56px); max-height: 720px; min-height: 520px; }
  .where-card { padding: 40px 32px; }
  .where-card h1 { font-size: 36px; }
  .items { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .sheet { bottom: auto; top: 50%; border-radius: 6px; transform: translateY(-46%); opacity: 0; transition: transform .28s var(--ease-out), opacity .2s; max-height: 86vh; }
  .sheet.show { transform: translateY(-50%); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
