/* ════════════════════════════════════════════════════════════════
   AURORA GATE — Design System (النموذج الخامس)
   نموذج مختلف كلياً: صفحة استقبال + مينيو زجاجي متجاوب
   لا يُستخدم هذا الملف في لوحة التحكم (لوحة التحكم تستخدم style.css)
   ════════════════════════════════════════════════════════════════ */

:root {
  /* ألوان قابلة للتغيير من لوحة التحكم (menu_settings.theme_colors) */
  --primary:      #c9a36a;
  --primary-dark: #a6844e;
  --primary-mid:  #d4b483;
  --primary-lt:   rgba(201, 163, 106, 0.14);
  --primary-glow: rgba(201, 163, 106, 0.28);

  --accent:       #e8d5a8;
  --accent-lt:    rgba(232, 213, 168, 0.12);
  --accent-dark:  #cbb88a;
  --secondary:    #e8d5a8;
  --secondary-lt: rgba(232, 213, 168, 0.12);

  --bg:           #10281c;
  --surface:      #1b1c24;
  --surface2:     #252630;
  --surface3:     #31323a;

  --text:         #f0e8d5;
  --text-sub:     #8a7d68;
  --text-light:   #aea28e;
  --divider:      #272830;
  --divider2:     #37373d;

  /* مشتقات تتكيّف مع أي لون خلفية (فاتح/غامق) */
  --glass:     color-mix(in srgb, var(--surface) 78%, transparent);
  --glass-2:   color-mix(in srgb, var(--surface2) 70%, transparent);
  --glass-hi:  color-mix(in srgb, var(--surface3) 60%, transparent);
  --stroke:    color-mix(in srgb, var(--text) 11%, transparent);
  --stroke-2:  color-mix(in srgb, var(--text) 20%, transparent);
  --stroke-3:  color-mix(in srgb, var(--text) 32%, transparent);
  --veil:      color-mix(in srgb, var(--bg) 72%, transparent);
  /* الأشرطة اللاصقة تحتاج تعتيماً أعلى حتى لا يُقرأ النص المارّ تحتها */
  --veil-bar:  color-mix(in srgb, var(--bg) 90%, transparent);
  --veil-hard: color-mix(in srgb, var(--bg) 92%, transparent);

  /* تُضبط من app.js حسب سطوع اللون */
  --on-primary: #ffffff;
  --on-accent:  #10121a;

  --wa:      #25d366;
  --fb:      #1877f2;
  --ig:      #e4405f;
  --tk:      #00f2ea;
  --danger:  #ff5a5f;
  --ok:      #2ecc8f;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --sh-1: 0 2px 10px rgba(0, 0, 0, 0.18);
  --sh-2: 0 10px 30px rgba(0, 0, 0, 0.26);
  --sh-3: 0 22px 60px rgba(0, 0, 0, 0.36);

  --topbar-h: 66px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ════════════════════════ Reset ════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 78px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Cairo', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--stroke-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--stroke-3); }

/* ════════════════════════ خلفية الشفق ════════════════════════ */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
/* تدرّجات ناعمة بدون filter: blur — أخف بكثير على الهواتف */
.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.5;
}
.aurora span:nth-child(1) {
  width: 52vmax; height: 52vmax;
  top: -18vmax; inset-inline-start: -14vmax;
  background: radial-gradient(circle at 50% 50%, var(--primary), transparent 68%);
  animation: drift1 26s var(--ease) infinite alternate;
}
.aurora span:nth-child(2) {
  width: 44vmax; height: 44vmax;
  bottom: -16vmax; inset-inline-end: -12vmax;
  background: radial-gradient(circle at 50% 50%, var(--accent), transparent 68%);
  opacity: 0.34;
  animation: drift2 32s var(--ease) infinite alternate;
}
.aurora span:nth-child(3) {
  width: 38vmax; height: 38vmax;
  top: 32%; inset-inline-start: 46%;
  background: radial-gradient(circle at 50% 50%, var(--primary-mid), transparent 70%);
  opacity: 0.22;
  animation: drift3 38s var(--ease) infinite alternate;
}
.aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
}

@keyframes drift1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vmax, 7vmax, 0) scale(1.18); }
}
@keyframes drift2 {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-8vmax, -6vmax, 0) scale(1); }
}
@keyframes drift3 {
  from { transform: translate3d(-4vmax, 2vmax, 0) scale(0.9); }
  to   { transform: translate3d(5vmax, -5vmax, 0) scale(1.2); }
}

/* ════════════════════════════════════════════════════════════════
   1) صفحة الاستقبال (البوابة)
   ════════════════════════════════════════════════════════════════ */
body.at-gate { overflow: hidden; }
body.at-gate #menuApp { display: none; }
body:not(.at-gate) #gate { display: none; }

#gate {
  position: fixed;
  inset: 0;
  z-index: 900;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: flex;
  /* flex-start + margin:auto بدل align-items:center حتى لا يُقتطع أعلى المحتوى عند الطول الزائد */
  align-items: flex-start;
  justify-content: center;
  padding: clamp(20px, 5vw, 52px) clamp(16px, 4vw, 40px);
}
#gate.leaving {
  animation: gateOut 0.62s var(--ease) forwards;
  pointer-events: none;
}
@keyframes gateOut {
  to { opacity: 0; transform: scale(1.09); filter: blur(14px); }
}

.gate-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin-block: auto;
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

