/* Customer screen, laid out like the printed Ateej menu: logo and Arabic motto,
   bilingual section heads, names in Fraunces with Arabic in Amiri beneath,
   prices in palm, hairline sand rules and lots of open cream space. */
body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
main { max-width: 560px; margin: 0 auto; padding: 0 20px; }

.top { text-align: center; padding: 26px 20px 0; }
.wordmark { margin: 0; line-height: 0; }
.wordmark .logo { width: min(280px, 74vw); margin: 0 auto; }
.motto { font-family: var(--arabic); font-size: 30px; color: var(--oud); margin: 12px 0 0; line-height: 1.5; }
.motto::after { content: ""; display: block; width: 44px; height: 2px; margin: 10px auto 0; background: var(--sand); border-radius: 2px; }
.where { margin: 18px 0 0; font-family: var(--serif); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

.banner { max-width: 560px; margin: 14px auto 0; padding: 0 20px; }
.banner > * {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border-radius: var(--radius); padding: 14px 16px; border: 0; background: var(--burgundy); color: var(--cream); font-weight: 500;
}
.banner .num { font-size: 22px; font-weight: 600; }
.banner .closed { background: var(--tint); color: var(--muted); box-shadow: none; font-size: 13px; justify-content: center; text-align: center; }

.notice {
  position: sticky; top: 8px; z-index: 30; max-width: 520px; margin: 10px auto 0; width: calc(100% - 40px);
  background: var(--wine); color: var(--cream); padding: 14px 16px; border-radius: var(--radius); font-weight: 500;
}
.notice ul { margin: 0; padding-left: 18px; }
.notice button { margin-top: 8px; background: none; border: 0; color: var(--cream); text-decoration: underline; font-weight: 600; padding: 4px 0; }

/* Menu rhythm */
.rule { border: 0; border-top: 1px solid var(--sand-light); margin: 0; }
.cols-head { display: flex; justify-content: flex-end; gap: 12px; padding: 12px 0; }
.cols-head span, .size-label { width: 64px; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.size-label { display: block; margin-bottom: 4px; }

.burger { padding: 24px 0; border-top: 1px solid var(--sand-light); }
.sec-head + .burger, .sec-head + .line-row { border-top: 0; }
.burger-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.burger-name { margin: 0; font-family: var(--script); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--burgundy); }
.burger-desc { margin: 10px 0 0; font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.5; max-width: 34ch; }
.sizes { display: flex; gap: 12px; }
.size { width: 64px; text-align: center; }
.size .price { display: block; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--majlis); margin-bottom: 8px; white-space: nowrap; }
.price small { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.size .burger-svg { width: 50px; height: auto; display: block; margin: 0 auto; }
.size .burger-svg * { vector-effect: non-scaling-stroke; stroke-width: 2px; }
.size.out .burger-svg { opacity: .35; }
.size.out .price { opacity: 1; }
.burger .btn { margin-top: 20px; }
.burger.soldout .burger-name, .burger.soldout .burger-desc { color: var(--muted); }
.burger.soldout .burger-svg { opacity: .35; }
.badge { display: inline-block; margin-top: 18px; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; background: var(--burgundy); color: var(--cream); padding: 6px 12px; border-radius: 999px; }

/* Single-line rows: Fries, Drinks */
.line-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 0; border-top: 1px solid var(--sand-light); }
.line-row h2 { margin: 0; font-family: var(--script); font-weight: 600; font-size: 24px; line-height: 1.15; }
.line-row .price { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--majlis); white-space: nowrap; }
.line-row.soldout h2 { color: var(--muted); }
.line-row .controls { display: flex; align-items: center; gap: 14px; }
.varieties { padding: 0 0 14px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; min-height: 64px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item-name { font-weight: 600; }
.item-name.caps-name { font-family: var(--script); font-size: 22px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.15; }
.item-sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.item.soldout .item-name { color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--burgundy); color: var(--cream);
  font-size: 26px; font-weight: 600; line-height: 1; display: grid; place-items: center;
}
.stepper button.minus { background: var(--tint-2); color: var(--burgundy); }
.stepper button:disabled { background: var(--tint-2); color: var(--muted); }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; font-size: 18px; }
.add-pill { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: transparent; color: var(--burgundy); box-shadow: inset 0 0 0 1.5px var(--burgundy); font-weight: 600; }

.menu-foot { border-top: 1px solid var(--sand-light); padding: 28px 0 8px; text-align: center; }
.foot-mark { width: 30px; margin: 0 auto 6px; opacity: .9; }
.fineprint { font-size: 12px; line-height: 1.55; margin: 16px 0 0; color: var(--muted); text-align: center; }
.fineprint a { color: var(--burgundy); font-weight: 600; }

/* Cart bar */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--cream) 70%, rgba(248, 244, 235, 0));
}
.cartbar .btn { max-width: 520px; margin: 0 auto; justify-content: space-between; min-height: 64px; font-size: 17px; }
.cartbar .count { background: var(--cream); color: var(--burgundy); border-radius: 999px; min-width: 32px; height: 32px; display: grid; place-items: center; font-weight: 600; padding: 0 8px; }

