/* Argele — one small stylesheet, mobile first, RTL aware (logical properties), no web fonts. */
:root {
  --brand: #0f5c4d; --brand-ink: #0a4237; --brand-soft: #e3efe9;
  --accent: #d97706; --accent-soft: #fdf1dc;
  --bg: #f5f3ee; --card: #ffffff; --ink: #1d1b18; --muted: #6d675f; --line: #e4dfd6;
  --ok: #157347; --ok-soft: #e1f3e8; --warn: #a15c07; --warn-soft: #fdf0d9;
  --bad: #b42318; --bad-soft: #fde7e5; --info: #1d4f91; --info-soft: #e3edfa;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --nav-h: 62px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3fb393; --brand-ink: #7fd3bb; --brand-soft: #16302a;
    --accent: #f0a63a; --accent-soft: #3a2a12;
    --bg: #121211; --card: #1c1c1a; --ink: #f1eee8; --muted: #a39d93; --line: #2f2d2a;
    --ok: #4cc38a; --ok-soft: #13301f; --warn: #f0b153; --warn-soft: #36270f;
    --bad: #f07167; --bad-soft: #3a1714; --info: #7fb0f0; --info-soft: #14243a;
    --shadow: none; color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif;
}
body.has-nav { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .75em; }
small, .muted { color: var(--muted); }
.small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* layout */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 420px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.section { padding: 16px 0; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .m0 { margin: 0; }
.center { text-align: center; }
.hidden { display: none !important; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--brand); color: #fff; }
.topbar .wrap, .topbar .wrap-wide { display: flex; align-items: center; gap: 12px; min-height: 54px; }
.topbar a { color: #fff; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; color: #fff; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.topbar .spacer { flex: 1; }
.topbar .link { opacity: .92; font-size: .95rem; }
.topbar .shopname { font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* bottom nav (app) */
.bnav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: var(--card);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.bnav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; max-width: 760px; }
.bnav li { flex: 1; }
.bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--nav-h);
  color: var(--muted); font-size: .72rem; text-decoration: none; position: relative; }
