/* =================================================================
   QR Menu v2 — Design System
   Inspired by Toast / Talabat / fine-dining digital menus.
   Brand-first: every color comes from a CSS variable so each
   restaurant deployment themes itself from MongoDB settings.
   ================================================================= */

:root {
  /* Brand (overridden at runtime by API public-info) */
  --brand:           #993b14;
  --brand-deep:      #5d240a;
  --brand-soft:      #fff7f3;
  --brand-contrast:  #ffffff;

  /* Neutrals — warm cream palette */
  --bg:              #faf7f2;
  --surface:         #ffffff;
  --surface-2:       #f4efe8;
  --ink:             #1f1611;
  --ink-2:           #4a3d34;
  --muted:           #8a7868;
  --line:            #e9e1d6;

  /* Semantic */
  --success:         #1f7a3a;
  --danger:          #c33;
  --warning:         #d97706;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(31, 22, 17, .06), 0 1px 1px rgba(31, 22, 17, .04);
  --shadow-2: 0 4px 12px rgba(31, 22, 17, .08), 0 2px 4px rgba(31, 22, 17, .04);
  --shadow-3: 0 12px 28px rgba(31, 22, 17, .14), 0 4px 8px rgba(31, 22, 17, .06);
  --shadow-brand: 0 8px 24px rgba(153, 59, 20, .28);

  /* Radius scale */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  28px;
  --r-pill: 999px;

  /* Spacing — 4pt grid */
  --s-1:   4px;
  --s-2:   8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-8:  32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;

  /* Motion */
  --ease:  cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast:  120ms;
  --t-base:  220ms;
  --t-slow:  420ms;

  /* Typography */
  --f-display-ar: 'Aref Ruqaa', 'Reem Kufi', serif;
  --f-display-en: 'Playfair Display', 'Cormorant Garamond', serif;
  --f-body-ar:    'Tajawal', 'Cairo', system-ui, sans-serif;
  --f-body-en:    'Inter', 'Manrope', system-ui, sans-serif;

  /* Layout */
  --header-h: 64px;
  --chips-h:  56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body-ar);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  overscroll-behavior-y: contain;
}
html[lang="en"] body { font-family: var(--f-body-en); }
html[dir="rtl"] body { direction: rtl; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: transparent; cursor: pointer; color: inherit; }

::selection { background: var(--brand); color: var(--brand-contrast); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ─────────────────────────────────────────
   Utility primitives
   ───────────────────────────────────────── */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--s-5); }
.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.spacer { flex: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
.btn-brand {
  background: var(--brand); color: var(--brand-contrast);
  box-shadow: var(--shadow-brand);
}
.btn-brand:hover { background: var(--brand-deep); }
.btn-ghost {
  background: transparent; border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }

/* Toast notifications — both legacy `.toast` (declarative) and `.qrm-toast`
   (created by QRM.toast() in api.js). Same look, slight glassy treatment. */
.toast,
.qrm-toast {
  position: fixed;
  bottom: calc(var(--s-5) + var(--safe-bottom));
  left: 50%;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: rgba(31, 22, 17, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .005em;
  box-shadow: 0 14px 36px rgba(31, 22, 17, .32), inset 0 0 0 1px rgba(255,255,255,.06);
  max-width: calc(100vw - 32px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  z-index: 9999;
  white-space: nowrap;
}
.toast.show,
.qrm-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.qrm-toast:active { transform: translate(-50%, 0) scale(.97); }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 0%, #ece5da 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--r-md);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─────────────────────────────────────────
   PAGE LOADER — full-screen brand-themed overlay
   ───────────────────────────────────────── */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background:
    radial-gradient(circle at 50% 35%, var(--brand-soft) 0%, var(--bg) 60%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 600ms var(--ease), visibility 600ms;
}
.page-loader.fade { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-card {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-5);
  padding: var(--s-8);
  animation: floatIn 600ms var(--ease-out) both;
}

.loader-ring {
  position: relative;
  width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.loader-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.loader-ring .track {
  fill: none;
  stroke: var(--brand-soft);
  stroke-width: 3;
}
.loader-ring .arc {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: arc-spin 1.6s var(--ease) infinite;
  filter: drop-shadow(0 4px 8px rgba(153, 59, 20, .35));
}
@keyframes arc-spin {
  0%   { stroke-dashoffset: 220; transform: rotate(0deg);   transform-origin: center; }
  50%  { stroke-dashoffset: 60;  transform: rotate(180deg); transform-origin: center; }
  100% { stroke-dashoffset: 220; transform: rotate(720deg); transform-origin: center; }
}
.loader-logo {
  width: 78px; height: 78px;
  object-fit: contain;
  z-index: 1;
  animation: logo-pulse 2.2s var(--ease) infinite;
  filter: drop-shadow(0 4px 12px rgba(153, 59, 20, .25));
}
@keyframes logo-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(.92); }
}

.loader-dots {
  display: flex; gap: 8px;
  margin-top: var(--s-2);
}
.loader-dots span {
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: dot-wave 1.2s var(--ease) infinite;
}
.loader-dots span:nth-child(2) { animation-delay: .15s; }
.loader-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot-wave {
  0%, 70%, 100% { transform: translateY(0); opacity: .35; }
  35%           { transform: translateY(-10px); opacity: 1; }
}

.loader-text {
  font-family: var(--f-display-ar);
  color: var(--brand);
  font-size: 18px;
  letter-spacing: .02em;
  margin: 0;
}
html[lang="en"] .loader-text { font-family: var(--f-display-en); }

/* ─────────────────────────────────────────
   LANDING (index.html)
   ───────────────────────────────────────── */
.landing {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}
.landing video, .landing .poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.landing::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at top, transparent 0%, rgba(0,0,0,.35) 60%),
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.88) 100%);
}
.landing-inner {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center;
  padding: var(--s-8) var(--s-5) calc(var(--s-6) + var(--safe-bottom));
  color: #fff;
  text-align: center;
}