/* ── هوية المطعم ── */
.gate-brand { text-align: center; }

.gate-logo {
  position: relative;
  width: min(260px, 72vw);
  aspect-ratio: 1;
  margin: 0 auto clamp(10px, 2vw, 16px);
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: #0c2218;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: 0 0 0 8px var(--primary-lt), var(--sh-3);
  overflow: hidden;
  animation: pop 0.9s var(--ease) backwards;
}
.gate-logo::before,
.gate-logo::after { content: none; }
.gate-logo img,
.gate-logo > i {
  position: relative;
  z-index: 2;
}
.gate-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gate-logo > i {
  font-size: clamp(30px, 7vw, 40px);
  background: linear-gradient(135deg, var(--primary-mid), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gate-kicker {
  font-size: clamp(10px, 2.6vw, 12px);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.9;
}

.gate-name {
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-size: clamp(25px, 6.6vw, 48px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--text) 8%, var(--accent) 52%, var(--text) 96%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 9s ease-in-out infinite;
  word-break: break-word;
}

.gate-quote {
  margin: 8px auto 0;
  max-width: 36ch;
  font-size: clamp(13px, 3.2vw, 15.5px);
  line-height: 1.75;
  font-weight: 500;
  color: var(--text-light);
}

.gate-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: clamp(12px, 2.4vw, 18px) 0;
}
.gate-orn i {
  display: block;
  height: 1px;
  width: clamp(38px, 12vw, 92px);
  background: linear-gradient(90deg, transparent, var(--stroke-3));
}
.gate-orn i:last-child { background: linear-gradient(270deg, transparent, var(--stroke-3)); }
.gate-orn b {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 14px var(--accent);
}

.gate-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: clamp(14px, 2.6vw, 20px);
}
.gate-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(11.5px, 2.9vw, 13.5px);
  font-weight: 600;
  color: var(--text-light);
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  backdrop-filter: blur(10px);
}
.gate-meta span i { color: var(--accent); font-size: 0.92em; }

/* ── عمود الأزرار: المينيو أولاً ثم التواصل ثم الرقم والعنوان ── */
.gate-actions {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

/* ── أزرار التواصل العمودية ── */
.gate-links {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vw, 14px);
  width: 100%;
}

.glink {
  --c: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px;
  text-align: start;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.glink::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 72%);
  opacity: 0;
  transition: opacity 0.35s;
}
.glink > * { position: relative; z-index: 2; }
.glink:hover,
.glink:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--c) 26%, transparent);
}
.glink:hover::before { opacity: 1; }
.glink:active { transform: translateY(0) scale(0.985); }

.glink-ico {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 34%, transparent);
  transition: transform 0.35s var(--ease);
}
.glink:hover .glink-ico { transform: scale(1.08) rotate(-6deg); }

.glink-txt { flex: 1; min-width: 0; }
.glink-txt b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.glink-txt small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.glink-arrow {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-sub);
  transition: transform 0.35s var(--ease), color 0.3s;
}
.glink:hover .glink-arrow { transform: translateX(-5px); color: var(--c); }

/* ── الزر الكبير: المينيو الالكتروني ── */
.gate-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 104px;
  margin-bottom: clamp(12px, 2.2vw, 18px);
  padding: 18px 20px;
  text-align: start;
  border-radius: var(--r-lg);
  color: var(--on-primary);
  background: linear-gradient(115deg, var(--primary-dark), var(--primary) 42%, var(--accent) 115%);
  box-shadow: 0 16px 44px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.gate-cta::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-18deg);
  animation: sweep 3.6s ease-in-out infinite;
}
.gate-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.26);
  pointer-events: none;
}
.gate-cta > * { position: relative; z-index: 2; }
.gate-cta:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 24px 60px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.gate-cta:active { transform: translateY(-1px) scale(0.994); }

.gate-cta-ico {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 27px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.gate-cta-txt { flex: 1; min-width: 0; }
.gate-cta-txt b {
  display: block;
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-size: clamp(19px, 5vw, 25px);
  font-weight: 700;
  line-height: 1.35;
}
.gate-cta-txt small {
  display: block;
  font-size: clamp(11.5px, 3vw, 13px);
  font-weight: 500;
  opacity: 0.88;
}
.gate-cta-go {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.2);
  animation: nudge 1.9s ease-in-out infinite;
}

.gate-foot {
  margin: clamp(18px, 3vw, 28px) auto 0;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-sub);
}
.gate-foot button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--wa);
  background: color-mix(in srgb, var(--wa) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--wa) 30%, transparent);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  transition: transform 0.25s;
}
.gate-foot button:hover { transform: translateY(-2px); }

/* دخول متدرّج لعناصر البوابة */
.gate-shell [data-rise] {
  animation: rise 0.85s var(--ease) backwards;
  animation-delay: calc(var(--d, 0) * 70ms);
}

/* البوابة على الشاشات الكبيرة: عمودان */
@media (min-width: 1000px) {
  .gate-shell {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
  .gate-brand { text-align: start; }
  .gate-logo { margin-inline: 0; }
  .gate-quote { margin-inline: 0; text-align: start; }
  .gate-orn { justify-content: flex-start; }
  .gate-meta { justify-content: flex-start; }
  .gate-actions { max-width: 100%; margin-inline: 0; }
  .gate-foot { justify-content: flex-start; margin-inline: 0; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .gate-logo { width: min(200px, 28vw); }
  .gate-name { font-size: clamp(30px, 3.6vw, 46px); }
}

/* ════════════════════════════════════════════════════════════════
   2) هيكل المينيو
   ════════════════════════════════════════════════════════════════ */
/* بدون transform هنا: أي تحويل يجعل #menuApp مرجعاً للعناصر الثابتة (fixed) */
#menuApp {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  animation: fadeIn 0.55s ease both;
}

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: clamp(12px, 3vw, 34px);
}