.bnav a svg { width: 24px; height: 24px; }
.bnav a.on { color: var(--brand); font-weight: 700; }
.bnav a.plus span.ic { background: var(--accent); color: #fff; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; margin-top: -18px; box-shadow: var(--shadow); }
.bnav .badge { position: absolute; top: 6px; inset-inline-start: 55%; }

/* cards & lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.tight { padding: 12px; }
.card h2, .card h3 { margin-bottom: 8px; }
.list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > li { padding: 12px 14px; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list > li > a.block { display: block; color: inherit; text-decoration: none; margin: -12px -14px; padding: 12px 14px; }
.list > li > a.block:active { background: var(--brand-soft); }
.list > li > a.block.row { display: flex; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; text-align: end; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat .v { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.stat .l { color: var(--muted); font-size: .85rem; }
.stat.accent { background: var(--accent-soft); border-color: transparent; }
.stat.brand { background: var(--brand-soft); border-color: transparent; }
a.stat { color: inherit; text-decoration: none; display: block; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }

/* badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--line); color: var(--ink); white-space: nowrap; }
.b-new { background: var(--info-soft); color: var(--info); }
.b-assigned { background: var(--warn-soft); color: var(--warn); }
.b-delivered { background: var(--accent-soft); color: var(--accent); }
.b-completed, .b-paid, .b-ok { background: var(--ok-soft); color: var(--ok); }
.b-cancelled, .b-bad, .b-credit { background: var(--bad-soft); color: var(--bad); }
.b-partial, .b-unpaid { background: var(--warn-soft); color: var(--warn); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.open { background: var(--ok); } .dot.closed { background: var(--bad); }

/* alerts */
.alert { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-weight: 600; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.info { background: var(--info-soft); color: var(--info); }
.offline-bar { position: fixed; top: 0; inset-inline: 0; z-index: 50; background: var(--warn); color: #fff; text-align: center; padding: 6px; font-size: .85rem; }

/* forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field { margin-bottom: 12px; }
.hint { color: var(--muted); font-size: .8rem; font-weight: 400; margin-top: 3px; }
input, select, textarea, button { font: inherit; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
  min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
textarea { min-height: 80px; resize: vertical; }
input[dir=ltr] { text-align: start; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; padding: 8px 0; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); }
.money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid transparent; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.lg { min-height: 54px; font-size: 1.05rem; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .875rem; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn.accent { background: var(--accent); }
.btn.danger { background: var(--bad); }
.btn.ok { background: var(--ok); }
.btn.wa { background: #1fa855; }
.btn.light { background: var(--brand-soft); color: var(--brand-ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns > .btn { flex: 1 1 auto; }
button.linkish { background: none; border: 0; color: var(--brand); padding: 0; cursor: pointer; font-weight: 600; }
.inline { display: inline; }

/* tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* qty stepper */
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.qty input { width: 52px !important; text-align: center; padding: 6px !important; min-height: 40px !important; }
.item-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.item-row:first-child { border-top: 0; }
.item-row .name { flex: 1; font-weight: 600; }
.item-row .price { color: var(--muted); font-size: .85rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 12px; text-align: start; border-top: 1px solid var(--line); white-space: nowrap; }
thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: .8rem; background: var(--bg); }
td.num, th.num { text-align: end; font-variant-numeric: tabular-nums; }

/* order cards */
.ocard { display: block; color: inherit; text-decoration: none !important; }
.ocard .top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ocard .who { font-weight: 700; }
.ocard .addr { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.ocard .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; font-size: .85rem; }
.amount { font-weight: 800; font-variant-numeric: tabular-nums; }
.big-amount { font-size: 1.9rem; font-weight: 800; }

/* public */
.hero { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-ink) 100%); color: #fff; padding: 36px 0 44px; }
.hero h1 { font-size: 1.8rem; }
.hero p { opacity: .92; font-size: 1.05rem; }
.hero .search { background: var(--card); border-radius: 16px; padding: 12px; margin-top: 18px; color: var(--ink); }
@media (min-width: 760px) { .hero h1 { font-size: 2.4rem; } .hero { padding: 64px 0 72px; } }
.shopcard { display: flex; gap: 12px; align-items: flex-start; }
.avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; flex: 0 0 auto; }
.stars { color: var(--accent); letter-spacing: 1px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); background: var(--accent); color: #fff; font-weight: 800; border-radius: 50%; width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; }
.price-tag { font-size: 2rem; font-weight: 800; color: var(--brand); }
.footer { padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
[dir=ltr] .rating-input { flex-direction: row-reverse; justify-content: flex-end; }
.rating-input input { display: none; }
.rating-input label { font-size: 2rem; color: var(--line); cursor: pointer; margin: 0; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--accent); }
.honey { position: absolute; inset-inline-start: -9999px; }

