/* Direct Order storefront. Mobile first; per-store --accent / --soft are set on <html>. */
:root {
  --bg: #FAF8F4;
  --card: #FFFFFF;
  --ink: #1C1A17;
  --ink-2: #2E2A25;
  --muted: #4A453E;
  --muted-2: #6A645C;
  --line: #ECE7DF;
  --line-2: #F1ECE4;
  --field: #DDD6CB;
  --ctl: #E4DED4;
  --ring: #B8B0A4;
  --card-border: #EFEAE2;
  --danger: #B3261E;
  --amber: #E9A23B;
  --accent: #0E5A43;
  --soft: #E3EFE8;
  --font-head: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow-1: 0 1px 2px rgba(28, 26, 23, 0.06);
  --lh: 1.4;
  color-scheme: light;
}
/* Arabic pages: IBM Plex Sans Arabic for everything (bold for headings) and roomier lines. */
html[lang="ar"] {
  --font-head: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --lh: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.sheet-open { overflow: hidden; }
h1, h2, h3 { font-family: var(--font-head); }
p { margin: 0; }
a { color: var(--ink); }
a:hover { color: #000; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
/* Directional icons (back chevron, arrows) point the other way on right-to-left pages. */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
/* Numbers that must read left to right inside Arabic text (phone input etc.). */
.ltr-input { direction: ltr; text-align: start; }
[dir="rtl"] .ltr-input { text-align: right; }

/* Language toggle: "English" on Arabic pages, "العربية" on English pages. */
.lang-switch {
  flex: none; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-1);
  font-family: 'IBM Plex Sans Arabic', 'Instrument Sans', system-ui, sans-serif;
}
.lang-switch:hover { color: var(--ink); }
.lang-switch[lang="en"] { font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.store-lang { align-self: flex-start; margin-inline-start: auto; }
.muted { color: var(--muted); }
.hint { font-size: 12px; color: var(--muted-2); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Store header ---------- */
.store-header { background: var(--soft); }
.store-header-inner { padding-top: 24px; padding-bottom: 18px; display: flex; flex-direction: column; gap: 16px; }
.store-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.store-id-text { min-width: 0; flex: 1; }
.logo-tile {
  width: 64px; height: 64px; flex: none; border-radius: 18px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 24px;
}
.store-name { margin: 0; font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -0.5px; overflow-wrap: anywhere; }
/* Arabic letters must join: never letter-space Arabic text. */
html[lang="ar"] .store-name, html[lang="ar"] .simple-title { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
html[lang="ar"] .sheet-title, html[lang="ar"] .t-headline { line-height: 1.35; }
html[lang="ar"] .item-name, html[lang="ar"] .pop-name { line-height: 1.45; }
html[lang="ar"] .step-label { line-height: 1.5; }
.store-meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
.store-open { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: #2E8B57; flex: none; }

.mode-switch {
  display: grid; gap: 4px; background: var(--card); padding: 4px; border-radius: 16px;
  width: 100%; max-width: 480px; box-shadow: var(--shadow-1);
}
.mode {
  height: 56px; min-width: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 4px;
}
.mode[aria-pressed="true"] { background: var(--accent); color: #fff; }
.mode-label { font-size: 14px; font-weight: 800; }
.mode-sub { font-size: 11px; font-weight: 600; opacity: 0.85; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.notice {
  background: #FBF1DF; color: #5C3F10; border-radius: 16px; padding: 14px 16px;
  font-size: 14px; font-weight: 600; line-height: 1.5;
}
.notice-top { margin-top: 16px; }

/* ---------- Category bar ---------- */
.cat-nav { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.cat-bar {
  position: relative; padding-top: 10px; padding-bottom: 10px; display: flex; align-items: center; gap: 8px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-bar::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 44px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center;
  text-decoration: none; font-size: 14px; font-weight: 700; background: var(--card); color: var(--ink);
}
.chip:hover { color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; }

/* ---------- Layout ---------- */
.layout { padding-top: 16px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.menu-col { flex: 999 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
body.has-cart-bar .layout { padding-bottom: 104px; }

.search-input {
  width: 100%; height: 46px; border: 1px solid var(--field); border-radius: 14px; padding: 0 16px;
  font-size: 16px; background: var(--card); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.search-input::placeholder { color: #8C857B; }

.sec-title { margin: 0; font-size: 22px; font-weight: 800; }
.popular, .menu-section { display: flex; flex-direction: column; gap: 12px; }
.menu-section { scroll-margin-top: 76px; }
.empty-note { padding: 32px 0; text-align: center; color: var(--muted-2); font-size: 15px; }

/* Popular row bleeds to the screen edge on phones. */
.pop-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px;
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pop-row::-webkit-scrollbar { display: none; }
.pop-card {
  flex: none; width: 168px; border: 0; padding: 0; background: var(--card); border-radius: 20px; overflow: hidden;
  text-align: start; color: var(--ink); box-shadow: var(--shadow-1); display: flex; flex-direction: column;
  scroll-snap-align: start; scroll-margin-inline-start: 16px;
}
.pop-pic { position: relative; display: block; height: 120px; padding: 10px; }
.pop-pic .dish { width: 100%; height: 100%; display: block; }
.pop-body { display: block; padding: 10px 12px 12px; }
.pop-name { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.pop-price { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

.items-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.item-card {
  display: flex; gap: 12px; align-items: stretch; width: 100%; min-height: 120px;
  border: 1px solid var(--card-border); background: var(--card); border-radius: 20px; padding: 12px;
  text-align: start; color: var(--ink); transition: border-color 0.15s;
}
.item-card:hover { border-color: var(--field); }
.item-card.in-cart { border-color: var(--accent); }
.item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.item-name { font-size: 16px; font-weight: 700; line-height: 1.25; }
.item-desc { font-size: 13px; line-height: 1.45; color: var(--muted-2); }
.item-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.item-price { font-size: 15px; font-weight: 700; }
.badge { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--soft); border-radius: 999px; padding: 3px 8px; }
.item-pic {
  position: relative; display: block; width: 96px; height: 96px; flex: none; align-self: center;
  border-radius: 16px; padding: 8px;
}
.item-pic .dish { width: 100%; height: 100%; display: block; }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Wide frames: show the whole photo, centred, rather than cropping off the top and bottom. */
.pop-pic .photo { border-radius: 0; object-fit: contain; }
.plus {
  position: absolute; inset-inline-end: -6px; bottom: -6px; width: 36px; height: 36px; border-radius: 999px;
  background: #fff; color: var(--accent); box-shadow: 0 2px 6px rgba(28, 26, 23, 0.16);
  display: flex; align-items: center; justify-content: center;
}

.store-foot {
  border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; color: var(--muted-2);
}

/* ---------- Cart (aside on desktop, bar on phone) ---------- */
.cart-aside {
  display: none; flex: 1 1 320px; min-width: 0; position: sticky; top: 80px;
  max-height: calc(100vh - 100px); overflow-y: auto;
  background: var(--card); border-radius: 24px; padding: 20px; flex-direction: column; gap: 14px; box-shadow: var(--shadow-1);
}
.cart-aside h2:focus { outline: none; }
.cart-empty { padding: 24px 0; text-align: center; color: var(--muted-2); font-size: 14px; line-height: 1.5; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cart-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.cart-line-text { flex: 1; min-width: 0; }
.cart-line-name { font-size: 14px; font-weight: 700; }
.cart-line-opts { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.cart-line-total { font-size: 13px; font-weight: 600; margin-top: 4px; }
.cart-fee { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted-2); }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; }
#cart-aside-body { display: flex; flex-direction: column; gap: 14px; }

.stepper { display: flex; align-items: center; height: 44px; border: 1px solid var(--ctl); border-radius: 12px; align-self: center; flex: none; }
.stepper button { width: 44px; height: 100%; border: 0; background: transparent; color: var(--ink); font-size: 18px; border-radius: 12px; }
.stepper .qty { min-width: 14px; text-align: center; font-weight: 700; font-size: 14px; }
.stepper.lg { height: 54px; border-radius: 16px; }
.stepper.lg button { font-size: 20px; }
.stepper.lg .qty { min-width: 18px; font-size: 16px; font-weight: 800; }

.btn-primary {
  height: 54px; border: 0; border-radius: 16px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 18px;
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-outline {
  height: 52px; border-radius: 16px; border: 1.5px solid var(--field); background: var(--card); color: var(--ink);
  font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 18px;
}
.btn-secondary {
  height: 48px; border-radius: 12px; border: 1.5px solid var(--field); background: var(--card); color: var(--ink);
  font-size: 15px; font-weight: 700; padding: 0 16px;
}
.btn-secondary:disabled { opacity: 0.6; }
.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 22px; border-radius: 16px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
}
.btn-dark:hover { color: #fff; }

.cart-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 6;
  padding: 12px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(rgba(250, 248, 244, 0), var(--bg) 30%);
}
.cart-bar-btn {
  width: 100%; max-width: 640px; margin: 0 auto; height: 58px; border-radius: 18px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 16px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(28, 26, 23, 0.18); text-decoration: none;
}
.cart-bar-btn:hover { color: #fff; }
.cart-bar-left { display: flex; align-items: center; gap: 10px; }
.cart-count {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.22);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}

/* ---------- Item sheet ---------- */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 20; display: flex; justify-content: center; align-items: flex-end;
  background: rgba(28, 26, 23, 0.5); animation: fade 0.15s ease-out;
}
.sheet {
  width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); display: flex; flex-direction: column; border-radius: 24px 24px 0 0;
  animation: rise 0.2s ease-out;
}
.sheet:focus { outline: none; }
.sheet-hero { position: relative; height: 210px; padding: 18px; flex: none; }
.sheet-hero .dish { width: 100%; height: 100%; display: block; }
.sheet-hero .photo { border-radius: 0; object-fit: contain; }

.close-btn {
  position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(28, 26, 23, 0.15);
}
.sheet-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.sheet-title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.1; }
.sheet-desc { font-size: 14px; line-height: 1.5; color: var(--muted-2); margin-top: 6px; }
.sheet-price { font-size: 16px; font-weight: 700; margin-top: 8px; }
.sheet-foot {
  position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line-2);
  padding: 12px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; align-items: center;
}
.add-btn {
  flex: 1; min-width: 0; height: 54px; border: 0; border-radius: 16px; background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px;
}
.add-btn:disabled { background: var(--ring); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) {
  .sheet-wrap, .sheet { animation: none; }
  .item-card { transition: none; }
}

fieldset.group, fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.group-title, .card-title { font-size: 15px; font-weight: 700; padding: 0; margin-bottom: 8px; }
.req { font-size: 12px; font-weight: 600; color: var(--muted-2); }

/* Option rows (radio = round mark, checkbox = square mark). The real input stays focusable. */
.opt {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px;
  padding: 0 14px; border-radius: 14px; border: 2px solid var(--ctl); background: var(--card); color: var(--ink);
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.opt:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt.on { border-color: var(--accent); background: var(--soft); }
.opt-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.opt-mark { width: 18px; height: 18px; flex: none; border-radius: 999px; border: 2px solid var(--ring); background: #fff; }
.opt.multi .opt-mark { border-radius: 5px; }
.opt.on .opt-mark { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px #fff; }
.opt.multi.on .opt-mark { box-shadow: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.opt-extra { color: var(--muted-2); flex: none; }

.field-label { font-size: 14px; font-weight: 700; }
.small-label { font-size: 13px; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.input, .textarea {
  width: 100%; border: 1px solid var(--field); border-radius: 12px; padding: 0 14px; font-size: 16px;
  background: #fff; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.input { height: 48px; }
.textarea { padding: 10px 12px; resize: vertical; min-height: 64px; line-height: 1.4; }
.input::placeholder, .textarea::placeholder { color: #8C857B; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; line-height: 1.4; }

/* ---------- Checkout ---------- */
.co-wrap { max-width: 640px; margin: 0 auto; padding: 14px 16px 32px; display: flex; flex-direction: column; gap: 14px; }
.co-head { display: flex; align-items: center; gap: 6px; }
.co-head-text { flex: 1; min-width: 0; }
.track-top { display: flex; justify-content: flex-end; }
.back { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.co-title { margin: 0; font-size: 26px; font-weight: 800; }
.co-store { font-size: 13px; color: var(--muted-2); }
.co-form { display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.co-empty { align-items: stretch; text-align: center; }
.co-empty-text { font-size: 16px; font-weight: 600; padding: 12px 0 2px; }
.seg { display: grid; gap: 4px; background: #F3EFE8; padding: 4px; border-radius: 14px; }
.seg button { min-height: 46px; min-width: 0; border: 0; border-radius: 10px; font-size: 14px; font-weight: 800; background: transparent; color: var(--ink-2); line-height: 1.25; padding: 4px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.single-mode { font-size: 15px; font-weight: 800; }
.panel { display: flex; flex-direction: column; gap: 10px; }
.car-panel { gap: 14px; }
.panel-text { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.car-panel .panel-text { font-size: 14px; }
.map-box {
  min-height: 120px; border-radius: 14px; background: #E9EEE6; border: 1px dashed #B9C2B4; padding: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px; color: #3F4740; font-size: 14px; font-weight: 600; text-align: center;
}
.map-box.set { border: 2px solid var(--accent); background: var(--soft); color: var(--accent); }
.info-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; background: var(--bg); border-radius: 12px; padding: 12px 14px; }

/* Inputs sit in the same order as the plate (numbers left, letters right) in both languages. */
[dir="rtl"] .plate-inputs { direction: ltr; }
[dir="rtl"] .plate-inputs .stack { direction: rtl; }
.plate-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plate-input { font-size: 18px; font-weight: 700; letter-spacing: 3px; }
.upper { text-transform: uppercase; }
.plate {
  /* A real Saudi plate doesn't mirror: numbers left, letters right, whatever the page direction. */
  direction: ltr;
  align-self: center; display: flex; width: 252px; max-width: 100%; height: 96px; margin-top: 4px;
  border: 3px solid var(--ink); border-radius: 10px; background: #fff; overflow: hidden; color: var(--ink);
}
.plate-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plate-cell { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; white-space: nowrap; }
.plate-cell.top { border-bottom: 2px solid var(--ink); }
.plate-num { letter-spacing: 2px; }
.plate-let { letter-spacing: 6px; }
/* Arabic-Indic digits are bidi "AN"; force them into the same left-to-right order as the Latin row. */
.plate-digits-ar { direction: ltr; unicode-bidi: bidi-override; }
.plate-let-ar { word-spacing: 4px; }
.plate.example .plate-cell { color: #B8B0A4; }
.plate-div { width: 2px; background: var(--ink); flex: none; }
.plate-ksa {
  width: 26px; flex: none; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; writing-mode: vertical-rl;
}
.color-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.color-chip {
  height: 44px; padding-block: 0; padding-inline: 8px 12px; border-radius: 999px; border: 2px solid var(--ctl); background: #fff; color: var(--ink);
  display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
}
.color-chip[aria-pressed="true"] { border-color: var(--accent); }
.swatch { width: 22px; height: 22px; border-radius: 999px; border: 1px solid #CFC8BC; flex: none; }

.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 44px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }

.pay-list { display: flex; flex-direction: column; gap: 10px; }
.pay-opt { min-height: 56px; font-weight: 700; }
.pay-opt .opt-extra { font-size: 12px; font-weight: 600; }
.pay-name-wrap { display: flex; flex-direction: column; min-width: 0; }
.pay-sub { font-size: 12px; font-weight: 600; color: var(--muted-2); }
/* Cash above the store's limit: visible but not selectable, with the limit explained underneath. */
.pay-opt.disabled { opacity: .55; cursor: not-allowed; background: var(--card); border-color: var(--ctl); }
.cash-note { margin: -4px 4px 0; font-size: 13px; font-weight: 600; color: var(--muted); }

.summary { gap: 8px; font-size: 14px; }
.sum-lines { display: flex; flex-direction: column; gap: 8px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-row > span:last-child { flex: none; }
.sum-opts { color: var(--muted-2); }
.sum-total { font-size: 18px; font-weight: 800; }
.divider { height: 1px; background: var(--line-2); margin: 4px 0; }
.vat-note { font-size: 12px; color: var(--muted-2); }
.general-error { text-align: center; }
.pay-btn {
  height: 58px; border: 0; border-radius: 18px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; padding: 0 16px;
}
.pay-btn.apple { background: #000; }
.pay-btn:disabled { opacity: 0.7; }

/* ---------- Tracking ---------- */
.track-hero { background: var(--accent); color: #fff; border-radius: 24px; padding: 24px 20px; }
.t-meta { font-size: 13px; font-weight: 600; opacity: 0.85; }
.t-headline { font-size: 32px; font-weight: 800; margin: 8px 0 0; line-height: 1.1; }
.t-eta { font-size: 15px; margin-top: 6px; opacity: 0.92; }
.bars { display: flex; gap: 6px; margin-top: 18px; }
.bars:empty { display: none; }
.bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); }
.bar.on { background: #fff; }
.conn-note { font-size: 13px; color: var(--muted-2); text-align: center; }
.muted-ink { font-size: 14px; color: var(--muted); }
.here-btn { height: 60px; border: 0; border-radius: 18px; background: var(--ink); color: #fff; font-size: 18px; font-weight: 800; }
.here-btn:disabled { opacity: 0.7; }
.notice-warm { background: #FBF1DF; color: #5C3F10; border-radius: 20px; padding: 16px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.steps-card { padding: 18px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 14px; }
.step-rail { display: flex; flex-direction: column; align-items: center; width: 18px; flex: none; }
.step-dot { width: 16px; height: 16px; border-radius: 999px; background: #D9D3C9; flex: none; }
.step.done .step-dot { background: var(--accent); }
.step.current .step-dot { background: var(--amber); }
.step.current.final .step-dot { background: var(--accent); }
.step-line { width: 2px; flex: 1; min-height: 26px; background: #D9D3C9; }
.step.done .step-line { background: var(--accent); }
.step-text { padding-bottom: 14px; min-width: 0; }
.step:last-child .step-text { padding-bottom: 0; }
.step-label { font-size: 15px; font-weight: 500; color: var(--muted-2); line-height: 16px; }
.step.done .step-label { color: var(--ink); }
.step.current .step-label { color: var(--ink); font-weight: 800; }
.step-sub { font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.receipt { gap: 8px; font-size: 14px; }
.receipt .sum-total { font-size: 15px; margin-top: 4px; }

/* ---------- Home / not found ---------- */
.simple-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.simple { max-width: 560px; margin: 0 auto; padding: 64px 20px 48px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.brand-mark {
  width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 20px;
}
.simple-title { margin: 8px 0 0; font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -0.5px; }
.simple-lead { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.simple-text { font-size: 15px; line-height: 1.5; color: var(--muted); }
.simple-card { margin-top: 12px; width: 100%; background: var(--card); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; box-shadow: var(--shadow-1); }
.simple-card-title { font-family: var(--font-head); font-size: 20px; font-weight: 800; }

/* ---------- Breakpoints ---------- */
@media (min-width: 720px) {
  .items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; max-height: 88vh; }
  .sheet-foot { border-radius: 0 0 24px 24px; }
}
@media (min-width: 1000px) {
  .cart-aside { display: flex; }
  .cart-bar { display: none !important; }
  body.has-cart-bar .layout { padding-bottom: 24px; }
  .pop-row { margin: 0; padding-inline: 0; }
}