/* ── الشريط العلوي ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--topbar-h);
  background: var(--veil-bar);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--stroke);
}
.topbar-in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--text);
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.tb-btn:hover {
  transform: translateY(-2px);
  background: var(--glass-hi);
  border-color: var(--stroke-2);
}
.tb-btn:active { transform: scale(0.94); }

.tb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.tb-logo {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0c2218;
  border: 1px solid var(--stroke-2);
  color: var(--accent);
  font-size: 15px;
}
.tb-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.tb-name {
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-size: clamp(14px, 3.6vw, 18px);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-cart {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 800;
  color: var(--on-primary);
  background: linear-gradient(120deg, var(--primary), var(--primary-mid));
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.tb-cart:hover { transform: translateY(-2px); box-shadow: 0 10px 26px var(--primary-glow); }
.tb-cart.bump { animation: bump 0.45s var(--ease); }
.tb-cart-total { display: none; }
.tb-cart-badge {
  position: absolute;
  top: -5px;
  inset-inline-start: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--on-accent);
  background: var(--accent);
  border: 2px solid var(--bg);
}

/* ── ترويسة المينيو (هيرو مضغوط) ── */
.mhero {
  position: relative;
  margin: clamp(12px, 2.4vw, 22px) 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: clamp(104px, 15vw, 150px);
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, var(--accent) 125%);
  border: 1px solid var(--stroke);
  box-shadow: var(--sh-2);
}
.mhero-img {
  position: absolute;
  inset: 0;
}
.mhero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: kenburns 22s ease-in-out infinite alternate;
}
/* الصورة تبقى كخلفية مُعتّمة فقط، فالهيرو هنا شريط هوية لا بانر إعلاني */
.mhero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left,
      color-mix(in srgb, var(--bg) 88%, transparent),
      color-mix(in srgb, var(--bg) 58%, transparent) 58%,
      color-mix(in srgb, var(--bg) 26%, transparent)),
    linear-gradient(to top, color-mix(in srgb, var(--bg) 72%, transparent), transparent 72%);
}
.mhero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(13px, 2.2vw, 22px) clamp(14px, 2.6vw, 26px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 20px);
}
.mhero-logo {
  flex-shrink: 0;
  width: clamp(54px, 12vw, 82px);
  aspect-ratio: 1;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: clamp(20px, 4.6vw, 30px);
  color: var(--accent);
  background: #0c2218;
  border: 1px solid var(--stroke-3);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 34%, transparent), var(--sh-1);
  backdrop-filter: blur(8px);
}
.mhero-logo img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; object-position: center 28%; }
.mhero-txt { flex: 1; min-width: 0; }
.mhero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: var(--accent);
  margin-bottom: 8px;
}
.mhero-kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.menu-motto {
  margin: 14px auto 2px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-sub);
}
.menu-motto::before,
.menu-motto::after {
  color: var(--accent);
  font-size: 10px;
}
.menu-motto::before { content: '✦'; margin-inline-end: 8px; }
.menu-motto::after { content: '✦'; margin-inline-start: 8px; }
.mhero h1 {
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-size: clamp(19px, 4.4vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.mhero-stats {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.mhero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--stroke-2);
  backdrop-filter: blur(12px);
}
.mhero-stats span i { color: var(--accent); font-size: 11px; }

/* ── شريط الإعلانات: بطاقات أفقية قابلة للسحب (شكل مختلف تماماً عن الهيرو) ── */
.promo-banners { margin: clamp(14px, 2.4vw, 22px) 0 0; min-width: 0; }
.promo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.promo-lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}
.promo-lbl i { color: var(--accent); font-size: 12px; }
.promo-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--divider);
}
.promo-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-pill);
  padding: 4px 10px;
}
.promo-hint i { animation: nudge 1.9s ease-in-out infinite; }

.promo-strip {
  display: flex;
  gap: clamp(10px, 1.6vw, 14px);
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
  cursor: grab;
}
.promo-strip::-webkit-scrollbar { display: none; }
.promo-strip.dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }

.promo-card {
  position: relative;
  flex: 0 0 82%;
  max-width: 480px;
  scroll-snap-align: center;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid var(--stroke);
  box-shadow: var(--sh-1);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.promo-card.solo { flex: 0 0 100%; max-width: 100%; }
.promo-card.is-link { cursor: pointer; }
.promo-card.is-link:hover {
  transform: translateY(-3px);
  border-color: var(--stroke-2);
  box-shadow: var(--sh-2);
}
.promo-card img {
  display: block;
  width: 100%;
  height: clamp(118px, 19vw, 196px);
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.promo-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.promo-cap i { color: var(--accent); font-size: 11px; flex-shrink: 0; }
.promo-cap span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.promo-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--stroke-2);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s;
}
.promo-dot.on { width: 22px; border-radius: 99px; background: var(--primary); }

@media (min-width: 700px) {
  .promo-card { flex: 0 0 clamp(300px, 44%, 430px); }
}