/* ======================================================================== polish (shared) */
.btn { transition: filter .15s, transform .05s, background-color .15s; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.topbar { box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 2px 10px rgba(0,0,0,.08); }
.card { border-radius: 16px; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.danger-text { color: var(--bad) !important; }
details > summary { cursor: pointer; font-weight: 600; color: var(--brand); list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; display: inline-block; transition: transform .15s; }
[dir=rtl] details > summary::before { content: "◂ "; }
details[open] > summary::before { transform: rotate(90deg); }
[dir=rtl] details[open] > summary::before { transform: rotate(-90deg); }
details > summary.btn::before { content: none; }
.tabs small { opacity: .7; font-weight: 700; margin-inline-start: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ======================================================================== owner: menu */
.linkcard h2 { margin-bottom: 4px; }
.linkbox { display: flex; align-items: baseline; gap: 2px; background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px;
  font-size: 1.05rem; overflow-x: auto; white-space: nowrap; }
.linkbox .host { color: var(--muted); }
.linkbox strong { color: var(--brand); }
.prefix-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.prefix-input span { display: flex; align-items: center; padding: 0 10px; background: var(--bg); color: var(--muted); font-size: .9rem; white-space: nowrap; }
.prefix-input input { border: 0 !important; border-radius: 0 !important; min-width: 0; }
.sec-head { display: flex; align-items: center; gap: 8px; }
.sec-head h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.icon-btns { display: flex; gap: 6px; }
.ibtn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1rem; font-weight: 700; cursor: pointer; }
.ibtn.sm { width: 32px; height: 32px; font-size: .9rem; }
.ibtn[disabled] { opacity: .3; cursor: default; }
.chip-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; min-height: 32px; }
details.sub { margin: 6px 0 4px; font-size: .9rem; }
.list > li > a.block:not(.row) { position: relative; padding-inline-end: 34px; }
.list > li > a.block:not(.row)::after { content: "›"; position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.3rem; line-height: 1; }
[dir=rtl] .list > li > a.block:not(.row)::after { content: "‹"; }
.mlist { list-style: none; margin: 8px 0 0; padding: 0; }
.mlist > li { border-top: 1px solid var(--line); padding: 12px 0; }
.mlist > li:first-child { border-top: 0; }
.mlist > li.off .mname, .mlist > li.off .mprice, .mlist > li.off .mdesc { opacity: .5; }
.mname { font-weight: 700; }
.mdesc { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.mprice { font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-actions { margin-top: 8px; gap: 6px; }
.edit-form { margin-top: 12px; padding: 12px; background: var(--bg); border-radius: 12px; }
.add-item { margin-top: 12px; }
.add-item > summary { display: inline-flex; }
.msec-owner { scroll-margin-top: 70px; }

/* ======================================================================== public menu (argele.app/<shop>) */
.menu-page { background: var(--bg); }
.mhero { background: radial-gradient(120% 140% at 100% 0%, #1b7a66 0%, var(--brand) 45%, #08392f 100%); color: #fff;
  padding: 12px 0 22px; border-radius: 0 0 26px 26px; }
@media (prefers-color-scheme: dark) { .mhero { background: radial-gradient(120% 140% at 100% 0%, #1f5f52 0%, #12443a 50%, #0b2a24 100%); } }
.mhero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mini-logo { display: inline-flex; align-items: center; gap: 6px; color: #fff; opacity: .85; font-weight: 700; font-size: .9rem; }
.mini-logo img { border-radius: 7px; }
.lang-pill { color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 700; }
.mhero-shop { display: flex; gap: 14px; align-items: center; }
.mavatar { width: 68px; height: 68px; flex: 0 0 68px; border-radius: 20px; background: #fff; color: #0f5c4d; display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 800; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.mhero h1 { font-size: 1.55rem; margin: 0 0 6px; color: #fff; }
.mmeta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .88rem; opacity: .95; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-weight: 700; background: rgba(255,255,255,.14); }
.status .dot { background: #9ca3af; }
.status.is-open .dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.status.is-closed .dot { background: #f87171; }
.mdescr { margin: 14px 0 0; opacity: .92; font-size: .95rem; }
.mactions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; border-radius: 14px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff !important; font: inherit; font-size: .85rem; font-weight: 700;
  cursor: pointer; text-decoration: none !important; }
.mbtn svg { width: 22px; height: 22px; }
.mbtn.wa { background: #25d366; border-color: #25d366; }
.mbtn:active { transform: translateY(1px); }

.catbar { position: sticky; top: 0; z-index: 15; background: var(--bg); border-bottom: 1px solid var(--line); }
.catbar-in { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; scroll-behavior: smooth; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font-weight: 700; font-size: .9rem; text-decoration: none; transition: background-color .15s, color .15s; }
.catbar a.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.mmain { padding-top: 16px; padding-bottom: 24px; }
body.has-cart .mmain { padding-bottom: 96px; }
.menu-page { scroll-behavior: smooth; }
.msec { scroll-margin-top: 64px; margin-bottom: 22px; }
.msec-title { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; margin: 6px 2px 10px; }
.msec-title small { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.mgrid { display: grid; gap: 10px; }
@media (min-width: 640px) { .mgrid { grid-template-columns: 1fr 1fr; } }
.mitem { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  transition: border-color .15s, box-shadow .15s; }
.mitem.in-cart { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.mitem-text { flex: 1; min-width: 0; }
.mitem h3 { font-size: 1rem; margin: 0; }
.mitem p { margin: 3px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.mitem-price { margin-top: 6px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.mitem-ctl { flex: 0 0 auto; }
.add-btn { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.4rem; font-weight: 800;
  cursor: pointer; display: grid; place-items: center; }
.add-btn:active { transform: scale(.94); }
.stepper { display: inline-flex; align-items: center; background: var(--brand); color: #fff; border-radius: 14px; overflow: hidden; }
.stepper button { width: 38px; height: 42px; border: 0; background: transparent; color: #fff; font-size: 1.25rem; font-weight: 800; cursor: pointer; }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.zones-card[open] summary { margin-bottom: 6px; }
.mfoot { text-align: center; padding: 8px 0 28px; font-size: .85rem; color: var(--muted); }
.mfoot a { color: var(--muted); }

.cartbar { position: fixed; z-index: 40; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 736px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 58px; border: 0; border-radius: 18px; background: var(--brand); color: #fff;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.25); text-align: start; }
.cart-count { background: #fff; color: #0f5c4d; border-radius: 10px; min-width: 30px; height: 30px; display: grid; place-items: center; font-weight: 800; padding: 0 6px; }
.cartbar.bump { animation: bump .3s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }

.sheet-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.45); }
.sheet { position: fixed; z-index: 50; inset-inline: 0; bottom: 0; max-width: 760px; margin: 0 auto; max-height: 90vh;
  display: flex; flex-direction: column; background: var(--card); color: var(--ink); border-radius: 22px 22px 0 0;
  transform: translateY(100%); transition: transform .2s ease; box-shadow: 0 -10px 30px rgba(0,0,0,.2); }
.sheet.open { transform: translateY(0); }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px 8px; }
.sheet-head h2 { flex: 1; }
.close-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); font-size: 1rem; cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 0 16px; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-lines .ln { font-weight: 700; }
.cart-lines .lp { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.cart-lines .stepper button { width: 34px; height: 36px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 0; font-size: 1.1rem; }
.cart-total strong { font-size: 1.4rem; }
body.sheet-open { overflow: hidden; }

/* carts sent on WhatsApp */
.loc-btn { margin-bottom: 4px; }
.loc-btn.ok { background: var(--ok-soft); color: var(--ok); }
.confirm-card { border-color: var(--ok); background: var(--ok-soft); }
.confirm-card .muted { color: var(--ink); opacity: .8; }

/* ===== menu photos & offers ===== */
.mthumb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.mthumb.lg { width: 96px; height: 96px; flex-basis: 96px; }
.mprice-box { text-align: end; line-height: 1.2; }
.mprice-box .old { display: block; color: var(--muted); font-size: .8rem; }
.edit-box { margin-top: 10px; }
.photo-edit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; margin: 0; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.mphoto { position: relative; flex: 0 0 88px; width: 88px; height: 88px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--bg); cursor: zoom-in; }
.mphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.off-tag { position: absolute; top: 6px; inset-inline-start: 6px; background: #dc2626; color: #fff; font-size: .7rem; font-weight: 800; padding: 2px 6px; border-radius: 999px; }
.off-pill { display: inline-block; background: #fee2e2; color: #b91c1c; font-size: .72rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; margin-inline-start: 4px; vertical-align: 1px; }
.mitem-price .old { color: var(--muted); font-weight: 500; font-size: .85rem; margin-inline-start: 6px; }
.offer-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, #fff1db, #ffe4c4); color: #7c2d12; border: 1px solid #fed7aa; }
.offer-banner strong { display: block; line-height: 1.35; }
.offer-banner small { display: block; opacity: .8; margin-top: 2px; }
.offer-ic { font-size: 1.6rem; line-height: 1; }
.zoom { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 16px; }
.zoom img { max-width: 100%; max-height: 85vh; border-radius: 12px; }
.zoom .close-x { position: absolute; top: 14px; inset-inline-end: 14px; background: rgba(255,255,255,.15); color: #fff; }
@media (prefers-color-scheme: dark) {
  .offer-banner { background: linear-gradient(135deg, #3a2410, #42230d); color: #fed7aa; border-color: #5c3416; }
  .off-pill { background: #4c1515; color: #fca5a5; }
}

/* ---------------------------------------------------------------- app feel (Turbo page changes) */
.turbo-progress-bar { height: 3px; background: var(--accent); }
.topbar { view-transition-name: topbar; }
.bnav { view-transition-name: bnav; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; }
::view-transition-group(topbar), ::view-transition-group(bnav) { animation: none; }
a, button, .btn, .card { -webkit-tap-highlight-color: transparent; }
.bnav a:active, .btn:active, a.card:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
