:root {
  --ink: #111111;
  --paper: #faf6ef;
  --card: #ffffff;
  --red: #c8102e;
  --red-dark: #9e0c24;
  --gold: #e8b04a;
  --muted: #6b6560;
  --line: #e7e0d5;
  --ok: #1f7a4d;
  --radius: 14px;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: .01em; line-height: 1.1; margin: 0 0 .4em; text-transform: uppercase; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-head { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: var(--head); font-size: 24px; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.logo .mark { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.nav a:hover { opacity: 1; }
.basket-btn { background: var(--red); border: 0; color: #fff; border-radius: 999px; padding: 8px 16px; font: 600 14px var(--body); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.basket-btn .count { background: #fff; color: var(--red); border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 14px 26px; font: 600 15px var(--body); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; border: 2px solid currentColor; }
.btn.block { display: block; width: 100%; }
.btn:disabled { background: #bbb; cursor: not-allowed; }

/* Hero */
.hero .wrap.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
@media (max-width: 800px) { .hero .wrap.split { grid-template-columns: 1fr; } }
.hero { background: #0d0d0d; color: #fff; padding: 88px 0 96px; overflow: hidden; position: relative; }
.hero .kicker { color: var(--gold); font-family: var(--head); letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); max-width: 12ch; }
.hero p { max-width: 46ch; font-size: 18px; opacity: .85; }
.hero .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .halal { display: inline-block; margin-top: 28px; border: 2px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 8px 18px; font-family: var(--head); letter-spacing: .1em; }
@media (max-width: 720px) { .hero .halal { position: static; display: inline-block; margin-top: 24px; } }

section.block { padding: 64px 0; }
.section-title { font-size: clamp(30px, 4vw, 44px); }
.lede { color: var(--muted); max-width: 60ch; }

/* Branch cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.branch h3 { font-size: 26px; margin-bottom: 4px; }
.branch .addr { color: var(--muted); font-size: 14px; min-height: 2.6em; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #eee; }
.pill.open { background: #e3f3ea; color: var(--ok); }
.pill.closed { background: #f6e3e3; color: var(--red-dark); }
.pill.soon { background: #fdf1d8; color: #8a5a00; }
.branch .btn { margin-top: 14px; padding: 10px 18px; font-size: 14px; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.story .panel { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 36px; font-family: var(--head); font-size: 28px; text-transform: uppercase; line-height: 1.2; }
.story .panel span { color: var(--gold); }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } }

.loyalty { background: var(--red); color: #fff; border-radius: var(--radius); padding: 36px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.loyalty .btn { background: #fff; color: var(--red); }

.basket-btn[hidden] { display: none; }
.soon-banner { display: inline-block; margin-top: 18px; background: #fdf1d8; color: #8a5a00; border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: 14px; }
.menu-head .soon-banner { border-radius: 12px; }
.branch .menu-btn { color: var(--ink); }
.soon-note { margin-top: 8px; font-size: 13px; font-weight: 600; color: #8a5a00; }
.item.browse { cursor: default; }
.legal { max-width: 760px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.sel { user-select: all; word-break: break-all; }
.site-foot a { color: #ddd; }
.site-foot .links a { margin-right: 14px; display: inline-block; }
.site-foot { background: var(--ink); color: #bbb; padding: 40px 0; font-size: 14px; margin-top: 40px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Menu page */
.menu-head { background: var(--ink); color: #fff; padding: 36px 0 20px; }
.menu-head .meta { opacity: .8; font-size: 14px; }
.menu-head select { font: inherit; padding: 6px 10px; border-radius: 8px; }
.cat-nav { position: sticky; top: 64px; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 10; }
.cat-nav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.cat-nav a { white-space: nowrap; text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.menu-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding-top: 24px; }
@media (max-width: 900px) { .menu-layout { grid-template-columns: 1fr; } .side-basket { display: none; } }
.menu-cat { scroll-margin-top: 130px; margin-bottom: 28px; }
.menu-cat h2 { font-size: 28px; }
.item { display: flex; justify-content: space-between; gap: 16px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; cursor: pointer; }
.item:hover { border-color: var(--red); }
.item h3 { font-family: var(--body); text-transform: none; font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.item p { margin: 0; color: var(--muted); font-size: 14px; }
.item .price { font-weight: 700; white-space: nowrap; }
.item .item-img { width: 110px; height: 82px; object-fit: cover; border-radius: 10px; flex: none; align-self: center; }
@media (max-width: 600px) { .item .item-img { width: 84px; height: 63px; } }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-right: 4px; text-transform: uppercase; }
.tag.spicy { background: #fde3e3; color: var(--red-dark); }
.tag.v { background: #e3f3ea; color: var(--ok); }
.tag.popular { background: #fdf1d8; color: #8a5a00; }
.add { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0; align-self: center; }

.side-basket { position: sticky; top: 140px; align-self: start; }
.basket-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.basket-line .opt { color: var(--muted); font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.totals { display: flex; justify-content: space-between; font-weight: 700; padding: 14px 0; font-size: 17px; }
.empty { color: var(--muted); font-size: 14px; padding: 16px 0; }

/* In-restaurant (QR) banner */
.here-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; background: var(--gold); color: var(--ink); border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.here-banner .tag-here { font-family: var(--head); font-size: 20px; text-transform: uppercase; background: var(--ink); color: #fff; border-radius: 8px; padding: 2px 12px; }

/* Eat in / take away choice */
.otype { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.otype legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.ochoice { display: flex; gap: 10px; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; cursor: pointer; }
.ochoice small { display: block; color: var(--muted); font-size: 13px; }
.ochoice:has(input:checked) { border-color: var(--red); background: #fff6f7; }
.ochoice input { accent-color: var(--red); width: 18px; height: 18px; }
.otag { display: inline-block; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; border-radius: 8px; padding: 2px 14px; margin-bottom: 10px; }
.otag.eat_in { background: var(--gold); color: var(--ink); }
.otag.take_away { background: var(--ink); color: #fff; }

/* Mobile basket bar */
.mobile-bar { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; }
@media (max-width: 900px) { .mobile-bar.show { display: block; } }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius); width: 100%; max-width: 440px; padding: 24px; max-height: 90vh; overflow: auto; }
.modal h3 { font-family: var(--body); text-transform: none; font-size: 21px; }
.choice { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--red); background: #fff6f7; }
.modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; }
.modal .row { display: flex; gap: 10px; align-items: center; margin-top: 16px; }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding-top: 32px; padding-bottom: 32px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
label.f { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
label.f input, label.f select { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.note { background: #fdf1d8; border-radius: 10px; padding: 12px 14px; font-size: 14px; color: #6a4700; }
.err { color: var(--red-dark); font-size: 14px; }

/* Tracker */
.tracker { max-width: 560px; margin: 40px auto; text-align: center; }
.order-no { font-family: var(--head); font-size: 56px; color: var(--red); }

/* ---------- Older browsers (Chrome < 84, e.g. SUNMI tills): spacing without flex "gap" ---------- */
/* Grid spacing: older Chrome only understands "grid-gap". */
.grid { grid-gap: 16px; } .story { grid-gap: 40px; } .menu-layout { grid-gap: 28px; } .checkout { grid-gap: 28px; } .otype { grid-gap: 10px; }
.no-flexgap .nav > * + * { margin-left: 22px; }
.no-flexgap .logo .mark { margin-right: 10px; }
.no-flexgap .basket-btn .count { margin-left: 8px; }
.no-flexgap .hero .ctas > * { margin: 0 12px 12px 0; }
.no-flexgap .site-foot .wrap > * { margin: 0 20px 12px 0; }
.no-flexgap .cat-nav .wrap > * + * { margin-left: 8px; }
.no-flexgap .item > * + * { margin-left: 16px; }
.no-flexgap .basket-line > * + * { margin-left: 10px; }
.no-flexgap .qty > * + * { margin-left: 8px; }
.no-flexgap .modal .row > * + * { margin-left: 10px; }
.no-flexgap .here-banner > * { margin: 0 14px 6px 0; }
.no-flexgap .ochoice > * + * { margin-left: 10px; }
.no-flexgap .site-head .wrap > * + * { margin-left: 16px; }

/* ---------- Chrome 56 (SUNMI tills): no CSS grid, no "inset" ---------- */
.modal-bg { top: 0; right: 0; bottom: 0; left: 0; }
.no-grid .modal-bg, .no-grid .basket-btn .count, .no-grid .logo .mark { display: -webkit-flex; display: flex; align-items: center; justify-content: center; }
.no-grid .grid { display: flex; flex-wrap: wrap; }
.no-grid .grid > * { width: calc(33.333% - 16px); margin: 0 16px 16px 0; }
.no-grid .story, .no-grid .menu-layout, .no-grid .checkout { display: flex; }
.no-grid .story > *, .no-grid .menu-layout > :first-child, .no-grid .checkout > :first-child { flex: 1; min-width: 0; }
.no-grid .story > * + * { margin-left: 40px; }
.no-grid .side-basket { width: 340px; margin-left: 28px; flex-shrink: 0; }
.no-grid .checkout > aside { width: 360px; margin-left: 28px; flex-shrink: 0; }
.no-grid .otype { display: flex; }
.no-grid .otype > label { flex: 1; } .no-grid .otype > label + label { margin-left: 10px; }
@media (max-width: 900px) {
  .no-grid .menu-layout, .no-grid .checkout, .no-grid .story { display: block; }
  .no-grid .checkout > aside { width: auto; margin: 20px 0 0; }
  .no-grid .grid > * { width: calc(50% - 16px); }
}

/* Noodle Club on the website */
.mprice { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 700; color: #8a5a00; background: #fff3cf; padding: 2px 8px; border-radius: 999px; }
.club-on, .club-off { margin: 18px 0 0; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.club-on { background: #fff3cf; color: #6b4700; }
.club-off { background: #f4f1ec; }

/* Allergen symbols (from the signed allergen chart) */
.alg { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.alg img { width: 20px; height: 20px; }
.alg-full { margin: 0 0 8px; padding: 10px 12px; background: #f6f3ee; border-radius: 12px; font-size: 14px; }
.alg-full .alg { margin: 0 0 6px; }
.alg-full .alg img { width: 28px; height: 28px; }
.alg-full small { display: block; margin-top: 4px; color: var(--muted); }
.alg-unknown { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.club-gift { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdf1d8; color: #8a5a00; font-size: 14px; }
