/* Public restaurant page — one layout, themed per template */
.pub {
  --bg: #fff8ea; --card: #fff; --ink: #1b1914; --soft: #7d6c57; --line: #efe2c8;
  --hero-ink: #fff; --chip: #fff; --head: Lalezar, Cairo, sans-serif; --head-w: 400; --sun: #ffd23f;
}
.pub-elegant {
  --bg: #14110d; --card: #1d1914; --ink: #f1e8d4; --soft: #ab9e84; --line: #2e271e;
  --hero-ink: #f1e8d4; --chip: #1d1914; --head: 'El Messiri', 'Playfair Display', serif; --head-w: 700; --sun: var(--accent);
}
.pub-fresh {
  --bg: #f6f1e7; --card: #fff; --ink: #1d3b2c; --soft: #5c6a62; --line: #ece5d6;
  --hero-ink: var(--on-accent, #fff); --chip: #fff; --head: Tajawal, Cairo, sans-serif; --head-w: 800; --sun: #f2b134;
}
.pub-heritage {
  --bg: #f4e9d4; --card: #fffaf0; --ink: #2b1d14; --soft: #6b5443; --line: #e6d5b8; --teal: #1f5f5b; --gold: #b8862b;
  --hero-ink: #f4e9d4; --chip: #fffaf0; --head: 'Reem Kufi', Cairo, sans-serif; --head-w: 700; --sun: #f0cf7c;
}
.pub-delivery { --hero-ink: var(--on-accent, #fff); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 Cairo, system-ui, sans-serif; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

/* hero */
.hero { background: var(--accent); color: var(--hero-ink); padding: 34px 16px 0; text-align: center; position: relative; overflow: hidden; }
.pub-elegant .hero { background: radial-gradient(ellipse 90% 80% at 50% 0%, #2b241a, #14110d 75%); border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.pub-delivery .hero::before { content: ''; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 2px, transparent 2.2px); background-size: 14px 14px; }
.pub-fresh .hero::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .12); top: -110px; inset-inline-end: -80px; }
.pub-heritage .hero { background: var(--teal);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 20px),
                    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 20px); }
.pub-heritage .hero-in { background: rgba(0, 0, 0, .12); border-radius: 220px 220px 0 0 / 110px 110px 0 0; padding: 30px 16px 8px;
  box-shadow: inset 0 0 0 2px var(--gold); max-width: 560px; }
.pub-heritage .logo { box-shadow: 0 0 0 3px var(--gold); background: var(--bg); }
.pub-heritage .name2 { letter-spacing: 3px; text-transform: uppercase; font-size: 14px; }
.pub-heritage .quick { margin-top: 0; }
.pub-heritage .note { background: var(--accent); color: var(--on-accent, #fff); position: relative; }
.pub-heritage .note::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 8px;
  background: linear-gradient(135deg, var(--gold) 25%, transparent 25%) -4px 0 / 8px 8px, linear-gradient(225deg, var(--gold) 25%, transparent 25%) -4px 0 / 8px 8px; }
.pub-heritage .note { padding-top: 14px; }
.pub-heritage .cat-head { flex-wrap: wrap; justify-content: center; }
.pub-heritage .cat h2 { flex-basis: 100%; display: flex; align-items: center; gap: 10px; color: var(--accent); text-align: center; }
.pub-heritage .cat h2::before, .pub-heritage .cat h2::after { content: ''; flex: 1; height: 5px; border-block: 1px solid var(--gold); }
.pub-heritage .cat h2 small { color: var(--teal); }
.pub-heritage .item.hot h3 { color: var(--teal); }
.pub-heritage .badge { background: var(--teal); color: #fff; }
.pub-heritage .foot h4 { color: var(--teal); }
.hero-in { max-width: 720px; margin: 0 auto; position: relative; }
.logo { width: 96px; height: 96px; border-radius: 50%; object-fit: contain; background: #fff; padding: 8px; box-shadow: 0 0 0 4px var(--sun); display: block; margin: 0 auto 12px; }
.pub-elegant .logo { background: transparent; box-shadow: 0 0 0 1px var(--accent); }
.pub-fresh .logo { border-radius: 26px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.logo-txt { display: grid; place-items: center; font-family: var(--head); font-weight: var(--head-w); font-size: 44px; color: var(--accent); padding: 0; }
.hero h1 { font-family: var(--head); font-weight: var(--head-w); font-size: clamp(34px, 9vw, 52px); line-height: 1.15; }
.pub-delivery .hero h1 { text-shadow: 3px 3px 0 rgba(0, 0, 0, .2); }
.pub-elegant .hero h1 { color: var(--accent); }
.name2 { font-family: var(--head); font-size: 19px; color: var(--sun); letter-spacing: .5px; }
.pub-elegant .name2 { font-family: 'Playfair Display', serif; letter-spacing: 5px; text-transform: uppercase; font-size: 14px; color: var(--ink); }
.pub-fresh .name2 { color: #fff; opacity: .9; font-weight: 500; }
.tagline { margin-top: 4px; font-weight: 700; opacity: .95; }
.hours { margin-top: 6px; font-size: 13px; opacity: .85; }

.quick { max-width: 720px; margin: 22px auto 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px;
  background: rgba(0, 0, 0, .12); border-radius: 16px 16px 0 0; overflow: hidden; position: relative; }
.quick a, .quick button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 12px; background: var(--card); color: var(--ink);
  text-decoration: none; font: 700 13px Cairo, sans-serif; border: 0; cursor: pointer; }
.quick a:active, .quick button:active { background: var(--line); }
.quick b { display: none; }
.qi { font-size: 19px; line-height: 1.3; }

.note { background: var(--sun); color: #1b1914; text-align: center; font-weight: 800; padding: 8px 16px; }
.pub-elegant .note { background: transparent; color: var(--accent); font-family: 'El Messiri', serif; font-size: 17px; border-bottom: 1px solid var(--line); }
.pub-fresh .note { background: #fff6dd; color: #8a5a00; }

.chips { max-width: 720px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 5px 14px; border-radius: 999px; background: var(--chip); border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.chips a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }

/* menu */
.menu { max-width: 720px; margin: 0 auto; padding: 18px 16px 8px; }
.empty, .none { text-align: center; color: var(--soft); padding: 40px 0; }
.cat { background: var(--card); border-radius: 18px; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--line); }
.cat-head { display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px 8px; }
.pub-delivery .cat-head { background: #1b1914; border-inline-start: 7px solid var(--accent); }
.cat h2 { flex: 1; font-family: var(--head); font-weight: var(--head-w); font-size: 24px; line-height: 1.3; }
.pub-delivery .cat h2 { color: var(--sun); }
.pub-elegant .cat h2, .pub-fresh .cat h2 small { color: var(--accent); }
.cat h2 small { font-size: 14px; opacity: .8; margin-inline-start: 4px; }
.pub-delivery .cat h2 small { color: #fff; }
.cat ul { list-style: none; margin: 0; padding: 0 16px 4px; }
.item:first-child { border-top: 0; }
.it { flex: 1; min-width: 0; }
.it h3 { font-size: 16px; font-weight: 700; line-height: 1.45; }
.pub-elegant .it h3 { font-family: 'El Messiri', serif; font-weight: 500; font-size: 17px; }
.n2 { font-size: 12.5px; color: var(--soft); }
.pub-elegant .n2 { font-family: 'Playfair Display', serif; font-style: italic; }
.d { font-size: 12.5px; color: var(--soft); line-height: 1.5; margin-top: 2px; }
.badge { display: inline-block; vertical-align: 2px; font-size: 10.5px; font-weight: 800; padding: 0 8px; border-radius: 999px; background: var(--sun); color: #1b1914; }
.pub-fresh .badge { background: color-mix(in srgb, var(--accent) 16%, #fff); color: color-mix(in srgb, var(--accent) 70%, #000); }
.cur { text-align: center; font-size: 12.5px; color: var(--soft); margin: 4px 0 8px; }

/* footer */
.foot { max-width: 720px; margin: 8px auto 0; padding: 20px 16px 28px; display: grid; gap: 14px; border-top: 1px solid var(--line); }
.foot h4 { font-size: 12px; color: var(--accent); font-weight: 800; }
.pub-fresh .foot h4 { color: var(--accent); }
.phones { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.phones a { font-weight: 800; text-decoration: none; }
.social { display: flex; gap: 10px; }
.social a, .owner a { font-weight: 700; }
.social a { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; }
.owner { font-size: 14px; background: var(--card); border: 1px dashed var(--accent); border-radius: 12px; padding: 8px 12px; }
.made { font-size: 12px; color: var(--soft); text-align: center; white-space: nowrap; }

/* ===== online ordering ===== */
.order-hint { max-width: 720px; margin: 12px auto 0; padding: 0 16px; text-align: center; font-size: 13px; font-weight: 700; color: var(--soft); }

.cartbar { position: fixed; z-index: 20; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 696px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 0; border-radius: 16px; background: var(--accent); color: var(--on-accent, #fff);
  font: 800 16px Cairo, sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.cartbar b { margin-inline-start: auto; }
.cb-count { min-width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--on-accent, #fff) 25%, transparent); display: grid; place-items: center; font-size: 14px; }
body:has(.cartbar:not([hidden])) .foot { padding-bottom: 96px; }

.sheet { border: 0; padding: 0; width: min(560px, 100%); max-width: 100%; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); margin: auto auto 0; border-radius: 22px 22px 0 0; overscroll-behavior: contain;
  background: var(--card); color: var(--ink); overflow: auto; }
.sheet::backdrop { background: rgba(0, 0, 0, .5); }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 22px; } }
.sheet-in { padding: 0 18px calc(18px + env(safe-area-inset-bottom)); }
.sheet-in.done { padding-top: 18px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; position: sticky; top: 0; z-index: 2; padding: 18px 0 8px; background: var(--card); }
.sheet h2 { font-family: var(--head); font-weight: var(--head-w); font-size: 24px; }
.x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--line); color: var(--ink); font-size: 15px; cursor: pointer; }
.lines { list-style: none; margin: 0 0 12px; padding: 0; }
.lines li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ln { flex: 1; min-width: 0; }
.ln b { display: block; font-size: 15px; }
.ln small { color: var(--soft); font-weight: 700; }
.qty { display: flex; align-items: center; gap: 4px; flex: none; }
.qty span { min-width: 24px; text-align: center; font-weight: 800; }
.qty button { width: 32px; height: 32px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 800 17px Cairo, sans-serif; cursor: pointer; }
.lines-empty { text-align: center; color: var(--soft); padding: 24px 0; }
#orderForm label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
#orderForm input:not([type=radio]), #orderForm textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 400 16px Cairo, sans-serif; }
#orderForm input:focus, #orderForm textarea:focus { outline: none; border-color: var(--accent); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.seg label { margin: 0 !important; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 800; cursor: pointer; }
.seg input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.sums { margin: 6px 0 8px; }
.sums div { display: flex; justify-content: space-between; padding: 3px 0; }
.sums dt { color: var(--soft); }
.sums dd { margin: 0; font-weight: 700; }
.sums .tot { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 8px; font-size: 18px; }
.sums .tot dt { color: var(--ink); font-weight: 800; }
.min { font-size: 13px; color: var(--soft); margin: 0 0 8px; }
.min.bad { color: #c0392b; font-weight: 700; }
.err { background: #fde6e3; color: #a3241a; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.send { display: block; width: 100%; text-align: center; padding: 14px; border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent, #fff);
  font: 800 17px Cairo, sans-serif; cursor: pointer; text-decoration: none; }
.send:disabled { opacity: .6; cursor: wait; }
.send.wa { background: #0f7a3d; color: #fff; margin: 16px 0 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.done { text-align: center; padding-top: 28px; }
.done-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #e2f4e9; color: #1f7a4a; display: grid; place-items: center; font-size: 32px; font-weight: 800; }
.done p { margin-top: 6px; }
.done .muted { color: var(--soft); font-size: 13px; }
.ghost { margin-top: 14px; background: none; border: 0; color: var(--soft); font: 700 15px Cairo, sans-serif; cursor: pointer; text-decoration: underline; }

@media (min-width: 640px) {
  .quick b { display: inline; }
  .quick a, .quick button { flex-direction: row; justify-content: center; gap: 8px; font-size: 14px; padding: 14px 8px; }
  .qi { font-size: 17px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .made, .owner, .social { grid-column: 1 / -1; }
}

/* ===== accessibility & touch (UI audit) ===== */
.ico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.qi .ico { width: 21px; height: 21px; }
.hours .ico, .order-hint .ico { width: 15px; height: 15px; }
.done-ico .ico { width: 34px; height: 34px; stroke-width: 3; }
.x { width: 44px; height: 44px; display: grid; place-items: center; }
.qty button { width: 40px; height: 40px; }
.quick a, .quick button { min-height: 56px; }
.seg span { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.social a { min-height: 40px; display: inline-flex; align-items: center; }
.phones a { display: inline-block; padding: 6px 0; }
.search input, #orderForm input:not([type=radio]), #orderForm textarea { font-size: 16px; } /* 16px stops iPhone zoom-on-focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.chips a:focus-visible { outline-offset: -3px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== food photos ===== */
.photo-view { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); overflow: visible; }
.photo-view::backdrop { background: rgba(0, 0, 0, .8); }
.photo-view img { display: block; max-width: 100%; max-height: 78vh; border-radius: 16px; margin: 0 auto; }
.photo-view p { color: #fff; text-align: center; font-weight: 800; font-size: 18px; margin-top: 10px; }
.photo-view .x { position: absolute; top: -14px; inset-inline-end: -14px; background: #fff; color: #1b1914; z-index: 1; }


/* ===== online menu v2: search bar, items, price chips, photos ===== */
.bar { position: sticky; top: 0; z-index: 5; padding: 8px 0 0; background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px -16px rgba(0, 0, 0, .35); }
.search { position: relative; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.search .ico { position: absolute; inset-inline-start: 30px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--soft); pointer-events: none; }
.search input { width: 100%; height: 44px; padding-block: 0; padding-inline: 44px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: 400 16px Cairo, sans-serif; transition: border-color .15s, box-shadow .15s; }
.search input::placeholder { color: var(--soft); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.chips { padding: 8px 16px 10px; gap: 6px;
  mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
.chips a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-width: 1px; font-size: 14px;
  transition: background .15s, color .15s, border-color .15s; }
.chips a:not(.on):hover { border-color: var(--accent); color: var(--accent); }
.chips a.on { box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--accent) 70%, transparent); }
.order-hint { margin-top: 10px; font-size: 12.5px; }

.cat-head { padding: 14px 16px 6px; }
.pub-delivery .cat-head { padding-block: 12px 10px; margin-bottom: 4px; }
.item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.it h3 { font-size: 16.5px; font-weight: 800; line-height: 1.4; }
.d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* price chip: [size] [price] [+]; the whole chip is the add button */
.add, .pc { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding-inline: 12px 5px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--card));
  color: var(--ink); font: 400 14px Cairo, sans-serif; white-space: nowrap; }
.pc { padding-inline: 12px; }
.add { cursor: pointer; transition: transform .12s ease, background .15s, border-color .15s, box-shadow .2s; }
.add:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.add:active { transform: scale(.96); }
.add small, .pc small { font-size: 12px; font-weight: 700; color: var(--soft); }
.add b, .pc b { font-size: 16px; font-weight: 800; color: var(--accent); line-height: 1; }
.add .plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent, #fff); }
.add .plus .ico { width: 16px; height: 16px; stroke-width: 2.6; vertical-align: 0; }
.add.pop { animation: pop .45s ease; }
@keyframes pop { 35% { transform: scale(1.08); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); } }
.pub-delivery .add b, .pub-delivery .pc b { font-family: Lalezar, Cairo; font-weight: 400; font-size: 19px; padding-top: 3px; }
.pub-elegant .add b, .pub-elegant .pc b { font-family: 'Playfair Display', serif; font-weight: 700; }
.pub-heritage .add b, .pub-heritage .pc b { font-family: 'Reem Kufi', Cairo, sans-serif; font-weight: 700; font-size: 17px; }
.pub-fresh .add b, .pub-fresh .pc b { color: var(--ink); }
.pub-heritage .add small, .pub-heritage .pc small { color: var(--teal); }

/* food photo on the end side (left in Arabic) */
.ph { flex: none; width: 96px; height: 96px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in;
  background: var(--line); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .45); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.ph:hover img { transform: scale(1.06); }
.pub-delivery .ph { border-radius: 50%; box-shadow: 0 0 0 3px var(--sun), 0 6px 14px -8px rgba(0, 0, 0, .5); width: 90px; height: 90px; margin: 3px; }
.pub-elegant .ph { border-radius: 50%; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--card), 0 0 0 5px color-mix(in srgb, var(--accent) 40%, transparent); }
.pub-heritage .ph { border-radius: 48px 48px 10px 10px; box-shadow: 0 0 0 2px var(--gold); }
@media (max-width: 380px) { .ph { width: 80px; height: 80px; } .pub-delivery .ph { width: 76px; height: 76px; } .add, .pc { padding-inline-start: 10px; } }
@media (min-width: 640px) { .ph { width: 112px; height: 112px; } .pub-delivery .ph { width: 104px; height: 104px; } }

/* item grid: [text | photo] on top, price chips below. 3+ size chips span the full width so they stay on one line */
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; align-items: start; }
.item .it { grid-column: 1; grid-row: 1; }
.item .ph { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.item .pr { grid-column: 1; grid-row: 2; }
/* with a photo: name + chips sit together, centred next to the photo */
.item.has-ph { align-items: center; }
.item.has-ph .it { align-self: end; }
.item.has-ph .pr { align-self: start; }
.chips { padding-block: 6px 8px; }
.add, .pc { gap: 5px; padding-inline: 10px 4px; font-size: 13.5px; }
.pc { padding-inline: 10px; }
.add .plus { width: 28px; height: 28px; }
.add small, .pc small { font-size: 11.5px; }
@media (max-width: 400px) {
  .menu { padding-inline: 12px; }
  .cat ul { padding-inline: 12px; }
  .cat-head { padding-inline: 12px; }
  .add, .pc { gap: 4px; padding-inline: 9px 3px; }
  .pc { padding-inline: 9px; }
  .add .plus { width: 26px; height: 26px; }
  .add b, .pc b { font-size: 15px; }
  .pub-delivery .add b, .pub-delivery .pc b { font-size: 17px; }
  .pr { gap: 5px; }
}

@media (max-width: 480px) {
  /* phones: 3+ size chips go on their own full-width row under the name and photo, sharing the width equally */
  .item.has-ph:has(.pr > :nth-child(3)) .ph { grid-row: 1; }
  .item.has-ph:has(.pr > :nth-child(3)) .it { align-self: center; }
  .item.has-ph:has(.pr > :nth-child(3)) .pr { grid-column: 1 / -1; }
  .item:has(.pr > :nth-child(3)) .pr { flex-wrap: nowrap; }
  .item:has(.pr > :nth-child(3)) .pr > * { flex: 1 1 0; min-width: 0; justify-content: space-between; }
}
@media (max-width: 400px) { .pub-heritage .add b, .pub-heritage .pc b { font-size: 15px; } .pub-heritage .add small, .pub-heritage .pc small { font-size: 11px; } }

/* ===== desktop: wider page, 2 columns of items, search + chips on one row ===== */
@media (min-width: 900px) {
  .menu, .foot, .order-hint { max-width: 1120px; }
  .menu { padding-inline: 24px; }
  .foot { padding-inline: 24px; grid-template-columns: repeat(3, 1fr); }
  .quick { max-width: 760px; }

  .bar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; column-gap: 16px;
    padding: 8px max(24px, calc((100% - 1120px) / 2 + 24px)); }
  .bar .chips { grid-column: 1; grid-row: 1; max-width: none; margin: 0; padding: 4px 2px; }
  .bar .search { grid-column: 2; grid-row: 1; max-width: none; margin: 0; padding: 0; }
  .bar .search .ico { inset-inline-start: 14px; }

  .cat { border-radius: 22px; }
  .cat-head { padding: 16px 24px 8px; }
  .cat ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; padding: 0 24px 8px; }
  .cat ul .item:nth-child(2) { border-top: 0; }
  /* a thin divider between the two columns */
  .cat ul { background: linear-gradient(var(--line), var(--line)) center 16px / 1px calc(100% - 32px) no-repeat; }
  .cat ul:has(> .item:only-child) { grid-template-columns: 1fr; background: none; }
}
@media (min-width: 1200px) {
  .ph { width: 120px; height: 120px; }
  .pub-delivery .ph { width: 112px; height: 112px; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .item.has-ph:has(.pr > :nth-child(3)) .ph { grid-row: 1; }
  .item.has-ph:has(.pr > :nth-child(3)) .it { align-self: center; }
  .item.has-ph:has(.pr > :nth-child(3)) .pr { grid-column: 1 / -1; }
}

/* ===== front-page design preview bar (demo restaurant only) ===== */
.demo-bar { background: #1f1a16; color: #fff; font-family: Cairo, sans-serif; position: relative; z-index: 6; }
.demo-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.demo-home { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; }
.demo-home .ico { width: 18px; height: 18px; transform: scaleX(-1); } /* points back (right) in RTL */
.demo-title { margin: 0; font-size: 15px; }
.demo-title b { color: #ffd23f; }
.demo-designs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.demo-designs::-webkit-scrollbar { display: none; }
.demo-designs a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  color: #e9e1d4; text-decoration: none; font-weight: 700; font-size: 14px; border: 1px solid rgba(255, 255, 255, .18); }
.demo-designs a:hover { border-color: #fff; color: #fff; }
.demo-designs a.on { background: #fff; color: #1f1a16; border-color: #fff; }
.sw { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.sw-delivery { background: linear-gradient(135deg, #d62828 50%, #ffd23f 50%); }
.sw-elegant { background: linear-gradient(135deg, #14110d 50%, #c9a24a 50%); }
.sw-fresh { background: linear-gradient(135deg, #f6f1e7 50%, #1e7b4a 50%); }
.sw-heritage { background: linear-gradient(135deg, #1f5f5b 50%, #9a3412 50%); }
.demo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 12px; background: #c8341f; color: #fff;
  text-decoration: none; font-weight: 800; font-size: 14px; white-space: nowrap; }
.demo-btn:hover { background: #a92915; }
.demo-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.demo-btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.demo-btn .ico { width: 16px; height: 16px; }
.demo-bar a:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }
@media (max-width: 700px) {
  .demo-designs { order: 3; flex-basis: 100%; }
  .demo-actions { order: 4; flex-basis: 100%; }
  .demo-actions .demo-btn { flex: 1; justify-content: center; }
}

/* category strip: «الكل» is fixed at the start; only the other tabs scroll next to it */
.chips { overflow: visible; display: flex; align-items: center; gap: 6px; mask-image: none; -webkit-mask-image: none; }
.chips > a { flex: none; }
.chips-scroll { flex: 1 1 auto; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0;
  mask-image: linear-gradient(to left, #000 calc(100% - 18px), transparent 100%); -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 18px), transparent 100%); }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll a { flex: none; }
.chips-scroll { cursor: grab; overscroll-behavior-x: contain; }
.chips-scroll.dragging { cursor: grabbing; user-select: none; scroll-behavior: auto; }
.chips-scroll.dragging a { pointer-events: none; }

/* =====================================================================
   Design «ستايل تطبيق» — the restaurant page looks like a mobile app.
   One phone-width column (480px max, centred on desktop), rounded header with a floating action card,
   white item cards, pill chips and a fixed bottom tab bar.
   ===================================================================== */
.pub-app {
  --bg: #f4f5f9; --card: #ffffff; --ink: #16161a; --soft: #5f6470; --line: #e8e9ef; --chip: #ffffff;
  --hero-ink: var(--on-accent, #fff); --head: Tajawal, Cairo, sans-serif; --head-w: 800; --sun: #ffc83d;
  max-width: 480px; margin: 0 auto; box-shadow: 0 0 80px rgba(20, 20, 40, .14); min-height: 100vh;
  padding-bottom: calc(84px + env(safe-area-inset-bottom)); font-family: Cairo, system-ui, sans-serif;
}
html:has(.pub-app) { background: #dcdde4; }

/* header: rounded accent banner, logo + name side by side */
.pub-app .hero { overflow: visible; text-align: start; padding: 22px 18px 0; border-radius: 0 0 30px 30px; margin-bottom: 42px; }
.pub-app .hero-in { max-width: none; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding-bottom: 6px; }
.pub-app .logo { width: 64px; height: 64px; margin: 0; grid-row: span 3; border-radius: 20px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); background: #fff; padding: 6px; }
.pub-app .logo-txt { font-size: 30px; padding: 0; color: var(--accent); }
.pub-app .hero h1 { font-size: 26px; line-height: 1.2; text-shadow: none; }
.pub-app .name2 { font-size: 14px; color: inherit; opacity: .85; letter-spacing: 1px; font-weight: 500; }
.pub-app .tagline { grid-column: 2; margin: 0; font-size: 13px; opacity: .9; font-weight: 600; }
.pub-app .hours { grid-column: 1 / -1; justify-self: start; margin: 12px 0 0; display: inline-flex; gap: 6px; align-items: center; background: color-mix(in srgb, var(--on-accent, #fff) 18%, transparent); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; opacity: 1; }
.pub-app .hours .ico { width: 14px; height: 14px; }

/* floating action card overlapping the banner */
.pub-app .quick { max-width: none; margin: 20px 0 -34px; gap: 0; border-radius: 22px; background: var(--card); box-shadow: 0 16px 34px -16px rgba(20, 20, 40, .45); overflow: hidden; position: relative; }
.pub-app .quick a, .pub-app .quick button { background: transparent; min-height: 74px; padding: 12px 4px 10px; font-size: 12.5px; gap: 6px; }
.pub-app .quick a:active, .pub-app .quick button:active { background: var(--bg); }
.pub-app .qi { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, #fff); color: color-mix(in srgb, var(--accent) 85%, #000); }
.pub-app .qi .ico { width: 20px; height: 20px; }
.pub-app .quick b { display: none; }

.pub-app .note { margin: 0 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, #fff); color: color-mix(in srgb, var(--accent) 80%, #000); font-size: 14px; }

/* search + category chips */
.pub-app .bar { display: block; padding: 10px 0 0; background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: none; border-bottom: 0; margin-top: 14px; }
.pub-app .search { padding: 0 16px; }
.pub-app .search .ico { inset-inline-start: 30px; }
.pub-app .search input { height: 48px; border-radius: 16px; border: 0; background: var(--card); box-shadow: 0 4px 14px -8px rgba(20, 20, 40, .35); }
.pub-app .bar .chips { max-width: none; margin: 0; padding: 10px 16px 10px; }
.pub-app .chips a { border: 0; background: var(--card); box-shadow: 0 2px 8px -4px rgba(20, 20, 40, .3); font-weight: 700; }
.pub-app .chips a.on { background: var(--accent); color: var(--on-accent, #fff); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--accent) 80%, #000); }
.pub-app .order-hint { max-width: none; margin-top: 4px; }

/* categories: heading on the page, every item is its own white card */
.pub-app .menu { max-width: none; padding: 6px 16px 8px; }
.pub-app .cat { background: transparent; border: 0; border-radius: 0; overflow: visible; margin-bottom: 10px; }
.pub-app .cat-head { padding: 14px 4px 10px; background: none; border: 0; }
.pub-app .cat h2 { font-family: Tajawal, Cairo, sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.pub-app .cat h2::before { content: ''; width: 8px; height: 22px; border-radius: 4px; background: var(--accent); flex: none; }
.pub-app .cat h2 small { color: var(--soft); font-size: 13px; font-weight: 600; opacity: 1; }
.pub-app .cat ul { display: block; padding: 0; background: none; }

.pub-app .item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; background: var(--card); border: 0; border-radius: 22px; padding: 12px;
  margin-bottom: 10px; box-shadow: 0 6px 18px -12px rgba(20, 20, 40, .35); }
.pub-app .item:first-child { border-top: 0; }
.pub-app .item .ph { grid-column: 1; grid-row: 1 / span 2; width: 96px; height: 96px; border-radius: 18px; margin: 0; box-shadow: none; align-self: center; }
.pub-app .item .it { grid-column: 2; grid-row: 1; align-self: end; }
.pub-app .item .pr { grid-column: 2; grid-row: 2; margin-top: 6px; align-self: start; }
.pub-app .item:not(.has-ph) { grid-template-columns: minmax(0, 1fr); }
.pub-app .item:not(.has-ph) .it, .pub-app .item:not(.has-ph) .pr { grid-column: 1; }
.pub-app .it h3 { font-family: Tajawal, Cairo, sans-serif; font-weight: 800; font-size: 17px; }
/* 3+ sizes: the chips take their own full-width row, equal widths */
.pub-app .item:has(.pr > :nth-child(3)) .pr, .pub-app .item.has-ph:has(.pr > :nth-child(3)) .pr { grid-column: 1 / -1; grid-row: 2; flex-wrap: nowrap; margin-top: 8px; }
.pub-app .item:has(.pr > :nth-child(3)) .pr > * { flex: 1 1 0; min-width: 0; justify-content: space-between; }
.pub-app .item.has-ph:has(.pr > :nth-child(3)) .ph { grid-row: 1; }
.pub-app .item.has-ph:has(.pr > :nth-child(3)) .it { align-self: center; }
.pub-app .add, .pub-app .pc { border: 0; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, #fff); padding-inline: 10px 4px; }
.pub-app .add .plus { border-radius: 10px; }
.pub-app .add b, .pub-app .pc b { font-family: Tajawal, Cairo, sans-serif; font-weight: 800; color: color-mix(in srgb, var(--accent) 85%, #000); }
.pub-app .badge { background: color-mix(in srgb, var(--accent) 14%, #fff); color: color-mix(in srgb, var(--accent) 85%, #000); }
.pub-app .cur { margin-top: 8px; }

/* footer as a rounded card */
.pub-app .foot { max-width: none; margin: 8px 16px 0; padding: 20px 18px 22px; background: var(--card); border: 0; border-radius: 26px; display: grid; grid-template-columns: 1fr; box-shadow: 0 6px 18px -12px rgba(20, 20, 40, .35); }
.pub-app .foot h4 { color: color-mix(in srgb, var(--accent) 85%, #000); }
.pub-app .made, .pub-app .owner, .pub-app .social { grid-column: auto; }

/* bottom tab bar */
.appbar { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 480px); display: flex; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -18px rgba(20, 20, 40, .35); }
.appbar a, .appbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border: 0; background: none; color: var(--soft);
  font: 700 11.5px Cairo, sans-serif; text-decoration: none; cursor: pointer; border-radius: 16px; position: relative; }
.appbar .ico { width: 23px; height: 23px; }
.appbar .on { color: color-mix(in srgb, var(--accent) 85%, #000); }
.appbar .on::before { content: ''; position: absolute; top: 2px; width: 28px; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent); }
.appbar a:active, .appbar button:active { background: var(--bg); }
.ab-ico { position: relative; display: inline-grid; }
.ab-badge { position: absolute; top: -6px; inset-inline-end: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff);
  font: 800 11px/18px Cairo, sans-serif; text-align: center; font-style: normal; }
.ab-badge[hidden] { display: none; }
.appbar a:focus-visible, .appbar button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* the floating order bar sits above the tab bar */
.pub-app .cartbar { bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 456px; border-radius: 18px; }
.pub-app.ordering .foot { padding-bottom: 22px; }
body.pub-app:has(.cartbar:not([hidden])) { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.pub-app .demo-bar { font-size: 14px; }
.pub-app .demo-in { padding-inline: 12px; }
.pub-app .demo-actions { flex-basis: 100%; }
.pub-app .demo-actions .demo-btn { flex: 1; justify-content: center; }
.sw-app { background: linear-gradient(135deg, #cf3f0a 50%, #16161a 50%); }

/* =====================================================================
   «ستايل تطبيق» — desktop view (≥900px). Same look as on the phone, but wide: the page uses the full width,
   items are cards in a 2–3 column grid, search + categories share one row, and the tab bar becomes a floating dock.
   ===================================================================== */
@media (min-width: 900px) {
  html:has(.pub-app) { background: #f4f5f9; }
  .pub-app { max-width: none; box-shadow: none; padding-bottom: 120px; }

  .pub-app .hero { padding: 32px 32px 0; border-radius: 0 0 44px 44px; margin-bottom: 46px; }
  .pub-app .hero-in { max-width: 1120px; margin: 0 auto; column-gap: 22px; }
  .pub-app .logo { width: 92px; height: 92px; border-radius: 28px; }
  .pub-app .logo-txt { font-size: 42px; }
  .pub-app .hero h1 { font-size: 42px; }
  .pub-app .name2 { font-size: 16px; }
  .pub-app .tagline { font-size: 16px; }
  .pub-app .hours { font-size: 14px; padding: 6px 16px; }
  .pub-app .quick { max-width: 780px; margin: 28px auto -38px; border-radius: 26px; }
  .pub-app .quick a, .pub-app .quick button { flex-direction: row; justify-content: center; gap: 10px; min-height: 70px; font-size: 14.5px; padding: 12px 8px; }
  .pub-app .quick b { display: inline; }

  .pub-app .note { max-width: 1072px; margin: 0 auto; font-size: 15px; }

  .pub-app .bar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 16px; align-items: center; margin-top: 18px;
    padding: 10px max(24px, calc((100% - 1120px) / 2 + 24px)); }
  .pub-app .bar .chips { grid-column: 1; grid-row: 1; padding: 4px 2px; }
  .pub-app .bar .search { grid-column: 2; grid-row: 1; padding: 0; margin: 0; }
  .pub-app .bar .search .ico { inset-inline-start: 16px; }
  .pub-app .order-hint { max-width: 1120px; }

  .pub-app .menu { max-width: 1120px; margin: 0 auto; padding: 8px 24px; }
  .pub-app .cat-head { padding: 22px 4px 12px; }
  .pub-app .cat h2 { font-size: 28px; }
  .pub-app .cat ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pub-app .item { margin-bottom: 0; padding: 14px; }
  .pub-app .item .ph { width: 108px; height: 108px; border-radius: 20px; }
  .pub-app .it h3 { font-size: 18px; }
  .pub-app .item:hover { box-shadow: 0 14px 28px -16px rgba(20, 20, 40, .45); transform: translateY(-2px); }
  .pub-app .item { transition: box-shadow .2s ease, transform .2s ease; }

  .pub-app .foot { max-width: 1120px; margin: 18px auto 0; padding: 26px 30px; grid-template-columns: repeat(3, 1fr); }
  .pub-app .made, .pub-app .owner, .pub-app .social { grid-column: 1 / -1; }

  /* the tab bar floats at the bottom centre as a pill-shaped dock */
  .appbar { width: auto; bottom: 22px; padding: 6px 8px; gap: 4px; border-radius: 999px; border: 1px solid var(--line);
    box-shadow: 0 18px 44px -18px rgba(20, 20, 40, .5); }
  .appbar a, .appbar button { flex: none; flex-direction: row; gap: 8px; min-height: 48px; padding: 0 20px; font-size: 14px; border-radius: 999px; }
  .appbar .on { background: color-mix(in srgb, var(--accent) 12%, #fff); }
  .appbar .on::before { display: none; }
  .appbar a:hover, .appbar button:hover { background: var(--bg); }
  .appbar .on:hover { background: color-mix(in srgb, var(--accent) 16%, #fff); }
  .pub-app .cartbar { bottom: 92px; max-width: 540px; }
  body.pub-app:has(.cartbar:not([hidden])) { padding-bottom: 190px; }

  .pub-app .demo-in { max-width: 1120px; padding-inline: 16px; }
  .pub-app .demo-actions { flex-basis: auto; }
  .pub-app .demo-actions .demo-btn { flex: none; }
}

@media (min-width: 1280px) {
  .pub-app .menu { max-width: 1240px; }
  .pub-app .hero-in, .pub-app .foot, .pub-app .order-hint { max-width: 1240px; }
  .pub-app .note { max-width: 1192px; }
  .pub-app .cat ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pub-app .bar { padding-inline: max(24px, calc((100% - 1240px) / 2 + 24px)); }
}

/* ===== footer v2: icon rows (address / hours / phones), tappable address and phone buttons ===== */
.foot { gap: 18px; }
.fr { display: flex; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none; min-width: 0; }
.fi { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; transition: transform .15s ease;
  background: color-mix(in srgb, var(--accent) 13%, var(--card)); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.fi .ico { width: 20px; height: 20px; }
a.fr:hover .fi { transform: scale(1.07); }
.ft { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; }
.ft small { font-size: 12px; font-weight: 800; color: color-mix(in srgb, var(--accent) 75%, var(--ink)); }
.ft b { font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.phones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.phones a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 14px; font-weight: 800; text-decoration: none;
  background: color-mix(in srgb, var(--accent) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.phones a:hover { border-color: var(--accent); }
.pub-heritage .ft small, .pub-heritage .fi { color: var(--teal); }

/* app design: dark footer card (same as the printed menu's footer) */
.pub-app .foot { background: #16161a; color: #fff; box-shadow: 0 18px 36px -22px rgba(20, 20, 40, .7); }
.pub-app .fi { background: color-mix(in srgb, var(--accent) 38%, #16161a); color: #fff; }
.pub-app .ft small { color: color-mix(in srgb, var(--accent) 40%, #fff); }
.pub-app .ft b { color: #fff; }
.pub-app .phones a { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.pub-app .phones a:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .4); }
.pub-app .social a { color: #fff; border-color: rgba(255, 255, 255, .28); }
.pub-app .social a:hover { background: rgba(255, 255, 255, .1); }
.pub-app .made { color: #a9acb8; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }
.pub-app .made a { color: #fff; }
.pub-app .owner { background: rgba(255, 255, 255, .08); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: #fff; }
.pub-app .owner a { color: color-mix(in srgb, var(--accent) 40%, #fff); }
.pub-app .foot a:focus-visible { outline-color: #fff; }

/* phones: on mobile every number is its own full-width row (big tap target) */
@media (max-width: 639px) {
  .phones { flex-direction: column; align-items: stretch; gap: 8px; }
  .phones a { justify-content: center; width: 100%; }
}
.ft { flex: 1 1 auto; }
/* footer titles bigger */
.ft small { font-size: 15px; line-height: 1.4; }
.ft b { font-size: 16px; }
.pub-app .ft small { font-size: 15.5px; }

/* coupon + tracking link in the order sheet */
.coupon { margin-bottom: 10px; }
.coupon > label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 0; }
.coupon-row { display: flex; gap: 8px; align-items: stretch; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
#orderForm .coupon-row input { margin-top: 4px; }
.coupon-btn { margin-top: 4px; padding: 0 18px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); font: 800 14px Cairo, sans-serif; cursor: pointer; }
.coupon-btn:hover { background: var(--accent); color: var(--on-accent, #fff); }
.coupon-msg { margin: 6px 0 0; font-size: 13px; font-weight: 700; }
.coupon-msg.ok { color: #1f7a4a; }
.coupon-msg.bad { color: #c0392b; }
.sums .disc-row dd { color: #1f7a4a; }
.send.track { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); margin: 0 0 6px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.last-track { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; margin-bottom: 10px; border-radius: 12px; background: rgba(0, 0, 0, .05); color: var(--ink); font-weight: 700; text-decoration: none; font-size: 14px; }

/* QR card in the page footer */
.fqr { position: relative; overflow: hidden; margin: 24px auto 10px; padding: 22px 20px 16px; width: min(250px, 100%); background: #fff; color: #1f1a16; border-radius: 24px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.fqr::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent, #c8341f); }
.fqr img { display: block; width: 100%; max-width: 190px; height: auto; aspect-ratio: 1; margin: 0 auto 12px; border-radius: 8px; }
.fqr b { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; }
.fqr figcaption { font-size: 13px; color: #6b6058; margin-top: 2px; }
@media print { .fqr { display: none; } }
.foot .fqr b { color: #1f1a16; opacity: 1; }
.foot .fqr figcaption { color: #5b524a; opacity: 1; }

/* ===== desktop footer: one compact bar, like the footer of the printed menu ===== */
@media (min-width: 900px) {
  .pub .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 28px 14px; }
  .pub .foot::after { content: ""; order: 9; flex: 0 0 100%; height: 1px; margin-top: 4px; background: currentColor; opacity: .14; }
  .pub .foot .fr { flex: 1 1 0; gap: 10px; align-items: center; }
  .pub .foot .fr-phones { flex: 0 0 auto; order: 1; }
  .pub .foot > a.fr { order: 2; }
  .pub .foot > div.fr:not(.fr-phones) { order: 3; }
  .pub .foot .fi { width: 34px; height: 34px; border-radius: 11px; }
  .pub .foot .fi .ico { width: 17px; height: 17px; }
  .pub .foot .ft { gap: 0; }
  .pub .foot .ft small { font-size: 13px; }
  .pub .foot .ft b { font-size: 14.5px; line-height: 1.5; }
  .pub .foot .phones { display: grid; grid-template-columns: repeat(2, auto); gap: 0 22px; margin: 0; }
  .pub .foot .phones a { display: inline; min-height: 0; padding: 0; background: none; border: 0; border-radius: 0; font-size: 15px; line-height: 1.6; }
  .pub .foot .phones a:hover { text-decoration: underline; }
  .pub .foot .fqr { order: 4; margin: 0; width: auto; flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 16px; text-align: start; box-shadow: none; }
  .pub .foot .fqr::before { display: none; }
  .pub .foot .fqr img { width: 76px; height: 76px; max-width: none; margin: 0; flex: none; }
  .pub .foot .fqr figcaption { font-size: 12px; line-height: 1.5; max-width: 104px; }
  .pub .foot .fqr b { font-size: 14px; margin-bottom: 2px; }
  .pub .foot .social, .pub .foot .owner, .pub .foot .made { order: 10; grid-column: auto; }
  .pub .foot .social { gap: 8px; }
  .pub .foot .social a { min-height: 32px; padding: 3px 14px; font-size: 13px; }
  .pub .foot .owner { padding: 4px 12px; font-size: 13px; }
  .pub .foot .made { flex: 1 1 auto; margin-inline-start: auto; text-align: end; border: 0; padding: 0; }
  .pub-app .foot { margin: 18px auto 96px; padding: 18px 28px 14px; } /* room for the floating tab dock */
}

/* footer social links: centred pills with a brand icon */
.social { justify-content: center; flex-wrap: wrap; gap: 10px; }
.social a { gap: 8px; padding: 6px 16px; transition: background .15s, border-color .15s; }
.social a .sc { flex: none; }
.pub-app .social a { background: rgba(255, 255, 255, .06); }
@media (min-width: 900px) { .pub .foot .social { justify-content: flex-start; } }

/* minimum order: how much is missing, a progress bar, and a send button that waits */
.min { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: #fff4e0; color: #7a4a00; font-weight: 600; }
.min[hidden] { display: none; }
.min .min-txt { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.min .min-txt b { display: block; font-size: 13px; color: #9a6a1a; font-weight: 700; }
.min .min-bar { height: 8px; border-radius: 999px; background: rgba(122, 74, 0, .15); overflow: hidden; }
.min .min-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .25s ease; }
.min.bad { color: #7a4a00; font-weight: 600; }
.send:disabled.is-short { opacity: 1; background: #d9d6cf; color: #7b776d; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .min .min-bar span { transition: none; } }

.coupon[hidden] { display: none; }

/* sold-out items: still listed, greyed, no add button, with a clear badge */
.item.sold .ph { opacity: .5; filter: grayscale(.6); }
.item.sold .it h3 { color: var(--soft); }
.item.sold .n2, .item.sold .it .d { opacity: .6; }
.item.sold .pc { opacity: .5; text-decoration: line-through; }
.badge.sold-badge { display: inline-block; vertical-align: middle; font-size: 14px; font-weight: 800; line-height: 1.5; padding: 2px 14px; margin-inline-start: 6px; border-radius: 999px; background: var(--ink); color: var(--bg); }

/* closed page: shown at the top when the restaurant is closed right now */
.open-pill { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: rgba(255,255,255,.88); color: #1c1c1f; }
.open-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #9a958a; }
.open-pill.is-open .dot { background: #1f9d55; box-shadow: 0 0 0 3px rgba(31,157,85,.22); }
.open-pill.is-closed .dot { background: #c0392b; }
.cs-lines { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 1px; }
.cs-lines li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 15px; }
.cs-lines li i { flex: 1; min-width: 14px; border-bottom: 2px dotted color-mix(in srgb, var(--soft) 55%, transparent); translate: 0 -4px; }
.cs-lines li b { font-weight: 700; unicode-bidi: plaintext; }
.cs-lines li.off { color: var(--soft); }
.cs-lines li.off b { font-weight: 500; }
.cs-lines li.today { font-weight: 800; }
.cs-lines li em { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 1px 8px; margin-inline-start: 4px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); }
.cc-week li b { font-weight: 700; unicode-bidi: plaintext; }
.hero .hours { text-wrap: balance; }


/* categories sheet opened from the bottom bar */
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-list button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 700 17px Cairo, sans-serif; text-align: start; cursor: pointer; }
.cat-list li:last-child button { border-bottom: 0; }
.cat-list button i { font-style: normal; font-size: 13px; font-weight: 800; min-width: 30px; text-align: center; padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.cat-list button:hover, .cat-list button:focus-visible { color: var(--accent); }
.cat-list button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 10px; }


/* ===== closed restaurant: a closed screen first, the menu behind «شوف المنيو» ===== */
.closed-gate:not(.menu-revealed):not(:has(#menu:target)) :is(.bar, .order-hint, .menu) { display: none; }
.closed-gate:not(.menu-revealed):not(:has(#menu:target)) .appbar [data-app="cats"],
.closed-gate:not(.menu-revealed):not(:has(#menu:target)) .appbar [data-app="search"] { display: none; }
.closed-card { color: var(--ink); }
.cc-bar { display: none; }
.menu-revealed .cc-full { display: none; }
.menu-revealed .cc-bar { display: flex; }

.cc-full { max-width: 560px; margin: 0 auto; padding: 38px 18px 44px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.cc-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent, #fff); font-size: 30px; box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 16%, transparent); }
.cc-title { font-family: var(--head); font-weight: var(--head-w); font-size: clamp(30px, 8vw, 40px); line-height: 1.25; margin-top: 10px; }
.cc-next { font-family: var(--head); font-weight: var(--head-w); font-size: clamp(22px, 6vw, 28px); line-height: 1.5; }
.cc-next b { font-weight: inherit; }
.cc-next .t { white-space: nowrap; unicode-bidi: plaintext; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 7px; text-decoration-skip-ink: none; }
.cc-note { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--soft); }
.cc-note .ico { width: 16px; height: 16px; }
.cc-hours { width: 100%; margin: 18px 0 6px; padding: 8px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-align: start; }
.cc-hours li { border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.cc-hours li:last-child { border-bottom: 0; }
.cc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 34px; margin-top: 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); font-size: 18px; font-weight: 800; text-decoration: none; box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--accent) 80%, #000); }
.cc-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* once the menu is open: a slim status band */
.cc-bar { align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink); color: var(--bg); text-align: start; }
.cb-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #ff6b5b; box-shadow: 0 0 0 5px rgba(255, 107, 91, .25); }
.cb-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cb-txt b { font-family: var(--head); font-weight: var(--head-w); font-size: 18px; line-height: 1.3; }
.cb-txt span { font-size: 14px; line-height: 1.5; opacity: .9; }
.cb-btn { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--bg) 60%, transparent); background: transparent; color: inherit; font: 700 14px Cairo, sans-serif; cursor: pointer; }
.cb-btn:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); }
.cb-btn:focus-visible { outline: 3px solid var(--bg); outline-offset: 2px; }
.menu-revealed .closed-card { background: var(--ink); }
.pub-app.menu-revealed .closed-card { margin: 0 16px 10px; border-radius: 16px; overflow: hidden; }
.pub-elegant.menu-revealed .closed-card { background: var(--card); color: var(--ink); border-block: 1px solid var(--accent); }
.pub-elegant .cb-txt b { color: var(--accent); }
.pub-heritage.menu-revealed .closed-card { background: var(--teal); color: #fff; }
.pub-fresh.menu-revealed .closed-card { margin: 12px 14px 0; border-radius: 18px; overflow: hidden; }

/* per-template touches on the closed screen */
.pub-delivery .cc-hours { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--sun); border-radius: 16px; }
.pub-elegant .cc-hours { border-radius: 2px; }
.pub-elegant .cc-title { color: var(--accent); }
.pub-elegant .cc-btn { border-radius: 2px; }
.pub-fresh .cc-hours { border: 0; border-radius: 22px; box-shadow: 0 8px 24px rgba(29, 59, 44, .10); }
.pub-heritage .cc-hours { border: 4px double var(--gold); border-radius: 0; background: var(--card); }
.pub-heritage .cc-title { color: var(--teal); }
.pub-heritage .cc-btn { background: var(--teal); color: #fff; border-radius: 0; }
.pub-app .cc-full { padding-top: 30px; }

.cs-lines { margin: 4px 0 6px; }
.cs-lines li { font-size: 16px; padding: 8px 0; }
@media (min-width: 900px) {
  .cc-full { padding: 56px 18px 64px; }
  .menu-revealed .cc-bar { justify-content: center; padding: 14px 24px; }
  .menu-revealed .cb-txt { flex: 0 1 auto; text-align: center; justify-items: center; }
  .pub-app.menu-revealed .closed-card { max-width: 1072px; margin-inline: auto; }
  .appbar { display: none; } /* the top bar (tabs + search) and the cart button already do this on a wide screen */
}
@media (prefers-reduced-motion: reduce) { .closed-card * { transition: none !important; } }
