/* ============================================================
   ثيم الشعار — عاجي + ذهبي عتيق + بني محمّص  ·  بابا ون
   الألوان مستخرجة مباشرة من شعار المطعم (درع BabaONE)
   ============================================================ */

:root {
  /* ===== البني المحمّص (عمق الشعار والنقش الغائر) ===== */
  --noir-900: #2b1206;
  --noir-800: #3d1d0a;
  --noir-700: #582f10;
  --noir-600: #714b25;
  --noir-500: #8a6134;

  /* ===== الذهبي العتيق (حروف BabaONE وإطار الدرع) ===== */
  --gold-900: #5c3a0f;
  --gold-800: #7a4f1a;
  --gold-700: #986326;
  --gold-600: #b3803a;
  --gold-500: #d19f5d;
  --gold-400: #dfb87e;
  --gold-300: #f2d29d;
  --gold-200: #f7e3c0;
  --gold-100: #fcf5e6;

  /* ===== البرونزي/الطيني (ظلال النقش) ===== */
  --steel-600: #8a6f52;
  --steel-400: #b18c63;
  --steel-200: #ddccb4;

  /* ===== لهب الشواء (لمسة تمييز) ===== */
  --flame-600: #8e3307;
  --flame-500: #a0561e;
  --flame-400: #df9e5d;

  --cream: #efe5d4;
  --paper: #fffaf1;
  --ink: #3a2412;
  --muted: #8a6f52;
  --line: #e2d5bd;

  --shadow-sm: 0 2px 8px rgba(43,18,6,.10);
  --shadow-md: 0 8px 30px rgba(43,18,6,.16);
  --shadow-lg: 0 20px 60px rgba(43,18,6,.28);
  --glow-gold: 0 0 0 1px rgba(209,159,93,.40), 0 10px 30px rgba(209,159,93,.30);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 900px;

  --font: "Cairo", "Tajawal", "Segoe UI", system-ui, sans-serif;
}

/* ============================================================
   أيقونات SVG خطّية — بديل الإيموجي
   ترث لون النص وحجمه، وتظهر بنفس الشكل على كل الأجهزة
   ============================================================ */
.ic {
  width: 1.15em; height: 1.15em; flex: none;
  display: inline-block; vertical-align: -.22em;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.ok-badge .ic { width: 38px; height: 38px; stroke-width: 2.6; color: #fff; }
.cart-fab .ic { width: 19px; height: 19px; }
.search .ic { width: 18px; height: 18px; }
.section-head .ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.note-toast .nt-ico .ic { width: 17px; height: 17px; }
.contact-card .ci .ic { width: 22px; height: 22px; }
.cr-thumb .ic { width: 26px; height: 26px; color: var(--steel-400); }
.tn-ico .ic { width: 24px; height: 24px; }
.track-driver .ic, .loyal-banner .ic { width: 17px; height: 17px; }
/* أيقونة الحالات الفارغة (سلة فارغة / لا توجد أصناف) */
.empty-ico { display: grid; place-items: center; margin-bottom: 12px; }
.empty-ico .ic { width: 44px; height: 44px; stroke-width: 1.5; color: var(--steel-400); }

* { box-sizing: border-box; margin: 0; padding: 0; }

/* الإخفاء بخاصية hidden يجب أن يتغلّب على أي display في الأصناف أدناه.
   بدون هذا السطر يبقى ظاهراً كل ما نُخفيه من الجافاسكربت وله display صريح:
   زر السلة وهو فارغ · سطور «الخصم 0» و«التوصيل 0» في السلة · شارة الطلبات الجديدة. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body.intro-open { overflow: hidden; height: 100vh; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(209,159,93,.10), transparent 60%),
    radial-gradient(1000px 500px at -10% 110%, rgba(43,18,6,.08), transparent 55%),
    var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ============================================================
   الهيدر
   ============================================================ */
.hero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(720px 320px at 88% -30%, rgba(209,159,93,.22), transparent 62%),
    linear-gradient(160deg, var(--noir-700), var(--noir-900));
  color: #fff;
  padding: 34px 0 74px;
  overflow: hidden;
  border-bottom: 3px solid var(--gold-500);
  border-image: linear-gradient(90deg, var(--gold-800), var(--gold-400) 45%, var(--gold-800)) 1;
}
/* علامة الشعار المائية داخل الهيدر */
.hero::before {
  content: ""; position: absolute; z-index: 0;
  inset-inline-start: -60px; top: -40px;
  width: 300px; height: 300px;
  background: url("logo.jpg") center/contain no-repeat;
  opacity: .10; filter: sepia(1) saturate(1.6) brightness(1.2);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.brand-badge {
  width: 78px; height: 78px; flex: none;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--gold-400), var(--gold-700));
  padding: 2px;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(209,159,93,.35);
}
.brand-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.brand-text h1 {
  font-family: "El Messiri", var(--font);
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.15;
}
.brand-text .tagline {
  color: var(--gold-300);
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 600;
  margin-top: 4px;
}
.hero-actions { margin-inline-start: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  padding: 9px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: .2s;
}
.chip:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.chip.solid { background: var(--gold-500); color: var(--noir-900); border-color: transparent; }
.chip.solid:hover { background: var(--gold-400); }

/* ============================================================
   شريط البحث + الفئات
   ============================================================ */
.toolbar {
  position: sticky; top: 0; z-index: 30;
  margin-top: -44px;
}
.toolbar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 14px;
}
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.search input {
  border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: 16px; width: 100%;
  color: var(--ink);
}
.search .ico { color: var(--gold-700); font-size: 18px; }