.landing-logo {
  margin-top: 6vh;
  max-width: 240px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
  animation: floatIn 700ms var(--ease-out) both;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.landing-name {
  font-family: var(--f-display-ar);
  font-size: clamp(28px, 7vw, 44px);
  margin: var(--s-5) 0 var(--s-2);
  letter-spacing: .02em;
  animation: floatIn 700ms 120ms var(--ease-out) both;
}
.landing-tagline {
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  font-weight: 400;
  animation: floatIn 700ms 200ms var(--ease-out) both;
}

.landing-actions {
  width: 100%; max-width: 420px;
  margin-top: auto;
  display: grid; gap: var(--s-3);
  animation: floatIn 700ms 320ms var(--ease-out) both;
}
.landing-actions .btn {
  height: 56px;
  font-size: 16px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .94);
}
.landing-actions .btn-brand {
  background: var(--brand);
  color: var(--brand-contrast);
}
.landing-actions .btn-glass {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(12px) saturate(140%);
}
.landing-actions .btn-glass:hover { background: rgba(255, 255, 255, .22); }

.landing-foot {
  margin-top: var(--s-5);
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .04em;
}
.apply-link {
  display: inline-block;
  margin-top: var(--s-4);
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
  letter-spacing: .02em;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.apply-link:hover { color: #fff; text-decoration-color: rgba(255, 255, 255, .85); }
.apply-link + .landing-foot { margin-top: 6px; }

/* Contact sheet (slides up from bottom) */
.contact-sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .35);
  padding: var(--s-5) var(--s-5) calc(var(--s-6) + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform var(--t-slow) var(--ease);
  z-index: 60;
  max-height: 80vh; overflow-y: auto;
}
.contact-sheet.open { transform: translateY(0); }
.contact-sheet .handle {
  width: 42px; height: 4px; background: var(--line); border-radius: 4px;
  margin: 0 auto var(--s-4);
}
.contact-sheet h3 {
  font-family: var(--f-display-ar);
  font-size: 22px;
  margin: 0 0 var(--s-4);
  color: var(--brand);
  text-align: center;
}
.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3);
}
.contact-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: var(--s-3) 6px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  transition: background var(--t-fast), transform var(--t-fast);
}
.contact-grid a:hover { background: var(--brand-soft); color: var(--brand); transform: translateY(-2px); }
.contact-grid i { font-size: 24px; }
.contact-grid span { font-size: 11px; color: var(--muted); font-weight: 600; }

.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity var(--t-base) var(--ease);
  z-index: 59;
  backdrop-filter: blur(2px);
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }

/* ─────────────────────────────────────────
   APP HEADER (menu, offers, experience, apply)
   ───────────────────────────────────────── */
/* Subtle breathing room above the sticky header — only on pages that have one
   (menu, offers, experience, apply). The landing page has no header and would
   otherwise show a stray 6px gap at the very top when pulled. */
body:has(.app-header) { padding-top: 6px; }

/* Brand doodle as a subtle background on the menu page only.
   The PNG is already pre-faded to ~10% alpha so it can layer directly on
   top of the page bg without needing a separate opacity wrapper. */
body:has(.menu-header) {
  background-image: url('../../uploads/brand/doodle-bg.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: min(70vw, 480px) auto;
  background-attachment: fixed;
}

.app-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 var(--s-4);
  gap: var(--s-3);
  margin-bottom: 4px;     /* hairline breathing room below the header */
}
.app-header .back {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
  font-size: 18px;
  transition: background var(--t-fast);
}
.app-header .back:hover { background: var(--brand-soft); color: var(--brand); }
.app-header .brand {
  display: flex; align-items: center; gap: var(--s-2);
  flex: 1; min-width: 0;
}
.app-header .brand img { height: 38px; }
.app-header .brand .title {
  font-family: var(--f-display-ar);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-header .lang-pill {
  padding: 8px 14px;
  background: var(--surface); border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  transition: background var(--t-fast), color var(--t-fast);
}
.app-header .lang-pill:hover { background: var(--brand); color: var(--brand-contrast); }

/* ─────────────────────────────────────────
   MENU PAGE HEADER — comprehensive redesign
   Layout: [back arrow] [logo] [قائمة الطعام]  …  [⊙ البحث] [▦ الأقسام]
   Buttons are asymmetric pills: brand-soft circle holding the icon, plus
   a text label. On hover the whole pill fills with the brand color.
   ───────────────────────────────────────── */
.app-header.menu-header {
  padding: 0 var(--s-4);
  gap: var(--s-2);
}

.app-header.menu-header .header-back {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(153, 59, 20, .08);
  border-radius: 12px;
  color: var(--brand);
  font-size: 16px;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.app-header.menu-header .header-back:hover {
  background: var(--brand);
  color: var(--brand-contrast);
}
.app-header.menu-header .header-back:active { transform: scale(.94); }

.app-header.menu-header .header-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.app-header.menu-header .app-title {
  font-family: var(--f-display-ar);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--brand);
  letter-spacing: .01em;
  white-space: nowrap;
  min-width: 0;
  flex: 0 1 auto;
}

.app-header.menu-header .header-actions {
  display: inline-flex; align-items: center; gap: 6px;
  margin-inline-start: auto;
  flex-shrink: 0;
}

/* Matches the .next-jump style on section heads: soft brand-tint pill,
   no border, brand-colored icon and label. */
.header-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: rgba(153, 59, 20, .08);
  border: none;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  color: var(--brand);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.header-btn-ic {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  opacity: .85;
}
.header-btn-lbl { white-space: nowrap; }

.header-btn:hover {
  background: rgba(153, 59, 20, .16);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(153, 59, 20, .14);
}
.header-btn:active { transform: translateY(0); box-shadow: none; }

/* ─────────────────────────────────────────
   MENU PAGE
   ───────────────────────────────────────── */
.menu-hero {
  padding: var(--s-6) var(--s-5) var(--s-4);
  background: linear-gradient(180deg, var(--brand-soft) 0%, transparent 100%);
}
.menu-hero h1 {
  font-family: var(--f-display-ar);
  font-size: clamp(28px, 6vw, 38px);
  margin: 0 0 var(--s-1);
  color: var(--brand);
  letter-spacing: .01em;
}
.menu-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Inline search-bar removed — search is now a header icon + bottom sheet */

/* (collapse wrapper removed — no compact mode; header + chips bar are always visible) */

/* Sticky chips bar — always under the header */
.chips-bar { display: none; }

/* Header inline icon button — categories + search triggers */
.app-header .icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
  font-size: 18px;
  color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast);
}
.app-header .icon-btn:hover { background: var(--brand-soft); color: var(--brand); }