/* Sheet */
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-panel {
  background: var(--cream); width: 100%; max-width: 600px; margin: 0 auto; max-height: 94vh; border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column;
}
.sheet-panel.anim { animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.sheet-scroll { overflow-y: auto; padding: 8px 20px 12px; -webkit-overflow-scrolling: touch; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 0 20px; }
.close-x { width: 48px; height: 48px; border: 0; background: none; font-size: 30px; color: var(--burgundy); }
.sheet-hero { display: grid; grid-template-columns: 1fr 72px; gap: 14px; align-items: center; padding-bottom: 6px; }
.sheet-hero h2 { font-family: var(--script); font-weight: 600; font-size: 30px; line-height: 1.1; margin: 0; }
.sheet-hero .burger-svg { width: 64px; }
.base { color: var(--muted); font-size: 14px; margin: 10px 0 0; line-height: 1.5; }
.allergen { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 18px 0 6px; }
.seg button {
  min-height: 56px; border-radius: var(--radius); border: 0; background: transparent; box-shadow: inset 0 0 0 2px var(--line-strong);
  font-weight: 600; color: var(--burgundy); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; padding: 8px 6px;
}
.seg button small { font-weight: 500; font-size: 13px; letter-spacing: .02em; opacity: .85; }
.seg button[aria-pressed="true"] { background: var(--burgundy); color: var(--cream); box-shadow: none; }
.seg button:disabled { color: var(--muted); text-decoration: line-through; }
.group-label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin: 22px 0 6px; }
.opt {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left;
  min-height: 56px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--burgundy);
}
.opt .tick { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--burgundy); display: grid; place-items: center; color: var(--cream); font-weight: 600; }
.opt[aria-pressed="true"] .tick { background: var(--burgundy); }
.opt .opt-name { font-weight: 600; }
.opt.removed .opt-name { text-decoration: line-through; color: var(--muted); }
.opt .opt-meta { font-weight: 500; font-size: 14px; color: var(--muted); }
.opt:disabled { color: var(--muted); }
.opt:disabled .tick { box-shadow: inset 0 0 0 2px var(--muted); }
.sheet-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); }
.sheet-foot .row { display: flex; justify-content: center; margin-top: 4px; }

/* Checkout */
.page-head { display: flex; align-items: center; gap: 4px; padding: 10px 0 12px; border-bottom: 1px solid var(--sand-light); }
.page-head h2 { font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; margin: 0; }
.back { width: 48px; height: 48px; border: 0; background: none; font-size: 28px; color: var(--burgundy); margin-left: -12px; }
.line { padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-main { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; }
.line-title { font-family: var(--script); font-weight: 600; font-size: 19px; }
.line-title .sz { font-weight: 500; color: var(--muted); }
.line-price { font-weight: 600; }
.mods { list-style: none; margin: 4px 0 0; padding: 0; }
.mods li { font-weight: 500; font-size: 14px; color: var(--muted); }
.mods li span { font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.line-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.line-actions button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--tint-2); color: var(--burgundy); font-weight: 600; font-size: 14px; }
.line .stepper { margin-top: 8px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; font-weight: 600; font-size: 22px; border-top: 1px solid var(--line-strong); margin-top: -1px; }
.vat { font-size: 12px; color: var(--muted); margin: 0 0 6px; text-align: right; }
.fine { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0 0; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
.pay-wrap { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--cream); }

/* Status */
.status { text-align: center; padding: 8px 0 24px; }
.status .label { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; margin-top: 8px; }
.pickup-no { font-family: var(--serif); font-weight: 600; font-size: clamp(60px, 22vw, 150px); line-height: 1; letter-spacing: -0.02em; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.status h2 { font-family: var(--serif); font-size: 26px; margin: 8px 0; font-weight: 600; }
.status p { margin: 6px 0; }
.status.ready { background: var(--majlis); color: var(--cream); border-radius: 22px; padding: 26px 12px 28px; margin-top: 12px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 22px 0 6px; list-style: none; padding: 0; }
.steps li { font-size: 13px; font-weight: 500; color: var(--muted); padding-top: 10px; border-top: 5px solid var(--tint-2); }
.steps li.done { color: var(--burgundy); border-color: var(--burgundy); }
.status.ready .steps li { color: var(--cream-muted); border-color: rgba(248, 244, 235, .25); }
.status.ready .steps li.done { color: var(--cream); border-color: var(--cream); }
.checking { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0 10px; }
.checking .spinner { width: 44px; height: 44px; border-width: 4px; }
.receipt { text-align: left; margin-top: 22px; border-top: 1px solid var(--sand-light); }
.receipt .line:last-of-type { border-bottom: 0; }
.status .actions { display: grid; gap: 10px; margin-top: 18px; }

/* Remove is destructive: outlined, not filled like Edit */
.line-actions button[data-del] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--burgundy); }
.link { min-height: 44px; }
/* Cart count pulses when something is added (instead of a pop-up) */
.cartbar .count.pulse { animation: pulse .5s ease-out; }
@keyframes pulse { 40% { transform: scale(1.35); } }
/* Outside the menu, the logo steps back so the action has the space */
body:not([data-view="menu"]) .wordmark .logo { width: min(200px, 60vw); }
body:not([data-view="menu"]) .motto { display: none; }
body:not([data-view="menu"]) .where { display: none; }
body:not([data-view="menu"]) { padding-bottom: 24px; }
.banner > * + * { margin-top: 8px; }
.sheet-hero h2:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .spinner { border-right-color: currentColor; opacity: .5; } }