.cats {
  display: flex; gap: 8px; overflow-x: auto;
  margin-top: 12px; padding-bottom: 4px;
  scrollbar-width: thin;
}
.cats::-webkit-scrollbar { height: 6px; }
.cats::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.cat-pill {
  flex: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--noir-800);
  padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: .18s; white-space: nowrap;
}
.cat-pill:hover { border-color: var(--gold-500); }
.cat-pill.active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--noir-900); border-color: transparent;
  box-shadow: 0 6px 16px rgba(43,18,6,.32);
}

/* ============================================================
   الأصناف
   ============================================================ */
main { padding: 26px 0 60px; }

.section { margin-bottom: 34px; scroll-margin-top: 130px; }
.section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.section-head .ico {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--noir-700), var(--noir-900));
  color: var(--gold-400); border-radius: 14px; font-size: 22px;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(209,159,93,.35);
}
.section-head h2 { font-family: "El Messiri", var(--font); font-size: 24px; font-weight: 700; color: var(--noir-800); }
.section-head .note { font-size: 13px; color: var(--muted); font-weight: 500; }
.section-head .count {
  margin-inline-start: auto;
  background: var(--cream); color: var(--muted);
  font-size: 13px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
}

/* ===== شبكة كروت الأطباق (المنيو الاحترافي) ===== */
.items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 620px) { .items { gap: 16px; } }

.dish {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s;
}
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #ecdcb4; }
.dish.out { opacity: .62; }
.dish-media {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f7f0e2, #efe5d4);
  overflow: hidden;
}
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dish:hover .dish-media img { transform: scale(1.07); }
.dish-out {
  position: absolute; top: 8px; inset-inline-start: 8px;
  background: #c0392b; color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(192,57,43,.35);
}
.dish-info { padding: 11px 13px 4px; flex: 1; }
.dish-name { font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.dish-desc {
  font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5;
  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: 8px;
  padding: 8px 13px 13px; margin-top: auto; flex-wrap: wrap;
}
.dish-price { font-weight: 800; font-size: 16px; color: var(--gold-800); white-space: nowrap; }
.dish-price span { font-size: 11px; color: var(--muted); font-weight: 600; }
.dish-price.free { font-size: 12.5px; color: #7a4f1a; }
/* الخصومات — شارة وسعر مشطوب */
.dish-disc-badge {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2;
  background: #e5484d; color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(229,72,77,.35);
}
.dish-price.discounted { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; white-space: normal; }
.dp-old { text-decoration: line-through; color: var(--muted); font-size: 13px; font-weight: 700; }
.dp-new { color: var(--gold-800); font-weight: 800; font-size: 16px; }
.dp-new span { font-size: 11px; color: var(--muted); font-weight: 600; }
.dish-add {
  border: 0; border-radius: 11px; padding: 8px 13px;
  background: linear-gradient(135deg, var(--noir-600), var(--noir-700));
  color: #fff; font-family: inherit; font-weight: 800; font-size: 13px; white-space: nowrap;
  box-shadow: 0 6px 15px rgba(43,18,6,.28); transition: transform .15s, box-shadow .15s;
}
.dish-add:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(43,18,6,.42); }
.dish-add:active { transform: scale(.94); }
.dish-add.pulse { animation: addPulse .4s ease; }

.item {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.item::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--gold-300), var(--gold-600));
  opacity: 0; transition: opacity .2s;
}
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #ecdcb4; }
.item:hover::before { opacity: 1; }
.item.out { opacity: .55; }
.item-thumb {
  width: 90px; height: 90px; flex: none;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #f7f0e2, #efe5d4);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.6), var(--shadow-sm);
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.item:hover .item-thumb img { transform: scale(1.07); }
.item-body { flex: 1; min-width: 0; }
.item-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.item-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.item-badge {
  display: inline-block; margin-inline-start: 8px;
  font-size: 11px; font-weight: 700; color: #b02a2a;
  background: #fde8e8; border-radius: 6px; padding: 1px 7px;
}
.item-right { flex: none; display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 96px; }
.price {
  flex: none; text-align: center;
  min-width: 92px;
  background: #faf2e2;
  border: 1px solid #eedfae;
  border-radius: 12px;
  padding: 8px 12px;
}
.add-btn {
  border: 0; border-radius: 10px; padding: 8px 10px;
  background: linear-gradient(135deg, var(--noir-600), var(--noir-700));
  color: #fff; font-family: inherit; font-weight: 800; font-size: 13px;
  box-shadow: 0 6px 16px rgba(43,18,6,.28); transition: .15s;
}
.add-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(43,18,6,.4); }
.add-btn:active { transform: scale(.96); }
.add-btn.pulse { animation: addPulse .4s ease; }
@keyframes addPulse { 0%{transform:scale(1)} 40%{transform:scale(.9)} 100%{transform:scale(1)} }
.price .num { font-weight: 800; font-size: 18px; color: var(--gold-800); line-height: 1; }
.price .cur { font-size: 11px; color: var(--muted); font-weight: 600; }
.price.free { background: #fcf5e6; border-color: #f0dfa8; }
.price.free .num { font-size: 13px; color: #7a4f1a; }

.empty {
  text-align: center; color: var(--muted); padding: 50px 20px;
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius);
}

/* زر لوحة التحكم أسفل المنيو */
.admin-cta { text-align: center; margin: 40px 0 8px; }
.admin-cta a {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--noir-700), var(--noir-600));
  color: #fff; font-weight: 800; font-size: 16px;
  padding: 14px 28px; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(43,18,6,.32);
  border: 2px solid var(--gold-500);
  transition: .2s;
}
.admin-cta a:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(43,18,6,.42); }
.admin-cta .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; font-weight: 500; }

/* ============================================================
   الفوتر / التواصل
   ============================================================ */
