/* Big Bites — one warm look in light and dark, taken from the paper menu:
   orange page, cream cards, deep red banners. Every text colour passes the 4.5:1 contrast check. */
:root {
  --bg: #F28A2E;       /* warm orange page */
  --on-bg: #2B1405;    /* text straight on orange (7.0:1) */
  --on-bg-soft: #4A2410; /* smaller text on orange (5.5:1) */
  --card: #FFF7EE;     /* cream cards and sheets */
  --field: #FFFFFF;    /* inputs inside cards */
  --ink: #2B1405;      /* text on cream (16:1) */
  --muted: #6B4430;    /* secondary text on cream (7.9:1) */
  --line: #F1D9C2;
  --red: #9A1C1C;      /* banners, prices, buttons (white on it 8.2:1) */
  --yellow: #F6C21C;
  --orange: #E8832A;
  --green: #1E6B22;
  --shadow: 0 2px 8px rgba(90, 35, 0, .18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 96px;
}
button, select, input, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.top {
  background: var(--bg); color: var(--on-bg); border-bottom: 2px solid rgba(43, 20, 5, .15); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo {
  display: flex; flex-direction: column; line-height: .85; font-weight: 900; font-size: 22px;
  color: var(--yellow); text-shadow: 2px 2px 0 #7A1414; letter-spacing: .5px; transform: rotate(-4deg);
}
.tagline { margin: 0; font-weight: 700; font-size: 14px; color: var(--on-bg); }
.halal {
  display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700;
  background: var(--field); color: var(--green); border-radius: 99px; padding: 1px 8px;
}
.halal[hidden] { display: none; }
.busynote { margin: 10px max(16px, calc((100% - 728px) / 2)) 0; padding: 10px 14px; border-radius: 12px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 15px; }
.busynote[hidden], .oready[hidden] { display: none; }
.oready { margin: 4px 0 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.lang select {
  background: var(--field); color: var(--ink); border: 0; border-radius: 10px; padding: 8px 10px; font-size: 14px;
}

/* Category tabs */
.tabs {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 16px; background: var(--bg); border-bottom: 1px solid rgba(43, 20, 5, .15); scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; text-decoration: none; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: 14px;
}
.tabs a.on { background: var(--red); color: #fff; border-color: var(--red); }

/* Menu */
main { max-width: 760px; margin: 0 auto; padding: 0 16px; }
/* Section titles look like the red banners on the paper menu. */
section h2 {
  display: inline-block; margin: 22px 0 10px; padding: 4px 16px; border-radius: 99px;
  font-size: 19px; color: #fff; background: var(--red); scroll-margin-top: 64px;
}
.item {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px;
  box-shadow: var(--shadow); cursor: pointer;
}
.item:active { transform: scale(.99); }
.item h3 { margin: 0; font-size: 16px; }
.item .txt, .sheet-head .txt { flex: 1; min-width: 0; }
.thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #fff; }
.thumb.big { width: 88px; height: 88px; border-radius: 14px; }
.logo-img { display: block; width: 120px; height: auto; filter: drop-shadow(0 2px 2px rgba(0,0,0,.15)); }
.logo-img[hidden] { display: none; }
/* A shop without a logo yet shows its name instead */
.logo-text { display: block; max-width: 160px; font-weight: 900; font-size: 22px; line-height: 1.05; color: var(--on-bg); }
.item p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.price { font-weight: 800; white-space: nowrap; color: var(--red); }
.price small { font-weight: 500; color: var(--muted); margin-right: 3px; }
.tag { font-size: 11px; font-weight: 700; color: var(--green); margin-left: 6px; }

.foot { max-width: 760px; margin: 24px auto 0; padding: 0 16px; color: var(--on-bg); font-size: 13px; }

/* Bottom order bar */
.cartbar {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 10;
  max-width: 728px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--red); color: #fff; border: 0; border-radius: 16px; padding: 14px 18px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer;
}
.cartbar[hidden] { display: none; }
.count { background: var(--yellow); color: var(--ink); border-radius: 99px; min-width: 26px; padding: 1px 8px; text-align: center; }

/* Sheets (item options + order) */
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; margin: auto auto 0; padding: 0; border: 0;
  border-radius: 20px 20px 0 0; background: var(--card); color: var(--ink);
}
@media (min-width: 600px) { .sheet { margin: auto; border-radius: 20px; } }
.sheet::backdrop { background: rgba(20, 10, 5, .55); }
.sheet-head { position: sticky; top: 0; z-index: 1; background: var(--card); padding: 16px 16px 8px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-head h3 { margin: 0; font-size: 19px; }
.sheet-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.sheet-body { padding: 4px 16px 16px; }
fieldset { border: 0; padding: 0; margin: 14px 0 0; }
legend { font-weight: 700; margin-bottom: 6px; }
legend em { font-weight: 400; color: var(--muted); font-style: normal; font-size: 13px; margin-left: 6px; }
.opt {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 6px; cursor: pointer;
}
.opt:has(input:checked) { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, transparent); }
.opt input { accent-color: var(--red); width: 18px; height: 18px; }
.opt span { flex: 1; }
.opt b { font-weight: 600; color: var(--muted); font-size: 14px; }
.slot { display: grid; gap: 6px; }
.slot select, textarea {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--field);
}
textarea { min-height: 60px; resize: vertical; }
.note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.sheet-foot {
  position: sticky; bottom: 0; background: var(--card); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center;
}
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; }
.qty button { background: none; border: 0; width: 40px; height: 44px; font-size: 20px; cursor: pointer; }
.qty output { min-width: 22px; text-align: center; font-weight: 700; }
.go {
  flex: 1; background: var(--red); color: #fff; border: 0; border-radius: 12px; height: 46px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; padding: 0 16px;
}
.go:disabled { opacity: .45; cursor: not-allowed; }