.current-cat-pill {
  flex: 1; min-width: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: background var(--t-fast), box-shadow var(--t-fast);
  min-height: 44px;
}
html[dir="rtl"] .current-cat-pill { padding: 6px 6px 6px 14px; }
.current-cat-pill:hover { background: var(--brand-soft); box-shadow: var(--shadow-2); }
.current-cat-pill .ic-thumb {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--brand-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.current-cat-pill .ic-thumb img { width: 100%; height: 100%; object-fit: cover; }
.current-cat-pill .ic-thumb i   { color: var(--brand); font-size: 16px; }
.current-cat-pill .cat-text {
  font-weight: 700; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.current-cat-pill .arrow { color: var(--muted); font-size: 12px; }

.icon-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
  cursor: pointer; font-size: 18px;
  transition: background var(--t-fast), color var(--t-fast);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }

/* ─────────────────────────────────────────
   BOTTOM SHEETS — categories list + search
   ───────────────────────────────────────── */
.qrm-sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -12px 40px rgba(0,0,0,.3);
  max-height: 88dvh; overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--t-slow) var(--ease);
  z-index: 70;
}
.qrm-sheet.show { transform: translateY(0); }
.qrm-sheet .handle {
  width: 42px; height: 4px; background: var(--line); border-radius: 4px;
  margin: var(--s-3) auto var(--s-2);
  flex-shrink: 0;
}
.qrm-sheet .head {
  padding: var(--s-2) var(--s-5) var(--s-3);
  display: flex; align-items: center; gap: var(--s-3);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.qrm-sheet .head h3 {
  font-family: var(--f-display-ar);
  font-size: 20px; color: var(--brand); margin: 0;
  flex: 1;
}
.qrm-sheet .head .close { font-size: 22px; color: var(--muted); cursor: pointer; padding: 8px; }

.qrm-sheet-body { padding: var(--s-3) var(--s-5) calc(var(--s-6) + var(--safe-bottom)); overflow-y: auto; flex: 1; }

.qrm-backdrop {
  position: fixed; inset: 0;
  background: rgba(31,22,17,.55);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
  z-index: 69;
}
.qrm-backdrop.show { opacity: 1; pointer-events: auto; }

/* Category list inside sheet */
.cat-list { display: grid; gap: 6px; }
.cat-list .cat-row {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-2) var(--s-2);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
}
.cat-list .cat-row:hover { background: var(--surface-2); }
.cat-list .cat-row.active { background: var(--brand-soft); }
.cat-list .cat-row .ic {
  width: 48px; height: 48px;
  border-radius: 50%; overflow: hidden;
  background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cat-list .cat-row .ic img { width: 100%; height: 100%; object-fit: cover; }
.cat-list .cat-row .ic i   { color: var(--brand); font-size: 22px; }
.cat-list .cat-row .name {
  flex: 1; font-weight: 700; font-size: 15px;
}
.cat-list .cat-row .count {
  color: var(--muted); font-size: 12px; font-weight: 600;
  background: var(--surface-2); padding: 3px 9px; border-radius: var(--r-pill);
}
.cat-list .cat-row.active .count { background: var(--brand); color: #fff; }

/* Search sheet */
.search-sheet-input {
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  padding: 12px 18px;
  transition: border-color var(--t-fast);
}
.search-sheet-input:focus-within { border-color: var(--brand); background: var(--surface); }
.search-sheet-input i { color: var(--muted); font-size: 18px; }
.search-sheet-input input {
  border: none; outline: none; background: transparent;
  flex: 1; font: inherit; font-size: 16px; min-width: 0;
}
.search-sheet-results { margin-top: var(--s-3); }
.search-result {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-2);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
}
.search-result:hover { background: var(--brand-soft); }
.search-result .photo {
  width: 56px; height: 56px;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2); flex-shrink: 0;
}
.search-result .photo img { width: 100%; height: 100%; object-fit: cover; }
.search-result .body { flex: 1; min-width: 0; }
.search-result .name { font-weight: 700; font-size: 15px; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result .meta { color: var(--muted); font-size: 12px; }
.search-result .price-tag { font-size: 14px; }
.search-result .price-tag .amount { font-size: 16px; }
.search-results-empty { text-align: center; padding: var(--s-8) var(--s-5); color: var(--muted); }
.search-results-empty i { font-size: 36px; opacity: .35; }

/* ─────────────────────────────────────────
   SCROLL-TO-TOP FAB
   ───────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: calc(var(--s-5) + var(--safe-bottom));
  inset-inline-end: var(--s-5);
  width: 50px; height: 50px;
  background: var(--brand);
  color: var(--brand-contrast);
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-brand);
  cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(20px) scale(.85);
  transition: all var(--t-base) var(--ease);
  z-index: 40;
}
.scroll-top.show { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.scroll-top:hover { background: var(--brand-deep); transform: translateY(-2px); }
.scroll-top:active { transform: translateY(0); }

/* ─────────────────────────────────────────
   MENU INTRO — short copy + 3-icon view switcher
   Replaces the old "featured items" rail.
   ───────────────────────────────────────── */
.menu-intro {
  padding: var(--s-5) var(--s-5) var(--s-3);
  display: flex; flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}
/* Intro paragraph — display-font, brand-toned, framed by gradient lines
   with a small star ornament in the centre. Feels like an opening verse
   on a printed menu. */
.menu-intro-text {
  margin: 0;
  font-family: var(--f-display-ar);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(31, 22, 17, .82);
  text-align: center;
  max-width: 52ch;
  padding: var(--s-4) var(--s-3);
  position: relative;
  letter-spacing: .005em;
}
html[lang="en"] .menu-intro-text { font-family: var(--f-display-en); font-size: 16px; }

.menu-intro-text::before,
.menu-intro-text::after {
  content: '';
  display: block;
  height: 1px;
  margin: 0 auto;
  width: 60%;
  max-width: 220px;
  background: linear-gradient(90deg, transparent 0%, rgba(153, 59, 20, .22) 50%, transparent 100%);
}
.menu-intro-text::before { margin-bottom: var(--s-3); }
.menu-intro-text::after  { margin-top: var(--s-3); }

/* Tiny star ornament centred on the top divider */
.menu-intro {
  position: relative;
}
.menu-intro::before {
  content: '✦';
  position: absolute;
  top: calc(var(--s-5) + var(--s-4) - 8px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--brand);
  font-size: 14px;
  background: var(--bg);
  padding: 0 8px;
  line-height: 1;
  z-index: 1;
  opacity: .8;
}

.view-switcher {
  display: inline-flex; align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(153, 59, 20, .07);
  border-radius: var(--r-pill);
}
.view-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.view-btn:hover { color: var(--brand); }
.view-btn.active {
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: 0 4px 10px rgba(153, 59, 20, .25);
}
.view-btn.active:hover { color: var(--brand-contrast); }
.view-btn:active { transform: scale(.94); }

/* ─────────────────────────────────────────
   VIEW MODES — apply on #content
   ───────────────────────────────────────── */
/* cards (default) — keep base .dish styling and .menu-grid columns */

/* tiles — compact grid, more columns, no description */
#content.view-tiles .menu-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 480px) { #content.view-tiles .menu-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { #content.view-tiles .menu-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px){ #content.view-tiles .menu-grid { grid-template-columns: repeat(5, 1fr); } }
#content.view-tiles .dish .photo { aspect-ratio: 1; }
#content.view-tiles .dish .body { padding: var(--s-2) var(--s-3); gap: 4px; }
#content.view-tiles .dish .name { font-size: 13px; -webkit-line-clamp: 1; }
#content.view-tiles .dish .desc { display: none; }
#content.view-tiles .dish .foot {
  padding-top: var(--s-2);
  border-top: none;
}
#content.view-tiles .dish .price-tag .amount { font-size: 15px; }
#content.view-tiles .dish .price-tag .from,
#content.view-tiles .dish .price-tag .currency { font-size: 10px; }
#content.view-tiles .dish .open-cta { display: none; }

