/* Business website themes (order 13), shared structure: the approved design's base.css, moved from the
   mock-up as it is (team/reports/design/2026-11-30-order-13/_src). One theme file (restaurants.css,
   electronics.css) sets the tokens. Loaded by store/engine.js; nothing inline (strict CSP).
   Shared structure for all themes. Uses semantic tokens only (each theme sets them), logical
   properties only (RTL and LTR from one sheet). Accent tokens (--accent, --on-accent, --accent-text,
   --accent-soft, --accent-line) are computed by the engine from the shop's colour with auto contrast. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 8rem; }
/* Owner 01-12-2026 (iPhone): tapping +, − or an item again and again must not zoom. manipulation = no double-tap zoom;
   pinch zoom and scrolling stay (never user-scalable=no / maximum-scale). Every input is 16px+ (no zoom on focus). */
html, body, .sheet, .sheet-body, button, a, input, select, textarea, label, summary, [role="button"], [role="radio"] { touch-action: manipulation; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); font-variant-numeric: lining-nums tabular-nums; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
/* QA order 17 B4: a sheet holds the page still under it (engine.js lockPage: fixed at its scroll, put back on close),
   so iOS cannot scroll the page behind when the keyboard opens */
body.locked.held { position: fixed; inset-inline: 0; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight, 700); line-height: 1.25; margin: 0; }
.muted { color: var(--muted); } .center { text-align: center; justify-content: center; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .6rem 1.1rem; border: 0; border-radius: var(--r-btn, 12px);
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.btn:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.btn.light { background: var(--surface-2); color: var(--ink); }
.btn.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn.wide { width: 100%; } .btn.big { min-height: 56px; font-size: 1.08rem; }
.btn.grow { flex: 1; white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; color: inherit; border-radius: 50%; position: relative; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.link { background: none; border: 0; color: var(--accent-text); text-decoration: underline; padding: .3rem; min-height: 44px; }
.lang-btn { min-height: 36px; padding: .2rem .8rem; border-radius: 99px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); background: transparent; font-size: .85rem; font-weight: 600; }

/* top bar */
/* Order 21 (owner's iPhone, iOS 26: «التبويبات اتعلق مع النزول و الصعود»): the bar and the sections row move as one.
   Both are sticky in the same page (no `position: fixed` bar: iOS 26 moves fixed elements by itself when the scroll
   direction changes or Safari's bar folds, WebKit 297779), and the row sticks under the bar from ONE number here: the
   bar is exactly --bar-h tall (+ its 1 px line + the notch) and the row's place is the same sum, so no script measures
   the bar and nothing is written while the page moves. The tallest bar content (name + state) is 47 px of the 47.6. */
:root { --bar-h: 62px; --top-h: calc(var(--bar-h) + 1px + env(safe-area-inset-top)); }
.top { position: sticky; inset-block-start: 0; z-index: 30; background: var(--top-bg); color: var(--top-ink); border-bottom: 1px solid var(--top-line, var(--line)); padding-top: env(safe-area-inset-top); }
.top-in { max-width: var(--max, 1240px); margin: 0 auto; display: flex; align-items: center; gap: .6rem; padding: .45rem .75rem; block-size: var(--bar-h); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; min-width: 0; min-height: 44px; flex: 1; }
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--font-head); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-act { display: flex; align-items: center; gap: .15rem; }
.cart-btn .badge { position: absolute; inset-block-start: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.cart-btn .badge[hidden] { display: none; }

/* logo: square (tile), wide (horizontal lock-up), none (monogram from the shop name) */
.logo { display: inline-grid; place-items: center; flex: none; overflow: hidden; }
.logo svg, .logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.logo--square { width: 44px; height: 44px; border-radius: var(--r-logo, 12px); }
.logo--wide { height: 40px; width: 132px; }
.logo--none { width: 44px; height: 44px; border-radius: var(--r-logo, 12px); background: var(--accent); color: var(--on-accent); font: 700 1.35rem/1 var(--font-head); }

/* hero variants */
.hero-in { max-width: var(--max, 1240px); margin: 0 auto; padding: 1rem .9rem; }
.hero h1 { font-size: 1.45rem; }
.tag { margin: .3rem 0 0; color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .8rem; }
.lnk { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; }
.lnk.wa .ic { color: #1f9d55; }
.lnk.plain { color: var(--muted); }
@media (max-width: 999px) { .hide-phone { display: none !important; } }
body.quiet-top:not(.past-hero) .top .brand { visibility: hidden; }
.links { display: flex; flex-wrap: wrap; gap: .45rem; } .links.inline { display: contents; } .links.center { justify-content: center; margin: 1rem 0; }
.state { display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; padding: .2rem .7rem; border-radius: 99px; font-size: .85rem; font-weight: 600; }
.state .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.open { background: var(--ok-bg); color: var(--ok); } .state.closed { background: var(--bad-bg); color: var(--bad); }
.state-sub { font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero--compact .hero-in { padding-block: .7rem .8rem; }
.hero--compact .tag { margin: 0; }
.hero:not(.hero--center) .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -.9rem; padding-inline: .9rem; }
.hero .quick::-webkit-scrollbar { display: none; }
.hero:not(.hero--center) .quick > *, .hero:not(.hero--center) .quick .lnk { flex: none; }
@media (min-width: 1000px) { .hero:not(.hero--center) .quick { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.hero--compact .hero-id .logo--square, .hero--compact .hero-id .logo--none { width: 64px; height: 64px; font-size: 1.8rem; }
.hero--compact .hero-id .logo--wide { width: 150px; height: 48px; }
.reorder { margin-top: .8rem; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem 1rem; border-radius: 99px; border: 1.5px dashed var(--accent-line); background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }

.hero--cover { position: relative; }
.cover-img { height: 168px; overflow: hidden; background: var(--accent-soft); }
.cover-img img { width: 100%; height: 100%; object-fit: cover; }
.cover-img--pattern { background-color: var(--accent-soft); background-image: radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent) 30%, transparent) 0 18px, transparent 19px), radial-gradient(circle at 70% 60%, color-mix(in srgb, var(--accent) 22%, transparent) 0 26px, transparent 27px); background-size: 120px 90px; }
.hero--cover .hero-in { margin-top: -64px; position: relative; padding-top: 0; }
.hero-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-card .logo { margin-top: -52px; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.hero-card .logo--square, .hero-card .logo--none { width: 84px; height: 84px; border-radius: 50%; font-size: 2.2rem; }
.hero-card .logo--wide { width: 190px; height: 64px; border-radius: 16px; background: var(--surface); }
.hero-card h1 { margin-top: .5rem; }
.hero-card .quick { justify-content: center; }

.hero--center { text-align: center; }
.hero--center .hero-in { display: flex; flex-direction: column; align-items: center; padding-block: 1.8rem 1.2rem; }
.hero--center .logo--square, .hero--center .logo--none { width: 92px; height: 92px; font-size: 2.4rem; }
.hero--center .logo--wide { width: 230px; height: 76px; }
.hero--center h1 { margin-top: .9rem; font-size: 1.7rem; }
.rule { display: block; width: 64px; height: 1px; background: var(--accent-line); margin: .7rem auto .2rem; }
.hero--center .quick { justify-content: center; }

.banner { position: relative; overflow: hidden; background: var(--surface-2); }
.banner img { width: 100%; height: 280px; object-fit: cover; }
.banner-txt { position: absolute; inset: auto 0 0 0; padding: 1.2rem 1rem 1.3rem; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); }
.banner-txt small { letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.banner-txt h1 { font-size: 1.8rem; color: #fff; } .banner-txt .tag { color: rgba(255,255,255,.9); }
.banner-txt .btn { margin-top: .7rem; min-height: 44px; color: #fff; }

.hero--search h1 { font-size: 1.3rem; margin-bottom: .7rem; }

/* order type + where */
.orderbar-in { max-width: var(--max, 1240px); margin: 0 auto; padding: 0 .9rem .7rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; flex: 1 1 100%; }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg button.on .ic { color: var(--accent-text); }
.seg.one { padding: .55rem .8rem; align-items: center; color: var(--ink); font-weight: 600; }
.seg.mini { flex: none; } .seg.mini button { min-height: 44px; min-width: 44px; }
.where { flex: 1 1 100%; display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .45rem .8rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: start; color: var(--ink); }
.where > .ic:first-child { color: var(--accent-text); }
.where-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.where-txt small { color: var(--muted); font-size: .78rem; } .where-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where-fee { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-size: .9rem; } .where-fee small { color: var(--muted); font-weight: 500; font-size: .75rem; }
.minline { font-size: .85rem; color: var(--muted); }
.orderbar .where { min-height: 48px; }

/* search row */
.search-row { max-width: var(--max, 1240px); margin: 0 auto; padding: 0 .9rem .5rem; }

/* category nav */
.cats { position: sticky; inset-block-start: var(--top-h); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.cats-in { max-width: var(--max, 1240px); margin: 0 auto; }
.nav-search { padding: .55rem .9rem 0; }
/* order 19: no CSS smooth (only an explicit scrollTo glides; iOS cuts a smooth move under the finger or the page's momentum);
   the row's own bounce at its ends never moves the page */
.cats-scroll { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .55rem .9rem; overscroll-behavior-x: contain; }
.cats-scroll::-webkit-scrollbar { display: none; }
.cat { flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .35rem .95rem; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .93rem; white-space: nowrap; }
.cats--tabs .cat { border-radius: 0; border-bottom: 3px solid transparent; padding-inline: .7rem; }
.cats--tabs .cat.on { color: var(--ink); border-bottom-color: var(--accent-line); }
.cats--pills .cat { border: 1px solid var(--line); background: var(--surface); }
.cats--pills .cat.on, .cats--side .cat.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cats--side .cat { border: 1px solid var(--line); background: var(--surface); }
.cats--side .cat-n { display: none; }
.cats--text .cat { padding-inline: .6rem; letter-spacing: .02em; }
.cats--text .cat.on { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.cats--circles .cats-scroll { gap: .8rem; padding-block: .7rem; }
.cats--circles .cat { flex-direction: column; gap: .3rem; padding: 0; min-width: 68px; border-radius: 0; font-size: .82rem; }
.cat-img { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 3px solid transparent; background: var(--surface-2); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cats--circles .cat.on { color: var(--ink); } .cats--circles .cat.on .cat-img { border-color: var(--accent-line); }

/* search */
.search { display: flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 .85rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; min-height: 44px; }
.search.big { min-height: 56px; border-radius: 16px; box-shadow: var(--shadow); border-color: transparent; }
.search.in-sheet { margin-bottom: .6rem; }

/* layout + menu */
.layout { max-width: var(--max, 1240px); margin: 0 auto; padding: 0 .9rem; }
.menu { padding-bottom: 1rem; min-width: 0; }
.sec { padding-top: 1.1rem; }
.sec-t { font-size: 1.15rem; display: flex; align-items: baseline; gap: .5rem; margin-bottom: .7rem; }
.sec-t small { font: 500 .8rem var(--font); color: var(--muted); }
.noresults { padding: 2rem 0; text-align: center; color: var(--muted); }
.list-toggle { display: flex; justify-content: space-between; align-items: center; padding-top: .8rem; }

/* cards */
.cards { display: grid; gap: .75rem; }
.card { position: relative; background: var(--surface); border-radius: var(--r); cursor: pointer; overflow: hidden; border: 1px solid var(--card-line, var(--line)); }
.card .ph { position: relative; background: var(--photo-bg, var(--surface-2)); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-none { display: grid; place-items: center; width: 100%; height: 100%; font: 700 2rem var(--font-head); color: var(--accent-text); background: var(--accent-soft); }
.badge-new { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; padding: .1rem .55rem; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700; }
.card .body { padding: .7rem .8rem .8rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.card .n { font-size: 1rem; font-family: var(--font-card, var(--font)); font-weight: 700; }
.card .d { margin: 0; font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .pr { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: auto; padding-top: .35rem; }
.card .p { font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.card.sold .ph img { filter: grayscale(1); opacity: .55; }
.card.sold .p { color: var(--muted); }
.tag-out { display: inline-flex; align-items: center; min-height: 32px; padding: 0 .7rem; border-radius: 99px; background: var(--bad-bg); color: var(--bad); font-size: .8rem; font-weight: 700; }
.vnote { color: var(--muted); display: flex; gap: .6rem; font-size: .8rem; }
.dots { display: inline-flex; gap: 3px; align-items: center; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(127,127,127,.45); }

.add { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: 44px; min-height: 44px; padding: 0 .7rem; border-radius: 99px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.add--soft { background: var(--accent-soft); color: var(--accent-text); }
.add--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--r-btn, 12px); }
.add .n-in { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: .72rem; display: grid; place-items: center; }
.stepper { display: inline-flex; align-items: center; gap: .2rem; background: var(--accent-soft); border-radius: 99px; padding: 2px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--accent-text); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.stepper button:disabled { opacity: .4; }
.stepper b { min-width: 1.6rem; text-align: center; }
.stepper.small button { width: 44px; height: 44px; }

.card--row { display: flex; align-items: stretch; }
.card--row .ph { width: 112px; flex: none; aspect-ratio: 1; align-self: flex-start; margin: .7rem; margin-inline-end: 0; border-radius: calc(var(--r) - 4px); }
.card--tile { display: flex; flex-direction: column; }
.card--tile .ph { aspect-ratio: 1; }
.cards--tile, .cards--tall, .cards--look { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card--tall { display: flex; flex-direction: column; }
.card--tall .ph { aspect-ratio: 4 / 5; }
.card--look { display: flex; flex-direction: column; border: 0; background: transparent; border-radius: 0; }
.card--look .ph { aspect-ratio: 3 / 4; border-radius: var(--r); }
.card--look .body { padding: .55rem .1rem 0; }
.card--compact { display: flex; align-items: center; }
.card--compact .ph { width: 76px; height: 76px; flex: none; margin: .55rem; margin-inline-end: 0; border-radius: 10px; }
.card--compact .body { padding: .55rem .7rem; }

/* basket bar (phones) and panel (computers) */
.cartbar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 25; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.cartbar.empty { display: none; }
.cartbar-in { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: .4rem; }
.cartbar-btn { width: 100%; min-height: 56px; justify-content: space-between; border-radius: var(--r-bar, 16px); padding-inline: .8rem 1rem; }
.cartbar-btn .cnt { min-width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--on-accent) 20%, transparent); }
.cartbar-btn .lbl { flex: 1; text-align: start; }
.minprog { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; color: var(--muted); }
.track { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; } .fill { display: block; height: 100%; background: var(--accent-line); border-radius: 3px; }
body:has(.cartbar:not(.empty)) .foot { padding-bottom: 7rem; }
.cartpanel { display: none; }
.sidecats { display: none; }
.empty-cart { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.5rem 0; text-align: center; }
.empty-cart > .ic { width: 2.4rem; height: 2.4rem; color: var(--muted); }
.lines { display: flex; flex-direction: column; }
.line { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.line .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.line .lp { font-weight: 700; }
.totals { margin: .6rem 0; }
.sum { display: flex; justify-content: space-between; padding: .25rem 0; }
.sum.total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .5rem; }
.pay { background: var(--surface-2); border-radius: 12px; padding: .65rem .85rem; margin: .6rem 0; font-size: .9rem; }
.msg { border-radius: 12px; padding: .65rem .85rem; margin: .6rem 0; } .msg.err { background: var(--bad-bg); color: var(--bad); }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(8, 10, 18, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out; }
.sheet-body { background: var(--bg); color: var(--ink); width: 100%; max-width: 640px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; padding: 0 1rem calc(1rem + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
.sheet-head { position: sticky; inset-block-start: 0; z-index: 2; display: flex; align-items: center; gap: .5rem; padding: .9rem 0 .6rem; background: var(--bg); }
.sheet-head h2 { flex: 1; font-size: 1.15rem; }
.grab { position: absolute; inset-block-start: 6px; inset-inline-start: 50%; width: 40px; height: 4px; border-radius: 2px; background: var(--line); transform: translateX(-50%); }
[dir="rtl"] .grab { transform: translateX(50%); }
.sheet-photo { margin: 0 -1rem .7rem; aspect-ratio: 16 / 10; max-height: 36vh; width: calc(100% + 2rem); overflow: hidden; background: var(--photo-bg, var(--surface-2)); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet--item .sheet-photo { aspect-ratio: var(--sheet-photo, 16 / 10); }
.sheet-price { font-size: 1.2rem; font-weight: 800; color: var(--accent-text); }
.desc { color: var(--muted); margin: .3rem 0 .6rem; }
.group { margin: .9rem 0; } .group > b { display: block; margin-bottom: .45rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .35rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; }
.chip.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.chip.out { opacity: .4; text-decoration: line-through; }
.chip input[type=color] { width: 26px; height: 26px; border: 0; padding: 0; background: none; }
.opt { display: flex; align-items: center; gap: .7rem; min-height: 52px; border-bottom: 1px solid var(--line); }
.opt input { width: 22px; height: 22px; accent-color: var(--accent); } .opt .main { flex: 1; }
/* QA order 17 B5: a field being typed in is never left under the fixed foot (total and button) */
.sheet--cart .sheet-body { scroll-padding-bottom: var(--foot-h, 10rem); }
.sheet-foot { position: sticky; inset-block-end: calc(-1rem - env(safe-area-inset-bottom)); display: flex; gap: .6rem; align-items: center; padding: .8rem 0 calc(.8rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); margin-top: .6rem; }
.blk { margin: .8rem 0; display: flex; flex-direction: column; gap: .5rem; } .blk h3 { font-size: 1rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .6rem; }
.fld { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
.fld.half { grid-column: auto; }
.fld input, .fld textarea, select { width: 100%; min-height: 48px; padding: .6rem .8rem; border-radius: var(--r-field, 12px); border: 1px solid var(--field-line, var(--line)); background: var(--field, var(--surface)); color: var(--ink); font-size: 16px; }
.remember { display: block; }
.zone-list { display: flex; flex-direction: column; }
.zone { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 .6rem; min-height: 56px; padding: .5rem .2rem; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: start; color: var(--ink); }
.zone .main { font-weight: 600; } .zone small { grid-column: 1 / -1; }
.zone.on .main { color: var(--accent-text); } .z-fee { font-weight: 700; }
.toast { position: fixed; z-index: 60; inset-inline: 1rem; inset-block-end: calc(6.5rem + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 360px; display: flex; gap: .5rem; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 14px; font-weight: 600; animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* order page */
.order-view { max-width: 640px; margin: 0 auto; padding: 1rem .9rem 2rem; }
.status-card { background: var(--surface); border-radius: var(--r); padding: 1.4rem 1rem; text-align: center; border: 1px solid var(--line); }
.ok-ic { width: 56px; height: 56px; margin: 0 auto .5rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); } .ok-ic .ic { width: 30px; height: 30px; }
.status-card h1 { font-size: 1.25rem; margin: .3rem 0 1rem; }
.steps { list-style: none; display: flex; padding: 0; margin: 0 0 1rem; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); position: relative; }
.steps li i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); position: relative; z-index: 1; }
.steps li::before { content: ""; position: absolute; inset-block-start: 6px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps li.on { color: var(--ink); font-weight: 700; } .steps li.on i { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.panel { background: var(--surface); border-radius: var(--r); padding: .6rem 1rem; margin: 1rem 0; border: 1px solid var(--line); }

/* a wide logo on a dark page sits on a light plate unless the shop uploads a light version (new field logoOnDark) */
[data-mode="dark"] .logo--wide { background: #fff; border-radius: 10px; padding: 3px 8px; }

/* footer */
.foot { background: var(--foot-bg, var(--surface)); color: var(--foot-ink, var(--ink)); border-top: 1px solid var(--line); margin-top: 1.5rem; }
.foot-in { max-width: var(--max, 1240px); margin: 0 auto; padding: 1.4rem .9rem; display: grid; gap: 1.2rem; }
.foot-col { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; } .foot-col p { margin: 0; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .15rem 1.2rem; font-size: .9rem; } .hours .today { font-weight: 800; }
.powered { text-align: center; font-size: .78rem; color: var(--muted); margin: 0; padding: .8rem 0 1.2rem; }

/* computers */
@media (min-width: 700px) {
  .cards--tile, .cards--tall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--look { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--row, .cards--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 2fr 1.4fr 1fr; }
}
@media (min-width: 1000px) {
  :root { --bar-h: 68px; }
  .top-in { padding-inline: 1.5rem; }
  .hero-in, .orderbar-in, .layout, .search-row, .cats-scroll { padding-inline: 1.5rem; }
  .search-row .search { max-width: 520px; }
  .sheet { align-items: center; }
  .sheet-body { border-radius: 22px; max-height: 86vh; max-height: 86dvh; }
  .sheet--item .sheet-body { max-width: 560px; }
  .cards--tile, .cards--tall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards--look { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .orderbar-in .seg, .orderbar-in .where { flex: 0 1 380px; }
  /* panel themes: basket always visible at the side */
  .layout--panel { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
  .layout--panel .cartpanel { display: block; position: sticky; inset-block-start: 132px; margin-top: 1.1rem; }
  .layout--panel ~ .cartbar { display: none; }
  body:has(.layout--panel) .orderbar { display: none; }
  .cartpanel-in { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: flex; flex-direction: column; gap: .6rem; max-height: calc(100vh - 150px); overflow: auto; box-shadow: var(--shadow); }
  .cartpanel h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .4rem; }
  .cartpanel .seg, .cartpanel .where { flex: none; }
  .cartbar-in { max-width: 520px; }
  /* side nav themes */
  .cats--side { display: none; }
  .layout:has(.sidecats) { grid-template-columns: 220px minmax(0, 1fr) 340px; }
  .sidecats { display: block; position: sticky; inset-block-start: 84px; margin-top: 1.1rem; }
  .sidecats .cats-scroll { flex-direction: column; padding: 0; gap: .2rem; overflow: visible; }
  .sidecats .cat { border-radius: 10px; justify-content: space-between; border: 0; background: transparent; color: var(--ink); min-height: 44px; }
  .sidecats .cat.on { background: var(--accent-soft); color: var(--accent-text); }
  .sidecats .cat-n { display: inline; color: var(--muted); font-weight: 500; }
  .banner img { height: 440px; }
  .hero--compact .hero-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
  .hero--compact .quick { margin-top: 0; }
  .hero--compact h1.sr { position: static; width: auto; height: auto; clip-path: none; font-size: 1.6rem; flex-basis: 100%; }
  .cover-img { height: 260px; }
  .hero-card { flex-direction: row; text-align: start; gap: 1.2rem; flex-wrap: wrap; }
  .hero-card .logo { margin-top: -60px; }
  .hero-card .quick { justify-content: flex-start; margin-inline-start: auto; }
  .hero--search .hero-in { padding-block: 2rem; }
  .hero--search .search.big { max-width: 720px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

/* platform additions (real data): loading, not found, an order's other states, preview note, the
   branch picker on several branches, honeypot field. */
.loading { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }
.spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent-line, var(--muted)); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notfound { max-width: 520px; margin: 0 auto; padding: 4rem 1rem; text-align: center; color: var(--muted); }
.preview-note { max-width: var(--max, 1240px); margin: .6rem auto 0; padding: .6rem .9rem; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: .9rem; }
.ok-ic.bad { background: var(--bad-bg); color: var(--bad); }
.steps li.done i { background: var(--accent-line); }
.reason { color: var(--muted); margin: -.4rem 0 1rem; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.line .q { color: var(--muted); }
body.busy { cursor: progress; } body.busy .layout { opacity: .55; transition: opacity .15s; }
.notfound .ic { width: 2.4rem; height: 2.4rem; }
@media print { .top-act, .cartbar, .cats, .sidecats, .orderbar, .search-row, .reorder, .toast { display: none !important; } .top { position: static; } body { background: #fff; } }
.link { min-width: 44px; }

/* fix round (QA order 13) */
/* M1: the shop name takes up to two lines; the language button is short on phones; a name still cut shows in full below */
.brand-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; overflow-wrap: anywhere; }
.lang-btn .lg-short { display: none; }
@media (max-width: 430px) {
  .brand-name { font-size: .95rem; }
  .lang-btn { min-width: 44px; min-height: 44px; padding-inline: .55rem; }
  .lang-btn .lg-long { display: none; } .lang-btn .lg-short { display: inline; }
}
.name-cut .hero--compact h1.shop-h1 { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; font-size: 1.3rem; margin-bottom: .3rem; }
.shop-name { display: none; margin: 0 0 .2rem; font: 700 1.05rem/1.3 var(--font-head); color: var(--ink); }
.name-cut .shop-name { display: block; }
/* M3: an order page that is reconnecting keeps its last state with a small note */
.reconnect { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; padding: .6rem .85rem; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: .9rem; }
.reconnect[hidden] { display: none; }
.spin.small { width: 16px; height: 16px; border-width: 2px; flex: none; }
/* B7: the empty field is marked and named */
.fld.bad input { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.fld-msg { color: var(--bad); font-size: .8rem; }
/* L2: save my details (off at first) and forget them */
.save-me { min-height: 44px; border-bottom: 0; font-size: .9rem; }
.forget { align-self: flex-start; padding-inline: 0; font-size: .85rem; }
/* B9: an item without a photo shows a drawing of the kind of shop, not a letter */
.ph-none .ph-ic { width: 42%; height: 42%; stroke-width: 1.3; }

/* delivery areas grouped by governorate (order 15) */
.zone-group + .zone-group { margin-top: .6rem; }
/* order 21 (all of Kuwait: 138 areas): a governorate below the sheet's fold is laid out and painted only when it scrolls
   near (its place kept by an estimated height of ~60 px per area), so the sheet opens as fast with 138 areas as with 20 */
.sheet--zones .zone-group { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
.zone-gov { position: sticky; inset-block-start: 3.4rem; z-index: 1; display: flex; align-items: baseline; gap: .4rem; padding: .5rem 0 .3rem; background: var(--bg); font-size: .95rem; color: var(--muted); }
.zone-gov small { font: 500 .78rem var(--font); }

/* ---------- order 15 polish (design review 01-12-2026, mock-ups after-*.png; owner approved) ---------- */
/* #5: the open state sits under the shop's name, small; the buttons under the tagline are equal and all fit */
.top .brand-txt .state { min-height: 0; padding: 0; background: none; font-size: .78rem; gap: .3rem; white-space: nowrap; line-height: 1.4; }
.top .brand-txt .state .dot { width: 7px; height: 7px; }
.top .brand-txt .state-sub { color: var(--muted); }
.hero:not(.hero--center) .quick.quick--grid { display: grid; grid-template-columns: repeat(var(--qn, 3), minmax(0, 1fr)); gap: .5rem; overflow: visible; margin-inline: 0; padding-inline: 0; }
.qbtn { justify-content: center; min-height: 44px; min-width: 0; padding: .35rem .4rem; border-radius: 12px; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.qbtn .ic { width: 1.15em; height: 1.15em; }
@media (min-width: 1000px) { .hero:not(.hero--center) .quick.quick--grid { grid-template-columns: repeat(4, auto); justify-content: start; } .qbtn { padding-inline: .9rem; } }

/* #4: one card for how and where; the chosen way is filled with the shop's colour (5:1, was 1.1:1) */
.ordercard { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.ordercard .seg { flex: none; }
.seg button.on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.seg button.on .ic { color: inherit; }
.ordercard .where { flex: none; border: 0; background: none; min-height: 60px; padding: 8px 8px 6px; border-radius: 12px; }
.where .pin { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); }
.where-txt small { font-size: .8rem; } .where-txt b { font-size: 1.05rem; }
.where-txt .where-sub { color: var(--muted); font-size: .8rem; white-space: normal; }
.where .chg { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding-inline: 6px; flex: none; color: var(--accent-text); font-weight: 600; font-size: .92rem; }
.where .chg .ic { width: 1.05em; height: 1.05em; }
/* QA order 18 (ق-1): «Tomorrow 02/12 · 8:00 AM» is longer than the row in English: it may take two lines, and the card never
   grows past the screen (a flex item's minimum is its words' width unless min-width: 0) */
.when-row .where-txt b { white-space: normal; overflow-wrap: anywhere; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; padding: 0 4px 4px; }
.meta span { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: .76rem; line-height: 1.35; }
.meta span b { color: var(--ink); font-size: .9rem; white-space: nowrap; }
.meta span.free { justify-content: center; background: var(--ok-bg); } .meta span.free b { color: var(--ok); }
@media (min-width: 1000px) { .orderbar-in .ordercard { flex: 0 1 560px; } }

/* #17: fields and the search have a 3:1 edge (--field-line per theme); one ring when focused */
.search { border-color: var(--field-line, var(--line)); }
.search:focus-within { border-color: var(--accent-line); box-shadow: inset 0 0 0 1px var(--accent-line); }
.search input:focus-visible { outline: none; }
.search .clr { margin-inline-end: -.6rem; color: var(--muted); }

/* #3, #22: the area list: a round mark on every row, the chosen one a framed card with a tick */
.sheet--zones .zone, .zone { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: start; color: var(--ink); }
.zone .rd { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--field-line, var(--line)); }
.zone .rd .ic { width: 15px; height: 15px; stroke-width: 2.8; }
.zone .zt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zone .zt small { font-size: .8rem; }
.zone.on { margin-top: 4px; padding: 8px 12px; border: 0; border-radius: 14px; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.zone.on .rd { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.zone.on .main { color: var(--ink); }
.free-tag { padding: 3px 8px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.zone-count { margin: 0 0 .2rem; font-size: .85rem; }
mark { background: none; color: var(--accent-text); font-weight: 700; }

/* #12: the basket bar: «باقي … وتوصل لأقل طلب» readable, a bar that shows, «شامل التوصيل» under the amount */
.minprog { gap: .35rem; color: var(--ink); }
.minrow { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .82rem; }
.minrow b { font-weight: 800; }
.track { background: color-mix(in srgb, var(--ink) 16%, transparent); } .fill { background: var(--accent); }
.cartbar-btn .sum { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.cartbar-btn .sum small { font-size: .72rem; font-weight: 500; opacity: .92; }

/* #13, #1, #2: basket lines with pictures; the total and the button stay at the bottom */
.line .th { width: 56px; height: 56px; flex: none; overflow: hidden; border-radius: 12px; background: var(--photo-bg, var(--surface-2)); }
.line .th img { width: 100%; height: 100%; object-fit: cover; }
.line .ln { font-weight: 700; }
.more-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin: .2rem 0; padding: 0; border: 0; background: none; color: var(--accent-text); font-weight: 700; }
.info { display: flex; align-items: flex-start; gap: .6rem; margin: .6rem 0; padding: .75rem .85rem; border-radius: 12px; background: var(--surface-2); font-size: .9rem; }
.info > .ic { margin-top: .15rem; }
.inline-link { border: 0; background: none; padding: .6rem .15rem; margin: -.6rem 0; color: var(--accent-text); font-weight: 700; }
.sheet .totals { padding: .6rem .9rem; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.pay { display: flex; align-items: center; gap: .6rem; }
.cart-foot { flex-direction: column; align-items: stretch; gap: .5rem; }
.foot-sum { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .85rem; }
.foot-sum b { font-size: 1.05rem; white-space: nowrap; }
.btn .sep { opacity: .7; }
.btn.off { opacity: .6; }

/* #15: the phone field shows +965; a wrong field has one red edge and says what is wrong */
.pfx { display: flex; align-items: center; direction: ltr; min-height: 48px; padding-inline-start: .8rem; border-radius: var(--r-field, 12px); border: 1px solid var(--field-line, var(--line)); background: var(--field, var(--surface)); }
.pfx .pre { padding-inline-end: .6rem; border-inline-end: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.fld .pfx input { min-height: 46px; border: 0; background: transparent; padding-inline: .6rem .8rem; }
.fld .pfx input:focus-visible { outline: none; }
.pfx:focus-within { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.fld.bad input, .fld.bad .pfx { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.fld.bad .pfx input { border: 0; box-shadow: none; }
.fld.bad :focus-visible, .fld.bad .pfx:focus-within { outline: none; }
.fld-msg { display: flex; align-items: center; gap: .3rem; font-size: .82rem; } .fld-msg .ic { width: 1.05em; height: 1.05em; }
/* order 21 (hunt L1): a basket line the shop has too few of, marked where it is */
.line.short { box-shadow: 0 0 0 1.5px var(--bad); border-radius: 10px; }
.line-short { display: flex; align-items: center; gap: .3rem; color: var(--bad); font-size: .82rem; font-weight: 600; } .line-short .ic { width: 1.05em; height: 1.05em; flex: none; }
/* order 21 (hunt H3): «طلبك الحالي» at the top of the menu, for an open order made on this device */
.myorders { max-width: var(--max, 1240px); margin: .6rem auto 0; padding: 0 .9rem; display: grid; gap: .5rem; }
.myorder { display: flex; align-items: center; gap: .65rem; min-height: 56px; padding: .5rem .8rem; border-radius: 14px; background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent-line); text-decoration: none; }
.myorder .mo-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--accent-text); }
.myorder .mo-txt { flex: 1; min-width: 0; display: grid; } .myorder .mo-txt b { font-size: .95rem; } .myorder bdi { white-space: nowrap; } .myorder .mo-txt small { font-size: .82rem; opacity: .85; }
.myorder .mo-go { flex: none; font-weight: 700; font-size: .88rem; color: var(--accent-text); white-space: nowrap; }
.myorder.pay { background: var(--bad-bg); box-shadow: inset 0 0 0 1.5px var(--bad); } .myorder.pay .mo-go { color: var(--bad); }
@media (max-width: 380px) { .myorder { flex-wrap: wrap; } .myorder .mo-go { margin-inline-start: auto; } }
@media print { .myorders { display: none; } }
.payleft { margin: .2rem 0 .5rem; font-size: .88rem; font-weight: 700; }

/* #10: the item: the whole picture, the price with «متوفر», sizes and colours with their price, the
   missing choice framed, a sold-out one struck through */
.sheet--item .sheet-photo { aspect-ratio: auto; height: 196px; max-height: none; }
.sheet--item .sheet-photo img { object-fit: contain; }
.sheet-price-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .3rem; }
.tag-in { display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; padding: 0 .7rem; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-size: .85rem; font-weight: 700; }
.group-h { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.group .chip { flex-direction: column; justify-content: center; gap: 0; min-height: 52px; min-width: 96px; padding: .35rem .9rem; border: 0; box-shadow: inset 0 0 0 1px var(--field-line, var(--line)); line-height: 1.3; }
.group .chip small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.group .chip.on { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 2px var(--accent-line); }
.group .chip.on small { color: var(--accent-text); }
.group .chip.out { opacity: 1; text-decoration: none; background: var(--surface-2); color: var(--muted); box-shadow: none; }
.group .chip.out .x { text-decoration: line-through; }
.group.need { margin-inline: -10px; padding: 10px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--accent-line); }
.need-tag { color: var(--accent-text); font-size: .85rem; font-weight: 700; }

/* #16: the order page: steps that say what happens, done ones ticked, two big contact buttons */
.status-card h1 { margin: .3rem 0 .8rem; }
.steps li i { width: 24px; height: 24px; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 18%, var(--surface)); color: var(--on-accent); }
.steps li i .ic { width: 14px; height: 14px; stroke-width: 2.8; }
.steps li::before { inset-block-start: 11px; height: 3px; background: color-mix(in srgb, var(--ink) 18%, var(--surface)); }
.steps li.done i, .steps li.now i, .steps li.done::before, .steps li.now::before { background: var(--accent); }
.steps li.done { color: var(--ink); } .steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now i { box-shadow: 0 0 0 5px var(--accent-soft); }
.contact-big { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1rem 0 .4rem; } .contact-big.one { grid-template-columns: 1fr; }
.contact-big .lnk { justify-content: center; min-height: 52px; border-radius: 14px; font-size: 1rem; font-weight: 700; }
.small-note { font-size: .85rem; }
/* #5 on phones: the page's own search field is right under the top bar, so the bar keeps its room for
   the name and the open state (the search moves into the sections row with the next batch, #11) */
@media (max-width: 999px) { .top .top-search { display: none; } }
.top .brand-txt .state { max-width: 100%; flex-wrap: wrap; row-gap: 0; white-space: normal; }
/* 12-hour (owner 01-12-2026): «Closes 12:30 AM» is longer; it goes under «Open now» whole, never cut to «12:30» without AM/PM */
.top .brand-txt .state-sub { white-space: nowrap; }
.hero--compact .tag { font-size: .875rem; }
/* steppers as in the mock-ups: one soft pill, the signs in the shop's colour */
.stepper button { background: transparent; box-shadow: none; }
.sheet--item .sheet-photo.drawn { background: var(--surface-2); }
/* one clear button in a search (ours), never the browser's second one; the area list keeps its height while searching */
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.sheet--zones .sheet-body { min-height: min(80vh, 640px); min-height: min(80dvh, 640px); }
/* #12: the note fades in where it stays (sliding up from lower, it crossed the basket bar for a moment) */
.toast { animation: fade .2s ease-out; }

/* ---------- order 15, batch A (design review 01-12-2026, colours direction 1 «أبيض ومحايد», owner approved) ---------- */
/* The dots under «ي» and the marks above (ّ) were cut: a box that clips its text (overflow hidden for «…»,
   or a line clamp) now has room for the ink of its lines. One line: room above and below that does not
   move anything (padding + the same negative margin). Several lines (clamp): a taller line, so the next,
   hidden line never peeks in. Checked by measuring every clipped text's glyphs (WebKit + Chromium). */
.brand-name { line-height: 1.75; padding-block: .1em; }
.top .brand-txt .state, .where-txt b { padding-block: .3em; margin-block: -.3em; }
.card .d { line-height: 1.7; padding-block-end: .12em; }
/* the price is the text colour; the shop's colour stays for the main button and the details */
.card .p, .sheet-price { color: var(--ink); }
/* the chosen section is the dark text colour (secondary), not the shop's colour */
.cats--tabs .cat.on { color: var(--ink); border-bottom-color: var(--ink); }
.cats--pills .cat.on, .cats--side .cat.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (min-width: 1000px) { .sidecats .cat.on { background: var(--surface-2); color: var(--ink); font-weight: 700; } }
/* quantity steppers: a plain pill with a thin edge; the signs keep the shop's colour */
.stepper { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
/* soft notes on a neutral ground (no tint of the shop's colour behind text) */
.preview-note, .reconnect { background: var(--surface-2); }
.ph-none { background: var(--photo-bg, var(--surface-2)); }
/* the wider new fonts: «2.000 د.ك من 3.000 د.ك» stays on one line (only «باقي … وتوصل لأقل طلب» may wrap) */
.minrow > .muted { white-space: nowrap; }

/* ---------- order 15, batch B (design option 1 + v2, owner's decisions 01-12-2026) ---------- */
/* the cover hero («shop»): cover or the shop's colour, the logo coming out of it, the name, one state line */
.hero--shop .cover { position: relative; height: calc(150px + env(safe-area-inset-top)); overflow: hidden; background: var(--surface-2); }
.hero--shop .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero--shop .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 45%); }
.hero--shop .cover--none { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #000)); }
.hero--shop .cover--none::after { background: radial-gradient(circle at 15% 30%, rgba(255,255,255,.12) 0 40px, transparent 41px), radial-gradient(circle at 80% 70%, rgba(255,255,255,.08) 0 70px, transparent 71px); }
.hero--shop { background: var(--top-bg); }
.hero--shop .hero-in { position: relative; padding: 0 1rem 1rem; }
.hero--shop .logo--big { width: 76px; height: 76px; border-radius: 22px; font-size: 2.1rem; margin-top: -40px; border: 4px solid var(--top-bg); box-shadow: 0 4px 14px rgba(0,0,0,.18); position: relative; z-index: 2; background-color: var(--accent); }
.hero--shop .logo--big img { background: #fff; }
.hero--shop .shop-title { font-size: 1.45rem; margin-top: .5rem; line-height: 1.5; overflow-wrap: anywhere; }
.hero--shop .tag { margin: .1rem 0 0; font-size: .9rem; color: var(--muted); }
.hero--shop .facts { margin: .55rem 0 0; }
.hero--shop .facts .state { min-height: 0; padding: 0; background: none; font-size: .88rem; }
.hero--shop .facts .state-sub { color: var(--muted); font-weight: 500; }
/* over the cover the top bar is see-through with round light buttons; past the name it is a normal bar. Order 21: it is
   sticky like every other look (never fixed) and the cover slides up under it by exactly its height */
@media (max-width: 999px) {
  body.quiet-top .top { position: sticky; margin-block-end: calc(-1 * var(--top-h)); transition: background-color .2s, border-color .2s; }
  body.quiet-top:not(.past-hero) .top { background: transparent; border-bottom-color: transparent; color: #141414; }
  body.quiet-top:not(.past-hero) .top .top-act > button { background: rgba(255,255,255,.92); color: #141414; border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
  body.quiet-top:not(.past-hero) .top .lang-btn { border-radius: 22px; }
  body.quiet-top .top .top-search { display: inline-grid; }
}
/* the sections row: the search is its first chip; the field opens under it */
.cat-search { width: 44px; min-width: 44px; min-height: 44px; padding: 0 !important; justify-content: center; border-radius: 50% !important; }
.cat-search.open { background: var(--ink) !important; color: var(--bg) !important; }
.cats .nav-search { padding: .55rem .9rem 0; }
.cats .nav-search .search { min-height: 46px; }
/* the shop's card at the end of the page: name, today's hours (no «مفتوح»), WhatsApp, Instagram, «عن المحل» */
.shopcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.foot { background: transparent; border-top: 0; }
.sc-id { display: flex; align-items: center; gap: .75rem; }
.sc-id .logo--square, .sc-id .logo--none { width: 52px; height: 52px; font-size: 1.5rem; }
.sc-txt { display: flex; flex-direction: column; min-width: 0; } .sc-txt b { font-size: 1.05rem; } .sc-txt .muted { font-size: .88rem; }
/* order 18 (S1): each button is as wide as its words (never narrower), they share the row, and one that does not
   fit goes to its own row («About the shop» stood outside its frame, «Instagram» touched the next icon) */
.sc-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.scbtn { flex: 1 1 auto; justify-content: center; gap: .4rem; min-height: 44px; padding: .35rem .7rem; border-radius: 12px; font-weight: 600; font-size: .86rem; white-space: nowrap; color: var(--ink); background: var(--surface); }
.scbtn.wa .ic { color: #1f9d55; } [data-mode="dark"] .scbtn.wa .ic { color: #6fd39a; }
@media (min-width: 700px) { .foot-in { grid-template-columns: 1fr; } .shopcard { max-width: 640px; } .sc-links { justify-content: flex-start; } .scbtn { flex: 0 0 auto; padding-inline: 1rem; } }
/* «عن المحل» */
.ab-id { display: flex; align-items: center; gap: .75rem; padding: .2rem 0 .4rem; }
.ab-id .logo--square, .ab-id .logo--none { width: 52px; height: 52px; font-size: 1.5rem; }
.ab-txt { display: flex; flex-direction: column; min-width: 0; } .ab-txt b { font-size: 1.05rem; }
.ab-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .3rem .9rem .5rem; margin: .7rem 0; }
.ab-h { display: flex; align-items: center; gap: .5rem; font-size: 1rem; padding: .6rem 0 .4rem; }
.ab-h .ic { color: var(--accent-text); }
.ab-row { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.ab-row > span:last-child { text-align: end; }
.ab-row.today { font-weight: 700; }
.ab-link { display: flex; align-items: center; gap: .6rem; min-height: 48px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ab-link .main { flex: 1; font-weight: 600; }
.ab-link .wa { color: #1f9d55; } [data-mode="dark"] .ab-link .wa { color: #6fd39a; }
.ab-link > .ic:last-child { color: var(--muted); width: 1.05em; height: 1.05em; }
/* the basket bar floats over the page (a soft fade behind it, no strip) */
.cartbar { background: linear-gradient(to top, var(--bg) calc(100% - 14px), color-mix(in srgb, var(--bg) 0%, transparent)); padding-top: 14px; backdrop-filter: none; border-top: 0; }
.cartbar-btn { box-shadow: 0 8px 24px rgba(0,0,0,.24); }
/* the cover theme writes the open/closed state once, in the hero; its top bar shows the name only */
body.quiet-top .top .brand-txt .state { display: none; }
@media (min-width: 1000px) { body.quiet-top:not(.past-hero) .top .brand { visibility: visible; } } /* computers: a normal top bar with the name */

/* ---------- order 15, QA journey fixes ---------- */
/* #6: an error note has a warning sign and the error colours (a tick only for what worked) */
.toast--err { background: var(--bad-bg); color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.toast--info { background: var(--surface-2); color: var(--ink); }
/* #2: what went wrong after «أرسل» is in the fixed bar, right above the button */
.foot-err { display: flex; align-items: flex-start; gap: .5rem; margin: 0; padding: .55rem .75rem; font-size: .9rem; }
.foot-err .ic { flex: none; margin-top: .1rem; }
/* #4: a closed shop: one clear bar at the top; the basket bar says when it opens */
.closedbar { background: var(--bad-bg); color: var(--bad); }
.closedbar-in { max-width: var(--max, 1240px); margin: 0 auto; display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; }
.closedbar-in > .ic { flex: none; margin-top: .15rem; }
.closedbar b { display: block; font-size: .98rem; } .closedbar small { display: block; color: var(--ink); opacity: .85; font-size: .82rem; margin-top: .1rem; }
.cartbar-btn.closed { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 8px 24px rgba(0,0,0,.18); }
.cartbar-btn.closed .cnt { background: var(--surface); }
/* #5: an area we do not deliver to: say so, pick up instead, or ask on WhatsApp */
.zone-none { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; padding: 1rem 0 .5rem; }
.zone-none .zn-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.zone-none h3 { font-size: 1.1rem; } .zone-none p { margin: 0 0 .3rem; font-size: .9rem; }
.zone-none .btn { width: 100%; }
.btn.ghost.wide { color: var(--ink); border: 1.5px solid var(--field-line, var(--line)); text-decoration: none; }
/* #9: the address (or branch) on the order's page, on the device that ordered */
.my-order .mo-h { display: flex; align-items: center; gap: .45rem; padding-top: .3rem; } .my-order .mo-h .ic { color: var(--accent-text); }
.my-order p { margin: .3rem 0 .2rem; } .my-order small { display: block; padding-bottom: .3rem; font-size: .78rem; }
body.quiet-top:not(.past-hero) .top .brand { pointer-events: none; } /* hidden over the cover: not tappable either */
/* Order 15: «اطلب لوقت لاحق» — «متى تبيه؟» (الحين / وقت لاحق), the days, the slots (design idea 1) */
.when { display: flex; flex-direction: column; gap: .6rem; }
.when-seg { flex: none; }
.when-seg button { min-height: 58px; flex-direction: column; }
.when-seg button.off { opacity: .55; }
.seg-2 { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.seg-2 small { font-size: .74rem; font-weight: 500; opacity: .85; }
.when .info { margin: 0; }
.days { display: flex; gap: .5rem; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; min-width: 78px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: .35rem .7rem; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); scroll-snap-align: start; }
.day small { color: var(--muted); font-size: .76rem; }
.day.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.day.on small { color: var(--accent-text); }
.day.none { opacity: .6; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; } /* two a row: «11:30 م – 12:00 ص» (12-hour, owner 01-12-2026) fits a 390 px phone */
.slot { min-height: 48px; padding: .3rem .2rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .86rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; white-space: nowrap; }
.slot.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.slot.full { background: var(--surface-2); color: var(--muted); text-decoration: line-through; border-style: dashed; }
.slot.full small { text-decoration: none; font-weight: 500; font-size: .7rem; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .78rem; }
.legend span { display: inline-flex; align-items: center; gap: .3rem; }
.legend .sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.legend .sw.on { background: var(--accent); } .legend .sw.full { background: var(--surface-2); border: 1px dashed var(--muted); }
.sheet--when .sheet-foot { margin-top: .8rem; }
/* the closed bar offers a later order right there */
.closedbar-in { flex-wrap: wrap; }
.closedbar-txt { flex: 1 1 200px; min-width: 0; }
.closedbar-btn { min-height: 44px; padding: .45rem .9rem; font-size: .92rem; background: var(--surface); color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.closedbar-btn .ic { color: inherit; }
/* the order's page: the booked time in its own card */
.when-card { display: flex; align-items: center; gap: .7rem; margin: .7rem auto .2rem; padding: .7rem .9rem; border-radius: 14px; background: var(--accent-soft); text-align: start; max-width: 420px; }
.when-card .pin { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--accent-text); }
.when-card small { display: block; font-size: .8rem; color: var(--accent-text); } /* «بتوقيت الكويت» too: --muted was 4.41:1 on the card's tint (04-12-2026) */
.when-card b { display: block; font-size: 1.02rem; }
.when-card .when-time { unicode-bidi: isolate; text-align: start; }
[dir="rtl"] .when-card .when-time { text-align: right; }
/* «تبي موقع مثل هذا؟» on the platform's demo shops (order 18, design): our navy and gold, not the shop's colour */
.demo-strip { display: flex; align-items: center; gap: .55rem; min-height: 48px; margin: .75rem .9rem 0; padding: .55rem .9rem; background: #1b2a4a; color: #fff; border-radius: 14px; text-decoration: none; font-size: .9rem; line-height: 1.5; }
.demo-strip .ic { width: 20px; height: 20px; color: #d4b062; }
.demo-strip .ds-q { flex: 1; font-weight: 600; }
.demo-strip .ds-go { color: #d4b062; font-weight: 700; white-space: nowrap; }
.demo-strip:active { background: #24365e; }
.demo-card { margin: 1.5rem .9rem 0; padding: 1.25rem 1.1rem 1.1rem; background: #1b2a4a; color: #fff; border-radius: 20px; display: grid; gap: .55rem; justify-items: start; }
.demo-card .dc-label { font-size: .78rem; font-weight: 700; color: #1b2a4a; background: #d4b062; border-radius: 999px; padding: .15rem .7rem; line-height: 1.6; }
.demo-card .dc-title { margin: 0; font-size: 1.3rem; line-height: 1.6; font-weight: 700; color: #fff; }
.demo-card .dc-body { margin: 0; font-size: .95rem; line-height: 1.7; color: #c9d1e0; }
.demo-card .dc-btn { justify-self: stretch; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; margin-top: .3rem; background: #c8a24a; color: #1b2a4a; border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.5; }
.demo-card .dc-btn .ic { width: 22px; height: 22px; }
.demo-card .dc-btn:active { background: #d4b062; }
.demo-card .dc-ph { justify-self: center; font-size: .85rem; color: #c9d1e0; }
[data-mode="dark"] .demo-strip, [data-mode="dark"] .demo-card { background: #141d2e; border: 1px solid rgba(212, 176, 98, .45); }
@media (min-width: 900px) { .demo-strip, .demo-card { max-width: var(--max, 1240px); margin-inline: auto; } }
@media print { .demo-strip, .demo-card { display: none !important; } }
/* ?debug=cats on the demo shops (order 19): the sections row's numbers on the owner's own phone */
.cats-debug { position: fixed; inset-inline: 8px; inset-block-end: calc(76px + env(safe-area-inset-bottom)); z-index: 90; background: rgba(0,0,0,.78); color: #fff; font: 600 12px/1.4 ui-monospace, monospace; padding: 6px 8px; border-radius: 8px; direction: ltr; pointer-events: none; }
.powered.privacy { padding-top: 0; }

/* order 19: the shop's terms and privacy pages, and the lines that lead to them */
.legal-view { max-width: 760px; margin: 0 auto; padding: 1rem 1.1rem 2rem; }
.legal-back { display: inline-block; margin: .4rem 0 .8rem; }
.legal { line-height: 1.75; }
.legal-title { font-size: 1.45rem; margin: .2rem 0 .3rem; }
.legal-meta { color: var(--muted, #666); font-size: .85rem; margin: 0 0 1rem; }
.legal-lead { background: var(--accent-soft, rgba(0, 0, 0, .04)); border-radius: 12px; padding: .8rem .9rem; margin: 0 0 1.2rem; }
.legal-h { font-size: 1.08rem; margin: 1.3rem 0 .4rem; }
.legal-list { margin: 0; padding-inline-start: 1.2rem; }
.legal-list li { margin: .35rem 0; }
.legal-list li.sub { list-style: circle; margin-inline-start: 1rem; }
.legal-p { margin: .5rem 0; }
.legal-other { margin-top: 1.6rem; }
.legal-agree { font-size: .8rem; text-align: center; margin: .1rem 0 .45rem; opacity: .85; }
/* order 21 (hunt L7): the terms and privacy links above «أرسل الطلب» are a finger's height (they were 15 px) */
.legal-agree a { display: inline-block; min-height: 44px; line-height: 44px; padding-inline: .15rem; }
/* order 21 (hunt L9): a phone on its side: the basket's fixed foot took 153 of 390 px; there it scrolls with the basket */
@media (orientation: landscape) and (max-height: 480px) { .sheet--cart .sheet-foot { position: static; } }
.legal-agree a, .legal-links a, .legal-view a.link { color: var(--accent-text, inherit); text-decoration: underline; }
.legal-disclose { font-size: .78rem; }

/* Order 19 design: the new pieces shared by the three themes (base.css additions). Classes only (CSP), logical
   properties, Arabic line-height >= 1.5, touch >= 44 px. Hidden when the data is empty. */
/* «جاهز غدًا» / «جاهز بعد 7 أيام» on a card and in the item sheet (item.leadDays / option.leadDays) */
.lead { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; padding: .1rem .55rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: .78rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.lead .ic { width: 14px; height: 14px; }
/* item facts (fabric, length, care…) and the perfume notes (facts with kind top/heart/base) */
/* .ifacts, never .facts: .facts is the restaurant cover's «مفتوح الحين» line (design review of 820ed2b) */
.ifacts { display: grid; gap: 0; margin: .2rem 0 .8rem; border-block: 1px solid var(--line); }
.ifacts .f { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; line-height: 1.6; font-size: .92rem; }
.ifacts .f + .f { border-top: 1px solid var(--line); }
.ifacts .f b { font-weight: 600; } .ifacts .f span { color: var(--muted); text-align: end; }
.notes { display: grid; gap: .45rem; margin: .2rem 0 .9rem; }
.notes .nt { display: grid; grid-template-columns: 5.5rem 1fr 3.5rem; align-items: center; gap: .6rem; line-height: 1.6; font-size: .92rem; }
.notes .nt b { font-weight: 600; color: var(--accent-text); }
.notes .bar { display: block; justify-self: end; height: 6px; border-radius: 3px; background: var(--accent-line); opacity: .35; }
.notes .nt:nth-of-type(1) .bar { inline-size: 55%; } .notes .nt:nth-of-type(2) .bar { inline-size: 78%; } .notes .nt:nth-of-type(3) .bar { inline-size: 100%; opacity: .6; }
/* colour swatches: a dot before the colour's NAME (never colour alone); the hex comes from axes[].swatches via
   el.style.setProperty('--sw', hex) (CSSOM, allowed by the CSP) */
.chip .sw, .dots .sw { inline-size: 18px; block-size: 18px; border-radius: 50%; background: var(--sw, #888); box-shadow: inset 0 0 0 1px rgba(127,127,127,.45); flex: none; }
/* a colour chip in the item sheet: the dot BEFORE the name on one row, the price or «نفد» under both */
.group .chip:has(> .sw) { flex-direction: row; flex-wrap: wrap; gap: .1rem .45rem; }
.group .chip:has(> .sw) > small { flex-basis: 100%; text-align: center; }
.dots { display: flex; gap: .3rem; margin-top: .25rem; } .dots .sw { inline-size: 12px; block-size: 12px; }
/* a text add-on (option.input = 'text'): «اكتب على الكيك», «رسالة الإهداء», «مقاساتك» */
.opt-text { display: grid; gap: .35rem; margin-top: .4rem; }
.opt-text input, .opt-text textarea { min-height: 48px; padding: .6rem .8rem; border: 1.5px solid var(--field-line); border-radius: var(--r-btn, 12px); background: var(--surface); font-size: 16px; line-height: 1.6; }
.opt-text small { color: var(--muted); font-size: .8rem; }
/* «جاهز غدًا» in the basket: a small pill, never the line's width */
.line .lead, .sheet--cart .lead { align-self: flex-start; justify-self: start; inline-size: fit-content; }
/* the sizes/colours note on a look card: one line per axis, a value never broken («52–60») */
.card--look .vnote { display: grid; gap: .1rem; }
.card--look .vnote > span { white-space: nowrap; }

/* order 19 (presale #2): the platform's status line («نواجه عطل، نشتغل عليه») */
.platform-notice { position: relative; z-index: 60; padding: .55rem 1rem; text-align: center; font-size: .92rem; font-weight: 600; line-height: 1.6; }
.platform-notice.warn { background: #fff4d6; color: #5c4300; border-bottom: 1px solid #e9cf86; }
.platform-notice.info { background: #e6f0ff; color: #12345e; border-bottom: 1px solid #b9cff2; }

/* «عندك كوبون؟» in the basket (order 21, public/sitecoupon.js) */
.cpn { margin: .5rem 0; }
.cpn-ask { min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent-text); font-weight: 700; text-decoration: underline; }
.cpn-row { display: flex; align-items: center; gap: .5rem; }
.cpn-row input { flex: 1; min-width: 0; min-height: 48px; padding: .6rem .8rem; border-radius: var(--r-field, 12px); border: 1px solid var(--field-line, var(--line)); background: var(--field, var(--surface)); color: var(--ink); font-size: 16px; text-transform: uppercase; }
.cpn-row input[aria-invalid="true"] { border-color: var(--bad); }
.cpn-go { flex: none; white-space: nowrap; }
.cpn.on { padding: .55rem .8rem; border-radius: 12px; background: var(--ok-bg, var(--surface-2)); }
.cpn-main { flex: 1; min-width: 0; overflow-wrap: anywhere; } .cpn-code { font-weight: 800; letter-spacing: .03em; }
.cpn-x { flex: none; min-height: 44px; padding: 0 .4rem; border: 0; background: none; color: var(--accent-text); font-weight: 700; text-decoration: underline; }
.cpn-msg { display: block; margin-top: .3rem; color: var(--bad); font-size: .85rem; }
.cpn-note { display: block; margin-top: .2rem; color: var(--muted); font-size: .82rem; }
.sum.off span:last-child { color: var(--ok, inherit); }

/* Order 21 (B2 + B3): «استخدم نقاطي» in the basket, and under a delivered order «قيّم طلبك» and the loyalty card. */
.lyl { margin: .5rem 0; } .lyl.on { padding: .55rem .8rem; border-radius: 12px; background: var(--ok-bg, var(--surface-2)); }
.lyl-row { display: flex; align-items: center; gap: .6rem; min-height: 44px; margin: 0; font-weight: 700; }
.lyl-row input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--accent); }
.lyl-note { display: block; color: var(--muted); font-size: .82rem; } .lyl-msg { display: block; margin-top: .3rem; color: var(--bad); font-size: .85rem; }
.after:empty { display: none; }
.after-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card, 16px); padding: .9rem 1rem; margin: .8rem 0; display: flex; flex-direction: column; gap: .5rem; }
.rvw-pick { display: flex; gap: .2rem; justify-content: center; direction: ltr; }
.rvw-star { min-width: 48px; min-height: 48px; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; padding: 0; }
.rvw-star.on { color: #d49b12; } .rvw-stars { color: #d49b12; letter-spacing: .1em; } .rvw-stars .off { color: var(--line); }
.rvw-items { display: flex; flex-direction: column; gap: .2rem; } .rvw-item { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.rvw-item > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; } .rvw-thumbs { display: flex; gap: .3rem; flex: none; }
.rvw-thumb { min-width: 44px; min-height: 44px; border: 1px solid var(--field-line, var(--line)); border-radius: 10px; background: var(--field, var(--surface)); color: var(--muted); cursor: pointer; }
.rvw-thumb.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.after-box textarea { width: 100%; min-height: 64px; padding: .6rem .8rem; border-radius: var(--r-field, 12px); border: 1px solid var(--field-line, var(--line)); background: var(--field, var(--surface)); color: var(--ink); font: inherit; font-size: 16px; }
.after-box .btn.wide { width: 100%; }

/* «ادفع أونلاين» (order 21 C, public/sitepay.js): the choice in the basket and the payment box on the order's page.
   Taps are 48px+; «تجريبي» is always visible in test mode. No card field anywhere: the gateway's own page takes it. */
.paychoice { border: 0; padding: 0; margin: .7rem 0; min-width: 0; display: grid; gap: .45rem; }
.paychoice legend { padding: 0; margin-bottom: .35rem; font-weight: 700; font-size: .95rem; }
.payopt { display: flex; align-items: center; gap: .65rem; min-height: 52px; padding: .55rem .8rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface, var(--card)); cursor: pointer; }
.payopt.on { border-color: var(--accent-line, var(--brand, currentColor)); background: var(--surface-2, var(--soft)); }
.payopt input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent, var(--brand)); }
.payopt-main { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.payopt-main small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
/* the owner 04-12-2026 (the order page at night): the looks had no --warn, so «تجريبي» was a day pill (4.46:1) on a night page */
:root { --warn: #8a5c00; --warn-bg: #fff4dc; }
[data-mode="dark"] { --warn: #f0c060; --warn-bg: #362b12; }
.paytest { display: inline-block; padding: .05rem .5rem; border-radius: 99px; background: var(--warn-bg); color: var(--warn); font-size: .75rem; font-weight: 700; vertical-align: middle; }
.paytest-note { display: block; color: var(--warn); font-size: .82rem; }
.paybox { margin: .8rem 0; padding: .8rem .9rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface, var(--card)); display: grid; gap: .5rem; text-align: start; }
.paybox.ok { border-color: var(--ok); background: var(--ok-bg, var(--surface-2, var(--soft))); }
.paybox.bad { border-color: var(--bad); background: var(--bad-bg, var(--surface-2, var(--soft))); }
.paybox p { margin: 0; }
.paybox b { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.payacts { display: flex; flex-wrap: wrap; gap: .5rem; }
.payacts .btn { flex: 1 1 9rem; min-height: 48px; }
.paymsg { color: var(--bad); font-size: .9rem; }
.paybox .spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--muted); animation: payspin .9s linear infinite; flex: none; }
@keyframes payspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .paybox .spin { animation-duration: 3s; } }

/* QA order 21 (CLS 0.125 on the sweets look, also on live): the top bar's state line (open now + the closing time)
   fitted one line in the phone's own font and took two once the look's font arrived, so the bar grew and the whole
   page moved. The line is one line high for good, in every look and both languages: when the closing time does not
   fit beside the state it goes to a second row that is not shown (whole: a time is never cut to «1:00» without its
   AM/PM, the 12-hour rule of 01-12-2026); the closing time stays in the shop's card and the about sheet. */
.top .brand-txt .state { height: 2em; row-gap: 1em; overflow: hidden; align-content: flex-start; align-items: center; }

/* order 21 (coordinator, 03-12-2026): a closed shop always says when it opens. The time is one piece (never broken,
   cut or dropped); on a narrow phone the first part is its short form so the line still fits. */
.closedbar .cb-when { white-space: nowrap; display: inline-block; }
.closedbar .cb-short { display: none; }
@media (max-width: 400px) { .closedbar .cb-long { display: none; } .closedbar .cb-short { display: inline; } }

/* ---------- Order 21 (visual upgrade, design 2026-12-02-order-21-visual-upgrade): store/visual.js ---------- */
/* A photo that moves, CSS only (the four of demos/photo-motion.html, unchanged). The class is on the photo's box
   from the start; the movement begins with .mv-on, which the script adds only after the picture has been painted. */
.mv { overflow: hidden; }
/* 1. slow zoom and drift, 14 s, back and forth */
.mv-zoom.mv-on img { animation: kb 14s ease-in-out infinite alternate; transform-origin: 60% 50%; }
@keyframes kb { from { transform: scale(1) translateX(0) } to { transform: scale(1.12) translateX(-3%) } }
/* 2. a soft band of light passes every 4 s (::before: the covers' own shade is ::after) */
.mv-sweep { position: relative; }
.mv-sweep.mv-on::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.38) 50%, transparent 65%); transform: translateX(-120%); animation: sweep 4s ease-in-out infinite; }
@keyframes sweep { 0%, 20% { transform: translateX(-120%) } 70%, 100% { transform: translateX(120%) } }
/* 3. the fabric seems to sway (tiny scale + skew), 6 s */
.mv-sway.mv-on img { animation: sway 6s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes sway { from { transform: scale(1.02) skewX(0deg) } to { transform: scale(1.05) skewX(-1.2deg) translateY(-1%) } }
/* 4. depth on scroll: the photo moves slower than the page; a phone without scroll-driven animation keeps it still */
@supports (animation-timeline: view()) {
  .mv-depth { position: relative; }
  .mv-depth.mv-on img { position: absolute; inset-block-start: -15%; inset-inline-start: 0; height: 130%; animation: par linear both; animation-timeline: view(); }
  @keyframes par { from { transform: translateY(-8%) } to { transform: translateY(8%) } }
}

/* «الأكثر طلبًا هالأسبوع»: a row of small cards with 1-2-3 */
.best { background: var(--bg); }
.best[hidden] { display: none; }
.best-in { max-width: var(--max, 1240px); margin: 0 auto; padding: .2rem .9rem .5rem; }
.best-t { font: var(--head-weight, 700) 1.08rem/1.6 var(--font-head, var(--font)); margin: 0 0 .45rem; }
.best-row { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .35rem; scrollbar-width: none; margin-inline: -.9rem; padding-inline: .9rem; }
.best-row::-webkit-scrollbar { display: none; }
.best-c { flex: none; width: 132px; display: flex; flex-direction: column; gap: .15rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; scroll-snap-align: start; }
.best-ph { position: relative; display: block; width: 132px; height: 106px; border-radius: var(--r, 14px); overflow: hidden; background: var(--photo-bg, var(--surface-2)); }
.best-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.best-ph img:not([src]) { visibility: hidden; }
.best-c.sold .best-ph img { opacity: .55; }
.rank { position: absolute; inset-block-start: 6px; inset-inline-start: 6px; min-width: 24px; height: 22px; padding: 0 .45rem; border-radius: 99px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 .78rem/1 var(--font); }
.best-n { font-weight: 600; font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; } /* never cut: a long name takes another line */
.best-p { color: var(--muted); font-size: .82rem; }
@media (min-width: 600px) { .best-in { padding-inline: 1.5rem; } .best-row { margin-inline: -1.5rem; padding-inline: 1.5rem; } .best-c, .best-ph { width: 160px; } .best-ph { height: 128px; } }
@media (min-width: 1000px) { .best-row { flex-wrap: wrap; overflow: visible; } }

/* someone who asked the phone for less motion sees still photos (the gallery's part is in store/gallery.css) */
@media (prefers-reduced-motion: reduce) {
  .mv-zoom.mv-on img, .mv-sway.mv-on img, .mv-depth.mv-on img, .mv-sweep.mv-on::before { animation: none !important; }
  .mv-sweep.mv-on::before { display: none; }
}
/* order 21 (location): «حدّد موقعي» in the basket (the panel's own styles come with store/locate.css, on tap) */
.locbtn { margin: .25rem 0; }
.locwrap:empty { display: none; }
.loc-pin, .loc-last, .loc-before { margin: .25rem 0; }
.loc-top { margin-bottom: .6rem; } /* order 21 (location): first in «وين نوصّل طلبك؟» */
/* order 21 (bundles): the entry cards on the menu («سوّ بوكس هديتك», «سوّ صينيتك») and the abaya's «شوفي الإطلالة كاملة»
   (the builder's own styles come with store/bundle.css, on tap) */
.bx-entries { display: flex; flex-direction: column; gap: .6rem; padding-top: 1.1rem; }
.bx-entry { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 72px; padding: .55rem .8rem; border: 1px solid var(--accent-line); border-radius: var(--r, 14px); background: var(--accent-soft); color: var(--ink); text-align: start; }
.bx-entry img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--photo-bg, var(--surface-2)); }
.bx-et { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bx-et b { font-size: 1.05rem; }
.bx-et small { color: var(--accent-text); }
.bx-look { margin-block: .4rem; }
/* order 21 (owner: «خليه على المحافظات»): «وين نوصّل طلبك؟» with many areas: the governorates folded, one open at a time */
.gov-row { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 56px; padding: .5rem .2rem; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-weight: 700; text-align: start; cursor: pointer; scroll-margin-top: 4.2rem; }
.gov-name { flex: 1; }
.gov-n { font-weight: 500; }
.gov-chev { display: inline-grid; }
@media (prefers-reduced-motion: no-preference) { .gov-chev { transition: transform .15s; } }
.gov-row.open .gov-chev { transform: rotate(180deg); }
.gov-block > .zone-list { padding-inline-start: .6rem; }
.gov-row.open { color: var(--accent-text, var(--ink)); }
/* order 21 (owner: «حق الخانات اللي لازم نجمه»): required fields end with a red «*», optional ones say so */
.req { color: var(--bad, #b3261e); font-weight: 700; text-decoration: none; margin-inline-start: .15rem; }
.optl { color: var(--muted); font-weight: 400; font-size: .85em; }
/* order 21 (map): the map buttons, the pinned box with its small map, the kind of address (بيت / شقة / مكتب) */
.locmap { margin: .25rem 0; }
.loc-or { margin: .35rem 0 .1rem; }
.loc-pinned { display: grid; gap: .4rem; padding: .6rem; border: 1px solid var(--line); border-radius: var(--r, 12px); background: var(--surface); }
.loc-preview { height: 120px; border-radius: 10px; overflow: hidden; direction: ltr; }
.loc-acts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.addr-types { display: flex; gap: .5rem; }
.addr-type { flex: 1; min-height: 44px; border-radius: var(--r-btn, 22px); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.addr-type.on { background: var(--accent); color: var(--on-accent, #fff); border-color: var(--accent); }

/* ---------- order 21, storefront v2 (design team/reports/design/2026-12-03-order-21-storefront-v2, owner approved) ---------- */
/* m01: the cover is 214 px (16:9 on a phone), a fixed box so nothing moves when it arrives */
.hero--shop .cover { height: max(214px, calc(150px + env(safe-area-inset-top))); }
/* the facts under the name: «25-35 دقيقة» (only when the shop set it) and «من 0.500 د.ك» */
.facts-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .65rem; }
.fact { display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; padding: .2rem .8rem; border-radius: 99px; background: var(--surface-2); color: var(--ink); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.fact .ic { width: 1.05em; height: 1.05em; color: var(--muted); }
.fact.free { background: var(--ok-bg); color: var(--ok); } .fact.free .ic { color: currentColor; }
.hero--center .facts-row, .hero-card .facts-row { justify-content: center; }
/* the delivery/pickup switch: a grey track, the chosen way a raised white piece, bold, its icon in the shop's colour */
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.16); font-weight: 700; }
.seg button.on .ic { color: var(--accent-text); }
.ordercard .seg button { min-height: 48px; font-size: 1rem; }
/* step 2: the sections as words with a line under the one being read (restaurants, m01-m02); one 46 px row */
.cats--tabs { border-bottom: 1px solid var(--line); }
.cats--tabs .cats-scroll { padding-block: 0; align-items: center; }
.cats--tabs .cat { min-height: 46px; padding-block: 0; }
.cats--tabs .cat.on { border-bottom-color: var(--accent-line, var(--accent)); }
/* «الأكثر طلبًا هالأسبوع»: square photos with the same «+» / «− 1 +» as the menu on them */
.best-c, .best-ph { width: 140px; } .best-ph { height: 140px; }
.best-c:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r, 14px); }
.best-ph .ctl, .card--tile .ph .ctl { position: absolute; inset-block-end: 6px; inset-inline-end: 6px; z-index: 1; }
.best-ph .ctl:empty, .card .ctl:empty { display: none; }
.best-ph .ctl:has(.stepper), .card--tile .ph .ctl:has(.stepper) { inset-inline-start: 6px; }
.best-ph .add, .card--tile .ph .add { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.22); }
.best-ph .stepper, .card--tile .ph .stepper { width: 100%; justify-content: space-between; gap: 0; padding: 0; background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 10px rgba(0,0,0,.22); }
.best-ph .stepper button, .card--tile .ph .stepper button { color: inherit; width: 44px; height: 44px; background: transparent; box-shadow: none; }
.best-ph .stepper b, .card--tile .ph .stepper b { min-width: 0; }
/* order 25 notes (QA's final check of f3d5067: after an add from a sweets card its «+» was cut off outside the card): EVERY
   two-column card has its «+» / «− 1 +» on the photo (themes.js photoAdd): the squares above, and here the perfumes' tall cards
   and the abayas' looks. Beside the price the stepper (3 × 44 px) is wider than the room a 160-176 px card has left. */
.card--tall .ph .ctl, .card--look .ph .ctl { position: absolute; inset-block-end: 6px; inset-inline-end: 6px; z-index: 1; }
.card--tall .ph .ctl:has(.stepper), .card--look .ph .ctl:has(.stepper) { inset-inline-start: 6px; }
.card--tall .ph .add, .card--look .ph .add { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.22); }
.card--tall .ph .stepper, .card--look .ph .stepper { width: 100%; justify-content: space-between; gap: 0; padding: 0; background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 10px rgba(0,0,0,.22); }
.card--tall .ph .stepper button, .card--look .ph .stepper button { color: inherit; width: 44px; height: 44px; background: transparent; box-shadow: none; }
.card--tall .ph .stepper b, .card--look .ph .stepper b { min-width: 0; }
.best-ph .tag-out { position: static; }
/* «الأكثر طلبًا» on a card: a line above the name (rows), a white label on the photo (squares) */
.hot { display: inline-flex; align-items: center; gap: .25rem; color: var(--accent-text); font-size: .8rem; font-weight: 700; }
.hot .ic { width: 14px; height: 14px; }
.ph .hot { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; padding: .15rem .55rem; border-radius: 8px; background: #ffffff; color: #141414; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.ph .hot .ic { display: none; }
/* the sizes on the card (perfumes, m05): a sold-out one is struck through */
.szs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .35rem; }
.sz { display: inline-flex; align-items: center; min-height: 28px; padding: 0 .55rem; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .8rem; }
.sz.out { text-decoration: line-through; }
@media (prefers-reduced-motion: no-preference) { .ctl .stepper { animation: sf2-pop .15s ease-out; } }
@keyframes sf2-pop { 50% { transform: scale(1.08); } }
/* step 3: the item sheet (m07-m08): «مطلوب» on a choice still to make, a green «✓ تم» once made, «اختار 1» under its name,
   «(اختياري)» by the add-ons; the missing one is framed and shakes once when «أضف» is pressed */
.reqb { margin-inline-start: auto; flex: none; display: inline-flex; align-items: center; gap: .2rem; min-height: 26px; padding: 0 .6rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.reqb.done { background: var(--ok-bg); color: var(--ok); }
.reqb .ic { width: 14px; height: 14px; }
.group-h { align-items: center; }
.pick1 { display: block; margin: -.3rem 0 .45rem; color: var(--muted); font-size: .82rem; }
.group-h .optl { margin-inline-start: auto; }
.group.need { box-shadow: inset 0 0 0 2px var(--bad); }
.group.need .reqb { background: var(--bad-bg); color: var(--bad); }
@media (prefers-reduced-motion: no-preference) { .group.shake { animation: sf2-shake .16s ease-in-out; } }
@keyframes sf2-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* QA round B4 (order 21, v2): «الأكثر طلبًا» under the sections' line. Restaurants (m01): the row is the menu's first section
   (the line's first tab), so it takes the menu's own side space. Electronics and perfumes (m03, m05): the look's cards. */
.menu .sec--best { padding-top: .8rem; }
.menu .sec--best .best-in { padding: 0; }
.menu .sec--best .best-row { margin-inline: -.9rem; padding-inline: .9rem; }
.best--grid .best-in { padding-block: .9rem .1rem; }
.best--grid .best-t { display: flex; align-items: baseline; gap: .5rem; }
.best--grid .best-t small { font: 500 .8rem var(--font); color: var(--muted); }
.card .ph > .rank { z-index: 1; }
@media (min-width: 600px) { .best--grid .best-in { padding-inline: .9rem; } }
.hero--slim.hero--center .hero-in { padding-block: .9rem .7rem; } /* m05: no seal, so no room kept for it */

/* ---------- order 21, first screen (design team/reports/design/2026-12-03-order-21-delivery-bar, SPEC.md) ---------- */
/* ONE row under the shop's name: the way + the usual time | the area + its fee | «موقعي». The facts, the way switch,
   «التوصيل إلى» and «متى تبيه؟» are no longer on the menu (the basket keeps its card, m09/m14). --r-dbar per look. */
.orderbar-in { padding-bottom: 0; }
.orderbar-in > .dbar { flex: 1 1 100%; }
.dbar { display: flex; align-items: stretch; min-height: 60px; margin: 14px 0 0; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-dbar, 16px); container-type: inline-size; color: var(--ink); }
@media (min-width: 600px) { .orderbar-in > .dbar { flex: 0 1 560px; } }
:where(.dbar) > :where(button, span, div) { font: inherit; color: inherit; background: none; border: 0; margin: 0; text-align: start; } /* no weight: the parts below win */
.dbar .tx { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.35; }
.dbar .tx b { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbar .tx small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbar .tx small.free { color: var(--ok); font-weight: 600; }
.dbar .tx b, .dbar .tx small, .dmini .mz b { padding-block: .3em; margin-block: -.3em; } /* room for the dots under «ي» (order 15) */
.dway { flex: none; display: flex; align-items: center; max-width: 44%; min-height: 58px; padding-inline: 12px 10px; border-inline-end: 1px solid var(--line); cursor: pointer; }
.dway.static { cursor: default; }
.dway .cv, .dwhere .cv, .dmini .cv { width: 13px; height: 13px; color: var(--muted); flex: none; }
.dwhere { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 58px; padding-inline: 10px 8px; cursor: pointer; }
div.dwhere { cursor: default; }
.dwhere > .ic:first-child { width: 18px; height: 18px; flex: none; color: var(--accent-text); }
.dwhere .tx { flex: 1; }
.dwhere.choose .tx b { color: var(--accent-text); }
.dloc { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; margin: 7px; margin-inline-start: 0; padding: 0 11px; border-radius: max(2px, calc(var(--r-dbar, 16px) - 5px)); background: var(--accent-soft); color: var(--accent-text); font-size: 13.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.dloc .ic { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) { .dloc.busy .ic { animation: dloc-spin 1s linear infinite; } }
@keyframes dloc-spin { to { transform: rotate(360deg); } }
@container (max-width: 349px) { .dloc > span { display: none; } .dloc { padding: 0; } }
.dnot { flex: none; min-height: 44px; padding-inline: 8px 12px; color: var(--accent-text); font-size: 13.5px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.dbar.bad { border: 1.5px solid var(--bad); background: var(--bad-bg); }
.dbar.bad .dwhere > .ic:first-child, .dbar.bad .dwhere .tx b { color: var(--bad); }
.dhelp { flex: 1 1 100%; display: flex; gap: 8px; margin-top: 8px; }
.dhelp button { flex: 1; min-height: 44px; border-radius: max(2px, calc(var(--r-dbar, 16px) - 4px)); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; }
.dhelp button.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* the way's menu: two rows under the bar */
.dwmenu { position: fixed; z-index: 60; inset-inline-start: 16px; width: min(300px, calc(100vw - 32px)); padding: 6px; border-radius: 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.22); display: grid; gap: 4px; }
.wopt { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.wopt.on { background: var(--accent-soft); }
.wopt > .ic:first-child { width: 22px; height: 22px; color: var(--accent-text); flex: none; }
.wopt .tx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wopt .tx b { font-size: 15px; } .wopt .tx small { font-size: 12.5px; color: var(--muted); }
.wopt .ok { width: 18px; height: 18px; color: var(--accent-text); }
/* while scrolling (option A, the manager's choice): a 44 px line under the top bar. It hangs from the sticky bar (absolute),
   so the page under it never moves; the sections' row sticks under it. */
:root { --mini-h: 44px; }
.dmini { display: none; position: absolute; inset-inline: 0; inset-block-start: calc(100% + 1px); height: var(--mini-h); background: var(--top-bg); border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.dmini-in { max-width: var(--max, 1240px); margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 8px; padding-inline: .9rem; }
:where(.dmini) :where(button, span) { font: inherit; color: inherit; background: none; border: 0; }
.dmini .mw { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; }
.dmini .mw > .ic:first-child, .dmini .mz > .ic:first-child { width: 18px; height: 18px; color: var(--accent-text); flex: none; }
.dmini .sep { flex: none; width: 1px; height: 20px; background: var(--line); }
.dmini .mz { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-align: start; }
.dmini .mz b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmini .mz.choose b { color: var(--accent-text); }
.dmini .mf { flex: none; color: var(--muted); white-space: nowrap; } .dmini .mf.free { color: var(--ok); font-weight: 600; }
.dmini .mloc { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.dmini .mloc .ic { width: 18px; height: 18px; }
@media (max-width: 999px) {
  body.past-bar .dmini { display: block; }
  body.past-bar { scroll-padding-top: calc(8rem + var(--mini-h)); }
  body.past-bar.quiet-top .top { background: var(--top-bg); border-bottom-color: var(--line); }
}
/* QA round 2: the line starts under the top bar's own 1 px border (it hung from the padding box: a 1 px slit showed the page
   between it and the row). (B1) the line is there at once and solid (no fade: it covers the bar's last 44 px as they go under the top bar,
   and a fading line let the page show through it for 2-4 frames) */
.dmini .mz.bad b, .dmini .mz.bad > .ic:first-child { color: var(--bad); }
/* QA round 2 (B4, SPEC 5: the stuck bars ≤ 160 px): what of the sections' row tucks under the line once it shows: the top
   padding of the pills and words (62 → 52), the sweets' photo circles (115 → 46: the names stay, the photos go) */
@media (max-width: 999px) {
  .cats--side, .cats--pills, .cats--text { --cats-tuck: 10px; }
  .cats--circles { --cats-tuck: 69px; }
  .cats:has(.nav-search) { --cats-tuck: 0px; }
  body.past-bar .cats { inset-block-start: calc(var(--top-h) + var(--mini-h) - var(--cats-tuck, 0px)); }
  body.cats-tucked .cats--circles .cat-img { visibility: hidden; }
  body.cats-tucked .cats--circles .cat.on .cat-name { font-weight: 700; text-decoration: underline 2px var(--accent-line); text-underline-offset: 5px; }
  /* QA release 5 (the tabs check, run on its own: «the row turned back» by 1 px at the row's end, old): a bold name is wider,
     so every mark changed the chips' widths and the row's end. Each name keeps its bold width from the start (a hidden bold
     copy of it, engine.js data-t): marking never changes a width, the row never shifts */
  .cats--circles .cat-name::after { content: attr(data-t); display: block; height: 0; overflow: hidden; visibility: hidden; font-weight: 700; }
}
/* «تبي موقع مثل هذا؟» is after the first section now (never before the items) */
.menu .demo-strip { margin: 1rem 0 .4rem; }
/* QA round 2 (B3): the strip's own display: flex must not beat [hidden] (a search hides it); after every .demo-strip rule */
.demo-strip[hidden] { display: none; }
/* the search as a button in the top bar (m04-m06: perfumes, abayas, sweets) and the name in the middle of the bar (m05) */
@media (max-width: 999px) { .top.top--search .top-search { display: inline-grid; } }
.top--center .top-in { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px; gap: 0; }
.top--center .top-act { display: contents; }
.top--center .brand { grid-column: 3; grid-row: 1; justify-content: center; text-align: center; }
.top--center .brand-txt { align-items: center; }
.top--center .brand-name { font-weight: 600; letter-spacing: .3px; }
.top--center .top-search { grid-column: 1; grid-row: 1; }
.top--center .mode-btn { grid-column: 2; grid-row: 1; }
.top--center .lang-btn { grid-column: 4; grid-row: 1; justify-self: center; }
.top--center .cart-btn { grid-column: 5; grid-row: 1; }
@media (min-width: 1000px) { .top--center .top-in { grid-template-columns: auto auto minmax(0, 1fr) auto auto; column-gap: .4rem; } }
/* sections as words, in the middle when they fit, from the start when they do not (never cut at the start) */
.cats--text .cats-scroll > :first-child, .cats--centre .cats-scroll > :first-child { margin-inline-start: auto; }
.cats--text .cats-scroll > :last-child, .cats--centre .cats-scroll > :last-child { margin-inline-end: auto; }
/* the owner 04-12-2026: the search from the top bar's magnifier, under the sections' row, with its own close (44 px) */
.nav-search.ns-top { display: flex; align-items: center; gap: .4rem; }
.nav-search.ns-top .search { flex: 1; min-width: 0; }
.nav-search .ns-close { flex: none; width: 44px; height: 44px; }
@media (max-width: 999px) { .hero .desk-only { display: none; } }
/* ---------- order 25 (team/reports/manager/2026-12-04-order-25.md): where the customer is asked about the delivery ---------- */
/* retail looks: ONE read-only promise instead of the bar (the same place, shorter: the first item comes up).
   QA release 5 (it jumped 20 px on a 360 px phone when the look's font came late: its lines broke by the font's width): its
   height is FIXED from the first draw, whatever the font. Two lines of 20 px, each never wrapping: line 1 = the first piece
   (the chevron at its end), line 2 = the rest under the whole width (13 px, so «from 0.750 KD · or pick up at …» fits a
   360 px phone in the widest look's font). The time and the fee never shrink; a name from the shop's data (.pk the branch,
   .pz the kept area) ends in «…» when it is too long. Each piece (.pc) is its own box, as tall as the line, so two weights
   (two font files) never share a baseline and every piece of a line starts at the same height. */
.orderbar-in > .dpromise { flex: 1 1 100%; }
.dpromise { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 10px 0 0; padding: 6px 2px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; line-height: 20px; text-align: start; }
button.dpromise { cursor: pointer; }
.dpromise > .ic:first-child { width: 18px; height: 18px; flex: none; color: var(--accent-text); }
.dpromise .tx { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
.dpromise .p1, .dpromise .p2 { min-width: 0; display: flex; column-gap: .3em; }
.dpromise .p1 { grid-area: 1 / 1; }
.dpromise .p2 { grid-area: 2 / 1 / 3 / 3; font-size: 13px; }
.dpromise.static .p1 { grid-area: 1 / 1 / 2 / 3; }
.dpromise .tx b, .dpromise .tx .pk { display: flex; column-gap: .3em; min-width: 0; white-space: nowrap; }
.dpromise .tx b { flex: none; font-weight: 600; }
.dpromise .tx .pk, .dpromise .tx b.pz { flex: 0 1 auto; }
.dpromise .tx .pc { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-block: .3em; margin-block: -.3em; } /* only a .pk / .pz can be narrower than its words; room for the dots under «ي» */
.dpromise .tx .pt { flex: none; } /* order 25 notes: the nearest time is whole on every phone; the words before it give way */
.dpromise .tx .pk { color: var(--muted); }
.dpromise .tx .pk.only { color: var(--ink); font-weight: 600; }
.dpromise .cv { grid-area: 1 / 2; width: 13px; height: 13px; color: var(--muted); }
/* QA re-check of ab792e6: a closed shop that takes later orders says «أقرب توصيل اليوم 10:00 ص · من 0.750 د.ك» on line 2: «أو
   استلم من …» has no room after it on a phone (the item's page and the basket say it); a wide screen shows it */
@media (max-width: 599px) { .dpromise .tx .pk.far { display: none; } }
/* and on a wide screen the arrow was some 500 px away from the words (the line is 560 px, the words 200): the line is as
   wide as its words and the arrow stands right after them, in the middle of the two lines */
@media (min-width: 600px) {
  .orderbar-in > .dpromise { flex: 0 1 auto; max-width: 560px; }
  .dpromise .tx { flex: 0 1 auto; grid-template-columns: minmax(0, auto) auto; }
  .dpromise .p2 { grid-area: 2 / 1; }
  .dpromise .cv { grid-area: 1 / 2 / 3 / 3; }
}
body:has(.layout--panel) .orderbar.orderbar--promise { display: block; } /* a computer keeps the promise too (its basket panel asks the area) */
/* QA release 5 (old, on live too): on a 360 px Android in Arabic «أضف للسلة · 30.000 د.ك» pushed the item page's button
   1-23 px off the screen (.btn.grow never shrinks under its words): a narrow phone gives the words the room.
   Its re-check of ab792e6: 100 KD and more («أضف للسلة · 110.000 د.ك») was still 4-10 px off a 384 / 390 px screen. So on
   EVERY phone (320 to 430 px) the button takes what is left beside the stepper and never more: tighter sides, letters that
   follow the screen's width (16 px from 400 px up, 14.4 at 360, never under 14), so up to 999.999 KD is one line from 360 px
   up in the widest look's font; where even that is not enough (a 320 / 340 px screen, 1,000 KD and more on a small one) the
   words go on two lines inside the button, the price whole on its own line (money()'s no-break space). Under 350 px the
   Arabic words are always the two lines «أضف للسلة» over the price, with no «·» left at a line's end */
@media (max-width: 349px) { [dir="rtl"] .sheet-foot .btn.grow .sep { display: block; height: 0; overflow: hidden; } }
@media (max-width: 430px) { .sheet-foot { gap: .4rem; } .sheet-foot .stepper { gap: 0; } .sheet-foot .btn.grow { min-width: 0; padding-inline: .25rem; font-size: clamp(.875rem, 4vw, 1rem); line-height: 1.2; white-space: normal; text-align: center; } }
/* the item's page: «يوصلك خلال … · من … د.ك» and «متوفر للاستلام من …» under the price */
.ipromise { display: grid; gap: 4px; margin: 2px 0 10px; font-size: 13.5px; color: var(--muted); }
.ipromise p { display: flex; align-items: flex-start; gap: 6px; margin: 0; line-height: 1.45; }
.ipromise .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent-text); }
/* food looks: «وين نوصّل طلبك؟» on the first «أضف» (the way, the areas or the chosen one with its facts, «متى تبيه؟») */
.sheet--ask .sheet-body { min-height: min(70vh, 560px); min-height: min(70dvh, 560px); }
.sheet--ask .seg.ask-way { flex: none; margin-bottom: .6rem; }
.sheet--ask .seg.ask-way button { min-height: 48px; font-size: 1rem; }
.ask-why { margin: 0 0 .6rem; font-size: .9rem; }
.ask-zone { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ask-z-h { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ask-z-h > .ic { width: 20px; height: 20px; flex: none; color: var(--accent-text); }
.ask-z-h b { flex: 1; min-width: 0; font-size: 1.05rem; }
.ask-change { min-height: 44px; padding-inline: 8px; }
.ask-facts { padding: 0; }
.ask-facts span b { white-space: nowrap; }
.ask-facts .made { justify-content: center; } /* order 25 notes: «جاهز بعد يومين» with its date under it, or alone until the times are here */
.sheet--ask .ask-when { margin-top: 1rem; }
.sheet--ask .zone-results .zone-group { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
