:root {
  --bg: #fbf6ef; --card: #ffffff; --ink: #3b2418; --muted: #8a7466; --line: #eee3d6;
  --brand: #e2342d; --brand-ink: #fff; --brown: #5b3a29; --ok: #2e9d5b; --warn: #f0a400; --soft: #fff1e6;
  --radius: 16px; --shadow: 0 4px 18px rgba(91, 58, 41, .10);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.45 "Prompt", "Noto Sans Myanmar", "Noto Sans SC", system-ui, -apple-system, sans-serif; padding-bottom: 96px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { background: linear-gradient(160deg, #fff 0%, #fdeee2 100%); border-bottom: 1px solid var(--line); }
.top .wrap { padding-top: 14px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: var(--shadow); flex: none; }
.brand h1 { margin: 0; font-size: 22px; color: var(--brown); letter-spacing: .5px; }
.brand p { margin: 0; color: var(--muted); font-size: 13px; }
.langs { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; }
.lang { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.lang small { font-size: 13px; }
.lang.on { border-color: var(--brand); background: var(--soft); color: var(--brand); font-weight: 600; }
.banner { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px dashed #e9b8a0; font-size: 14px; color: var(--brown); }
.banner.closed { background: #fdecec; border-color: #f3b1ad; color: #a32019; font-weight: 600; }

/* category chips */
.cats { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.cats .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cats .wrap::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; border-radius: 999px; background: #fff; padding: 8px 14px; box-shadow: 0 1px 0 var(--line); white-space: nowrap; }
.chip.on { background: var(--brown); color: #fff; }

/* menu */
.sec h2 { font-size: 18px; margin: 22px 0 10px; color: var(--brown); display: flex; align-items: center; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 0; padding: 0; text-align: left; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.item .pic { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 46px; }
.item .pic img { width: 100%; height: 100%; object-fit: cover; }
.item .body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.item .n { font-size: 15px; font-weight: 600; line-height: 1.25; }
.item .sub { font-size: 12px; color: var(--muted); line-height: 1.2; }
.item .price { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; }
.item .price b { color: var(--brand); font-size: 17px; }
.item .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.item .badge { position: absolute; top: 8px; right: 8px; background: var(--brand); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.item.off { opacity: .5; }
.item.off .plus { background: #bbb; }
.xxx { color: var(--muted) !important; font-size: 15px !important; letter-spacing: 2px; }

/* bottom cart bar */
.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(--bg) 70%, transparent); }
.cartbar button { width: 100%; max-width: 688px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-radius: 16px; padding: 14px 18px; background: var(--brand); color: #fff; font-weight: 600; font-size: 17px; box-shadow: 0 8px 24px rgba(226, 52, 45, .35); }
.cartbar .cnt { background: #fff; color: var(--brand); border-radius: 999px; padding: 0 9px; margin-right: 8px; }

/* sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(30, 15, 8, .45); z-index: 30; display: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; background: #fff; border-radius: 22px 22px 0 0; max-height: 92vh; overflow-y: auto; transform: translateY(100%); transition: transform .25s ease; }
.sheet.open { transform: none; }
.sheet-bg.open { display: block; }
.sheet .wrap { padding-top: 8px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.grab { width: 44px; height: 5px; border-radius: 9px; background: #ddd; margin: 4px auto 10px; }
.sheet h3 { margin: 0 0 4px; font-size: 20px; }
.sheet .x { position: absolute; right: 12px; top: 10px; border: 0; background: #f4ece3; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; }
.opt { margin-top: 16px; }
.opt > label, .opt > .lbl { display: block; font-weight: 600; margin-bottom: 8px; color: var(--brown); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 12px; }
.pill.on { border-color: var(--brand); background: var(--soft); color: var(--brand); font-weight: 600; }
.pill small { color: var(--muted); margin-left: 4px; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: #f6efe7; border-radius: 999px; padding: 3px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; font-size: 20px; line-height: 1; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.primary { width: 100%; border: 0; border-radius: 14px; padding: 14px; background: var(--brand); color: #fff; font-weight: 700; font-size: 17px; margin-top: 18px; }
.primary:disabled { opacity: .55; }
.ghost { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 14px; }

/* cart */
.line { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.line .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; flex: none; }
.line .mid { flex: 1; min-width: 0; }
.line .mid .sub { font-size: 13px; color: var(--muted); }
.line .rt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.freebtn { border: 1.5px dashed var(--warn); background: #fff8e6; color: #8a5a00; border-radius: 10px; padding: 4px 8px; font-size: 13px; margin-top: 6px; }
.freebtn.on { background: var(--warn); color: #fff; border-style: solid; }
.sum { margin-top: 12px; }
.sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.sum .tot { font-size: 20px; font-weight: 700; color: var(--brand); border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.field { margin-top: 12px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; font-size: 16px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.payopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payopt { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px; text-align: left; }
.payopt b { display: block; }
.payopt small { color: var(--muted); }
.payopt.on { border-color: var(--brand); background: var(--soft); }
.pointsbox { margin-top: 12px; background: #fff8e6; border: 1px solid #f6dc9c; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
#map { height: 240px; border-radius: 12px; margin-top: 8px; border: 1px solid var(--line); }
.err { color: #c62828; font-size: 14px; margin-top: 10px; min-height: 1em; }

/* order page */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-top: 14px; }
.status { text-align: center; padding: 22px 16px; }
.status .big { font-size: 54px; }
.status h2 { margin: 6px 0 4px; font-size: 21px; }
.steps { display: flex; justify-content: space-between; margin: 18px 4px 4px; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 15px; height: 3px; background: var(--line); }
.step { position: relative; flex: 1; text-align: center; font-size: 13px; color: var(--muted); }
.step i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eee3d6; color: #fff; margin: 0 auto 4px; font-style: normal; position: relative; z-index: 1; }
.step.on { color: var(--ink); font-weight: 600; }
.step.on i { background: var(--ok); }
.qrbox { text-align: center; }
.qrbox .pp { background: #113566; color: #fff; border-radius: 12px 12px 0 0; padding: 8px; font-weight: 700; letter-spacing: 1px; }
.qrbox .qr { border: 2px solid #113566; border-top: 0; border-radius: 0 0 12px 12px; padding: 14px; }
.qrbox .qr img { width: 230px; max-width: 100%; image-rendering: pixelated; }
.qrbox .amt { font-size: 30px; font-weight: 800; color: var(--brand); }
.muted { color: var(--muted); font-size: 14px; }
.ok { color: var(--ok); }
.center { text-align: center; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); background: var(--brown); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 50; box-shadow: var(--shadow); max-width: 90vw; }
[hidden] { display: none !important; }
