/* Bisserv customer store — mobile first. Brand built on the logo red. */
:root {
  --red: #E0161E;
  --red-dark: #B80F16;
  --red-soft: #FDECEC;
  --ink: #1C1C1E;
  --ink-2: #4A4A4F;
  --ink-3: #8A8A90;
  --line: #ECECEF;
  --bg: #F6F6F8;
  --card: #FFFFFF;
  --green: #1E8E4E;
  --green-soft: #E7F5EC;
  --amber: #B36B00;
  --amber-soft: #FFF4E0;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(20, 20, 30, .08);
  --top: 57px;          /* height of the sticky top bar */
  --rail: 92px;         /* width of the category column on phones */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
}
@media (min-width: 700px) { :root { --rail: 220px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.45 var(--font);
  padding-bottom: 96px;
}
html[dir="rtl"] body { font-family: var(--font-ar); }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.demo-strip { background: var(--ink); color: #fff; text-align: center; font-size: 12px; padding: 4px 8px; letter-spacing: .02em; }

/* ---------- Top bar (Zomato style: location, language, profile) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-row { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.brand { font-weight: 800; font-style: italic; color: var(--red); font-size: 20px; letter-spacing: -.02em; }
.loc { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 6px; border-radius: 10px; text-align: start; }
.loc svg:first-child { color: var(--red); }
.loc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.loc-text small { color: var(--ink-3); font-size: 11px; }
.loc-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc .chev { width: 16px; height: 16px; color: var(--ink-3); }
.lang { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; font-size: 13px; font-family: var(--font-ar); }
html[dir="rtl"] .lang { font-family: var(--font); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }

/* ---------- Store header ---------- */
.hero { position: relative; height: 150px; overflow: hidden; background: #222; }
.hero img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55)); }
@media (min-width: 600px) { .hero { height: 220px; } }