/* ── شريط البحث ── */
.msearch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(14px, 2.4vw, 22px);
  padding: 0 18px;
  min-height: 58px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-1);
  scroll-margin-top: calc(var(--topbar-h) + 14px);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.msearch:focus-within {
  border-color: color-mix(in srgb, var(--primary) 60%, transparent);
  box-shadow: 0 0 0 4px var(--primary-lt), var(--sh-1);
}
.msearch > i { font-size: 15px; color: var(--accent); flex-shrink: 0; }
.msearch input {
  flex: 1;
  min-width: 0;
  height: 56px;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  outline: none;
}
.msearch input::placeholder { color: var(--text-sub); font-weight: 500; }
.msearch-count {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-sub);
  white-space: nowrap;
}
.msearch button {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--text-sub);
  background: var(--surface3);
  border: 1px solid var(--stroke);
  transition: color 0.2s, background 0.2s, transform 0.25s;
}
.msearch button:hover { color: var(--danger); transform: rotate(90deg); }

/* ── التخطيط: رصيف الفئات + المحتوى ── */
.mlayout {
  display: grid;
  /* minmax(0,1fr) ضروري: بدونه يتمدّد الرصيف الأفقي ويوسّع الصفحة كلها */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 30px);
  margin-top: clamp(16px, 2.6vw, 26px);
  padding-bottom: 120px;
}

/* رصيف الفئات — أفقي على الموبايل */
.catrail {
  position: sticky;
  top: var(--topbar-h);
  z-index: 200;
  min-width: 0;
  margin-inline: calc(-1 * clamp(12px, 3vw, 34px));
  padding: 10px clamp(12px, 3vw, 34px);
  background: var(--veil-bar);
  backdrop-filter: blur(18px);
  border-block: 1px solid var(--stroke);
}
.catrail-head { display: none; }
.catrail-scroll {
  display: flex;
  gap: 9px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding-bottom: 2px;
}
.catrail-scroll::-webkit-scrollbar { display: none; }

.cpill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  white-space: nowrap;
  scroll-snap-align: start;
  transition: color 0.25s, background 0.3s, border-color 0.25s, transform 0.25s var(--ease);
}
.cpill:hover { transform: translateY(-2px); color: var(--text); }
.cpill-thumb {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-lt);
}
.cpill-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cpill b { font-weight: 700; }
.cpill i.cnt {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  color: var(--text-sub);
  background: var(--surface3);
}
.cpill.on {
  color: var(--on-primary);
  background: linear-gradient(120deg, var(--primary), var(--primary-mid));
  border-color: transparent;
  box-shadow: 0 6px 18px var(--primary-glow);
}
.cpill.on .cpill-thumb { background: rgba(255, 255, 255, 0.2); color: inherit; }
.cpill.on i.cnt { color: var(--on-primary); background: rgba(255, 255, 255, 0.22); }

/* ── أقسام المحتوى ── */
.msections { min-width: 0; }

.sec { margin-bottom: clamp(30px, 5vw, 52px); scroll-margin-top: calc(var(--topbar-h) + 76px); }

.sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(14px, 2.4vw, 22px);
}
.sec-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-lt);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  overflow: hidden;
}
.sec-num img { width: 100%; height: 100%; object-fit: cover; }
.sec-titles { min-width: 0; }
.sec-titles h2 {
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-size: clamp(17px, 4.4vw, 27px);
  font-weight: 700;
  line-height: 1.3;
}
.sec-titles p { font-size: 12px; font-weight: 600; color: var(--text-sub); }
.sec-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--stroke-2), transparent);
}

/* ── شبكة الأطباق ── */
.dishes {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.8vw, 18px);
}

.dish {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 13px;
  padding: 11px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-1);
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s, opacity 0.5s;
}
.dish.in { opacity: 1; transform: none; }
.dish::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, var(--primary-lt), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.dish:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow: 0 16px 38px color-mix(in srgb, var(--primary) 20%, transparent);
}
.dish:hover::after { opacity: 1; }
.dish.off.in { opacity: 0.66; }

.dish-media {
  position: relative;
  flex-shrink: 0;
  width: 108px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface2);
  display: grid;
  place-items: center;
  color: var(--stroke-3);
  font-size: 26px;
}
.dish-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.dish:hover .dish-media img { transform: scale(1.09); }

.dish-body {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-block: 2px;
}
.dish-name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1px;
}
.dish-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}
.dish-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}
.dish-price .price-block { align-items: flex-start; }

.dish-act {
  margin-inline-start: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.dish-add {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--on-primary);
  background: linear-gradient(125deg, var(--primary), var(--primary-mid));
  box-shadow: 0 5px 16px var(--primary-glow);
  transition: transform 0.28s var(--ease), box-shadow 0.28s;
}
.dish-add:hover { transform: rotate(90deg) scale(1.08); }
.dish-add:active { transform: scale(0.9); }

.dish-step {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 38px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--surface3);
  border: 1px solid var(--stroke-2);
}
.dish-step button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--text);
  background: var(--glass);
  transition: background 0.22s, transform 0.22s;
}
.dish-step button:hover { background: var(--primary); color: var(--on-primary); }
.dish-step button:active { transform: scale(0.88); }
.dish-step span {
  min-width: 26px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
}

.dish-off-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  border-radius: var(--r-pill);
  padding: 5px 11px;
  white-space: nowrap;
}

