/* 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 */
.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; min-height: 60px; }
.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, calc(60px + env(safe-area-inset-top))); 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: 40px; 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) {
  .top-in { padding-inline: 1.5rem; min-height: 68px; }
  .hero-in, .orderbar-in, .layout, .search-row, .cats-scroll { padding-inline: 1.5rem; }
  .search-row .search { max-width: 520px; }
  .cats { inset-block-start: var(--top-h, 68px); }
  .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; }
.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; }

/* #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 */
@media (max-width: 999px) {
  body.quiet-top .top { position: fixed; inset-inline: 0; inset-block-start: 0; 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; }
  body.quiet-top .cats { inset-block-start: var(--top-h, calc(60px + env(safe-area-inset-top))); }
}
/* 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); } .when-card small.muted { color: var(--muted); }
.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; }
.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; }