/* Order list */
.line { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line h4 { margin: 0; font-size: 15px; }
.line p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.line .rm { background: none; border: 0; color: var(--red); font-size: 13px; padding: 4px 0 0; cursor: pointer; text-decoration: underline; }
.sum { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; padding: 14px 0 4px; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; transition: .25s;
  background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 99px; font-size: 14px; pointer-events: none; z-index: 20;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.demo-link a { color: var(--on-bg); font-weight: 800; }

/* Open / closed badge and the hours list */
.openbadge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--green); color: #fff; }
.openbadge.closed { background: var(--red); }
.openbadge:empty { display: none; }
.hours { background: var(--card); color: var(--ink); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.hours h2 { font-size: 15px; margin: 0 0 6px; }
.hours dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 0; font-variant-numeric: tabular-nums; }
.hours dt { font-weight: 600; }
.hours dt::first-letter { text-transform: uppercase; }
.hours dd { margin: 0; }

/* Specials & offers */
.tag.offer, .tag.new { padding: 1px 6px; border-radius: 999px; }
.tag.offer { background: var(--red); color: #fff; }
.tag.new { background: var(--yellow); color: var(--ink); }
.price s, .opt b s { color: var(--muted); font-weight: 400; font-size: .85em; }
.item .ends { margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--red); }

/* Choosing options: one section per decision */
.section { margin-top: 18px; scroll-margin-top: 60px; border-radius: 12px; }
.sec { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; width: 100%; padding: 0; margin-bottom: 8px; }
.sec span { font-size: 16px; }
.sec small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
legend .pill { margin: 0; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line); color: var(--ink); white-space: nowrap; }
legend .pill.req { background: var(--ink); color: #fff; }
legend .pill.ok { background: var(--green); color: #fff; }
.opt.count { cursor: default; padding: 6px 8px 6px 12px; }
.opt.count.on { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, transparent); }
.steps { display: flex; align-items: center; gap: 4px; }
.steps button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font-size: 20px; cursor: pointer; }
.steps button:disabled { opacity: .35; cursor: default; }
.steps output { min-width: 22px; text-align: center; font-weight: 700; }
.go.dim { opacity: .6; }
.section.flash { animation: flash 1.1s ease-out; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--red); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .section.flash { animation: none; outline: 3px solid var(--red); } }