.disc-badge {
  position: absolute;
  top: 7px;
  inset-inline-start: 7px;
  z-index: 3;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 9px;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 45%, transparent);
}
.price-block { display: inline-flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.price-sale { font-weight: 800; color: var(--accent); }
.price-old { font-size: 11px; font-weight: 600; color: var(--text-sub); text-decoration: line-through; }

/* ── حالات فارغة / هياكل تحميل ── */
.skel {
  border-radius: var(--r-md);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface2) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
.skel-dish { height: 132px; }

.empty {
  grid-column: 1 / -1;
  padding: clamp(36px, 8vw, 70px) 20px;
  text-align: center;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px dashed var(--stroke-2);
}
.empty i {
  font-size: 40px;
  color: var(--stroke-3);
  margin-bottom: 14px;
  display: block;
}
.empty b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.empty span { font-size: 13px; color: var(--text-sub); }
.empty .retry {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--on-primary);
  background: var(--primary);
  box-shadow: 0 8px 20px var(--primary-glow);
}

/* ════════════════════════ شريط السلة العائم (موبايل) ════════════════════════ */
.cartbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 340;
  padding: 10px clamp(12px, 3vw, 20px) calc(10px + env(safe-area-inset-bottom));
  background: var(--veil-hard);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--stroke);
  transform: translateY(130%);
  transition: transform 0.45s var(--ease);
}
.cartbar.up { transform: none; }
.cartbar-in {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 8px 0 18px;
  border-radius: var(--r-pill);
  color: var(--on-primary);
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, var(--primary-mid));
  box-shadow: 0 10px 30px var(--primary-glow);
  cursor: pointer;
}
.cartbar-ico {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.2);
}
.cartbar-ico b {
  position: absolute;
  top: -3px;
  inset-inline-start: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--on-accent);
  background: var(--accent);
}
.cartbar-txt { flex: 1; min-width: 0; text-align: start; }
.cartbar-txt b { display: block; font-size: 14px; font-weight: 800; }
.cartbar-txt small { display: block; font-size: 11px; opacity: 0.86; }
.cartbar-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* زر واتساب عائم */
.fab-wa {
  position: fixed;
  z-index: 330;
  inset-inline-end: clamp(14px, 3vw, 28px);
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(145deg, #2ee06f, #17a94f);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.34);
  transition: transform 0.3s var(--ease), bottom 0.4s var(--ease);
}
.fab-wa:hover { transform: translateY(-3px) scale(1.06); }
.fab-wa::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: halo 2.4s ease-out infinite;
}
body.cart-up .fab-wa { bottom: calc(102px + env(safe-area-inset-bottom)); }

/* ════════════════════════ الألواح المنزلقة ════════════════════════ */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(4, 5, 10, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.scrim.on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  z-index: 410;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--bg) 82%, var(--surface));
  backdrop-filter: blur(24px);
  border: 1px solid var(--stroke);
  box-shadow: var(--sh-3);
  transition: transform 0.48s var(--ease);
}

/* موبايل: ورقة سفلية */
.sheet {
  inset-inline: 0;
  bottom: 0;
  max-height: 92dvh;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transform: translateY(102%);
}
.sheet.on { transform: none; }

.grip {
  flex-shrink: 0;
  width: 44px;
  height: 4px;
  margin: 10px auto 2px;
  border-radius: 99px;
  background: var(--stroke-3);
}

.sheet-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(16px, 3vw, 24px);
  border-bottom: 1px solid var(--stroke);
}
.sheet-head-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--on-primary);
  background: linear-gradient(130deg, var(--primary), var(--primary-mid));
  box-shadow: 0 6px 18px var(--primary-glow);
  flex-shrink: 0;
}
.sheet-head-txt { flex: 1; min-width: 0; }
.sheet-head-txt b {
  display: block;
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
}
.sheet-head-txt small { display: block; font-size: 11.5px; color: var(--text-sub); }
.sheet-x {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--text-sub);
  background: var(--surface2);
  border: 1px solid var(--stroke);
  transition: color 0.22s, background 0.22s, transform 0.22s;
}
.sheet-x:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); transform: rotate(90deg); }
.sheet-ghost {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  border-radius: var(--r-pill);
  padding: 7px 12px;
}

.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(14px, 2.6vw, 20px) clamp(16px, 3vw, 24px);
}
.sheet-foot {
  flex-shrink: 0;
  padding: 14px clamp(16px, 3vw, 24px) calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--stroke);
  background: var(--veil-hard);
}

/* سطح المكتب: لوح جانبي */
@media (min-width: 900px) {
  .sheet {
    top: 0;
    bottom: 0;
    inset-inline: auto;
    width: min(440px, 92vw);
    max-height: none;
    border-radius: 0;
  }
  .sheet-cart {
    inset-inline-end: 0;
    border-inline-end: none;
    transform: translateX(-102%);
  }
  .sheet-info {
    inset-inline-start: 0;
    border-inline-start: none;
    transform: translateX(102%);
  }
  .sheet-cart.on, .sheet-info.on { transform: none; }
  .sheet .grip { display: none; }
}