.footer {
  background:
    radial-gradient(600px 260px at 10% 0%, rgba(209,159,93,.16), transparent 60%),
    linear-gradient(160deg, var(--noir-700), var(--noir-900));
  color: #fff; padding: 40px 0 30px;
  border-top: 3px solid var(--gold-500);
  border-image: linear-gradient(90deg, var(--gold-800), var(--gold-400) 45%, var(--gold-800)) 1;
}
.footer h3 { font-size: 20px; margin-bottom: 4px; }
.footer .addr { color: var(--gold-300); font-size: 14px; }

/* أعلى الفوتر: الهوية + أيقونات التواصل */
.foot-top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-logo {
  width: 58px; height: 58px; border-radius: 16px; object-fit: cover;
  border: 2px solid var(--gold-600); box-shadow: 0 8px 20px rgba(0,0,0,.45), 0 0 0 4px rgba(209,159,93,.12);
}
.foot-brand-txt h3 { margin-bottom: 4px; }

/* أيقونات التواصل الاحترافية */
.foot-social { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-soc {
  position: relative; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; transition: .2s; box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.foot-soc svg { width: 24px; height: 24px; }
.foot-soc:hover { transform: translateY(-3px) scale(1.06); }
.foot-soc.whatsapp { background: #25d366; }
.foot-soc.instagram { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf); }
.foot-soc.facebook { background: #1877f2; }
.fs-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.82); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: .18s;
}
.foot-soc:hover .fs-tip { opacity: 1; }

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.contact-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px; padding: 14px;
  transition: .2s;
}
.contact-card:hover { background: rgba(255,255,255,.20); transform: translateY(-2px); }
.contact-card .ci {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(209,159,93,.22);
}
.contact-card .cl { font-size: 12px; color: var(--gold-300); }
.contact-card .cv { font-weight: 700; font-size: 15px; direction: ltr; text-align: right; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15);
}
.copyright { color: rgba(255,255,255,.75); font-size: 13px; }
.foot-links { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-links a {
  color: #fff; font-weight: 700; font-size: 13px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); padding: 8px 14px; border-radius: 999px; transition: .18s;
}
.foot-links a:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }

/* زر واتساب عائم */
.fab {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; border: 0;
  display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: .2s;
}
.fab:hover { transform: scale(1.08); }

/* ============================================================
   شاشة تحميل
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--cream); transition: opacity .4s;
}
.loader.hide { opacity: 0; pointer-events: none; }
.spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 5px solid #e2d5bd; border-top-color: var(--gold-600);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* حالة الاتصال */
.sync-note {
  text-align: center; font-size: 12px; color: var(--muted);
  padding: 8px; margin-top: 8px;
}
.sync-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-inline-end: 5px; }
.sync-dot.on { background: #23a24d; }
.sync-dot.off { background: #d19a1b; }

@media (max-width: 560px) {
  .hero-actions { width: 100%; }
  .price { min-width: 78px; }
}

/* ============================================================
   شاشة الافتتاح السينمائية + الحركات
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 18%, rgba(209,159,93,.18), transparent 60%),
    radial-gradient(120% 120% at 50% 0%, var(--noir-700), var(--noir-900) 68%, #000000);
  transition: opacity .8s ease, transform .8s cubic-bezier(.6,.05,.2,1), filter .8s ease;
}
.intro.leaving { opacity: 0; transform: scale(1.08); filter: blur(6px); pointer-events: none; }

.intro-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

/* طبقة تعتيم لضمان وضوح النص */
.intro-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(90% 80% at 50% 35%, transparent, rgba(0,0,0,.55) 75%),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25) 40%, rgba(0,0,0,.75));
}

/* فقاعات ضوئية متحركة (خلفية بديلة أنيقة) */
.intro-bokeh { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.intro-bokeh span {
  position: absolute; bottom: -60px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(247,221,138,.55), rgba(209,159,93,.05) 70%);
  filter: blur(1px); animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  15%  { opacity: .8; }
  85%  { opacity: .5; }
  100% { transform: translateY(-108vh) scale(1.1); opacity: 0; }
}

/* المحتوى */
.intro-content { position: relative; z-index: 3; text-align: center; color: #fff; padding: 24px; max-width: 640px; }

.intro-logo {
  position: relative; width: 120px; height: 120px; margin: 0 auto 22px;
  display: grid; place-items: center;
  opacity: 0; animation: introPop 1s .1s cubic-bezier(.2,.8,.2,1.05) forwards;
}
.intro-logo .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(209,159,93,.6);
  box-shadow: 0 0 46px rgba(209,159,93,.4), inset 0 0 34px rgba(209,159,93,.18);
}
.intro-logo .ring::before, .intro-logo .ring::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(209,159,93,.28);
  animation: ringPulse 3s ease-out infinite;
}
.intro-logo .ring::after { animation-delay: 1.5s; }
@keyframes ringPulse {
  0% { transform: scale(.9); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.intro-logo .mark {
  font-family: "El Messiri", var(--font);
  font-size: 58px; font-weight: 700; color: var(--gold-300);
  text-shadow: 0 6px 26px rgba(0,0,0,.4);
}
.intro-logo .mark-img {
  width: 104px; height: 104px; border-radius: 50%;
  object-fit: cover; border: 3px solid transparent;
  background: linear-gradient(145deg, var(--gold-300), var(--gold-700)) border-box;
  box-shadow: 0 14px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(209,159,93,.4);
}

.intro-kicker {
  letter-spacing: 6px; font-size: 13px; font-weight: 700;
  color: var(--gold-300); text-transform: uppercase; margin-bottom: 8px;
  opacity: 0; animation: introUp .8s .5s ease forwards;
}
.intro-title {
  font-family: "El Messiri", var(--font);
  font-size: clamp(38px, 9vw, 74px); font-weight: 700; line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 8%, var(--gold-300) 46%, var(--gold-600) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 10px 34px rgba(0,0,0,.55));
  opacity: 0; animation: introUp .9s .68s cubic-bezier(.2,.7,.2,1) forwards;
}
.intro-tag {
  margin-top: 12px; font-size: clamp(15px, 3.6vw, 19px); font-weight: 500;
  color: rgba(255,255,255,.9);
  opacity: 0; animation: introUp .9s .86s ease forwards;
}

.intro-btn {
  position: relative; overflow: hidden; margin-top: 34px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 40px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--noir-900); font-family: inherit; font-weight: 800; font-size: 18px;
  cursor: pointer; box-shadow: 0 16px 40px rgba(209,159,93,.4);
  opacity: 0; animation: introUp .9s 1.05s cubic-bezier(.2,.8,.2,1.1) forwards, glowPulse 2.6s 2s ease-in-out infinite;
  transition: transform .25s, box-shadow .25s;
}
.intro-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 22px 52px rgba(209,159,93,.55); }
.intro-btn:active { transform: translateY(0) scale(.99); }
.intro-btn .arrow { font-size: 22px; transition: transform .25s; }
.intro-btn:hover .arrow { transform: translateX(-6px); }
.intro-btn .shine {
  position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-20deg); animation: shine 3.2s 2.4s ease-in-out infinite;
}
@keyframes shine { 0% { right: -60%; } 55%,100% { right: 130%; } }
@keyframes glowPulse {
  0%,100% { box-shadow: 0 16px 40px rgba(209,159,93,.4); }
  50% { box-shadow: 0 18px 52px rgba(209,159,93,.6); }
}