/* list — search-result-style horizontal rows */
#content.view-list .menu-grid {
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
#content.view-list .dish {
  flex-direction: row;
  align-items: stretch;
  border-radius: var(--r-md);
}
#content.view-list .dish .photo {
  width: 92px;
  height: auto;
  aspect-ratio: auto;
  flex-shrink: 0;
}
#content.view-list .dish .body {
  flex: 1;
  padding: var(--s-3) var(--s-4);
  gap: 4px;
}
#content.view-list .dish .name {
  font-size: 15px; -webkit-line-clamp: 1;
}
#content.view-list .dish .desc {
  font-size: 12px; -webkit-line-clamp: 1;
}
#content.view-list .dish .foot {
  padding-top: var(--s-2);
  border-top: none;
}
#content.view-list .dish .price-tag .amount { font-size: 17px; }
#content.view-list .dish .open-cta { display: none; }

/* Category sections + grid
   No top padding: the .head sits flush at the section's top so position:sticky
   pins it precisely. Vertical breathing room comes from the bottom padding +
   the head's own padding. scroll-margin-top is 2px less than the pin so a
   scrollIntoView lands the head just past its sticky threshold (pinned). */
.cat-section { padding: 0 0 var(--s-5); scroll-margin-top: calc(var(--header-h) - 2px); }
.cat-section > .head {
  position: sticky;
  top: calc(var(--header-h) - 1px); /* -1px is the sentinel trick for .is-stuck */
  z-index: 25;

  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  margin-bottom: var(--s-3);

  /* Transparent in flow so the page's doodle background shows through; the
     solid surface + blur only kicks in once the head is actually pinned. */
  background: transparent;
  transition: background var(--t-base) var(--ease),
              backdrop-filter var(--t-base) var(--ease),
              padding var(--t-base) var(--ease);
}
.cat-section > .head.is-stuck {
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
/* Soft fade-out under the sticky head — only visible when pinned */
.cat-section > .head::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 18px;
  background: linear-gradient(to bottom, rgba(250, 247, 242, .82) 0%, rgba(250, 247, 242, 0) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.cat-section > .head.is-stuck::after { opacity: 1; }

.cat-section > .head h2 {
  font-family: var(--f-display-ar);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;        /* roomy enough for Aref Ruqaa's tall calligraphic strokes */
  margin: 0;
  color: rgba(31, 22, 17, .88);
  white-space: nowrap;
  min-width: 0;
  /* no overflow clipping — Arabic category names are short and we don't want descenders/dots cut */
}
.cat-section > .head .line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(153, 59, 20, .55) 0%, transparent 100%);
  opacity: .35;
}
html[dir="rtl"] .cat-section > .head .line { background: linear-gradient(-90deg, rgba(153, 59, 20, .55) 0%, transparent 100%); }