/* ── عناصر السلة ── */
.citem {
  display: flex;
  gap: 12px;
  padding: 11px;
  border-radius: var(--r-md);
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  margin-bottom: 10px;
  animation: rise 0.4s var(--ease);
}
.citem-img {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 13px;
  overflow: hidden;
  background: var(--surface3);
  display: grid;
  place-items: center;
  color: var(--stroke-3);
  font-size: 18px;
}
.citem-img img { width: 100%; height: 100%; object-fit: cover; }
.citem-info { flex: 1; min-width: 0; }
.citem-name { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.citem-unit { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.citem-sum { font-size: 12.5px; font-weight: 800; color: var(--accent); margin-top: 3px; }
.citem-step {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--surface3);
  border: 1px solid var(--stroke);
  align-self: center;
}
.citem-step button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  background: var(--glass);
  transition: background 0.2s, color 0.2s;
}
.citem-step button:hover { background: var(--primary); color: var(--on-primary); }
.citem-step span { font-size: 13px; font-weight: 800; }

.sumrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-light);
  padding: 5px 0;
}
.sumrow i { color: var(--accent); font-size: 12px; }
.sumrow b { margin-inline-start: auto; font-weight: 800; color: var(--text); }
.sumrow.grand {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  background: var(--primary-lt);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}
.sumrow.grand b { font-family: 'Reem Kufi', 'Cairo', sans-serif; font-size: 19px; color: var(--accent); }
.hint { font-size: 11.5px; color: var(--text-sub); line-height: 1.55; margin-top: 5px; }

/* أزرار رئيسية */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border-radius: var(--r-md);
  font-size: 14.5px;
  font-weight: 800;
  transition: transform 0.28s var(--ease), box-shadow 0.28s, opacity 0.2s;
}
.btn:active { transform: scale(0.985); }
.btn-primary {
  color: var(--on-primary);
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, var(--primary-mid));
  box-shadow: 0 10px 28px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px var(--primary-glow); }
.btn-primary:disabled { opacity: 0.5; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-wa {
  color: #fff;
  background: linear-gradient(120deg, #17a94f, #2ee06f);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.3);
}
.btn-wa:hover { transform: translateY(-2px); }
.btn-ghost {
  color: var(--text);
  background: var(--glass-2);
  border: 1px solid var(--stroke-2);
}
.btn-ghost:hover { background: var(--glass-hi); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { min-height: 50px; font-size: 13.5px; }

/* ── لوح المعلومات ── */
.info-brand {
  text-align: center;
  padding: clamp(16px, 3vw, 24px) 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--primary-lt), transparent 70%);
  border: 1px solid var(--stroke);
  margin-bottom: 18px;
}
.info-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--accent);
  background: #0c2218;
  border: 1px solid var(--stroke-2);
  box-shadow: 0 0 0 7px var(--primary-lt);
}
.info-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.info-brand h3 { font-family: 'Reem Kufi', 'Cairo', sans-serif; font-size: 19px; font-weight: 700; }
.info-brand p { font-size: 12px; color: var(--text-sub); margin-top: 5px; }
.info-motto { font-size: 13px; line-height: 1.7; color: var(--text-light); margin-top: 8px; }

.lbl {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--text-sub);
  margin: 20px 0 10px;
}
.lbl::after { content: ''; flex: 1; height: 1px; background: var(--stroke); }

.irow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: var(--r-md);
  text-align: start;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  margin-bottom: 9px;
  transition: transform 0.28s var(--ease), border-color 0.25s;
}
.irow:hover { transform: translateX(-4px); border-color: var(--stroke-2); }
.irow-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.irow-txt { flex: 1; min-width: 0; }
.irow-txt b { display: block; font-size: 13px; font-weight: 700; }
.irow-txt small {
  display: block;
  font-size: 11.5px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
}

.isocial { display: flex; flex-wrap: wrap; gap: 10px; }
.isocial button {
  --c: var(--primary);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
  transition: transform 0.28s var(--ease);
}
.isocial button:hover { transform: translateY(-3px) scale(1.06); }

/* ════════════════════════ نافذة تفاصيل الصنف ════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(4, 5, 10, 0.68);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.modal.on { opacity: 1; pointer-events: auto; }

.mcard {
  width: 100%;
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--bg) 86%, var(--surface));
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-3);
  overflow: hidden;
  transform: translateY(40px) scale(0.98);
  transition: transform 0.45s var(--ease);
}
.modal.on .mcard { transform: none; }

/* معرض الصور */
.pgal {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--surface2);
}
.pgal-track {
  display: flex;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}
.pgal-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: clamp(210px, 46vw, 300px);
  background: var(--surface2);
  display: grid;
  place-items: center;
}
.pgal-slide img { width: 100%; height: 100%; object-fit: cover; }
.pgal-none {
  height: clamp(180px, 40vw, 260px);
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--stroke-3);
  font-size: 44px;
  background: linear-gradient(140deg, var(--surface2), var(--surface));
}
.pgal-none span { font-size: 13px; font-weight: 700; color: var(--text-sub); }
.pgal-dots {
  position: absolute;
  inset-inline: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.pgal-dots i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s;
}
.pgal-dots i.on { width: 22px; background: #fff; }
.pgal-x {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #fff;
  background: rgba(10, 11, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  transition: transform 0.25s, background 0.25s;
}
.pgal-x:hover { transform: rotate(90deg); background: rgba(10, 11, 20, 0.8); }
.pgal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #fff;
  background: rgba(10, 11, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.pgal-nav.prev { inset-inline-start: 10px; }
.pgal-nav.next { inset-inline-end: 10px; }

.pbody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 3vw, 26px);
}
.pbody h2 {
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-size: clamp(19px, 5vw, 26px);
  font-weight: 700;
  line-height: 1.35;
}
.pchips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.pchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 15px;
  border-radius: var(--r-pill);
}
.pchip.price {
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-size: 17px;
  color: var(--accent);
  background: var(--accent-lt);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}