/* Arabic names: Amiri, coffee, sitting under the English name */
.name-ar { display: block; text-align: left; font-family: var(--arabic); font-size: 26px; line-height: 1.35; color: var(--oud); margin-top: 4px; }
.opt-name .name-ar { display: inline-block; font-family: var(--arabic-body); font-size: 15px; color: var(--muted); margin-left: 10px; }
.item .name-ar, .caps-name + .name-ar, .line-row .name-ar { font-size: 20px; margin-top: 2px; }

.seg.cups button { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.seg.cups .name-ar { text-align: center; font-family: var(--arabic-body); font-size: 15px; color: inherit; opacity: .85; }

/* Bilingual section heads, centred between palm marks like the printed menu */
.sec-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 40px 0 8px; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--oud); }
.sec-head::before, .sec-head::after { content: ""; width: 14px; height: 16px; background: url("/static/brand/mark-palm.svg") center / contain no-repeat; opacity: .9; }
.sec-head .ar { font-family: var(--arabic); font-size: 26px; font-weight: 400; }
.sec-head .dot { color: var(--sand); }
/* Arabic size labels under the English ones */
.size-ar { display: block; font-family: var(--arabic-body); font-size: 13px; letter-spacing: 0; text-transform: none; margin-top: 1px; }
.seg-name { display: flex; flex-direction: column; align-items: center; font-weight: 600; }
.seg button .size-ar, .seg.sweet .name-ar { font-family: var(--arabic-body); font-size: 14px; font-weight: 400; text-align: center; color: inherit; opacity: .85; margin: 0; }
.seg.sweet button { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* Tags (House, Best Seller) and Arabic descriptions, as on the printed menu */
.tag-house { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--sand); font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.desc-ar { margin: 4px 0 0; font-family: var(--arabic-body); font-size: 14px; line-height: 1.6; color: var(--muted); text-align: left; }
.row-name { margin: 0; font-family: var(--script); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--burgundy); }
.line-row .burger-desc { margin-top: 6px; }
.line-row { align-items: start; }
.line-row .controls { padding-top: 2px; }

/* Arabic on order lines and status steps; wait cue */
.line-ar { display: block; font-family: var(--arabic-body); font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 2px; text-align: left; }
.steps li span { display: block; font-family: var(--arabic-body); font-size: 12px; font-weight: 400; margin-top: 2px; }
.status .wait { font-family: var(--serif); font-weight: 600; font-size: 18px; margin: 14px 0 4px; }
.status .where-to { color: var(--muted); font-size: 14px; margin: 0; }

/* One calm "add" pattern for every product: an outlined pill on the right.
   Filled coffee is kept for the cart bar and Pay only. */
.pick { display: block; margin: 14px 0 0 auto; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: transparent; color: var(--oud); box-shadow: inset 0 0 0 1.5px var(--oud); font-weight: 600; font-size: 15px; }
.pick:active { background: var(--tint-2); }
/* Sold out reads as a state, not a button */
.badge { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); letter-spacing: .08em; }
.burger .badge { display: block; width: max-content; margin: 14px 0 0 auto; }

.notice-ar { display: block; font-family: var(--arabic-body); font-size: 15px; margin-top: 2px; opacity: .92; }

/* One icon per item, centred under its prices */
.burger .side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.burger .ill .burger-svg { width: 52px; height: auto; display: block; }
.burger.soldout .ill { opacity: .35; }
/* Keep each language of a section head on one line; wrap as whole halves only */
.sec-head { flex-wrap: wrap; row-gap: 2px; text-align: center; }
.sec-head .en, .sec-head .ar { white-space: nowrap; }
@media (max-width: 380px) { .sec-head { font-size: 20px; } .sec-head .ar { font-size: 23px; } }

/* Optional guest name on the order page */
.name-field { display: block; padding: 16px 0 6px; }
.name-field > span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.name-field small { font-size: 12px; font-weight: 400; }
.name-field input { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--oud); }
.name-field input:focus { outline: 2px solid var(--oud); outline-offset: 1px; }

/* Platform credit: small and quiet, under the Ateej footer */
.powered { margin: 18px 0 0; font-size: 11px; letter-spacing: .06em; color: var(--muted); text-align: center; }
.powered a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
