/* Marid Brand Guideline (2021): red #DC252F, coffee brown #5F3D27, white; maroon #520F0B, blush #F9E2DB, cream #FFF8ED.
   Lama Sans for everything, Nephilm (English) and HSN Sara (Arabic) for headings and the big order number. */
@font-face { font-family: 'Lama Sans'; src: url('/o/fonts/LamaSans-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lama Sans'; src: url('/o/fonts/LamaSans-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nephilm'; src: url('/o/fonts/Nephilm.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'HSN Sara'; src: url('/o/fonts/HSNSara.ttf') format('truetype'); font-display: swap; }
:root {
  --ink: #5F3D27; --red: #DC252F; --sand: #FFF8ED; --paper: #FFFFFF; --line: #EBDCCB; --muted: #8A7060; --danger: #520F0B; --ok: #4A7A3D;
  --blush: #F9E2DB; --radius: 12px; --display: 'Nephilm', 'HSN Sara', 'Lama Sans', serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--sand); color: var(--ink); font: 17px/1.45 "Lama Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif; }
body { padding-bottom: 96px; }
button { font: inherit; color: inherit; border-radius: 0; cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.flame { width: 28px; height: 28px; object-fit: contain; }
.brand { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.brand span { font-size: 13px; color: var(--muted); }
.link { background: none; border: 0; padding: 8px 4px; font-size: 15px; }
.chips { position: sticky; top: 61px; z-index: 4; display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; background: var(--sand); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; background: var(--paper); border: 1px solid var(--ink); font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 4px 16px 16px; }
.item { display: flex; flex-direction: column; text-align: start; background: var(--paper); border: 1px solid var(--line); padding: 0; }
.item .pic { aspect-ratio: 1 / 1; width: 100%; background: var(--sand) center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #d9d4c8; font-weight: 700; }
.item .txt { padding: 10px 12px 12px; }
.item .name { font-weight: 600; }
.item .price { color: var(--muted); margin-top: 4px; font-size: 14px; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); z-index: 6; }
.primary { display: block; width: 100%; padding: 16px; background: var(--red); color: #fff; border: 0; font-weight: 700; font-size: 17px; }
.primary:disabled { opacity: .45; }
.secondary { display: block; width: 100%; padding: 14px; background: var(--paper); border: 1px solid var(--ink); font-weight: 600; margin-top: 10px; }
.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.sheet-body { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--paper); padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
.sheet h2 { margin: 0 0 4px; font-size: 22px; }
.group { margin-top: 18px; }
.group h3 { margin: 0 0 8px; font-size: 15px; display: flex; justify-content: space-between; }
.group h3 small { color: var(--muted); font-weight: 400; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; background: var(--paper); border: 1px solid var(--line); margin-top: -1px; text-align: start; }
.opt.on { border-color: var(--ink); background: var(--sand); position: relative; }
.opt .mark { width: 20px; height: 20px; border: 2px solid var(--ink); flex: none; }
.opt.round .mark { border-radius: 50%; }
.opt.on .mark { background: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
.opt .n { flex: 1; }
.opt .d { color: var(--muted); font-size: 14px; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 40px; height: 40px; border: 1px solid var(--ink); background: var(--paper); font-size: 20px; }
.qty span { min-width: 32px; text-align: center; font-weight: 700; }
.row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.row .grow { flex: 1; }
.line { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .grow { flex: 1; }
.line .mods { color: var(--muted); font-size: 13px; }
.totals { margin-top: 12px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .big { font-weight: 700; font-size: 19px; }
.note { margin: 14px 0; padding: 12px; background: var(--sand); font-size: 14px; }
input[type=text], input[type=tel], input[type=email] { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 0; font: inherit; margin-top: 12px; }
.status { padding: 32px 16px; text-align: center; }
.status .num { font-size: 56px; font-weight: 800; margin: 8px 0; }
.status .msg { font-size: 19px; font-weight: 600; margin: 12px 0 4px; }
.status .pay { background: var(--paper); border: 2px solid var(--red); padding: 16px; margin: 18px 0; }
.status ul { list-style: none; padding: 0; margin: 16px 0; color: var(--muted); }
.steps { display: flex; justify-content: center; gap: 6px; margin: 18px 0; }
.steps i { width: 44px; height: 6px; background: var(--line); }
.steps i.on { background: var(--ink); }
.err { color: var(--danger); margin-top: 10px; }
.mine { margin: 0 16px 8px; }
.status .pay .big { font-size: 26px; font-weight: 800; }

/* brand touches: rounded, friendly, the logo and slogan */
.chip, .item, .primary, .secondary, .opt, .qty button, input[type=text], input[type=tel], input[type=email], .note, .status .pay, .sheet-body { border-radius: var(--radius); }
.opt { margin-top: 6px; border-radius: var(--radius); }
.chip { border-radius: 999px; border-color: var(--line); }
.chip.on { background: var(--ink); border-color: var(--ink); }
.item { overflow: hidden; }
.item .pic { color: var(--blush); background-color: var(--blush); }
.sheet-body { border-radius: 20px 20px 0 0; }
.primary { border-radius: 999px; }
.secondary { border-radius: 999px; border-color: var(--line); }
.brand strong { font-family: var(--display); font-weight: 400; font-size: 21px; }
.flame { width: 34px; height: 34px; }
.sheet h2, .status .num { font-family: var(--display); font-weight: 400; }
.status .num { font-size: 72px; color: var(--ink); }
.steps i { border-radius: 3px; }
.steps i.on { background: var(--red); }
.welcome { text-align: center; padding: 28px 16px 8px; background: url('/o/pattern.jpg') center / cover; }
.welcome .slogan { height: 34px; max-width: 80%; }
.item .pic { color: #D9B9AC; }
.welcome { border-bottom: 1px solid var(--line); }
.welcome { background: linear-gradient(rgba(255,248,237,.86), rgba(255,248,237,.86)), url("/o/pattern.jpg") center / 420px auto repeat; padding: 22px 16px; }
.welcome .slogan { height: 40px; }
.row2 { display: flex; gap: 8px; }
.row2 input { flex: 1; min-width: 0; }

/* "Add something?": the café's suggestions in the cart */
.sugs { margin: 14px 0 4px; }
.sugs h3 { margin: 0 0 8px; font-size: 16px; }
.sugs .row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.sug { flex: 0 0 120px; text-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; }
.sug .pic { height: 74px; background: var(--sand, #f3eadf) center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--muted); }
.sug .n { font-weight: 700; font-size: 13px; padding: 6px 8px 0; }
.sug .p { color: var(--muted); font-size: 12px; padding: 0 8px 8px; }