.pchip.price .price-block { flex-direction: row; align-items: baseline; gap: 8px; }
.pchip.ok {
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
}
.pchip.no {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
}
.pchip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.pdesc { font-size: 13.5px; color: var(--text-light); line-height: 1.8; }
.rule { height: 1px; background: var(--divider); margin: 18px 0; }

.pqty { display: flex; align-items: center; gap: 14px; }
.pstep {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--surface2);
  border: 1px solid var(--stroke-2);
}
.pstep button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--text);
  background: var(--glass);
  transition: background 0.22s, color 0.22s, transform 0.22s;
}
.pstep button:hover { background: var(--primary); color: var(--on-primary); }
.pstep button:active { transform: scale(0.9); }
.pstep span {
  min-width: 42px;
  text-align: center;
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.pfoot {
  flex-shrink: 0;
  padding: 14px clamp(16px, 3vw, 26px) calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--stroke);
  background: var(--veil-hard);
}

/* سطح المكتب: نافذة بعمودين */
@media (min-width: 900px) {
  .modal { align-items: center; padding: 28px; }
  .mcard {
    max-width: 940px;
    max-height: 86dvh;
    border-radius: var(--r-xl);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: 1fr auto;
  }
  .pgal { grid-column: 1; grid-row: 1 / span 2; height: 100%; }
  .pgal-track, .pgal-slide { height: 100%; }
  .pgal-slide { height: auto; min-height: 100%; }
  .pgal-none { height: 100%; }
  .pbody { grid-column: 2; }
  .pfoot { grid-column: 2; }
}

/* ════════════════════════ نوافذ الحوار (الطلب) ════════════════════════ */
.dlg {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 30px);
  background: rgba(4, 5, 10, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  overflow-y: auto;
}
.dlg.on { opacity: 1; pointer-events: auto; }
.dlg-card {
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--bg) 88%, var(--surface));
  border: 1px solid var(--stroke-2);
  box-shadow: var(--sh-3);
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease);
}
.dlg.on .dlg-card { transform: none; }

.dlg-top {
  flex-shrink: 0;
  padding: clamp(18px, 3vw, 26px) 20px 16px;
  text-align: center;
  background: linear-gradient(160deg, var(--primary-lt), transparent 75%);
  border-bottom: 1px solid var(--stroke);
}
.dlg-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 12px;
}
.dlg-orn i:first-child, .dlg-orn i:last-child {
  display: block;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke-3));
}
.dlg-orn i:last-child { background: linear-gradient(270deg, transparent, var(--stroke-3)); }
.dlg-orn .dlg-orn-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--accent);
  background: var(--accent-lt);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}
.dlg-top b {
  display: block;
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-size: 19px;
  font-weight: 700;
}
.dlg-top small { display: block; font-size: 12px; color: var(--text-sub); margin-top: 4px; }

.dlg-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(16px, 3vw, 22px);
}
.dlg-foot {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  padding: 14px clamp(16px, 3vw, 22px);
  border-top: 1px solid var(--stroke);
  background: var(--veil-hard);
}
.dlg-foot .btn { min-height: 50px; font-size: 14px; }
.dlg-foot .btn-ghost { flex: 0 0 34%; }

/* ── نماذج ── */
.fld { margin-bottom: 16px; }
.fld > label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}
.fld > label i { color: var(--accent); font-size: 12px; }
.inp {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-sm);
  background: var(--surface2);
  border: 1px solid var(--stroke);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.inp::placeholder { color: var(--text-sub); font-weight: 500; }
.inp:focus {
  border-color: color-mix(in srgb, var(--primary) 65%, transparent);
  box-shadow: 0 0 0 4px var(--primary-lt);
}
.inp.bad { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent); }
textarea.inp { min-height: 86px; resize: vertical; line-height: 1.6; }
.err { font-size: 11.5px; font-weight: 600; color: var(--danger); margin-top: 6px; min-height: 1px; }

.segs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* ثلاث طرق استلام: أيقونة فوق النص حتى تتسع على الشاشات الضيّقة */
.segs.three { gap: 8px; }
.segs.three span { flex-direction: column; gap: 5px; min-height: 64px; padding: 0 5px; font-size: 12px; }
.segs.three span i { font-size: 17px; }
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-sub);
  background: var(--surface2);
  border: 1px solid var(--stroke);
  transition: color 0.25s, background 0.3s, border-color 0.25s, transform 0.25s var(--ease);
}
.seg span i { font-size: 15px; }
.seg:hover span { transform: translateY(-2px); color: var(--text); }
.seg input:checked + span {
  color: var(--on-primary);
  background: linear-gradient(125deg, var(--primary), var(--primary-mid));
  border-color: transparent;
  box-shadow: 0 8px 22px var(--primary-glow);
}

.crow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  padding: 7px 0;
}
.crow i { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; color: var(--accent); background: var(--accent-lt); flex-shrink: 0; }

