/* The ordering website (ADR-0093) — one stylesheet for every restaurant; the restaurant's color is --primary (set per page). Mobile first. */
:root { --primary: #1f2937; --ink: #17151f; --muted: #6b6b76; --line: #ececf0; --bg: #ffffff; --soft: #f6f6f8; --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
  --r: 14px; --shadow: 0 6px 24px rgba(16, 16, 24, .08); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: Cairo, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; font-size: max(16px, 1rem); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.logo-img { height: 44px; width: auto; border-radius: 50%; }
.logo-text { font-weight: 700; font-size: 1.15rem; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .lang, .login-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.login-btn { background: var(--primary); color: #fff; border-color: var(--primary); }

/* promo strip */
.marquee { background: var(--primary); color: #fff; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .9rem; }
.marquee-track { display: inline-flex; gap: 48px; padding: 6px 0; animation: mq 28s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: mq-rtl; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mq-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* hero */
.hero { max-width: 1180px; margin: 12px auto 0; padding: 0 16px; }
.hero img { width: 100%; aspect-ratio: 39 / 20; object-fit: cover; border-radius: var(--r); }
.hero-plain { text-align: center; padding: 28px 16px 8px; }
.hero-plain h1 { margin: 0; font-size: 1.8rem; color: var(--primary); }
.hero-plain p { margin: 4px 0 0; color: var(--muted); }

/* ordering context */
.ctx-bar { max-width: 1180px; margin: 12px auto 0; padding: 0 16px; }
.ctx-btn { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--soft); border-radius: var(--r); padding: 10px 14px; text-align: start; }
.ctx-mode { background: var(--primary); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.ctx-btn strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-change { color: var(--primary); font-weight: 700; font-size: .9rem; }
.closed-line { margin: 8px 0 0; color: var(--warn); font-weight: 600; }

/* menu */
.layout { max-width: 1180px; margin: 12px auto 0; padding: 0 16px 120px; }
.cats { position: sticky; top: 64px; z-index: 20; background: #fff; display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: 0 0 auto; text-decoration: none; padding: 6px 14px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.cats a.on { background: var(--primary); color: #fff; }
.sec { scroll-margin-top: 120px; padding-top: 14px; }
.sec h2 { font-size: 1.2rem; margin: 6px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 0; overflow: hidden; text-align: start; transition: box-shadow .15s; }
.card:hover { box-shadow: var(--shadow); }
.card-img { aspect-ratio: 1 / 1; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph { font-size: 2.4rem; font-weight: 700; color: var(--primary); opacity: .35; }
.card-body { padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.card-name { font-weight: 600; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { color: var(--primary); font-weight: 700; }
.card-add { position: absolute; inset-inline-end: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--primary); font-weight: 700; display: grid; place-items: center; box-shadow: var(--shadow); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
  .cats { flex-direction: column; overflow: visible; border: 0; top: 76px; padding: 0; }
  .cats a { border-radius: 10px; background: none; padding: 8px 12px; white-space: normal; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* cart button */
.cart-fab { position: fixed; z-index: 40; inset-inline: 16px; bottom: 16px; margin: 0 auto; max-width: 560px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; padding: 14px 18px; box-shadow: var(--shadow); }
.wa-float { position: fixed; z-index: 35; inset-inline-start: 16px; bottom: 84px; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; font-weight: 700; display: grid; place-items: center; text-decoration: none; box-shadow: var(--shadow); }

/* sheets (dialogs) */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back { position: absolute; inset: 0; background: rgba(10, 10, 16, .45); }
.sheet-card { position: relative; background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px 24px; }
@media (min-width: 720px) { .sheet { align-items: center; } .sheet-card { border-radius: 18px; } }
.sheet-x { position: absolute; inset-inline-end: 10px; top: 8px; border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1; }
.sheet h2 { margin: 4px 0 4px; font-size: 1.2rem; }
.sub { color: var(--muted); margin: 0 0 12px; }
.mode-tabs { display: flex; gap: 6px; background: var(--soft); border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.mode-tabs button { flex: 1; border: 0; border-radius: 999px; padding: 8px; background: none; font-weight: 700; }
.mode-tabs button.on { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--primary); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff; width: 100%; text-align: start; }
.row .grow { flex: 1; min-width: 0; }
.row small { display: block; color: var(--muted); }
.row.off { opacity: .55; }
.badge { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.badge.ok { background: #dcfce7; color: var(--ok); } .badge.no { background: #fee2e2; color: var(--bad); } .badge.warn { background: #fef3c7; color: var(--warn); }
.field { display: block; margin: 8px 0; }
.field span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.note { color: var(--muted); font-size: .85rem; }
.err { color: var(--bad); font-weight: 600; }
.okmsg { color: var(--ok); font-weight: 600; }

/* product */
.p-img { margin: -18px -16px 12px; }
.p-img img { width: 100%; aspect-ratio: 1 / 1; max-height: 360px; object-fit: cover; }
.p-price { color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.addon { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.addon span { flex: 1; }
.qty { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.qty button { border: 0; background: var(--soft); width: 32px; height: 32px; border-radius: 50%; font-weight: 700; font-size: 1.1rem; }
.p-foot { position: sticky; bottom: -24px; background: #fff; padding: 12px 0 0; display: flex; gap: 10px; align-items: center; }
.p-foot .btn { flex: 1; }

/* cart & checkout */
.cline { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cline .grow { flex: 1; min-width: 0; }
.cline small { color: var(--muted); display: block; }
.totals { margin: 12px 0; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.checkout, .track, .policy { max-width: 720px; margin: 0 auto; padding: 16px 16px 120px; }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 14px; }
.box h3 { margin: 0 0 8px; font-size: 1.05rem; }
.choice { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.map { width: 100%; height: 260px; border-radius: 12px; background: var(--soft); margin: 8px 0; }
.steps { list-style: none; padding: 0; margin: 12px 0; }
.steps li { padding: 8px 0 8px 0; color: var(--muted); }
.steps li.done { color: var(--ok); font-weight: 700; }
.steps li.now { color: var(--primary); font-weight: 700; }

/* footer */
.foot { background: var(--soft); margin-top: 32px; border-top: 1px solid var(--line); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 24px 16px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot h3 { margin: 0 0 6px; font-size: 1rem; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin: 4px 0; font-size: .9rem; }
.socials a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); margin-inline-end: 6px; text-decoration: none; font-weight: 700; font-size: .8rem; }
.policies { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.copy { text-align: center; color: var(--muted); font-size: .8rem; padding: 0 16px 90px; margin: 0; }