/* ── Quick-jump button on the trailing side of every section head ── */
.next-jump {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: rgba(153, 59, 20, .08);
  color: var(--brand);
  border: none;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  max-width: 60vw;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.next-jump:hover {
  background: rgba(153, 59, 20, .16);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(153, 59, 20, .14);
}
.next-jump:active { transform: translateY(0); box-shadow: none; }
.next-jump .lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .65;
}
.next-jump .nm {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 120px;
  font-weight: 700;
}
.next-jump i { font-size: 14px; opacity: .85; }
.next-jump.up {
  background: transparent;
  color: var(--muted);
}
.next-jump.up:hover {
  background: rgba(153, 59, 20, .08);
  color: var(--brand);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  padding: 0 var(--s-5);
}
@media (min-width: 540px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .menu-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 1280px){ .menu-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

/* ── Dish card — modern image-top design ── */
.dish {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  isolation: isolate;
}
.dish::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,.04) 100%);
  pointer-events: none;
  z-index: 1;
}
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.dish:active { transform: translateY(-1px); }
.dish.unavail { opacity: .55; }

.dish .photo {
  aspect-ratio: 16 / 11;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.dish .photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease);
}
.dish:hover .photo img { transform: scale(1.06); }

.dish .body {
  display: flex; flex-direction: column;
  padding: var(--s-4);
  gap: var(--s-2);
  flex: 1;
}
.dish .name {
  font-weight: 700; font-size: 17px;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish .desc {
  color: var(--muted); font-size: 13px; line-height: 1.5;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish .foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
}
.price-tag {
  display: inline-flex; align-items: baseline; gap: 5px;
  color: var(--brand);
  font-family: var(--f-body-en);
  font-weight: 800;
  line-height: 1;
}
.price-tag .from {
  font-family: var(--f-body-ar);
  font-size: 11px; font-weight: 600;
  color: var(--muted);
  margin-inline-end: 2px;
  align-self: center;
}
html[lang="en"] .price-tag .from { font-family: var(--f-body-en); }
.price-tag .amount { font-size: 22px; letter-spacing: -0.02em; }
.price-tag .currency {
  font-size: 11px; font-weight: 700;
  color: var(--brand);
  opacity: .65;
  letter-spacing: .04em;
}

.dish .open-cta {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--r-pill);
  font-size: 14px;
  transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
  flex-shrink: 0;
}
.dish:hover .open-cta { background: var(--brand); color: #fff; }
html[dir="rtl"] .dish:hover .open-cta { transform: translateX(4px); }
html[dir="ltr"] .dish:hover .open-cta { transform: translateX(-4px); }

.dish .tag-new {
  position: absolute; top: 12px; inset-inline-end: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 16px rgba(153, 59, 20, .42);
  z-index: 2;
  text-transform: uppercase;
}
.dish .tag-unavail {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(31, 22, 17, .9); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  z-index: 2;
}

/* Empty state for category with 0 items after filter */
.empty {
  padding: var(--s-12) var(--s-5);
  text-align: center;
  color: var(--muted);
}
.empty i { font-size: 48px; opacity: .35; }
.empty p { margin: var(--s-3) 0 0; font-size: 14px; }

/* ─────────────────────────────────────────
   ITEM MODAL — cinematic overlay
   ───────────────────────────────────────── */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(31, 22, 17, .68);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
  z-index: 80;
}
.modal-back.show { opacity: 1; pointer-events: auto; }

.dish-modal {
  position: fixed; left: 50%; bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%; max-width: 560px;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-3);
  z-index: 81;
  max-height: 96dvh;
  display: flex; flex-direction: column;
  transition: transform var(--t-slow) var(--ease);
  overflow: hidden;
}
.dish-modal.show { transform: translate(-50%, 0); }
@media (min-width: 720px) {
  .dish-modal {
    bottom: 50%; transform: translate(-50%, 50%) scale(.96); opacity: 0;
    border-radius: var(--r-xl);
    max-height: 92dvh;
  }
  .dish-modal.show { transform: translate(-50%, 50%) scale(1); opacity: 1; }
}