.totbox {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--primary-lt);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}
.totbox > i { font-size: 17px; color: var(--accent); }
.totbox span { font-size: 13px; font-weight: 700; color: var(--text-light); }
.totbox b {
  margin-inline-start: auto;
  font-family: 'Reem Kufi', 'Cairo', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--accent);
}

/* ════════════════════════ التوست ════════════════════════ */
.toast {
  position: fixed;
  z-index: 600;
  inset-inline: 0;
  bottom: calc(24px + env(safe-area-inset-bottom));
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 78%, var(--surface3));
  border: 1px solid var(--stroke-2);
  box-shadow: var(--sh-2);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.42s var(--ease);
}
.toast.on { opacity: 1; transform: none; }
.toast i { color: var(--ok); }
body.cart-up .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
/* مع وجود نافذة/لوح مفتوح ننقل التوست للأعلى حتى لا يغطّي أزرار الأسفل */
body.overlay-on .toast {
  bottom: auto;
  top: calc(var(--topbar-h) + 12px);
  transform: translateY(-24px) scale(0.96);
}
body.overlay-on .toast.on { transform: none; }

/* ════════════════════════ زر الصعود للأعلى ════════════════════════ */
.totop {
  position: fixed;
  z-index: 320;
  inset-inline-end: clamp(14px, 3vw, 28px);
  bottom: calc(86px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--stroke-2);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-1);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease), background 0.25s;
}
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--glass-hi); }
body.cart-up .totop { bottom: calc(164px + env(safe-area-inset-bottom)); }

/* ════════════════════════════════════════════════════════════════
   التجاوب
   ════════════════════════════════════════════════════════════════ */

/* ≥ 600px — شبكة أطباق بعمودين */
@media (min-width: 600px) {
  .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-cart-total { display: inline; }
}

/* ≥ 760px — بطاقات عمودية أنيقة */
@media (min-width: 760px) {
  :root { --topbar-h: 74px; }
  .dish {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .dish-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }
  .dish-body { padding: 14px 15px 15px; }
  .dish-name { font-size: 15.5px; }
  .dish-foot { padding-top: 10px; }
  .dish-price { font-size: 16px; }
  .cartbar { display: none; }
  .fab-wa { bottom: calc(26px + env(safe-area-inset-bottom)); }
  body.cart-up .fab-wa { bottom: calc(26px + env(safe-area-inset-bottom)); }
  .totop { bottom: calc(90px + env(safe-area-inset-bottom)); }
  body.cart-up .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
  .mlayout { padding-bottom: 60px; }
}

/* ≥ 1080px — رصيف فئات عمودي ثابت */
@media (min-width: 1080px) {
  .mlayout { grid-template-columns: 272px minmax(0, 1fr); align-items: start; }
  .catrail {
    position: sticky;
    top: calc(var(--topbar-h) + 18px);
    margin: 0;
    padding: 16px;
    border-radius: var(--r-lg);
    border: 1px solid var(--stroke);
    background: var(--glass);
    box-shadow: var(--sh-1);
    max-height: calc(100dvh - var(--topbar-h) - 36px);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .catrail-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: var(--text-sub);
  }
  .catrail-head::after { content: ''; flex: 1; height: 1px; background: var(--stroke); }
  .catrail-scroll {
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 6px;
    padding-inline-end: 4px;
    scrollbar-width: thin;
  }
  .catrail-scroll::-webkit-scrollbar { display: block; width: 5px; }
  .cpill {
    width: 100%;
    height: auto;
    min-height: 54px;
    padding: 9px 12px;
    border-radius: var(--r-md);
  }
  .cpill-thumb { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }
  .cpill b {
    flex: 1;
    min-width: 0;
    text-align: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cpill:hover { transform: translateX(-3px); }
  .dishes { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

/* ≥ 1400px */
@media (min-width: 1400px) {
  .mlayout { grid-template-columns: 300px minmax(0, 1fr); }
  .dishes { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

/* هواتف قصيرة: نضغط عمود البوابة قليلاً ليظهر الرقم والعنوان دون تمرير */
@media (max-width: 700px) and (max-height: 900px) {
  .gate-logo { width: min(168px, 46vw); margin-bottom: 8px; }
  .gate-orn { margin: 10px 0; }
  .gate-cta { min-height: 92px; }
  .glink { min-height: 60px; }
  .gate-links { gap: 9px; }
  .gate-foot { margin-top: 14px; }
}

/* شاشات ضيّقة جداً — نخفي زر البحث في الشريط (الحقل موجود بالصفحة) لإفساح المجال للاسم */
@media (max-width: 370px) {
  .tb-search { display: none; }
  .tb-name { max-width: 128px; }
}

/* شاشات قصيرة أفقية */
@media (max-height: 520px) and (min-width: 700px) {
  #gate { align-items: flex-start; }
  .gate-logo { width: 120px; }
  .gate-cta { min-height: 86px; }
}

/* ════════════════════════ الحركات ════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop {
  from { opacity: 0; transform: scale(0.72); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes sweep {
  0% { inset-inline-start: -50%; }
  55%, 100% { inset-inline-start: 120%; }
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}
@keyframes halo {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes bump {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.14); }
  70% { transform: scale(0.96); }
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
@keyframes kenburns {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.16) translate(1.5%, -1.5%); }
}
@keyframes spinner { to { transform: rotate(360deg); } }

.spin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid var(--stroke-2);
  border-top-color: var(--primary);
  animation: spinner 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .dish { opacity: 1; transform: none; }
}
