/* ==========================================================================
   QRMENUS — guest menu, design v2 (grid + banners, light + dark)

   Self-contained: menu.html does not use assets/styles.css, so the marketing
   site and the dashboard cannot move anything here. Colours are tokens on
   <body> (dark by default, body.light for the light theme); layout rules never
   depend on the theme. assets/menu-app.js fills the markup, assets/cart.js,
   assets/waiter-call.js (services + the game row) and assets/guest-features.js hook into it.
   Tokens follow the v2 guest design kit (design-tokens.json).
   ========================================================================== */

/* ---------- tokens ---------- */
body{
  --bg:#121613; --surface:#1b211c; --surface-2:#242d26; --text:#f3f5ee; --muted:#a4afa3;
  --line:#2c372e; --primary:#f3f5ee; --on-primary:#172018;
  --amber:#e5b967; --amber-soft:#2c261b; --amber-ink:#e5b967; --heart:#e5b967;
  --focus:#e5b967; --danger:#f08a8a; --ok:#73c896;
  --overlay:rgba(0,0,0,.65); --shadow:0 16px 60px rgba(0,0,0,.3);
  /* names older helpers (cart, waiter call, language dropdown) still read */
  --card:var(--surface); --card-2:var(--surface-2); --border:var(--line); --soft:var(--surface-2);
  --accent:var(--primary); --on-accent:var(--on-primary); --accent-tint-soft:var(--amber-soft); --accent-glow:rgba(245,245,240,.18);
  --ink:var(--text); color-scheme:dark;
}
body.light{
  --bg:#fbfcf8; --surface:#ffffff; --surface-2:#f0f2ec; --text:#1b211c; --muted:#5e685e;
  --line:#e4e8df; --primary:#202720; --on-primary:#ffffff;
  --amber:#d39a3f; --amber-soft:#faf0dc; --amber-ink:#97621a; --heart:#97621a;
  --focus:#97621a; --danger:#b42323; --ok:#2e7a55;
  --overlay:rgba(10,13,11,.55); --shadow:0 16px 60px rgba(0,0,0,.12); --accent-glow:rgba(23,25,24,.16);
  color-scheme:light;
}

/* ---------- base ---------- */
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);min-height:100vh;overflow-x:hidden;
  font-family:"Noto Sans Georgian",Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:14px;line-height:1.5;transition:background .2s,color .2s;
  padding-bottom:calc(84px + env(safe-area-inset-bottom))}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
button,a,input{-webkit-tap-highlight-color:transparent}
img{display:block;max-width:100%}
a{color:inherit}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
[hidden]{display:none!important}
svg.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.wrap{max-width:960px;margin:0 auto;padding:0 14px}
::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:var(--line);border-radius:99px}

/* ---------- loading / error ---------- */
.menu-state{padding:60px 20px;text-align:center;color:var(--muted);font-size:14px}
.menu-state.error{color:var(--danger)}
.menu-state .retry{display:inline-flex;align-items:center;justify-content:center;min-height:46px;margin-top:14px;padding:0 18px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-weight:600}
.sk{max-width:960px;margin:0 auto;padding:12px 14px}
.sk i{display:block;border-radius:12px;background:var(--surface-2);animation:skp 1.3s ease-in-out infinite}
.sk .a{height:40px;width:55%}.sk .b{height:88px;margin-top:12px}.sk .c{height:46px;margin-top:12px}
.sk .g{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;margin-top:14px}.sk .g i{height:150px}
@keyframes skp{50%{opacity:.55}}