.store-card { position: relative; margin: -44px 16px 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
@media (min-width: 1072px) { .store-card { margin: -44px auto 0; max-width: 1008px; } }
.store-top { display: flex; gap: 12px; align-items: flex-start; }
.store-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; }
.store-name { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.store-sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; margin-top: 6px; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.open { background: var(--green-soft); color: var(--green); }
.status-pill.busy { background: var(--amber-soft); color: var(--amber); }
.shop-price { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 12px; background: var(--red-soft); color: var(--red-dark); border-radius: 12px; font-size: 13px; font-weight: 600; }
.shop-price svg { color: var(--red); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.fact { text-align: center; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact b { display: block; font-size: 15px; }
.fact small { color: var(--ink-3); font-size: 12px; }

/* ---------- Search ---------- */
.search { position: relative; margin: 16px 0 12px; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; padding-inline-start: 42px; font: inherit; font-size: 15px; outline: none; }
.search input:focus { border-color: var(--ink-3); }

/* ---------- Menu: categories on the left, items on the right ---------- */
.menu { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 10px; align-items: start; }
@media (min-width: 700px) { .menu { gap: 20px; } }

.rail {
  position: sticky; top: calc(var(--top) + 8px);
  max-height: calc(100vh - var(--top) - 24px); overflow-y: auto; scrollbar-width: none;
  background: var(--card); border-radius: var(--radius); padding: 6px;
}
.rail::-webkit-scrollbar { display: none; }
.rail-head { background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-align: center; padding: 7px 4px; border-radius: 10px; margin-bottom: 4px; }
.rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%;
  border: 0; background: none; padding: 8px 4px; border-radius: 12px; text-align: center;
  font-size: 11.5px; font-weight: 600; line-height: 1.2; color: var(--ink-2);
}
.rail-btn img, .rail-btn .rail-ph { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--bg); }
.rail-btn .rail-ph { display: grid; place-items: center; font-weight: 800; color: var(--ink-3); }
.rail-btn.active { background: var(--red); color: #fff; }
.rail-btn.active img { box-shadow: 0 0 0 2px #fff; }
@media (min-width: 700px) {
  .rail-btn { flex-direction: row; gap: 10px; text-align: start; font-size: 14px; padding: 8px 10px; }
  .rail-btn img, .rail-btn .rail-ph { width: 40px; height: 40px; border-radius: 10px; }
}

.cat { scroll-margin-top: calc(var(--top) + 8px); }
.cat + .cat { margin-top: 18px; }
.cat h2 { font-size: 17px; margin: 0 0 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cat h2 small { font-size: 12px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.items { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.item { display: flex; gap: 10px; padding: 12px; align-items: center; cursor: pointer; }
.item + .item { border-top: 1px solid var(--line); }
.item:hover { background: #FBFBFC; }
.item-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--bg); flex: none; }
.item-img.noimg { display: grid; place-items: center; color: var(--ink-3); font-size: 22px; font-weight: 800; }
@media (min-width: 700px) { .item { padding: 14px 16px; gap: 14px; } .item-img { width: 76px; height: 76px; } }
.item-info { flex: 1; min-width: 0; }
.item-name { font-weight: 700; font-size: 14px; margin: 0; line-height: 1.25; }
.item-alt { color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.item-price { font-weight: 700; margin-top: 4px; font-size: 14px; }
.item-price small { color: var(--ink-3); font-weight: 500; font-size: 11px; }
.item-act { flex: none; }
.add-btn { min-width: 64px; height: 34px; border-radius: 10px; border: 0; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; padding: 0 12px; }
.add-btn small { display: block; font-size: 9px; font-weight: 600; margin-top: -2px; opacity: .85; }
.add-btn.has-opts { line-height: 1.1; }
.stepper { display: flex; align-items: center; height: 34px; min-width: 84px; border-radius: 10px; background: var(--red); color: #fff; overflow: hidden; }
.stepper button { border: 0; background: none; color: #fff; width: 28px; height: 100%; font-size: 18px; font-weight: 700; }
.stepper span { flex: 1; text-align: center; font-weight: 800; }

.empty { text-align: center; color: var(--ink-3); padding: 40px 16px; }

/* ---------- Floating cart bar ---------- */
.cartbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(246,246,248,0), var(--bg) 40%); }
.cartbar-btn { max-width: 728px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: var(--red); color: #fff; padding: 14px 16px; border-radius: 14px; font-weight: 700; box-shadow: 0 8px 24px rgba(224,22,30,.35); }
.cartbar-count { background: rgba(255,255,255,.22); border-radius: 8px; padding: 2px 8px; font-size: 13px; }
.cartbar-total { margin-inline-start: auto; }

/* ---------- Generic page bits ---------- */
.page-head { display: flex; align-items: center; gap: 10px; padding: 14px 0 6px; }
.page-head h1 { font-size: 20px; margin: 0; }
.back { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; flex: none; }
html[dir="rtl"] .back svg { transform: scaleX(-1); }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-top: 12px; }
.card h3 { margin: 0 0 10px; font-size: 15px; }
.step-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; margin-inline-end: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.row.total { font-weight: 800; font-size: 17px; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.free { color: var(--green); font-weight: 700; }

.line { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.line + .line { border-top: 1px solid var(--line); }
.line img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.line-info { flex: 1; min-width: 0; }
.line-info b { display: block; font-size: 14px; }
.line .stepper { min-width: 92px; height: 32px; }

/* Order type cards (chosen at checkout) */
.otypes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.otype-card { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.otype-card svg { width: 26px; height: 26px; color: var(--ink-2); }
.otype-card small { font-weight: 500; font-size: 11px; color: var(--ink-3); }
.otype-card[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.otype-card[aria-pressed="true"] svg { color: var(--red); }

.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; text-align: start; width: 100%; }
.opt[aria-checked="true"] { border-color: var(--red); background: var(--red-soft); }
.opt .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-3); flex: none; }
.opt[aria-checked="true"] .dot { border: 6px solid var(--red); }
.opt-main { flex: 1; min-width: 0; }
.opt-main small { display: block; color: var(--ink-3); font-size: 12px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.tag.red { background: var(--red-soft); color: var(--red-dark); }
.tag.green { background: var(--green-soft); color: var(--green); }

.field { display: grid; gap: 6px; margin-top: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; outline: none; background: #fff; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--ink-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two .field { margin-top: 12px; }
.phone { display: flex; gap: 8px; }
.phone span { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); font-weight: 600; }
.phone input { flex: 1; }
.otp { display: flex; gap: 10px; justify-content: center; margin: 16px 0 6px; direction: ltr; }
.otp input { width: 52px; height: 58px; text-align: center; font-size: 24px; font-weight: 800; border: 1.5px solid var(--line); border-radius: 12px; outline: none; }
.otp input:focus { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; flex: none; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pick { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13px; }
.pick[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 14px; padding: 15px; font-weight: 800; font-size: 16px; text-align: center; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:disabled { background: #F2A9AC; cursor: not-allowed; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn + .btn { margin-top: 10px; }
.link-btn { border: 0; background: none; color: var(--red); font-weight: 700; padding: 0; }
.btn-ghost:disabled { opacity: .6; cursor: not-allowed; }
/* "or" between Continue with Google and the email form */
.or-line { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; color: var(--ink-3); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice { display: flex; gap: 10px; padding: 12px; border-radius: 12px; font-size: 13px; background: var(--amber-soft); color: #7A4A00; margin-top: 12px; }
.notice svg { width: 18px; height: 18px; margin-top: 1px; }

/* ---------- Order status ---------- */
.eta { text-align: center; padding: 22px 16px; }
.eta small { color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.eta .big { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0; }
.eta .order-no { display: inline-block; margin-top: 8px; font-weight: 800; background: var(--bg); padding: 4px 12px; border-radius: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding-inline-start: 30px; padding-bottom: 18px; color: var(--ink-3); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 9px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before, .timeline li.done::after { background: var(--green); }
.timeline li.now { color: var(--ink); font-weight: 700; }
.timeline li.now::before { background: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
.timeline time { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.again { display: flex; gap: 12px; align-items: center; }
.again .store-logo { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }

/* ---------- Bottom sheet (item details, sign in) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; }
.sheet {
  position: fixed; inset-inline: 0; z-index: 51; background: #fff;
  border-radius: 20px 20px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  /* --kb and --vvh come from /shared/keyboard.js: the sheet sits above the phone's keyboard, never under it */
  bottom: var(--kb, 0px); max-height: calc(var(--vvh, 100dvh) * .9); overflow-y: auto; overscroll-behavior: contain; max-width: 560px; margin: 0 auto; animation: up .22s ease-out;
}
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { margin: 4px 0 4px; font-size: 18px; }
@media (min-width: 700px) {
  .sheet { bottom: auto; top: calc(var(--vvtop, 0px) + var(--vvh, 100dvh) / 2); transform: translateY(-50%); border-radius: 20px; animation: none; max-height: calc(var(--vvh, 100dvh) - 32px); }
  .sheet::before { display: none; }
}
.sheet-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 2; }
.detail-img { width: calc(100% + 32px); margin: -8px -16px 14px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
@media (min-width: 700px) { .detail-img { border-radius: 20px 20px 0 0; margin-top: -8px; } }
.detail-name { font-size: 21px; margin: 0; line-height: 1.2; }
.detail-alt { color: var(--ink-3); margin-top: 2px; }
.detail-desc { color: var(--ink-2); margin: 10px 0 0; font-size: 14px; }
.detail-price { font-size: 19px; font-weight: 800; margin-top: 10px; }
.detail-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.detail-foot { display: flex; gap: 10px; align-items: center; margin-top: 18px; position: sticky; bottom: 0; background: #fff; padding-top: 10px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; height: 52px; }
.qty button { border: 0; background: none; width: 42px; height: 100%; font-size: 22px; font-weight: 700; color: var(--red); }
.qty span { min-width: 22px; text-align: center; font-weight: 800; font-size: 17px; }
.detail-foot .btn { flex: 1; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Full-screen map picker ---------- */
.mapview { position: fixed; inset: 0; bottom: var(--kb, 0px); z-index: 70; background: #fff; display: flex; flex-direction: column; }   /* --kb: above the phone keyboard (shared/keyboard.js) */
.map-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.map-top h2 { font-size: 17px; margin: 0; }
.map-box { position: relative; flex: 1; min-height: min(240px, 22dvh); }   /* the map gives up room when the keyboard is open */
/* Keyboard open (very short screen): the hint and the legend would cover the pin, so they step aside */
@media (max-height: 520px) { .map-hint, .map-legend { display: none; } }
#map { position: absolute; inset: 0; }
.map-pin { position: absolute; left: 50%; top: 50%; z-index: 500; transform: translate(-50%, -100%); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); transition: transform .15s; }
.map-pin svg { width: 44px; height: 44px; fill: var(--red); stroke: #fff; stroke-width: 1.5; }
.map-pin.lift { transform: translate(-50%, -115%); }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 10px; height: 4px; margin-left: -5px; border-radius: 50%; background: rgba(0,0,0,.35); }
.map-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 500; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.map-locate { position: absolute; inset-inline-end: 12px; bottom: 12px; z-index: 500; display: flex; align-items: center; gap: 6px; border: 0; background: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 13px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.map-locate svg { color: var(--red); width: 18px; height: 18px; }
.map-legend { position: absolute; inset-inline-start: 12px; bottom: 12px; z-index: 500; background: rgba(255,255,255,.95); border-radius: 12px; padding: 8px 10px; font-size: 11px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.map-legend div { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.map-panel { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); max-height: 52vh; max-height: 52dvh; overflow-y: auto; overscroll-behavior: contain; }
.map-panel-inner { max-width: 560px; margin: 0 auto; }
.zone-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zone-line b { font-size: 15px; }
.leaflet-container { font: inherit; }
.leaflet-container svg { width: auto; height: auto; flex: initial; }  /* undo the icon size rule above for map shapes */

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 80; max-width: calc(100% - 32px); }

@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }

/* ---------- Offers (set by the cafe in the shop portal) ---------- */
/* 1 offer = full width, 2 = two halves, 3 = three thirds. More than 3 wrap to a new row. */
.offer-strip { display: grid; gap: 10px; padding: 16px 0 2px; grid-template-columns: 1fr; }
.offer-strip.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer-strip.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offer-card {
  min-width: 0; text-align: start; border: 0; border-radius: 16px; padding: 14px;
  background: linear-gradient(135deg, var(--red), #FF5A3C); color: #fff; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 6px 18px rgba(224,22,30,.25);
}
.offer-strip.n2 .offer-card:nth-child(2n) { background: linear-gradient(135deg, #1C1C1E, #4A4A4F); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.offer-strip.n3 .offer-card:nth-child(3n+2) { background: linear-gradient(135deg, #1C1C1E, #4A4A4F); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.offer-strip.n3 .offer-card:nth-child(3n) { background: linear-gradient(135deg, #E07A00, #F5A623); box-shadow: 0 6px 18px rgba(224,122,0,.25); }
.offer-strip.n1 .offer-big { font-size: 28px; }
.offer-strip.n3 .offer-card { padding: 10px; border-radius: 14px; }
.offer-strip.n3 .offer-big { font-size: 16px; }
.offer-strip.n3 .offer-title { font-size: 11px; }
.offer-strip.n3 .offer-end { font-size: 10px; }
.offer-big { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.offer-title { font-weight: 600; font-size: 13px; line-height: 1.3; }
.offer-end { font-size: 11px; opacity: .85; margin-top: 4px; }
.item-media { position: relative; flex: none; }
.offer-badge { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); white-space: nowrap; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px; line-height: 1.3; box-shadow: 0 0 0 2px #fff; }
.was { color: var(--ink-3); font-weight: 500; font-size: .85em; }
.item-price .now { color: var(--red); }
.rail-offers .rail-ph { background: var(--red-soft); color: var(--red); font-size: 20px; }
.rail-offers.active .rail-ph { background: #fff; }
.offers-h { display: inline-flex; align-items: center; gap: 6px; color: var(--red); }
.offer-note { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--red-soft); color: var(--red-dark); font-size: 13px; }
.offer-note svg { width: 16px; height: 16px; color: var(--red); }
.save-row { color: var(--green); }
.save-row span { display: inline-flex; align-items: center; gap: 6px; }
.save-row svg { width: 16px; height: 16px; }
.opt .was { margin-inline-end: 6px; }

/* ---------- My account ---------- */
.profile { display: flex; gap: 12px; align-items: center; }
.avatar.big { width: 52px; height: 52px; font-size: 20px; font-weight: 800; background: var(--red); color: #fff; }
.acct-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #fff; padding: 4px; border-radius: 14px; margin-top: 12px; }
.acct-tabs a { text-align: center; padding: 10px 2px; border-radius: 10px; font-weight: 700; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
@media (min-width: 420px) { .acct-tabs a { font-size: 13.5px; } }
.acct-tabs a span { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 9px; background: var(--bg); font-size: 11px; margin-inline-start: 2px; }
.acct-tabs a[aria-selected="true"] { background: var(--red); color: #fff; }
.acct-tabs a[aria-selected="true"] span { background: rgba(255,255,255,.25); }
.stars-view { color: #F5A623; letter-spacing: 2px; }
.stars-view i { font-style: normal; color: var(--line); }
.reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 13px; }
.addr-actions { display: flex; gap: 16px; margin-top: 6px; font-size: 13px; }
.line-info .small { display: block; }
.chev-end { transform: scaleX(-1); color: var(--ink-3); }
html[dir="rtl"] .chev-end { transform: none; }
.link-btn.link-quiet { color: var(--ink-3); }
.status-pill.closed { background: var(--red-soft); color: var(--red-dark); }

/* ---------- Modifiers (choices the cafe sets up in the portal) ---------- */
.grp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }
.grp-head small { color: var(--ink-3); font-size: 12px; margin-inline-start: auto; }
.grp-head.bad b { color: var(--red); }
.grp-head.bad + .opts { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 12px; }
.opt .box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--ink-3); flex: none; display: grid; place-items: center; }
.opt[aria-checked="true"] .box { background: var(--red); border-color: var(--red); }
.opt[aria-checked="true"] .box::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.line-mods { display: block; }
img.store-logo { object-fit: cover; background: #fff; border: 1px solid var(--line); }
.door { display: inline-block; margin-top: 6px; background: var(--green-soft); color: var(--green); font-weight: 800; border-radius: 10px; padding: 6px 12px; }

/* ---------- Phone layout: name across the full width, price + ADD on the line below ---------- */
.item { align-items: flex-start; }
.item-info { display: flex; flex-direction: column; min-height: 64px; }
.item-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.item-alt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.item-bottom .item-price { margin-top: 0; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.item-bottom .item-price .was { margin-inline-start: 2px; }
.item-act { flex: none; }
.stepper { min-width: 96px; }
.stepper button { width: 36px; min-height: 36px; }
.line .stepper { min-width: 104px; }
.link-btn { padding: 8px 4px; margin: -8px -4px; }
@media (max-width: 420px) {
  :root { --rail: 78px; }
  .menu { gap: 8px; }
  .rail { padding: 4px; }
  .rail-btn { font-size: 11px; padding: 7px 2px; }
  .rail-btn img, .rail-btn .rail-ph { width: 40px; height: 40px; border-radius: 10px; }
  .rail-head { font-size: 10px; letter-spacing: .05em; }
  .item { padding: 10px; gap: 10px; }
  .item-img { width: 56px; height: 56px; }
  .item-name { font-size: 14px; }
  .item-price { font-size: 13.5px; }
  .item-price small { display: none; }
  .add-btn { min-width: 60px; height: 34px; padding: 0 10px; }
  .offer-badge { font-size: 9px; padding: 1px 5px; }
  .cat h2 { font-size: 16px; }
  .store-card { padding: 14px; }
  .store-name { font-size: 19px; }
  .fact b { font-size: 14px; }
  .facts { padding-top: 10px; }
  .offer-strip.n3 .offer-big { font-size: 15px; }
  .offer-strip.n3 .offer-card { padding: 9px; }
}
@media (max-width: 340px) {
  .brand { font-size: 17px; }
  .lang { padding: 6px 8px; font-size: 12px; }
}
.item-bottom .item-price { display: flex; flex-direction: column; line-height: 1.2; overflow: visible; }
.item-bottom .item-price .was { margin: 0; font-size: 11.5px; }
@media (max-width: 420px) {
  .item-bottom { gap: 6px; }
  .item-bottom .item-price { font-size: 13px; }
  .item .stepper { min-width: 88px; height: 34px; }
  .item .stepper button { width: 32px; min-height: 34px; }
  .item .stepper span { font-size: 14px; }
}
@media (max-width: 480px) {
  .map-hint { left: 12px; transform: none; max-width: calc(100% - 64px); white-space: normal; text-align: start; line-height: 1.3; }
  html[dir="rtl"] .map-hint { left: auto; right: 12px; }
  .map-legend { bottom: 56px; }
  .map-locate { bottom: 12px; }
  .map-panel { max-height: 56vh; max-height: 56dvh; }
}
/* When there's no room (very small phones), the button moves under the price instead of covering it */
.item-bottom { flex-wrap: wrap; row-gap: 6px; }
.item-bottom .item-price { flex: 1 1 auto; }
.item-bottom .item-act { margin-inline-start: auto; }
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 24px; width: auto; display: block; }
@media (max-width: 340px) { .brand-logo { height: 20px; } }
.more-cafes { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 16px 0; color: var(--ink-3); font-size: 13px; text-decoration: none; }
.more-cafes img { height: 20px; width: auto; }
.hero.plain { background: linear-gradient(135deg, var(--red), #FF6B4A); }
/* Cafe info: the logo square opens the cafe's picture and details */
.logo-btn { position: relative; border: 0; padding: 0; background: none; cursor: pointer; flex: none; border-radius: 14px; }
.logo-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.logo-i { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--ink); font: 800 12px/20px Georgia, serif; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.info-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--red); font-weight: 700; font-size: 12.5px; padding: 3px 4px; margin-top: 6px; cursor: pointer; vertical-align: top; }
.info-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.info-top { position: relative; margin: -8px -16px 52px; }
.info-banner { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: linear-gradient(135deg, var(--red), #FF6B4A); }
@media (min-width: 700px) { .info-banner { border-radius: 20px 20px 0 0; } }
.info-logo { position: absolute; left: 16px; bottom: -44px; width: 96px; height: 96px; border-radius: 22px; object-fit: cover; background: var(--red); color: #fff; font-size: 38px; font-weight: 800; display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
[dir="rtl"] .info-logo { left: auto; right: 16px; }
.info-name { margin: 0 0 2px; font-size: 21px; }
.info-about { margin: 12px 0 0; line-height: 1.55; color: var(--ink-2, #3a3a40); }
.info-list { margin-top: 14px; border-top: 1px solid var(--line); }
.info-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.info-row > b { width: 100%; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3, #8a8a92); }
.info-row > span { flex: 1; min-width: 0; }
.info-row.col { display: block; }
.info-act { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; color: var(--ink); text-decoration: none; }
.info-hours, .info-fees { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.info-hours li { display: flex; justify-content: space-between; gap: 10px; }
.info-hours li.today { font-weight: 800; color: var(--red); }
.info-fees { margin-bottom: 6px; }
/* Store preview inside the cafe portal */
.preview-bar { background: #1C1C1E; color: #fff; text-align: center; font-size: 12.5px; font-weight: 700; padding: 7px 12px; }