/* HERO — full image visible (object-fit: contain) over a warm gradient */
.dish-modal .hero {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  max-height: 56dvh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.6) 0%, transparent 60%),
    linear-gradient(140deg, var(--brand-soft) 0%, #ffe6d8 55%, #f7d7c4 100%);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-5);
  overflow: hidden;
}
.dish-modal .hero::before {
  /* subtle texture for depth */
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 110%, rgba(153,59,20,.12) 0%, transparent 45%);
  pointer-events: none;
}
.dish-modal .hero img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, .25),
    0 4px 10px rgba(0, 0, 0, .08);
  z-index: 1;
  transition: transform var(--t-slow) var(--ease);
}
.dish-modal.show .hero img { animation: heroIn .55s var(--ease-out) both; }
@keyframes heroIn {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.dish-modal .close {
  position: absolute; top: var(--s-3); inset-inline-end: var(--s-3);
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink); border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-2);
  transition: background var(--t-fast), transform var(--t-fast);
  z-index: 5;
}
.dish-modal .close:hover { background: var(--brand); color: #fff; transform: rotate(90deg); }

.dish-modal .hero-shade { display: none; }   /* not needed with contain */

.dish-modal .hero-badges {
  position: absolute; top: var(--s-3); inset-inline-start: var(--s-3);
  display: flex; gap: 6px; flex-wrap: wrap;
  z-index: 2;
}
.dish-modal .hero-badges .pill {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 4px 12px rgba(153, 59, 20, .4);
}

/* BODY */
.dish-modal .body {
  padding: var(--s-5) var(--s-5) calc(var(--s-6) + var(--safe-bottom));
  display: flex; flex-direction: column; gap: var(--s-4);
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.dish-modal .body::-webkit-scrollbar { width: 6px; }
.dish-modal .body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.dish-modal h2 {
  font-family: var(--f-display-ar);
  font-size: clamp(24px, 5.5vw, 30px);
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}
.dish-modal .name-en {
  color: var(--muted);
  font-size: 14px; letter-spacing: .04em;
  margin: -8px 0 0;
  font-style: italic;
}
.dish-modal .desc {
  color: var(--ink-2);
  line-height: 1.8;
  font-size: 15px;
  margin: 0;
}
.dish-modal .desc p { margin: 0 0 var(--s-2); }
.dish-modal .desc p:last-child { margin: 0; }
.dish-modal .desc strong { color: var(--brand); font-weight: 800; }
.dish-modal .desc:empty { display: none; }

/* PRICES — premium tile grid */
.dish-modal .prices {
  display: grid; gap: var(--s-2);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 0;
}
.dish-modal .price-tile {
  padding: var(--s-4) var(--s-3);
  background: linear-gradient(135deg, #fff 0%, var(--brand-soft) 100%);
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  text-align: center;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
  overflow: hidden;
}
.dish-modal .price-tile::after {
  content: '';
  position: absolute; top: 0; inset-inline-end: 0;
  width: 38px; height: 38px;
  background: radial-gradient(circle at top right, rgba(153, 59, 20, .12) 0%, transparent 65%);
}
.dish-modal .price-tile:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}
.dish-modal .price-tile .lbl {
  font-size: 12px; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 6px;
}
.dish-modal .price-tile .val {
  font-family: var(--f-body-en);
  font-size: 26px; font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
}
.dish-modal .price-tile .val .cur {
  font-size: 12px; font-weight: 700; opacity: .65;
  margin-inline-start: 4px;
  letter-spacing: .04em;
}

.dish-modal .tax-note {
  color: var(--muted);
  font-size: 12px; font-weight: 600;
  text-align: center;
  padding: var(--s-3) 0 0;
  border-top: 1px dashed var(--line);
  margin: var(--s-2) 0 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.dish-modal .tax-note::before {
  content: 'ⓘ'; color: var(--brand); opacity: .7;
}

/* ─────────────────────────────────────────
   SET-MENU PAGE — image-less, printed-menu look
   Unified with the menu page theme: shares the doodle background and the
   .menu-header design via the wrapper class on <header>. Cards read like a
   page from a printed menu — display-font title with a thin trailing line,
   body for the inclusion list, and a quietly emphatic price footer.
   ───────────────────────────────────────── */
.setmenu-shell {
  padding: var(--s-5);
  max-width: 760px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: var(--s-4);
}

.set-menu {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(250, 247, 242, .65) 100%);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: 0 10px 30px rgba(31, 22, 17, .07), 0 1px 0 rgba(255, 255, 255, .8) inset;
  border: 1px solid rgba(153, 59, 20, .12);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.set-menu:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(31, 22, 17, .12), 0 1px 0 rgba(255, 255, 255, .9) inset;
  border-color: rgba(153, 59, 20, .25);
}
.set-menu:active { transform: translateY(-1px); }

/* Decorative corner ribbon — gives the card a "framed" premium feel */
.set-menu-corner {
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle at top left,
    rgba(153, 59, 20, .14) 0%,
    rgba(153, 59, 20, 0) 70%);
  pointer-events: none;
}
html[dir="rtl"] .set-menu-corner {
  background: radial-gradient(circle at top right,
    rgba(153, 59, 20, .14) 0%,
    rgba(153, 59, 20, 0) 70%);
}

.set-menu-head {
  display: flex; align-items: center; gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.set-menu-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(153, 59, 20, .10);
  border-radius: 50%;
  color: var(--brand);
  font-size: 14px;
  flex-shrink: 0;
}
.set-menu-head h3 {
  font-family: var(--f-display-ar);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: rgba(31, 22, 17, .88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
html[lang="en"] .set-menu-head h3 { font-family: var(--f-display-en); }
.set-menu-head .line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(153, 59, 20, .55) 0%, transparent 100%);
  opacity: .35;
}
html[dir="rtl"] .set-menu-head .line { background: linear-gradient(-90deg, rgba(153, 59, 20, .55) 0%, transparent 100%); }
.set-menu-head .save-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--brand-contrast);
  background: var(--brand);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  box-shadow: 0 3px 8px rgba(153, 59, 20, .28);
}

/* People-count pill — sits below the title bar */
.set-menu-meta {
  display: flex; gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.people-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  background: rgba(153, 59, 20, .08);
  border-radius: var(--r-pill);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.people-pill i { font-size: 12px; }

/* Short description paragraph on the card */
.set-menu-short {
  margin: 0 0 var(--s-5);
  color: rgba(31, 22, 17, .72);
  font-size: 14px;
  line-height: 1.7;
}

.set-menu-body {
  color: rgba(31, 22, 17, .78);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: var(--s-5);
}
.set-menu-body p { margin: 0 0 var(--s-2); }
.set-menu-body p:last-child { margin-bottom: 0; }
.set-menu-body strong { color: rgba(31, 22, 17, .92); font-weight: 700; }
.set-menu-body ul { padding: 0; margin: 0; list-style: none; }
.set-menu-body li {
  position: relative;
  padding-inline-start: 20px;
  padding-block: 3px;
}
.set-menu-body li::before {
  content: '✦';
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  font-size: 9px;
  color: var(--brand);
  opacity: .6;
}

.set-menu-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px dashed rgba(153, 59, 20, .22);
}
.set-menu-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(31, 22, 17, .45);
}
.set-menu-foot .prices {
  display: flex; align-items: baseline; gap: var(--s-3);
}
.set-menu-foot .old {
  text-decoration: line-through;
  color: var(--muted);
  font-family: var(--f-body-en);
  font-size: 14px;
  font-weight: 600;
}
.set-menu-foot .new {
  display: inline-flex; align-items: baseline; gap: 4px;
  color: var(--brand);
  font-family: var(--f-body-en);
  font-weight: 800;
  line-height: 1;
}
.set-menu-foot .new .amount { font-size: 28px; letter-spacing: -0.02em; }
.set-menu-foot .new .cur { font-size: 14px; font-weight: 600; opacity: .75; }