/* ---------- header ---------- */
.top{display:flex;align-items:center;gap:4px;min-height:64px;padding:10px 0}
.brand{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-decoration:none}
.brand-logo{width:38px;height:38px;border-radius:10px;object-fit:cover;background:var(--surface-2);flex:none}
.brand-txt{min-width:0}
/* the name wraps to a second line instead of being cut */
.brand-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:15px;font-weight:700;line-height:1.25;letter-spacing:-.2px}
.brand-sub{display:block;margin-top:2px;font-size:12px;color:var(--muted);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hbtn{position:relative;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:12px;color:var(--text)}
.hbtn:active{transform:scale(.96)}
/* the language dropdown (assets/lang-drop.js) is the one bordered control */
.top .lang-switch{display:flex;align-items:center;margin-right:2px}
.top .lang-switch--drop .lang-trigger{height:40px;padding:0 9px;gap:5px;border-radius:12px;background:var(--surface);border:1px solid var(--line);color:var(--text);font-size:12px}
.top .lang-switch--drop .lang-trigger svg:not(.caret){width:16px;height:11px}
.top .lang-switch button[data-lang]{padding:0 10px;height:40px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:12px;font-weight:700}
.top .lang-switch button[data-lang].active{background:var(--primary);color:var(--on-primary)}

/* ---------- cover + meta line ---------- */
.cover{height:88px;border-radius:12px;background:var(--surface-2) center 53%/cover no-repeat}
.meta{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:48px;margin-right:-6px}
.status{display:inline-flex;align-items:center;gap:6px;min-height:44px;max-width:100%;min-width:0;padding:0;font-size:12px;color:var(--text);text-align:left}
.status b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status .dot{width:7px;height:7px;border-radius:50%;background:var(--muted);flex:none}
.status.open .dot{background:var(--ok)}
.status.closed .dot{background:var(--danger)}
.status .chev{width:12px;height:12px;color:var(--muted)}
.socials{display:flex;align-items:center;flex:none}
.social{position:relative;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.social span{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--surface);border:1px solid var(--line)}
.social svg{width:16px;height:16px;fill:currentColor}
.social span{color:var(--text)}
.social.ig svg{fill:url(#igGrad)}
.social.fb svg{fill:#1877f2}
.social.maps svg{fill:#ea4335}
/* every glyph fills a different part of its 24-unit box (Instagram all of it, Facebook 20, the pin 14 wide), so the sizes differ to look equal */
.social.ig svg{width:14px;height:14px}
.social.fb svg{width:17px;height:17px}
.social.maps svg{width:18px;height:18px}
body.in-cat .cover,body.in-cat .meta{display:none}

/* ---------- search + filter ---------- */
.search{display:flex;align-items:center;gap:8px;padding:0 0 10px}
.sbox{position:relative;flex:1;min-width:0}
.sbox>svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted);pointer-events:none}
.sinput{width:100%;height:46px;padding:0 44px 0 38px;border:1px solid var(--line);border-radius:12px;background:var(--surface);
  color:var(--text);font-size:16px;outline:none;-webkit-appearance:none;appearance:none}
.sinput::placeholder{color:var(--muted);font-size:14px}
.sinput::-webkit-search-cancel-button{display:none}
.sinput:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
.sclear{position:absolute;right:0;top:1px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.sclear svg{width:18px;height:18px}
.fbtn{position:relative;width:46px;height:46px;flex:none;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.fbadge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--primary);color:var(--on-primary);font-size:11px;font-weight:700;line-height:18px;text-align:center}

/* ---------- category chips (grid layout) ---------- */
.rail{position:sticky;top:0;z-index:30;background:var(--bg);margin:0 -14px;padding:0 0 10px 14px}
.rail-in{position:relative;display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:2px 0}
.rail-in::-webkit-scrollbar{display:none}
.chip{position:relative;flex:none;height:40px;max-width:210px;padding:0 13px;border-radius:24px;border:1px solid var(--line);background:var(--surface);
  color:var(--text);font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chip.on{background:var(--primary);border-color:var(--primary);color:var(--on-primary);font-weight:600}
.chip-list{position:sticky;right:0;flex:none;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;
  background:var(--bg);box-shadow:-10px 0 10px -4px var(--bg);margin-left:auto}
.chip-list svg{width:20px;height:20px}

/* ---------- active promotion (one thin line, opens for details) ---------- */
.promo{display:block;width:100%;margin:0 0 4px;padding:0;border:0;border-radius:10px;background:var(--amber-soft);text-align:left;overflow:hidden}
.promo-row{display:flex;align-items:center;gap:8px;min-height:38px;padding:4px 10px}
.promo-badge{width:22px;height:22px;border-radius:50%;background:transparent;color:var(--amber-ink);font-size:15px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex:none}
.promo-main{flex:1;min-width:0;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.promo .chev{width:15px;height:15px;transition:transform .18s;opacity:.7}
.promo[aria-expanded="true"] .chev{transform:rotate(90deg)}
.promo-more{display:none;padding:0 12px 10px 42px;font-size:12px;color:var(--amber-ink);line-height:1.5}
.promo[aria-expanded="true"] .promo-more{display:block}

/* ---------- section heading (name + count) ---------- */
.sec{margin-bottom:6px}
.sec-h{display:flex;align-items:center;gap:8px;margin:14px 0 2px;min-height:28px}
.sec-t{font-size:15px;font-weight:700;letter-spacing:-.2px;min-width:0;overflow-wrap:anywhere}
.sec-n{font-size:12px;color:var(--muted);white-space:nowrap;margin-left:auto}

/* one dish = one row: photo | name, portion, price | heart over "+" (design v5) */
.rows{display:flex;flex-direction:column}
.card{position:relative;display:flex;align-items:center;gap:13px;min-width:0;min-height:116px;padding:13px 0;border-bottom:1px solid var(--line);cursor:pointer}
.card.off{opacity:.55}
.card-hit{position:absolute;inset:0;z-index:1;border-radius:11px;background:none}
.card-hit:focus-visible{outline-offset:-2px}
.photo{position:relative;flex:none;width:86px;height:86px;background:var(--surface-2);border-radius:10px;overflow:hidden}
.photo img{width:100%;height:100%;object-fit:cover}
.body{display:flex;flex-direction:column;flex:1;min-width:0;align-self:center}
.name{font-size:13px;font-weight:600;line-height:1.45;letter-spacing:-.2px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.wt{padding-top:3px;font-size:11px;color:var(--muted);line-height:1.5}
.wt .lt{color:var(--ok)}
.price{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 5px;margin-top:7px;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.3}
.price .cur{font-size:13px;font-weight:600;margin-left:1px}
.price .was{order:2;font-size:11px;font-weight:400;color:var(--muted)}
.card.deal-on .price{color:var(--amber-ink)}
.acts{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:space-between;align-self:stretch;width:44px;flex:none;margin-right:-6px}
.fav{position:relative;width:44px;height:44px;display:grid;place-items:center;color:var(--muted)}
.fav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.fav.on{color:var(--heart)}
.fav.on svg{fill:currentColor}
.add{position:relative;width:44px;height:44px;margin-top:auto;display:grid;place-items:center;color:var(--text)}
.add::before{content:"";position:absolute;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:var(--surface)}
.add svg{position:relative;width:16px;height:16px}
.add:active{transform:scale(.94)}
.add.done::before{background:var(--primary);border-color:var(--primary)}
.add.done{color:var(--on-primary)}
.ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--muted);opacity:.5}
.ph svg{width:26px;height:26px}
.deal{position:absolute;left:6px;top:6px;z-index:2;padding:1px 7px;border-radius:999px;background:var(--amber);color:#2b1c00;font-size:11px;font-weight:700}
.desc{display:none;margin-top:3px;font-size:13px;color:var(--muted);line-height:1.4;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.tag{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;background:var(--surface-2);color:var(--muted);white-space:nowrap}
.tag svg.i{width:13px;height:13px}
.tag-green{background:rgba(50,130,92,.14);color:var(--ok)}
.tag-blue{background:rgba(70,120,230,.16);color:#8fb0f5}
.tag-red{background:rgba(220,80,80,.16);color:var(--danger)}
.tag-amber{background:var(--amber-soft);color:var(--amber-ink)}
body.light .tag-blue{color:#1d4ed8}
.off-l{font-size:12px;color:var(--muted);margin-right:8px}
.empty{padding:40px 16px;text-align:center;color:var(--muted);font-size:13px}
.empty svg{display:block;width:32px;height:32px;opacity:.7;margin:0 auto 12px}
.empty b{display:block;color:var(--text);font-size:16px;margin-bottom:6px}
.empty span{display:block;max-width:300px;margin:0 auto}
.empty .reset{display:inline-flex;align-items:center;justify-content:center;min-height:46px;margin-top:14px;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-weight:600;font-size:13px}

/* ---------- category banners ---------- */
.ban-h{display:flex;align-items:center;gap:8px;margin:12px 0 10px}
.ban-h h2{font-size:15px;font-weight:700;letter-spacing:-.2px}
.ban-h small{margin-left:auto;font-size:12px;color:var(--muted)}
.banners{display:flex;flex-direction:column;gap:10px}
.banner{position:relative;display:block;width:100%;height:96px;border-radius:12px;overflow:hidden;text-align:left;color:#fff;isolation:isolate;
  background:linear-gradient(120deg,#2d3330,#1c201e)}
.banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.b-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.66) 0%,rgba(0,0,0,.36) 55%,rgba(0,0,0,.05) 100%)}
.b-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:40px;height:40px;color:#fff;opacity:.9;display:flex}
.b-icon svg{width:40px;height:40px}
.b-txt{position:absolute;left:16px;right:58px;top:0;bottom:0;display:flex;flex-direction:column;justify-content:center;min-width:0}
.banner.has-icon .b-txt{left:68px}
.b-name{font-size:17px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.b-sub{margin-top:2px;font-size:12px;color:rgba(255,255,255,.86)}
.b-go{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.42)}
.b-go svg{width:16px;height:16px;stroke:#fff}
.back{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin:0 0 8px;padding:0 6px 0 0;font-size:14px;font-weight:600;max-width:100%}
.back svg{width:18px;height:18px;flex:none}
.back span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.back+.sec-h{margin-top:0}


/* ---------- extras (service note, review) + footer ---------- */
.extras{margin-top:24px}
.extras:empty{display:none}
.svc-note{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:12px}
.review{display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 16px 18px;text-align:center;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.review .g{width:26px;height:26px;flex:none}
.review .t{font-size:14px;font-weight:600;line-height:1.5}
.review .d{font-size:12px;color:var(--muted)}
.review a{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin-top:4px;padding:0 18px;border:1px solid var(--line);border-radius:22px;font-size:12px;font-weight:600;text-decoration:none}
.review a svg{width:13px;height:13px}
.review small{font-size:10px;letter-spacing:1px;color:var(--muted)}
.foot{margin-top:24px;padding:12px 0 8px;text-align:center;color:var(--muted);font-size:12px;line-height:1.9}
.foot b{display:block;color:var(--text);font-size:13px;font-weight:700}
.foot a{color:var(--text);font-weight:600;text-decoration:none;display:inline-block;padding:4px 2px}

/* ---------- bottom navigation ---------- */
.bnav{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;padding:4px 8px max(8px,env(safe-area-inset-bottom));
  background:var(--bg);border-top:1px solid var(--line)}
.bn{position:relative;flex:1;min-width:0;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-size:11px;font-weight:500}
.bn svg{width:22px;height:22px}
.bn span.l{max-width:100%;padding:0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bn.on{color:var(--text);font-weight:600}
.bn.on::after{content:"";position:absolute;left:50%;width:28px;margin-left:-14px;bottom:1px;height:2px;border-radius:2px;background:var(--amber)}
.bn .n{position:absolute;top:4px;left:calc(50% + 4px);min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--primary);color:var(--on-primary);font-size:10px;font-weight:700;line-height:13px;text-align:center;border:2px solid var(--bg)}
.bn .pip{position:absolute;top:6px;left:calc(50% + 7px);width:10px;height:10px;border-radius:50%;background:var(--ok);border:2px solid var(--bg)}
body.kb .bnav{display:none}

/* ---------- sheets (categories, filter, info, services, cart) + dish dialog ---------- */
.sheet,.modal{position:fixed;inset:0;z-index:100;display:none;align-items:flex-end;justify-content:center;padding:10px 10px calc(10px + env(safe-area-inset-bottom))}
.sheet.active,.modal.active{display:flex}
.sheet-bd,.modal-bd{position:absolute;inset:0;background:var(--overlay);animation:fade .15s ease}
.sheet-p,.modal-p{position:relative;width:min(520px,100%);max-height:calc(100dvh - 20px);overflow:auto;overscroll-behavior:contain;background:var(--surface);color:var(--text);
  border-radius:20px;padding:6px 20px 20px;box-shadow:var(--shadow);animation:up .22s ease}
@keyframes up{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}
.sheet-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px}
.sheet-top h2{font-size:18px;font-weight:700;letter-spacing:-.3px}
.x{position:relative;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface-2);color:var(--text);flex:none}
.x::after{content:"";position:absolute;inset:-2px}
.x svg{width:19px;height:19px}
html:has(.modal.active,.sheet.active,.oc.open,.wc.open),body:has(.modal.active,.sheet.active,.oc.open,.wc.open){overflow:hidden;overscroll-behavior:none}
.s-head{font-size:12px;font-weight:600;color:var(--muted);margin:2px 0 10px}
.s-list{display:flex;flex-wrap:wrap;gap:8px}
.fchip{min-height:44px;padding:0 14px;border-radius:24px;border:1px solid var(--line);background:var(--surface);font-size:13px;font-weight:500}
.fchip.on{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.fchip small{opacity:.7;font-weight:500;margin-left:4px;font-size:12px}
.s-foot{display:flex;gap:10px;margin-top:18px}
.s-clear{flex:none;padding:0 16px;min-height:46px;border:1px solid var(--line);border-radius:12px;font-weight:600;font-size:13px}
.s-show{flex:1;min-height:46px;border-radius:12px;background:var(--primary);color:var(--on-primary);font-weight:600;font-size:14px}
.cs-row{width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px;border-bottom:1px solid var(--line);font-size:14px;text-align:left}
.cs-row.on{font-weight:700}
.cs-row.on .cs-t::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--amber);margin-right:9px;vertical-align:2px}
.cs-n{color:var(--muted);font-size:12px;white-space:nowrap}
.info-l{display:grid;gap:14px;padding-bottom:4px}
.info-r{display:flex;gap:12px;align-items:flex-start;font-size:14px}
.info-r svg{margin-top:2px;color:var(--muted)}
.info-r a{font-weight:600}
.hrs{display:grid;gap:2px;width:100%}
.hrs div{display:flex;justify-content:space-between;gap:16px;padding:6px 8px;border-radius:8px;font-size:13px;color:var(--muted)}
.hrs div strong{color:var(--text);font-weight:600}
.hrs .today{background:var(--surface-2);color:var(--text)}
.hrs .today span{font-weight:700}

/* dish dialog: a photo when there is one; without it the window is text only */
.modal-p{padding:20px}
.m-head{display:flex;justify-content:flex-end;margin:-6px -6px 6px 0}
.modal.has-photo .m-head{position:absolute;top:18px;right:18px;margin:0;z-index:3}
.modal.has-photo .m-close{background:rgba(17,19,18,.62);color:#fff}
.m-media{position:relative;width:100%;aspect-ratio:1.5;max-height:42vh;background:var(--surface-2);border-radius:12px;overflow:hidden;margin-bottom:16px}
.m-media img{width:100%;height:100%;object-fit:cover}
.modal:not(.has-photo) .m-media{display:none}
.m-body{padding:0}
.m-cat{font-size:12px;color:var(--muted);margin-bottom:5px}
.m-title{font-size:20px;font-weight:700;line-height:1.35;overflow-wrap:anywhere;letter-spacing:-.3px}
.m-foot{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;margin-top:8px;flex-wrap:wrap}
.m-price{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;order:2;margin-left:auto}
.m-price .was{font-size:13px;font-weight:400;color:var(--muted);margin-right:6px}
.m-price .deal{position:static;display:inline-block;vertical-align:middle;margin-left:6px}
.m-note{font-size:13px;color:var(--muted);order:1}
.m-desc{margin-top:12px;font-size:14px;line-height:1.7;color:var(--muted)}
.m-tags{margin-top:12px}
.m-tags .tag{font-size:12px;padding:4px 11px}

/* ---------- table-order cart sheet (assets/cart.js) ---------- */
.oc{position:fixed;inset:0;z-index:110;display:flex;align-items:flex-end;justify-content:center;padding:10px 10px calc(10px + env(safe-area-inset-bottom));visibility:hidden}
.oc.open{visibility:visible}
.oc-bd{position:absolute;inset:0;background:var(--overlay);opacity:0;transition:opacity .2s}.oc.open .oc-bd{opacity:1}
.oc-p{position:relative;width:min(520px,100%);max-height:calc(100dvh - 20px);display:flex;flex-direction:column;background:var(--surface);color:var(--text);border-radius:20px;
  transform:translateY(110%);transition:transform .26s cubic-bezier(.2,.8,.2,1);box-shadow:var(--shadow)}
.oc.open .oc-p{transform:none}
.oc-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 6px}.oc-hd h2{font-size:18px;font-weight:700;letter-spacing:-.3px}.oc-hd span{color:var(--muted);font-size:12px}
.oc-bd2{overflow:auto;padding:0 20px 8px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.oc-ft{padding:10px 20px 18px;border-top:1px solid var(--line)}
.oc-l{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.oc-l .th{width:44px;height:44px;border-radius:9px;object-fit:cover;background:var(--surface-2);flex:none}
.oc-l .nm{flex:1;min-width:0}
.oc-l b{display:block;font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.oc-l small{color:var(--muted);font-size:12px}
.oc-l .rm{display:inline-block;margin-left:6px;padding:4px 0;color:var(--muted);font-size:12px;text-decoration:underline}
.oc-q{display:flex;align-items:center;flex:none}
.oc-q button,.oc-add .st button{width:40px;height:44px;margin:0;border-radius:10px;background:var(--surface-2);color:var(--text);display:grid;place-items:center}
.oc-q button{width:36px;background:none}
.oc-q button svg,.oc-add .st button svg{width:16px;height:16px}
.oc-q span,.oc-add .st span{min-width:22px;text-align:center;font-weight:700;font-size:13px}
.oc-r{display:flex;justify-content:space-between;gap:10px;padding:4px 0;color:var(--muted);font-size:13px}.oc-r.t{color:var(--text);font-weight:700;font-size:16px;padding-top:10px}
.oc-go{width:100%;min-height:48px;margin:8px 0 0;border:0;border-radius:12px;background:var(--primary);color:var(--on-primary);font-size:14px;font-weight:600}
.oc-go:disabled{opacity:.55}
.oc-lbl{margin-top:12px;color:var(--muted);font-size:12px}
.oc-pay{display:flex;gap:8px;margin:8px 0 6px}.oc-pay button{flex:1;min-height:44px;margin:0;border-radius:12px;border:1px solid var(--line);color:var(--text);font-weight:600;font-size:13px}
.oc-pay button.on{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.oc-ta{width:100%;margin:10px 0 0;min-height:46px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--text);padding:10px 12px;resize:none;font-size:16px}
.oc-ta::placeholder{color:var(--muted);font-size:13px}
.oc-msg{margin:8px 0;padding:10px 12px;border-radius:12px;background:var(--surface-2);font-size:13px}.oc-msg.bad{background:rgba(220,70,70,.14);color:var(--danger)}
.oc-st{padding:6px 0 4px}.oc-st .no{color:var(--muted);font-size:12px}.oc-st .big{font-size:20px;font-weight:700;margin:4px 0;letter-spacing:-.3px}.oc-st p{color:var(--muted);font-size:13px}
.oc-tl{list-style:none;margin:12px 0 14px;padding:0 0 0 2px;font-size:13px;color:var(--muted)}
.oc-tl li{position:relative;padding:5px 0 5px 22px;line-height:1.5}
.oc-tl li::before{content:"";position:absolute;left:2px;top:50%;width:9px;height:9px;margin-top:-5px;border-radius:50%;border:1.5px solid var(--line);background:var(--surface)}
.oc-tl li.done{color:var(--text);font-weight:600}
.oc-tl li.done::before{background:var(--amber);border-color:var(--amber)}
.oc-tl li.now::before{box-shadow:0 0 0 4px var(--amber-soft)}
.oc-x{width:100%;min-height:46px;margin:8px 0 0;border-radius:12px;border:1px solid var(--line);color:var(--text);font-weight:600;font-size:14px}
.oc-add{display:flex;align-items:center;gap:10px;margin-top:16px;width:100%;order:3}
.oc-add .go{flex:1;min-width:0;min-height:48px;margin:0;border:0;border-radius:12px;background:var(--primary);color:var(--on-primary);font-size:14px;font-weight:600;padding:0 12px;overflow-wrap:anywhere}
.oc-add .st{display:flex;align-items:center;gap:4px}
.oc-empty{padding:26px 6px 10px;text-align:center;color:var(--muted);font-size:13px}
.oc-empty svg{width:32px;height:32px;margin:0 auto 10px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.oc-empty b{display:block;color:var(--text);font-size:16px;margin-bottom:4px}

/* ---------- services sheet (assets/waiter-call.js) ---------- */
.wc{position:fixed;inset:0;z-index:105;display:flex;align-items:flex-end;justify-content:center;padding:10px 10px calc(10px + env(safe-area-inset-bottom));visibility:hidden}
.wc.open{visibility:visible}
.wc-bd{position:absolute;inset:0;background:var(--overlay);opacity:0;transition:opacity .2s}.wc.open .wc-bd{opacity:1}
.wc-p{position:relative;width:min(520px,100%);max-height:calc(100dvh - 20px);overflow:auto;background:var(--surface);color:var(--text);border-radius:20px;padding:6px 20px 20px;
  transform:translateY(110%);transition:transform .26s cubic-bezier(.2,.8,.2,1);box-shadow:var(--shadow)}
.wc.open .wc-p{transform:none}
.wc-h{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px}
.wc-h h2{font-size:18px;font-weight:700;letter-spacing:-.3px}
.wc-sub{margin:-4px 0 14px;color:var(--muted);font-size:12px}
.wc-g{display:grid;gap:10px}
.wc-opt{width:100%;margin:0;display:flex;align-items:center;gap:12px;min-height:62px;padding:12px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--text);text-align:left}
.wc-opt>svg{width:22px;height:22px;color:var(--muted)}
.wc-opt>svg:last-child{width:14px;height:14px}
.wc-opt span{flex:1;min-width:0}
.wc-opt b{display:block;font-size:14px;font-weight:600}
.wc-opt small{display:block;font-size:12px;color:var(--muted)}
.wc-opt:disabled{opacity:.55}
.wc-opt:active{transform:scale(.99)}
.wc svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wc-pay{display:none}
.wc.show-pay .wc-g{display:none}
.wc.show-pay .wc-pay{display:block}
.wc-pay p{color:var(--muted);font-size:13px;line-height:1.6;margin-bottom:12px}
.wc-pm{display:flex;gap:8px;margin-bottom:14px}
.wc-pm button{flex:1;min-height:46px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-weight:600;font-size:13px}
.wc-pm button[aria-pressed="true"]{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.wc-send{width:100%;min-height:48px;border-radius:12px;background:var(--primary);color:var(--on-primary);font-weight:600;font-size:14px}
.wc-send:disabled{opacity:.5}
.wc-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:6px;color:var(--muted);font-size:13px;font-weight:600}
.wc-back svg{width:16px;height:16px}
.wc-st{display:none;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:10px 4px 2px}
.wc-st svg{width:28px;height:28px}
.wc-st .ic{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:var(--amber-soft);color:var(--amber-ink)}
.wc-st .ic.ok{background:rgba(50,130,92,.16);color:var(--ok)}
.wc-st b{font-size:18px;letter-spacing:-.3px}
.wc-st p{color:var(--muted);font-size:13px}
.wc-st .ic.pulse{animation:wcPulse 1.6s infinite}
@keyframes wcPulse{0%{box-shadow:0 0 0 0 var(--accent-glow)}70%{box-shadow:0 0 0 14px transparent}100%{box-shadow:0 0 0 0 transparent}}
.wc-row{display:flex;gap:10px;width:100%;margin-top:10px}
.wc-row button{flex:1;min-height:46px;border-radius:12px;border:1px solid var(--line);color:var(--text);font-weight:600;font-size:13px}
.wc-err{min-height:20px;margin-top:10px;text-align:center;color:var(--danger);font-size:13px}
.wc.show-st .wc-g,.wc.show-st .wc-pay,.wc.show-st .wc-sub{display:none}
.wc.show-st .wc-st{display:flex}

/* ---------- wider screens ---------- */
@media (min-width:700px){
  .wrap{padding:0 24px}
  .rail{margin:0 -24px;padding:0 0 10px 24px}
  .top{min-height:72px}
  .brand-name{font-size:17px}
  .cover{height:132px}
  .wrap{max-width:660px}
  .photo{width:100px;height:100px}
  .name{font-size:14px}
  .wt{font-size:12px}
  .price{font-size:16px}
  .banner{height:108px}
  .b-name{font-size:18px}
  .review,.svc-note{max-width:600px;margin-left:auto;margin-right:auto}
  .sheet,.modal,.oc,.wc{align-items:center;padding:20px}
  .sheet-p,.modal-p{max-height:86vh}
  .oc-p,.wc-p{transform:translateY(20px);opacity:0;transition:transform .22s,opacity .22s}
  .oc.open .oc-p,.wc.open .wc-p{transform:none;opacity:1}
  /* the bottom bar stays under the content column */
  .bnav{left:50%;right:auto;width:min(660px,100%);transform:translateX(-50%)}
}
@media (max-width:360px){
  .wrap{padding:0 12px}
  .rail{margin:0 -12px;padding:0 0 10px 12px}
  .brand-logo{width:34px;height:34px}
  .brand-name{font-size:14px}
  .hbtn{width:40px}
  .top .lang-switch--drop .lang-trigger{padding:0 7px}
  .photo{width:78px;height:78px}
  .card{gap:11px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* ---------- small helpers ---------- */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lent-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 10px}
.lent-row:empty{display:none}
.lent-note{color:var(--muted);font-size:12px}
.bn .n:empty{min-width:10px;width:10px;height:10px;padding:0;top:7px;left:calc(50% + 7px)}
.info-r>div{flex:1;min-width:0}
.info-r .hrs{margin:-6px -8px}
.modal-p:focus,.sheet-p:focus{outline:none}

/* dish window: allergens and characteristics (only data the restaurant entered) */
.m-facts{border-top:1px solid var(--line);margin-top:16px;padding-top:12px}
.m-facts h3{font-size:12px;font-weight:600;margin:0 0 9px}
.m-facts h3:not(:first-child){margin-top:14px}
.facts{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.facts li{border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:20px;padding:6px 11px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.facts-none{font-size:12px;color:var(--muted)}
.oc-hint{margin:12px 0 4px;font-size:12px;color:var(--muted);line-height:1.6}
.oc-ft .oc-go+.oc-x{margin-top:8px}