.intro-hint {
  margin-top: 26px; font-size: 13px; color: rgba(255,255,255,.75);
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; animation: introUp 1s 1.35s ease forwards;
}
.intro-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-300); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* إطار زخرفي في الزوايا */
.intro-corner {
  position: absolute; width: 54px; height: 54px; z-index: 2;
  border: 2px solid rgba(209,159,93,.55); opacity: 0; animation: introFade 1.2s 1.4s ease forwards;
}
.intro-corner.tl { top: 26px; right: 26px; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.intro-corner.tr { top: 26px; left: 26px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.intro-corner.bl { bottom: 26px; right: 26px; border-left: 0; border-top: 0; border-radius: 0 0 0 14px; }
.intro-corner.br { bottom: 26px; left: 26px; border-right: 0; border-top: 0; border-radius: 0 0 14px 0; }

@keyframes introPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes introUp  { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes introFade{ from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   نظام ظهور العناصر عند التمرير (Reveal)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* موجة أسفل الهيدر */
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; z-index: 1;
  background: var(--cream);
  -webkit-mask: radial-gradient(22px at 50% 0, transparent 98%, #000) repeat-x;
  mask: radial-gradient(22px at 50% 0, transparent 98%, #000) repeat-x;
  -webkit-mask-size: 44px 26px; mask-size: 44px 26px;
  display: none;
}

/* حركة دخول المنيو بعد شاشة الافتتاح */
.site { opacity: 1; }
body.entering .site { animation: siteIn .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes siteIn { from { opacity: 0; transform: translateY(14px) scale(.995); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .intro-video { animation: none; }
  .intro-logo, .intro-kicker, .intro-title, .intro-tag, .intro-btn, .intro-hint, .intro-corner { animation-duration: .01ms !important; opacity: 1 !important; }
  .intro-btn { animation: none; opacity: 1; }
  .reveal { transition: none; }
  .intro-bokeh { display: none; }
}

/* ============================================================
   السلة العائمة + لوحة إتمام الطلب
   ============================================================ */
.cart-fab {
  position: fixed; inset-inline-start: 18px; bottom: 84px; z-index: 45;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--noir-900); border: 0; border-radius: 999px;
  padding: 12px 18px; font-weight: 800; font-size: 15px;
  box-shadow: 0 14px 34px rgba(209,159,93,.5);
  animation: fabIn .35s cubic-bezier(.2,.8,.2,1.1);
}
.cart-fab:hover { transform: translateY(-2px); }
.cart-fab .cf-count {
  background: var(--noir-800); color: #fff; min-width: 22px; height: 22px;
  border-radius: 999px; display: grid; place-items: center; font-size: 13px; padding: 0 5px;
}
@keyframes fabIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.drawer-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(43,18,6,.5); backdrop-filter: blur(3px);
  display: none; opacity: 0; transition: opacity .25s;
}
.drawer-overlay.show { display: block; opacity: 1; }
.drawer {
  position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 100%; max-width: 420px;
  background: var(--paper); display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(0,0,0,.3);
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer-overlay.show .drawer { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; color: #fff;
  background: linear-gradient(135deg, var(--noir-800), var(--noir-600));
}
.drawer-head h3 { font-size: 18px; display: inline-flex; align-items: center; gap: 10px; }
.dh-logo {
  width: 30px; height: 30px; border-radius: 9px; object-fit: cover;
  border: 1.5px solid var(--gold-500); box-shadow: 0 0 0 3px rgba(209,159,93,.14);
}
.drawer-head .x { background: rgba(255,255,255,.2); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 9px; font-size: 18px; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 20px; line-height: 2; }
.cart-empty small { font-size: 13px; }

.cart-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cr-thumb {
  flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden;
  background: var(--cream); display: grid; place-items: center; font-size: 24px;
  border: 1px solid var(--line);
}
.cr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cr-main { flex: 1; min-width: 0; }
.cr-name { font-weight: 700; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.cr-price { font-size: 13px; color: var(--gold-800); font-weight: 700; margin: 3px 0 9px; }
.cr-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qty { display: flex; align-items: center; gap: 6px; flex: none; }
.qty button {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--cream); font-size: 18px; font-weight: 800; color: var(--noir-700);
  display: grid; place-items: center; cursor: pointer;
}
.qty button:hover { border-color: var(--gold-500); }
.qty .q-num { min-width: 26px; text-align: center; font-weight: 800; }
.cr-del {
  flex: none; height: 32px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  background: #fdecec; color: #c0392b; border: 1px solid #f6cfcf;
  font-family: inherit; font-size: 13px; font-weight: 700;
  display: grid; place-items: center; transition: .15s;
}
.cr-del:hover { background: #fbdcdc; }
/* خصم داخل صف السلة */
.cr-old { text-decoration: line-through; color: var(--muted); font-size: 12px; font-weight: 700; }
.cr-new { color: var(--gold-800); font-weight: 800; }
.cr-badge { background: #fdecec; color: #e5484d; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }

/* تتبّع الطلب داخل السلة */
.order-track { padding: 14px 16px 0; }
.track-title { font-size: 13px; font-weight: 800; color: var(--noir-800); margin-bottom: 8px; }
.track-card { background: #fbf3e4; border: 1px solid #eddcb8; border-radius: 14px; padding: 12px 13px; margin-bottom: 10px; }
.track-card.cancelled { background: #fdecec; border-color: #f6cfcf; }
.track-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--noir-800); }
.track-dismiss { background: transparent; border: 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.track-now { display: flex; align-items: center; gap: 9px; margin: 11px 0 12px; }
.tn-ico { font-size: 24px; }
.tn-label { font-size: 16px; font-weight: 800; color: var(--gold-800); }
.track-progress { display: flex; align-items: center; }
.tp-node { width: 14px; height: 14px; border-radius: 50%; background: #e2d5bd; flex: none; }
.tp-node.done { background: var(--gold-600); }
.tp-node.active { background: var(--gold-600); box-shadow: 0 0 0 4px rgba(206,156,24,.22); animation: trackPulse 1.5s ease-in-out infinite; }
.tp-line { flex: 1; height: 3px; background: #e2d5bd; }
.tp-line.done { background: var(--gold-600); }
@keyframes trackPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(206,156,24,.22); } 50% { box-shadow: 0 0 0 7px rgba(206,156,24,.07); } }
.track-cancelled { margin-top: 8px; font-size: 14px; font-weight: 800; color: #c0392b; }
.track-driver { margin-top: 10px; font-size: 12.5px; color: var(--noir-800); }

/* على الهاتف: تُمرَّر السلة كلها معاً لتظهر كل الأصناف والحقول بوضوح */
@media (max-width: 640px) {
  .drawer { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .drawer-head { position: sticky; top: 0; z-index: 3; }
  .drawer-body { flex: 0 0 auto; overflow: visible; }
}

.checkout { border-top: 1px solid var(--line); padding: 14px 16px; background: #fbf6ec; }

.co-total { margin-bottom: 12px; }
.co-line { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; padding: 3px 0; color: var(--ink); }
.co-line small { font-size: 11px; color: var(--muted); font-weight: 600; }
.co-line b { font-size: 15px; color: var(--gold-800); font-weight: 800; }
.co-line.dep b { color: var(--noir-600); }
.co-line.save, .co-line.save b { color: #e5484d; }
.co-line.loyal, .co-line.loyal b { color: #d6820a; }
.loyal-banner {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #fdf3e4, #fffaf1);
  border: 1px solid #f2d9a6; border-inline-start: 5px solid #eaa73c;
  border-radius: 14px; padding: 11px 14px; margin-bottom: 12px;
  font-size: 14px; font-weight: 700; color: #9a6a12;
}
.loyal-banner b { color: #c8760a; }
.co-line.grand { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.co-line.grand b { font-size: 20px; }

/* ملاحظة تأمين الصواني في السلة */
.dep-note {
  background: #fbf3e4; border: 1px solid #eddcb8; color: var(--noir-800);
  font-size: 11.5px; font-weight: 600; line-height: 1.6; border-radius: 10px;
  padding: 9px 11px; margin-bottom: 12px;
}

/* تذكير تأمين الصينية في نافذة النجاح */
.ok-tray {
  background: #fbf3e4; border: 1px solid #eddcb8; color: var(--noir-800);
  font-size: 12.5px; font-weight: 600; line-height: 1.65; border-radius: 12px;
  padding: 10px 12px; margin: 4px 0 14px;
}

.co-fields .field { margin-bottom: 10px; }
.co-fields label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.co-fields input, .co-fields textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 15px; background: #fff; outline: none; transition: .15s;
}
.co-fields input:focus, .co-fields textarea:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(206,156,24,.22); }
.co-fields textarea { min-height: 54px; resize: vertical; }
.co-submit {
  width: 100%; border: 0; border-radius: 12px; padding: 14px;
  background: linear-gradient(135deg, var(--noir-600), var(--noir-700));
  color: #fff; font-family: inherit; font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 24px rgba(43,18,6,.32); transition: .15s;
}
.co-submit:hover:not(:disabled) { transform: translateY(-2px); }
.co-submit:disabled { opacity: .7; }

/* نافذة نجاح الطلب */
.ok-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(43,18,6,.55); backdrop-filter: blur(4px);
  display: none; place-items: center; padding: 20px;
}
.ok-overlay.show { display: grid; }
.ok-card {
  width: 100%; max-width: 380px; background: #fff; border-radius: 22px;
  padding: 32px 26px; text-align: center; box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ok-badge {
  width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--noir-700));
  display: grid; place-items: center; font-size: 38px;
  box-shadow: 0 10px 26px rgba(43,18,6,.4);
}
.ok-logo {
  width: 64px; height: 64px; margin: 0 auto 12px; padding: 2px;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(145deg, var(--gold-300), var(--gold-700));
  box-shadow: 0 10px 24px rgba(43,18,6,.18);
}
.ok-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.ok-card h3 { font-size: 22px; color: var(--noir-800); }
.ok-card p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.ok-num {
  font-size: 24px; font-weight: 900; letter-spacing: 1px; color: var(--gold-800);
  background: var(--cream); border: 1px dashed var(--gold-500);
  border-radius: 12px; padding: 10px; margin: 8px 0; direction: ltr;
}
.ok-sub { font-size: 13px; }
.ok-wa {
  display: block; margin-top: 16px; padding: 13px; border-radius: 12px;
  background: #25d366; color: #fff; font-weight: 800; text-align: center;
}
.ok-close {
  width: 100%; margin-top: 10px; padding: 12px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; font-family: inherit; font-weight: 700; color: var(--ink);
}

@media (max-width: 560px) {
  .hero-actions { width: 100%; }
  .item-right { min-width: 82px; }
  .item-thumb { width: 74px; height: 74px; }
  .item { gap: 12px; }
  .cart-fab { inset-inline-start: 12px; bottom: 78px; }
  /* كروت مضغوطة لعرض العمودين بوضوح على الهاتف */
  .dish-info { padding: 8px 9px 2px; }
  .dish-name { font-size: 12.5px; line-height: 1.35; }
  .dish-desc { font-size: 10.5px; -webkit-line-clamp: 2; }
  .dish-foot { padding: 6px 9px 10px; gap: 6px; }
  .dish-price { font-size: 13px; }
  .dish-price span { font-size: 10px; }
  .dish-add { padding: 6px 9px; font-size: 12px; border-radius: 9px; }
}

/* ============================================================
   لمسات حركية احترافية (Premium motion)
   ============================================================ */

/* شريط تقدّم التمرير أعلى الصفحة */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; height: 4px; width: 0%;
  z-index: 300; transform-origin: right center;
  background: linear-gradient(90deg, var(--gold-700), var(--gold-400) 50%, var(--gold-700));
  box-shadow: 0 1px 8px rgba(209,159,93,.5);
  transition: width .12s linear;
}

/* زر لوحة التحكم في الهيدر */
.chip.admin-chip {
  background: rgba(255,255,255,.10);
  border-color: rgba(209,159,93,.55);
}
.chip.admin-chip:hover { background: rgba(255,255,255,.22); }

/* صورة الطبق — إشارة أنها قابلة للتكبير */
.dish-media img.zoomable { cursor: zoom-in; }

/* عارض الصورة الكامل (Lightbox) */
.img-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.93); display: none;
  place-items: center; padding: 20px;
  animation: lbFade .2s ease;
}
.img-lightbox.show { display: grid; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.img-lightbox .lb-img {
  max-width: 94vw; max-height: 84vh; object-fit: contain;
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: pop .25s ease;
}
.lb-back {
  position: fixed; top: 16px; inset-inline-start: 16px; z-index: 210;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-family: inherit; font-weight: 800; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(6px); transition: .18s;
}
.lb-back:hover { background: rgba(255,255,255,.28); }
.lb-back span { font-size: 18px; }

/* زر عرض الموقع في الهيدر */
.chip.loc-chip {
  cursor: pointer; font-family: inherit;
  background: var(--gold-500); color: var(--noir-900); border-color: transparent;
}
.chip.loc-chip:hover { background: var(--gold-400); }

/* نافذة اختيار تطبيق الخريطة (جوجل / ويز) */
.map-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(43,18,6,.55); backdrop-filter: blur(4px);
  display: none; place-items: center; padding: 20px;
}
.map-overlay.show { display: grid; }
.map-card {
  width: 100%; max-width: 380px; background: #fff; border-radius: 22px;
  padding: 24px 22px; box-shadow: var(--shadow-lg); animation: pop .25s ease;
}
.map-head { display: flex; align-items: center; margin-bottom: 6px; }
.map-head h3 { font-size: 19px; color: var(--noir-800); flex: 1; }
.map-head .x {
  width: 34px; height: 34px; border: 0; background: var(--cream); border-radius: 10px;
  font-size: 16px; cursor: pointer; color: var(--ink);
}
.map-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.map-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  margin-bottom: 10px; transition: .18s; cursor: pointer;
}
.map-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.map-opt .mo-ico {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
}
.map-opt .mo-ico img {
  width: 44px; height: 44px; display: block;
  object-fit: contain; border-radius: 10px;
}
.map-opt .mo-txt { display: grid; }
.map-opt .mo-txt b { font-size: 16px; color: var(--ink); }
.map-opt .mo-txt small { font-size: 12px; color: var(--muted); direction: ltr; text-align: start; }

/* ظل الهيدر اللاصق عند التمرير */
.toolbar { transition: filter .25s; }
.toolbar.scrolled .toolbar-card { box-shadow: 0 12px 34px rgba(43,18,6,.22); }

/* شعار متحرك في الهيدر */
.brand-badge { animation: badgeFloat 5s ease-in-out infinite; }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-3deg); }
}
.hero:hover .brand-badge { animation-play-state: paused; transform: scale(1.06) rotate(4deg); }

/* أزرار الفئات — نبض عند التفعيل */
.cat-pill { position: relative; }
.cat-pill.active { animation: pillPop .35s cubic-bezier(.2,.8,.2,1.2); }
@keyframes pillPop { 0% { transform: scale(.9); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* دخول كروت الأطباق بحركة أنيقة (Stagger عبر transition-delay من JS) */
.dish.reveal { opacity: 0; transform: translateY(34px) scale(.94); }
.dish.reveal.in { opacity: 1; transform: none; }

/* لمعان يمرّ على صورة الطبق عند المرور */
.dish-media::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-160%) skewX(-18deg); pointer-events: none;
}
.dish:hover .dish-media::after { animation: shineSweep .8s ease; }
@keyframes shineSweep { to { transform: translateX(260%) skewX(-18deg); } }

/* السعر — لمعة خفيفة */
.dish-price { position: relative; }

/* زر السلة العائم — طفو خفيف + قفزة عند الإضافة */
.cart-fab { animation: fabIn .35s cubic-bezier(.2,.8,.2,1.1), fabBob 3.4s ease-in-out .5s infinite; }
@keyframes fabBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.cart-fab.bump { animation: fabBump .5s cubic-bezier(.2,.8,.2,1.4); }
@keyframes fabBump {
  0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-6deg); }
  70% { transform: scale(.94); } 100% { transform: scale(1); }
}
.cart-fab .cf-count { transition: transform .25s; }
.cart-fab.bump .cf-count { transform: scale(1.5); }

/* طبقة الطيران إلى السلة */
.fly-layer { position: fixed; inset: 0; z-index: 950; pointer-events: none; overflow: hidden; }
.fly-item {
  position: fixed; width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.28); border: 2px solid #fff;
  will-change: transform, opacity; transition: transform .75s cubic-bezier(.5,-.2,.3,1), opacity .75s ease;
}
.fly-item img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .brand-badge, .cart-fab { animation: none !important; }
  .dish.reveal { opacity: 1; transform: none; }
  .dish-media::after { display: none; }
  .scroll-progress { transition: none; }
  .srl { animation: none !important; }
}

/* ============================================================
   لافتة المتجر المغلق + حالة التعطيل
   ============================================================ */
.store-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #fbe9e6, #fdf3f0);
  border: 1px solid #f2c9c1; border-inline-start: 5px solid #c0392b;
  border-radius: 16px; padding: 14px 16px; margin-top: 18px;
  box-shadow: var(--shadow-sm); animation: bannerIn .4s ease;
}
.store-banner .sb-ico { font-size: 30px; }
.store-banner .sb-text { display: grid; }
.store-banner .sb-text b { color: #b8352a; font-size: 16px; }
.store-banner .sb-text span { color: #9a5a52; font-size: 13px; }
@keyframes bannerIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
body.store-closed .dish-add { opacity: .82; }

/* رسالة تنبيه عائمة (المتجر مغلق) */
.note-toast {
  position: fixed; bottom: 92px; left: 50%; transform: translate(-50%, 20px);
  z-index: 95; max-width: 92%;
  background: linear-gradient(135deg, var(--noir-800), var(--noir-700));
  color: #fff; padding: 13px 20px; border-radius: 14px;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg);
  display: inline-flex; align-items: center; gap: 8px; text-align: center;
  border: 1px solid rgba(209,159,93,.4);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.note-toast.show { opacity: 1; transform: translate(-50%, 0); }
.note-toast .nt-ico { font-size: 17px; }
.note-toast.add-toast { background: linear-gradient(135deg, var(--noir-700), var(--noir-600)); border-color: rgba(240,203,85,.6); }
@media (max-width: 560px) { .note-toast { font-size: 13px; max-width: 88%; } }

/* ============================================================
   الشريط الجانبي للتواصل (متحرك)
   ============================================================ */
.social-rail {
  position: fixed; inset-inline-end: 16px; bottom: 22px; z-index: 46;
  display: flex; flex-direction: column; gap: 12px;
}
body.intro-open .social-rail { display: none; }
.srl {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  animation: railIn .5s cubic-bezier(.2,.8,.2,1.2) both;
  transition: transform .2s;
}
.srl:hover { transform: scale(1.12) translateY(-2px); }
.srl.whatsapp { background: #25d366; animation: railIn .5s both, waPulse 2.4s ease-in-out 1.2s infinite; }
.srl.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.srl.facebook { background: #1877f2; }
.srl.tiktok { background: #111; }
.srl.phone { background: var(--noir-600); }
.srl-ico { line-height: 1; display: grid; place-items: center; }
.srl-ico svg { width: 25px; height: 25px; display: block; }
.srl-tip {
  position: absolute; inset-inline-end: 58px; top: 50%;
  transform: translateY(-50%) scale(.85);
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: .18s;
}
.srl:hover .srl-tip { opacity: 1; transform: translateY(-50%) scale(1); }
@keyframes railIn { from { opacity: 0; transform: translateX(30px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes waPulse { 0%, 100% { box-shadow: 0 8px 22px rgba(37,211,102,.4); } 50% { box-shadow: 0 8px 32px rgba(37,211,102,.85); } }

@media (max-width: 560px) {
  .srl { width: 44px; height: 44px; }
  .srl-ico svg { width: 22px; height: 22px; }
  .social-rail { gap: 10px; bottom: 16px; }
}



/* ============================================================
   أنماط الميزات المضافة — صفحة الزبون
   (مناطق التوصيل · خيارات الأصناف · الفاتورة · مطابقة الصندوق ·
    شاشة التحميل · هيكل التحميل)
   ============================================================ */
.foot-soc.tiktok { background: #111; }

.co-line.del b { color: var(--noir-700); }

.min-note {
  background: #fff7e6; border: 1px solid #f5d99a; color: #8a5a00;
  font-size: 12px; font-weight: 700; line-height: 1.6; border-radius: 10px;
  padding: 9px 11px; margin-bottom: 12px;
}

.co-fields input, .co-fields textarea, .co-fields select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 15px; background: #fff; color: var(--ink); outline: none; transition: .15s;
}

.co-fields input:focus, .co-fields textarea:focus, .co-fields select:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(206,156,24,.22); }

.opt-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(43,18,6,.55); backdrop-filter: blur(4px);
  display: none; place-items: end center; padding: 0;
}

.opt-overlay.show { display: grid; }

.opt-card {
  width: 100%; max-width: 460px; background: var(--paper);
  border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; max-height: 88vh;
  animation: optUp .22s ease;
}

@keyframes optUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.opt-head {
  display: flex; align-items: center; gap: 10px; padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--noir-800), var(--noir-600));
  border-radius: 22px 22px 0 0; color: #fff;
}

.opt-head h3 { font-size: 17px; font-weight: 800; flex: 1; line-height: 1.5; }

.opt-head .x {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.2); color: #fff; font-size: 17px;
}

.opt-body { padding: 14px 18px; overflow-y: auto; }

.opt-group + .opt-group { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }

.opt-g-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }

.opt-g-head b { font-size: 15.5px; color: var(--noir-800); }

.opt-g-head small { font-size: 12px; color: var(--muted); font-weight: 600; }

.opt-choice {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px;
  background: #fff; margin-bottom: 8px; transition: .15s;
}

.opt-choice input { position: absolute; opacity: 0; width: 0; height: 0; }

.opt-mark {
  flex: none; width: 21px; height: 21px; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center; transition: .15s;
}

.opt-choice input[type="checkbox"] ~ .opt-mark { border-radius: 7px; }

.opt-choice input:checked ~ .opt-mark { border-color: var(--noir-600); background: var(--noir-600); }

.opt-choice input:checked ~ .opt-mark::after {
  content: "✓"; color: #fff; font-size: 13px; font-weight: 900; line-height: 1;
}

.opt-choice:has(input:checked) { border-color: var(--noir-600); background: #faf4e9; }

.opt-name { flex: 1; font-size: 14.5px; font-weight: 700; }

.opt-extra { font-size: 13px; font-weight: 800; color: var(--noir-700); }

.opt-foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

.opt-add {
  width: 100%; border: 0; border-radius: 14px; padding: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--noir-700), var(--noir-500));
  color: #fff; font-family: var(--font); font-size: 16px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.opt-add small { font-size: 12px; font-weight: 700; opacity: .9; }

.opt-add:active { transform: translateY(1px); }

.cr-opts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }

.cr-opts span {
  font-size: 11.5px; font-weight: 700; color: var(--noir-800);
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 9px;
}

.cr-opts b { color: var(--noir-700); }

.opt-choice.count { justify-content: space-between; cursor: default; }

.opt-choice.on { border-color: var(--noir-600); background: #faf4e9; }

.opt-mark.on { border-color: var(--noir-600); background: var(--noir-600); }

.opt-mark.on::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 900; line-height: 1; }

.opt-qty { display: inline-flex; align-items: center; gap: 9px; flex: none; }

.opt-qty b { min-width: 18px; text-align: center; font-size: 16px; font-weight: 800; color: var(--noir-800); }

.oq-btn {
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: var(--cream);
  font-size: 19px; font-weight: 800; color: var(--noir-700);
  font-family: var(--font); display: grid; place-items: center;
}

.oq-btn:disabled { opacity: .35; cursor: not-allowed; }

.opt-g-head small b.miss { color: #c0392b; }

.opt-g-head small b.ok { color: var(--noir-700); }

.opt-group.need .opt-g-head b:first-child::after { content: " *"; color: #c0392b; }

.opt-add:disabled { background: #ddccb4; box-shadow: none; cursor: not-allowed; }

.app-loader {
  position: fixed; inset: 0; z-index: 400;   /* فوق شاشة الافتتاح (200) وشريط التقدّم (300) */
  display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(680px 420px at 50% 18%, rgba(138,97,52,.16), transparent 62%),
    radial-gradient(520px 380px at 85% 95%, rgba(209,159,93,.14), transparent 60%),
    var(--cream);
  opacity: 1; visibility: visible;
  transition: opacity .45s ease, visibility .45s ease;
}

.app-loader.hide { opacity: 0; visibility: hidden; }

.al-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

.al-plate {
  position: relative; width: 124px; height: 124px;
  display: grid; place-items: center;
}

.al-logo {
  width: 78px; height: 78px; border-radius: 50%; object-fit: cover;
  background: #fff; box-shadow: 0 10px 30px rgba(43,18,6,.18);
  animation: alBreath 2.6s ease-in-out infinite;
}

.al-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, var(--noir-600) 78%, var(--gold-500) 92%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: alSpin 1.5s linear infinite;
}

.al-ring.two {
  inset: 13px;
  background: conic-gradient(from 180deg, transparent 0 70%, var(--gold-400) 88%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: alSpin 2.1s linear infinite reverse;
}

.al-glow {
  position: absolute; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle, rgba(138,97,52,.32), transparent 68%);
  animation: alPulse 2.6s ease-in-out infinite;
}

@keyframes alSpin { to { transform: rotate(360deg); } }

@keyframes alBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

@keyframes alPulse { 0%, 100% { transform: scale(.9); opacity: .5; } 50% { transform: scale(1.18); opacity: .9; } }

.al-name {
  font-family: "El Messiri", var(--font); font-size: 24px; font-weight: 700;
  color: var(--noir-800); letter-spacing: .5px;
}

.al-text { font-size: 13.5px; font-weight: 600; color: var(--muted); }

.al-bar {
  width: 190px; height: 4px; border-radius: 999px; overflow: hidden;
  background: rgba(88,47,16,.14); margin-top: 4px;
}

.al-bar span {
  display: block; width: 42%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--noir-600), var(--gold-500));
  animation: alSlide 1.25s ease-in-out infinite;
}

@keyframes alSlide {
  0%   { transform: translateX(-115%); }
  100% { transform: translateX(275%); }
}

.dish.skeleton { pointer-events: none; }

.sk-line, .dish.skeleton .dish-media {
  background: linear-gradient(90deg, #e8dcc6 25%, #faf5ec 37%, #e8dcc6 63%);
  background-size: 400% 100%; animation: skShine 1.4s ease infinite;
}

.sk-line { height: 12px; border-radius: 7px; margin: 8px 0; }

.sk-line.w70 { width: 70%; }

.sk-line.w45 { width: 45%; }

.sk-line.w30 { width: 30%; }

@keyframes skShine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