/* Detail modal variant without hero image */
.dish-modal.no-hero .body {
  padding-top: var(--s-6);
  position: relative;
}
.dish-modal.no-hero .body .close {
  position: absolute;
  top: var(--s-3);
  inset-inline-end: var(--s-3);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(31, 22, 17, .06);
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  transition: background var(--t-fast) var(--ease);
}
.dish-modal.no-hero .body .close:hover { background: rgba(31, 22, 17, .12); }

/* Modal header for set-menu modal — display title + people pill below */
.dish-modal.no-hero .body h2 {
  font-family: var(--f-display-ar);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 var(--s-2);
  color: rgba(31, 22, 17, .88);
  padding-inline-end: 48px; /* space for the close button in the start corner */
}
html[lang="en"] .dish-modal.no-hero .body h2 { font-family: var(--f-display-en); }
.dish-modal .modal-people {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 var(--s-5);
  padding: 5px 12px;
  background: rgba(153, 59, 20, .10);
  border-radius: var(--r-pill);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.dish-modal .modal-people i { font-size: 12px; }

/* Subtitle line on the price tile (e.g. "per person, tax included") */
.dish-modal .price-tile .sub {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

/* Premium price tile for the set-menu modal — doodle accent + bigger price */
.dish-modal.no-hero .price-tile {
  padding: var(--s-5) var(--s-4);
  background:
    url('../../uploads/brand/doodle-bg.png') no-repeat,
    linear-gradient(135deg, var(--surface) 0%, rgba(250, 247, 242, .7) 100%);
  background-position: top right, 0 0;
  background-size: 55% auto, auto;
  border: 1px solid rgba(153, 59, 20, .14);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 24px rgba(31, 22, 17, .08), inset 0 0 0 1px rgba(255, 255, 255, .7);
  text-align: start;
  overflow: hidden;
  position: relative;
}
html[dir="rtl"] .dish-modal.no-hero .price-tile {
  background-position: top left, 0 0;
}
.dish-modal.no-hero .price-tile::after { display: none; }
.dish-modal.no-hero .price-tile .lbl {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(31, 22, 17, .55);
  margin-bottom: 6px;
  font-weight: 800;
}
.dish-modal.no-hero .price-tile .val {
  font-family: var(--f-body-en);
  font-size: 36px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
}
.dish-modal.no-hero .price-tile .val .cur {
  font-size: 14px;
  font-weight: 600;
  opacity: .75;
  margin-inline-start: 6px;
}
.dish-modal.no-hero .price-tile .sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
/* Tax breakdown line inside the price tile */
.price-tile-breakdown {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed rgba(153, 59, 20, .22);
  font-size: 12px;
  color: rgba(31, 22, 17, .68);
  line-height: 1.6;
}
.price-tile-breakdown b {
  color: var(--brand);
  font-family: var(--f-body-en);
  font-weight: 800;
}

/* Inline breakdown line on the set-menu card (small italic note) */
.set-menu-breakdown {
  margin: var(--s-3) 0 0;
  padding-top: var(--s-3);
  border-top: 1px dotted rgba(153, 59, 20, .18);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(31, 22, 17, .55);
  text-align: center;
}
.set-menu-breakdown b {
  color: var(--brand);
  font-family: var(--f-body-en);
  font-weight: 800;
}

/* Booking phone footer — full-bleed band at the bottom of the offers page */
.setmenu-booking {
  margin-top: var(--s-7);
  padding: var(--s-6) var(--s-5) calc(var(--s-6) + var(--safe-bottom));
  background:
    url('../../uploads/brand/doodle-bg.png') no-repeat,
    linear-gradient(165deg, rgba(153, 59, 20, .03) 0%, rgba(153, 59, 20, .11) 100%);
  background-position: top right, 0 0;
  background-size: 38% auto, auto;
  border-top: 1px solid rgba(153, 59, 20, .15);
  position: relative;
}
html[dir="rtl"] .setmenu-booking { background-position: top left, 0 0; }

.setmenu-booking-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex; align-items: center; gap: var(--s-4);
}

.setmenu-booking-ic {
  width: 56px; height: 56px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-contrast);
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(153, 59, 20, .32);
  position: relative;
}
.setmenu-booking-ic::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(153, 59, 20, .25);
  pointer-events: none;
}

.setmenu-booking-text { flex: 1; min-width: 0; }
.setmenu-booking-text p {
  margin: 0 0 4px;
  font-size: 13px;
  color: rgba(31, 22, 17, .68);
  line-height: 1.55;
  font-weight: 500;
}

