/* Menu online Dimsum Nana. Mobile-first, ringan. Warna dari logo: merah, kuning, hijau. */
:root {
  --red: #C8281E;
  --red-deep: #A51F16;
  --yellow: #F7B731;
  --yellow-soft: #FFF1C7;
  --green: #2F8F46;
  --green-deep: #23703A;
  --cream: #FFF8EC;
  --card: #FFFFFF;
  --ink: #2B1D14;
  --muted: #6F6254;
  --line: #EADFCB;
  --danger: #B3261E;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.boot { text-align: center; padding: 48px 16px; color: var(--muted); }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* ---- header ---- */
.top { background: var(--red); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.top img { width: 48px; height: 48px; border-radius: 50%; background: var(--cream); border: 2px solid var(--yellow); }
.top h1 { margin: 0; font-size: 20px; line-height: 1.1; letter-spacing: .2px; }
.top p { margin: 2px 0 0; font-size: 13px; opacity: .92; }

.banner { margin: 14px 0 6px; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; border: 1px solid transparent; }
.banner b { font-weight: 700; }
.banner.open { background: #E6F4EA; border-color: #BFE0C8; color: #17472A; }
.banner.closed { background: var(--yellow-soft); border-color: #F0D98A; color: #5A4300; }
.banner.bad { background: #FDE9E7; border-color: #F3C1BC; color: #7A1812; }
.lastlink { display: block; margin: 8px 0 0; font-size: 14px; color: var(--red-deep); }

/* ---- menu ---- */
.group { margin: 22px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-deep); display: flex; align-items: center; gap: 8px; }
.group::after { content: ""; flex: 1; height: 2px; background: var(--yellow); border-radius: 2px; }
.items { display: grid; gap: 10px; }
.item { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.item .ph { flex: none; width: 84px; height: 84px; border-radius: 10px; background: var(--yellow-soft); overflow: hidden; display: grid; place-items: center; font-size: 34px; }
.item .ph img { width: 100%; height: 100%; object-fit: cover; }
.item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.item .desc { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.item .row { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; color: var(--red-deep); }
.soldout { font-size: 13px; font-weight: 700; color: var(--muted); background: #EFE7D8; padding: 4px 10px; border-radius: 999px; }

.btn { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; background: var(--green); color: #fff; min-height: 44px; }
.btn:hover { background: var(--green-deep); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.small { padding: 6px 16px; min-height: 36px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--red-deep); border: 2px solid var(--red); }
.btn.ghost:hover { background: #FDEDEB; }
.btn.red { background: var(--red); }
.btn.red:hover { background: var(--red-deep); }
.btn.block { display: block; width: 100%; }

.stepper { display: inline-flex; align-items: center; border: 2px solid var(--green); border-radius: 999px; overflow: hidden; }
.stepper button { width: 38px; height: 36px; border: 0; background: transparent; color: var(--green-deep); font-size: 20px; font-weight: 700; cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; }

/* ---- keranjang melayang ---- */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--cream) 70%, rgba(255, 248, 236, 0)); }
.cartbar button { max-width: 608px; margin: 0 auto; display: flex; width: 100%; justify-content: space-between; align-items: center; background: var(--red); color: #fff; border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(200, 40, 30, .32); }
.pad-bottom { height: 96px; }

/* ---- checkout (sheet) ---- */
.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(43, 29, 20, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--cream); width: 100%; max-width: 640px; max-height: 94vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet header { display: flex; justify-content: space-between; align-items: center; }
.sheet h2 { margin: 0; font-size: 18px; }
.x { background: none; border: 0; font-size: 26px; line-height: 1; padding: 6px 10px; cursor: pointer; color: var(--muted); }
.lines { margin: 10px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 12px; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .n { flex: 1; min-width: 0; }
.line .n small { display: block; color: var(--muted); }
.total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; margin: 12px 2px; }
label.f { display: block; margin: 12px 0 0; font-size: 14px; font-weight: 600; }
label.f input, label.f select, label.f textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; }
label.f input:focus, label.f select:focus, label.f textarea:focus { outline: 3px solid rgba(247, 183, 49, .55); border-color: var(--yellow); }
label.f textarea { min-height: 76px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.err { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #FDE9E7; color: #7A1812; font-size: 14px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- halaman order ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 14px 0; }
.code { font-size: 13px; color: var(--muted); }
.code b { color: var(--ink); font-size: 20px; letter-spacing: .5px; display: block; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 4px; padding: 0; list-style: none; }
.steps li { text-align: center; font-size: 11.5px; color: var(--muted); }
.steps li::before { content: ""; display: block; height: 6px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.steps li.done { color: var(--green-deep); font-weight: 700; }
.steps li.done::before { background: var(--green); }
.steps li.now::before { background: var(--yellow); }
.status-msg { margin: 10px 0 0; font-size: 15px; }
.pay { text-align: center; }
.pay .amt { font-size: 26px; font-weight: 800; color: var(--red-deep); margin: 4px 0; }
.qr { display: inline-block; padding: 8px; background: #fff; border: 2px solid var(--yellow); border-radius: 14px; margin: 8px 0; }
.qr svg, .qr img { width: min(260px, 70vw); height: auto; display: block; }
.steps-help { text-align: left; margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.row2 { display: grid; gap: 8px; margin-top: 12px; }
details summary { cursor: pointer; font-weight: 600; color: var(--red-deep); }
.sum .line span:last-child { white-space: nowrap; }
.wa { display: inline-block; margin-top: 6px; color: var(--green-deep); font-weight: 600; }
footer.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px 30px; }

@media (min-width: 560px) {
  .items { grid-template-columns: 1fr 1fr; }
}