/* Menu rows: words left, photo right with a + */
.searchbar { max-width: 760px; margin: 8px auto 0; padding: 0 16px; }
.searchbar input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--field); color: var(--ink); font-size: 16px; }
.noresults { text-align: center; color: var(--on-bg); font-weight: 700; padding: 24px 16px; }
.noresults[hidden], .item[hidden], #menu section[hidden] { display: none; }
.item { align-items: flex-start; }
.item .price { display: block; margin-top: 2px; }
.pic { position: relative; flex: none; width: 96px; height: 96px; }
.pic.none { height: 40px; width: 40px; }
.pic .thumb { width: 96px; height: 96px; }
.plus {
  position: absolute; right: -4px; bottom: -4px; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 99px; display: flex; align-items: center; justify-content: center;
  background: var(--field); color: var(--ink); font-size: 20px; font-weight: 700; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.plus.has { background: var(--red); color: #fff; border-color: var(--red); font-size: 15px; }

/* Item page: full screen on a phone, big photo first */
@media (max-width: 599px) { .sheet { margin: 0; max-width: 100%; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; } }
.closebar { position: sticky; top: 10px; height: 0; z-index: 3; padding-left: 12px; }
.x.round { width: 40px; height: 40px; border-radius: 50%; background: var(--field); color: var(--ink); box-shadow: var(--shadow); padding: 0; }
.hero { display: block; width: 100%; height: 240px; object-fit: contain; background: #fff; }
.nohero { height: 58px; }
.item-head { padding: 14px 16px 0; }
.item-head h3 { margin: 0; font-size: 22px; }
.item-head .price { margin: 4px 0 0; font-size: 17px; }
.item-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.item-head p.price { color: var(--red); }
#sheet { overflow-y: auto; }

/* Basket */
.line { display: flex; align-items: flex-start; gap: 10px; }
.ltxt { flex: 1; min-width: 0; }
.addmore { display: block; background: none; border: 0; padding: 12px 0 2px; color: var(--red); font-weight: 700; font-size: 15px; cursor: pointer; }
.also { margin: 16px 0 8px; font-size: 16px; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; }
.mini { position: relative; flex: none; width: 118px; min-height: 84px; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); cursor: pointer; font-size: 13px; }
.mini b { padding-right: 26px; }
.mini .plus { top: 6px; right: 6px; bottom: auto; min-width: 26px; height: 26px; font-size: 16px; padding: 0; }

/* Phone header: logo, then Halal + open badge, then language, all on one row */
.openbadge { white-space: nowrap; }
.nowrap { white-space: nowrap; }
@media (max-width: 599px) {
  .tagline { display: none; }
  .brand { gap: 8px; }
  .logo-img { width: 92px; }
  .brand > div { min-width: 0; }
  /* May wrap to two lines ("last orders" is long in some languages) rather than slide under the language menu */
  .openbadge { display: inline-block; max-width: 100%; margin: 4px 0 0; font-size: 11px; white-space: normal; border-radius: 10px; }
  .lang select { max-width: 104px; }
}
/* Add/Continue button always sits at the bottom of the screen */
#sheetform, #cartbody { display: flex; flex-direction: column; min-height: 100%; }
#sheetform > .hero, #sheetform > .item-head { flex: none; }
.sheet-body { flex: 1; }
.sheet-foot { margin-top: auto; }

/* Extras on each thing inside a deal */
.pickx { margin: 6px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pickbtn { width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--field); border: 0; color: var(--ink); cursor: pointer; font-size: 14px; text-align: left; }
.pickbtn b { color: var(--red); white-space: nowrap; }
.pickgroup { padding: 4px 10px; }
.pickgroup h5 { margin: 8px 0 6px; font-size: 14px; }
.hours p { margin: 6px 0 0; }
.hours a { color: var(--ink); font-weight: 700; }

/* Checkout */
.checkout { display: flex; flex-direction: column; flex: 1; }
.field { display: grid; gap: 4px; margin: 10px 0; font-weight: 600; font-size: 14px; }
.field input { width: 100%; padding: 12px; border: 1px solid var(--muted); border-radius: 12px; background: var(--field); font-size: 16px; }
.formmsg { margin: 8px 0 0; color: var(--red); font-weight: 700; }
.formmsg:empty { display: none; }
.collect { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--line); font-weight: 600; font-size: 14px; }
.thanks { text-align: center; padding-top: 32px; }
.thanks h3 { margin: 0 0 12px; font-size: 24px; }
.orderno { margin: 4px 0 16px; font-size: 48px; font-weight: 800; color: var(--red); }

/* Customer's order page */
.owrap { max-width: 560px; margin: 0 auto; padding: 8px 16px 32px; }
.otitle { margin: 4px 0 12px; font-size: 22px; color: var(--on-bg); }
.ocard { padding: 20px 16px; border-radius: 16px; background: var(--card); color: var(--ink); border-top: 8px solid var(--line); }
.ocard.tone-wait { border-top-color: var(--yellow); }
.ocard.tone-go, .ocard.tone-done { border-top-color: var(--green); }
.ocard.tone-bad { border-top-color: var(--red); }
.ocard h2 { margin: 10px 0 6px; padding: 0; border-radius: 0; background: none; color: var(--ink); font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.onum { font-size: 15px; font-weight: 700; color: var(--muted); }
.onum[hidden], .ometa[hidden], .osteps[hidden], .ohelp[hidden], .olost[hidden], .ocall[hidden], .trackbar[hidden] { display: none; }
.onum b { font-size: 34px; font-weight: 900; color: var(--red); margin-left: 4px; vertical-align: -3px; }
.ometa { margin: 0; color: var(--muted); font-weight: 600; }
.osteps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 13px; font-weight: 700; color: var(--muted); }
.osteps li { padding-top: 10px; border-top: 6px solid var(--line); overflow-wrap: anywhere; }
.osteps li.past { border-top-color: var(--green); }
.osteps li.now { border-top-color: var(--green); color: var(--ink); font-weight: 900; }
.ohelp { margin: 16px 0 0; color: var(--muted); }
.ocall { display: inline-block; margin-top: 10px; font-size: 20px; font-weight: 800; color: var(--red); }
.olost { margin: 12px 0 0; padding: 12px; border-radius: 10px; background: var(--ink); color: var(--card); font-weight: 700; }
.oback { display: inline-block; margin-top: 16px; padding: 12px 0; color: var(--on-bg); font-weight: 800; }
.trackbar { display: block; margin: 0 14px 8px; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: var(--card); font-weight: 800; text-decoration: none; }
.thanksfoot { flex-direction: column; align-items: stretch; gap: 8px; }
.thanksfoot .go { flex: none; margin: 0; justify-content: center; text-align: center; text-decoration: none; }

/* The web address names a shop that doesn't exist (or the server can't be reached on a first visit) */
.noshopmsg { display: none; }
body.noshop > *:not(.noshopmsg) { display: none !important; }
body.noshop .noshopmsg { display: block; margin: 40px 16px; padding: 16px; background: var(--card); color: var(--ink); border-radius: 14px; font-weight: 700; }
.notfound { max-width: 480px; margin: 60px auto; padding: 24px 16px; text-align: center; }
.notfound a { color: inherit; font-weight: 700; }