.setmenu-booking-phone {
  display: inline-block;
  font-family: var(--f-body-en);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.setmenu-booking-phone:hover { color: var(--brand-deep, #6e2810); transform: translateY(-1px); }
.setmenu-booking-phone:active { transform: translateY(0); }

/* Structured sections inside the offer modal (salads / cold mezze / etc.) */
.detail-section {
  margin-bottom: var(--s-4);
}
.detail-section:last-child { margin-bottom: 0; }
.detail-section h4 {
  font-family: var(--f-display-ar);
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 var(--s-2);
  line-height: 1.4;
}
html[lang="en"] .detail-section h4 { font-family: var(--f-display-en); }
.detail-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.detail-section li {
  padding: 5px 12px;
  background: rgba(153, 59, 20, .06);
  border-radius: var(--r-pill);
  color: rgba(31, 22, 17, .82);
  font-size: 13px;
  line-height: 1.4;
}

/* ─────────────────────────────────────────
   FORMS (experience, apply)
   ───────────────────────────────────────── */
.form-shell { max-width: 560px; margin: 0 auto; padding: var(--s-6) var(--s-5) calc(var(--s-12) + var(--safe-bottom)); }
.form-shell h1 {
  font-family: var(--f-display-ar);
  font-size: 28px;
  margin: 0 0 var(--s-2);
  color: var(--brand);
}
.form-shell .sub { color: var(--muted); margin: 0 0 var(--s-5); }

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-2);
}

.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%;
  display: block;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  padding: 14px 16px;
  font: inherit; font-size: 16px;
  color: var(--ink);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

/* Emoji rating */
.rating {
  display: flex; justify-content: space-between; gap: 6px;
  margin: var(--s-4) 0 var(--s-5);
}
.rating .emoji {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}
.rating .emoji:hover { transform: translateY(-3px); }
.rating .emoji .face { font-size: 30px; transition: transform var(--t-base) var(--ease); }
.rating .emoji .lbl { font-size: 11px; color: var(--muted); font-weight: 700; }
.rating .emoji.on {
  background: var(--brand-soft);
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-brand);
}
.rating .emoji.on .face { transform: scale(1.15); }

.thanks {
  display: none;
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: linear-gradient(135deg, #effdf3 0%, #d9f5e1 100%);
  border: 1px solid #c5e9d3;
  border-radius: var(--r-md);
  text-align: center;
  font-weight: 700; color: var(--success);
  animation: floatIn 400ms var(--ease-out);
}
.thanks.show { display: block; }

/* File drop */
.file-drop {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  padding: var(--s-5);
  background: var(--surface-2);
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
}
.file-drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.file-drop i { font-size: 32px; color: var(--brand); }
.file-drop .lbl { font-weight: 700; }
.file-drop .hint { font-size: 12px; color: var(--muted); }
.file-drop.has-file { border-color: var(--success); background: #effdf3; }
.file-drop.has-file i { color: var(--success); }

/* RTL fine-tuning */
html[dir="rtl"] .back i.bi-arrow-left::before { content: "\f135"; } /* bi-arrow-right glyph */
html[dir="ltr"] .back i.bi-arrow-right::before { content: "\f12f"; } /* bi-arrow-left glyph */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ===== World Cup breakfast banner (time-gated special) ===== */
.wc-banner {
  position: relative;
  margin: 4px 12px 22px;
  padding: 22px 18px 20px;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #0c0c0c 0%, #ce1126 52%, #007a3d 100%);
  box-shadow: 0 12px 34px rgba(206, 17, 38, .28);
  border: 1px solid rgba(255, 255, 255, .12);
}
.wc-banner::after { /* soft gold sheen */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -20%, rgba(255, 209, 102, .35), transparent 60%);
  pointer-events: none;
}
.wc-banner .wc-logos {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 12px;
}
.wc-banner .wc-jo   { height: 66px; width: auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .45)); }
.wc-banner .wc-fifa { height: 58px; width: auto; }
.wc-banner .wc-vs   { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.3rem; opacity: .85; }
.wc-banner .wc-title {
  position: relative; z-index: 1;
  margin: 0; font-family: 'Aref Ruqaa', serif; font-weight: 700;
  font-size: 1.55rem; line-height: 1.25; text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.wc-banner .wc-match {
  position: relative; z-index: 1;
  margin: 8px 0 0; font-weight: 700; font-size: 1.05rem;
}
.wc-banner .wc-time {
  position: relative; z-index: 1;
  margin: 4px 0 0; font-size: .9rem; opacity: .92;
}
.wc-banner .wc-note {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  margin: 12px auto 0;
  padding: 7px 14px;
  font-size: .82rem; font-weight: 700; line-height: 1.4;
  color: #fff;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--r-pill, 999px);
}
.wc-banner .wc-note i { font-size: .9rem; opacity: .9; }
html[lang="en"] .wc-banner .wc-title { font-family: 'Playfair Display', serif; }
.wc-banner .wc-preview {
  position: absolute; z-index: 2;
  top: 10px; inset-inline-start: 10px;
  padding: 3px 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  background: rgba(255, 209, 102, .95); color: #1a1a1a;
  border-radius: var(--r-pill, 999px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

/* ===== Per-image loader: faint Ward logo + shimmer until the photo loads ===== */
.img-loader { position: relative; overflow: hidden; background-color: #f3ede3; isolation: isolate; }
.img-loader picture { display: contents; }
/* faint brand watermark behind the loading image */
.img-loader::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url('../../uploads/brand/ward-logo-sm.png') center / 42% auto no-repeat;
  opacity: .16; filter: grayscale(1);
  transition: opacity .35s ease;
}
/* sweeping shimmer */
.img-loader::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: imgShimmer 1.3s ease-in-out infinite;
}
.img-loader img { position: relative; z-index: 2; opacity: 0; transition: opacity .45s ease; }
.img-loader.loaded img { opacity: 1; }
/* card images already own a transform transition (hover zoom) — keep it AND fade opacity */
.dish .photo.img-loader img { transition: transform 700ms var(--ease), opacity .45s ease; }
.img-loader.loaded::after { animation: none; opacity: 0; }
.img-loader.loaded::before { opacity: 0; }
@keyframes imgShimmer { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .img-loader::after { animation: none; } }
