/* ============================================================
   الثيم: أسود + ذهبي + أبيض — مطعم أتروشي (Atrushy Restaurant)
   الألوان مستوحاة من الشعار: خلفية سوداء فاخرة وزخارف ذهبية.
   الأسماء القديمة للمتغيرات باقية كي تعمل كل الأنماط أدناه:
   brand-900/800 = أسود (الهيدر/الفوتر/الافتتاح) · brand-700/600/500 = درجات الذهبي (الأزرار)
   orange-* = أسماء قديمة تشير الآن إلى الذهبي · accent-* = ذهبي فاتح (لمسات وشارات)
   الذهبي فاتح، لذا نصوص الأزرار الذهبية داكنة (--on-gold) لتباين ≥ 4.5:1،
   والذهبي الداكن (--gold-700) هو ما يُكتب به على الخلفيات البيضاء.
   ============================================================ */

:root {
  --brand-900: #070707;
  --brand-800: #111111;
  --brand-700: #8f6a17;
  --brand-600: #b8891f;
  --brand-500: #d4a634;
  --gold-700: #8f6a17;
  --gold-600: #b8891f;
  --gold-500: #d4a634;
  --gold-400: #e6c05a;
  --gold-300: #f3dc9a;
  --on-gold: #1a1200;
  --orange-600: #b8891f;
  --orange-500: #d4a634;
  --orange-400: #e6c05a;
  --accent-500: #d4a634;
  --accent-400: #e6c05a;
  --accent-glow: #f3dc9a;
  --gold-tint: #fbf5e4;
  --gold-line: #eed9a3;

  --cream: #ffffff;
  --paper: #ffffff;
  --bg: #f6f4ef;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e7e3da;

  --shadow-sm: 0 2px 8px rgba(0,0,0, .06);
  --shadow-md: 0 8px 26px rgba(0,0,0, .12);
  --shadow-lg: 0 20px 56px rgba(0,0,0, .22);

  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 900px;

  --font: "Cairo", "Vazirmatn", "Tajawal", "Segoe UI", system-ui, sans-serif;
}
/* الكردية (سۆرانی): Vazirmatn يغطي كل حروفها (ە ۆ ێ ڵ ڕ ڤ) بشكل متناسق */
html[data-lang="ku"] { --font: "Vazirmatn", "Cairo", "Segoe UI", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }

/* السمة hidden تعني الإخفاء فعلاً — تتقدّم على أي display صريح في الأصناف */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body.intro-open { overflow: hidden; height: 100vh; }

body {
  font-family: var(--font);
  background: var(--bg);
  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;
  background: radial-gradient(120% 90% at 50% 0%, #1c1a14, var(--brand-800) 60%, var(--brand-900));
  color: #fff;
  padding: 20px 0 74px;
  overflow: hidden;
  border-bottom: 3px solid var(--gold-500);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.brand-badge {
  width: 78px; height: 78px; flex: none;
  border-radius: 18px;
  background: #0b0b0b;
  border: 2px solid var(--gold-500);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
.brand-badge img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { min-width: 0; flex: 1; }
.brand-text h1 {
  font-family: var(--font);
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1.15;
}
.brand-text .tagline {
  color: var(--gold-400);
  font-size: clamp(12.5px, 3.3vw, 16px);
  font-weight: 600;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

/* زر «اطلب الآن» البارز + سطر المعلومات تحت الهوية */
.hero-cta { position: relative; z-index: 1; margin-top: 18px; display: grid; gap: 12px; }
.hero-order-btn {
  width: 100%; min-height: 56px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--on-gold); font-family: inherit; font-weight: 900; font-size: 20px; letter-spacing: .2px;
  box-shadow: 0 12px 30px rgba(212,166,52,.4);
  transition: transform .15s, box-shadow .15s;
  animation: ctaGlow 2.8s ease-in-out 1.5s infinite;
}
.hero-order-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(212,166,52,.55); }
.hero-order-btn:active { transform: scale(.98); }
@keyframes ctaGlow { 0%,100% { box-shadow: 0 12px 30px rgba(212,166,52,.4); } 50% { box-shadow: 0 14px 40px rgba(212,166,52,.65); } }
@media (min-width: 620px) { .hero-order-btn { width: auto; min-width: 260px; justify-self: start; padding: 0 40px; } }
.hero-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hi-methods { display: contents; }
.hi-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
/* شريحة العنوان تلتف على سطرين حين يكتب المدير عنواناً طويلاً — بدل أن يقصّها overflow الهيدر */
.hi-chip.loc {
  background: rgba(212,166,52,.16); border-color: rgba(212,166,52,.55); color: var(--gold-300);
  white-space: normal; max-width: 100%; overflow-wrap: anywhere; text-align: start; line-height: 1.5;
}
.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(--accent-500); color: var(--brand-900); border-color: transparent; }
.chip.solid:hover { background: var(--accent-400); }

/* ============================================================
   شريط البحث + الفئات
   ============================================================ */
.toolbar {
  position: sticky; top: 0; z-index: 30;
  margin-top: -44px;
}
.toolbar-card {
  background: var(--paper);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 12px 14px;
}
.search-row { display: flex; align-items: center; gap: 8px; }
.search-row .search { flex: 1; min-width: 0; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  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-600); font-size: 18px; display: grid; place-items: center; }
.search .ico svg { width: 20px; height: 20px; }

.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(--brand-800);
  padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: .18s; white-space: nowrap;
}
.cat-pill:hover { border-color: var(--brand-500); }
.cat-pill.active {
  background: var(--gold-500); color: var(--on-gold); border-color: var(--gold-500);
  box-shadow: 0 6px 16px rgba(212,166,52,.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(--gold-400), var(--gold-600));
  color: var(--on-gold); border-radius: 14px; font-size: 22px;
  box-shadow: var(--shadow-sm);
}
.section-head h2 { font-family: var(--font); font-size: 22px; font-weight: 900; color: var(--brand-800); }
.section-head .note { font-size: 13px; color: var(--muted); font-weight: 500; }
.section-head .count {
  margin-inline-start: auto;
  background: var(--bg); 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: var(--radius); 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: var(--gold-line); }
.dish.out { opacity: .62; }
.dish-media {
  position: relative; aspect-ratio: 4 / 3;
  background: radial-gradient(80% 80% at 50% 40%, #232323, #0f0f0f);
  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; z-index: 2;
  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(--brand-700); white-space: nowrap; }
.dish-price span { font-size: 11px; color: var(--muted); font-weight: 600; }
.dish-price.free { font-size: 12.5px; color: #a9791b; }
/* الخصومات — شارة وسعر مشطوب */
.dish-disc-badge {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2;
  background: var(--gold-500); color: var(--on-gold); 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(--brand-700); 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(--gold-400), var(--gold-600));
  color: var(--on-gold); font-family: inherit; font-weight: 800; font-size: 13px; white-space: nowrap;
  box-shadow: 0 6px 15px rgba(212,166,52,.28); transition: transform .15s, box-shadow .15s;
}
.dish-add:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(212,166,52,.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(--brand-500), var(--accent-500));
  opacity: 0; transition: opacity .2s;
}
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-line); }
.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, #f3f3f3, #e9e9e9);
  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: var(--gold-tint);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  padding: 8px 12px;
}
.add-btn {
  border: 0; border-radius: 10px; padding: 8px 10px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--on-gold); font-family: inherit; font-weight: 800; font-size: 13px;
  box-shadow: 0 6px 16px rgba(212,166,52,.28); transition: .15s;
}
.add-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(212,166,52,.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(--brand-700); line-height: 1; }
.price .cur { font-size: 11px; color: var(--muted); font-weight: 600; }
.price.free { background: #fff6e0; border-color: #f2e2b8; }
.price.free .num { font-size: 13px; color: #a9791b; }

.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(--gold-600), var(--gold-400));
  color: var(--on-gold); font-weight: 800; font-size: 16px;
  padding: 14px 28px; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(212,166,52,.32);
  border: 2px solid var(--accent-500);
  transition: .2s;
}
.admin-cta a:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(212,166,52,.42); }
.admin-cta .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; font-weight: 500; }

/* ============================================================
   الفوتر / التواصل
   ============================================================ */
.footer {
  background: var(--brand-800);
  color: #fff; padding: 40px 0 30px;
  border-top: 3px solid var(--gold-500);
}
.footer h3 { font-size: 20px; margin-bottom: 4px; }
.footer .addr { color: var(--gold-400); 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 rgba(212,166,52,.6); box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.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; }
.foot-soc.tiktok { background: #111; }
.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(212,166,52,.22);
}
.contact-card .cl { font-size: 12px; color: var(--accent-glow); }
.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(--bg); transition: opacity .4s;
}
.loader.hide { opacity: 0; pointer-events: none; }
.spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 5px solid #e6e6e6; border-top-color: var(--brand-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(120% 120% at 50% 0%, #1f1c14, var(--brand-900) 70%, #000);
  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(230,192,90,.5), rgba(212,166,52,.04) 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; width: 100%; max-width: min(640px, 100%); }

.intro-logo {
  position: relative; width: min(100%, 420px); margin: 0 auto 14px;
  display: grid; place-items: center;
  opacity: 0; animation: introPop 1s .1s cubic-bezier(.2,.8,.2,1.05) forwards;
}
/* الشعار العريض (اللافتة السوداء الذهبية) — يذوب في خلفية الافتتاح */
.intro-logo .mark-wide {
  width: 100%; height: auto; border-radius: 18px;
  -webkit-mask: radial-gradient(90% 90% at 50% 50%, #000 55%, transparent 100%);
  mask: radial-gradient(90% 90% at 50% 50%, #000 55%, transparent 100%);
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.6));
}
.intro-logo .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(230,192,90,.55);
  box-shadow: 0 0 40px rgba(212,166,52,.35), inset 0 0 30px rgba(212,166,52,.2);
}
.intro-logo .ring::before, .intro-logo .ring::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  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: var(--font);
  font-size: 58px; font-weight: 700; color: var(--accent-glow);
  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: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 12px 34px rgba(0,0,0,.4);
}

.intro-kicker {
  letter-spacing: 4px; font-size: 13px; font-weight: 700;
  color: var(--gold-300); text-transform: uppercase; margin-bottom: 6px;
  opacity: 0; animation: introUp .8s .5s ease forwards;
}
.intro-title {
  font-family: var(--font);
  font-size: clamp(32px, 8vw, 62px); font-weight: 900; line-height: 1.15;
  background: linear-gradient(180deg, #fff6d5, var(--gold-400) 55%, var(--gold-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.5));
  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;
  max-width: 100%; overflow-wrap: break-word; text-wrap: balance;
}

.intro-btn {
  position: relative; overflow: hidden; margin-top: 30px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 40px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 45%, var(--gold-600));
  color: var(--on-gold); font-family: inherit; font-weight: 900; font-size: 19px; min-height: 56px;
  cursor: pointer; box-shadow: 0 16px 40px rgba(212,166,52,.45);
  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(212,166,52,.6); }
.intro-btn:active { transform: translateY(0) scale(.99); }
.intro-btn .arrow { font-size: 22px; transition: transform .25s; }
.intro-btn:hover .arrow { transform: translateX(-6px); }
[dir="ltr"] .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(212,166,52,.4); }
  50% { box-shadow: 0 18px 52px rgba(212,166,52,.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(--accent-glow); 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(230,192,90,.65); 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(--bg);
  -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-600));
  color: var(--on-gold); border: 0; border-radius: 999px; min-height: 48px;
  padding: 12px 18px; font-weight: 800; font-size: 15px;
  box-shadow: 0 14px 34px rgba(212,166,52,.5);
  animation: fabIn .35s cubic-bezier(.2,.8,.2,1.1);
}
.cart-fab:hover { transform: translateY(-2px); }
.cart-fab .cf-count {
  background: var(--brand-800); color: var(--gold-300); 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(0,0,0,.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: var(--brand-800);
}
.drawer-head h3 { font-size: 18px; }
.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: #151515; 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(--brand-700); 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(--bg); font-size: 18px; font-weight: 800; color: var(--brand-700);
  display: grid; place-items: center; cursor: pointer;
}
.qty button:hover { border-color: var(--brand-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(--brand-700); font-weight: 800; }
.cr-badge { background: var(--gold-tint); color: var(--gold-700); 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(--brand-800); margin-bottom: 8px; }
.track-card { background: var(--gold-tint); border: 1px solid var(--gold-line); 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(--brand-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(--brand-700); }
.track-progress { display: flex; align-items: center; }
.tp-node { width: 14px; height: 14px; border-radius: 50%; background: #e6e6e6; flex: none; }
.tp-node.done { background: var(--brand-600); }
.tp-node.active { background: var(--brand-600); box-shadow: 0 0 0 4px rgba(212,166,52,.22); animation: trackPulse 1.5s ease-in-out infinite; }
.tp-line { flex: 1; height: 3px; background: #e6e6e6; }
.tp-line.done { background: var(--brand-600); }
@keyframes trackPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(212,166,52,.22); } 50% { box-shadow: 0 0 0 7px rgba(212,166,52,.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(--brand-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: #fafafa; }

.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(--brand-700); font-weight: 800; }
.co-line.save, .co-line.save b { color: var(--gold-700); }
.co-line.loyal, .co-line.loyal b { color: #b4640a; }
.co-line.del b { color: var(--brand-700); }
.loyal-banner {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #fff6e6, #fffdf6);
  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; }

/* تنبيه أقل مبلغ للطلب */
.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-submit:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.35); }

.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, .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(--brand-500); box-shadow: 0 0 0 3px rgba(212,166,52,.12); }
.co-fields textarea { min-height: 54px; resize: vertical; }
.co-submit {
  width: 100%; border: 0; border-radius: 12px; padding: 14px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--on-gold); font-family: inherit; font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 24px rgba(212,166,52,.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(0,0,0,.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-400), var(--gold-600));
  display: grid; place-items: center; font-size: 38px;
  box-shadow: 0 10px 26px rgba(212,166,52,.4);
}
.ok-card h3 { font-size: 22px; color: var(--brand-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(--brand-700);
  background: var(--bg); border: 1px dashed var(--brand-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-600), var(--gold-300), var(--gold-500));
  box-shadow: 0 1px 8px rgba(212,166,52,.5);
  transition: width .12s linear;
}

/* زر لوحة التحكم في الهيدر */
.chip.admin-chip {
  background: rgba(255,255,255,.10);
  border-color: rgba(230,192,90,.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; }

/* ظل الهيدر اللاصق عند التمرير */
.toolbar { transition: filter .25s; }
.toolbar.scrolled .toolbar-card { box-shadow: 0 12px 34px rgba(0,0,0,.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, .hero-order-btn { 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: var(--brand-800);
  color: #fff; padding: 13px 20px; border-radius: 14px;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg);
  display: inline-block; text-align: center; line-height: 1.7;
  border: 1px solid rgba(212,166,52,.55);
  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; margin-inline-end: 7px; vertical-align: -2px; }
.note-toast.add-toast { background: linear-gradient(135deg, var(--gold-600), var(--gold-400)); color: var(--on-gold); border-color: rgba(255,255,255,.35); }
@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(--gold-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); } }

/* زر الطيّ 💬 — يظهر على الهاتف فقط (menu.js يبنيه دائماً) */
.srl-toggle {
  display: none; border: 2px solid #fff; cursor: pointer; font-family: inherit;
  background: var(--brand-800); animation: none; padding: 0;
}
.social-rail.open .srl-toggle { background: var(--gold-600); }
@media (max-width: 560px) {
  .srl { width: 44px; height: 44px; }
  .srl-ico svg { width: 22px; height: 22px; }
  .social-rail { gap: 8px; bottom: 16px; }
  /* الأيقونات الخمس/الست كانت تغطي أزرار «＋ أضف» في العمود الأيسر وشارة عدد الأصناف —
     تُطوى خلف زر واحد وتنفرد للأعلى عند الضغط */
  .srl-toggle { display: grid; }
  .social-rail:not(.open) .srl:not(.srl-toggle) { display: none; }
  /* مساحة أسفل المنيو كي يبقى آخر صف من البطاقات فوق الزرّين العائمين */
  main { padding-bottom: 120px; }
}


/* ============================================================
   نافذة خيارات الصنف — نوع التمن/المرق والإضافات
   الخيارات غير المتوفرة اليوم لا تصل إلى هنا أصلاً (يُخفيها المدير من اللوحة)
   ============================================================ */
.opt-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(0,0,0,.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: var(--brand-800);
  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(--brand-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(--brand-600); background: var(--brand-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(--brand-600); background: var(--gold-tint); }
.opt-name { flex: 1; font-size: 14.5px; font-weight: 700; }
.opt-extra { font-size: 13px; font-weight: 800; color: var(--brand-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(--gold-600), var(--gold-400));
  color: var(--on-gold); 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(--brand-800);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 9px;
}
.cr-opts b { color: var(--brand-700); }

/* ---- عدّاد الاختيارات: صنف يحتاج أكثر من نوع (مثل «2 كاسة مرق») ---- */
.opt-choice.count { justify-content: space-between; cursor: default; }
.opt-choice.on { border-color: var(--brand-600); background: var(--gold-tint); }
.opt-mark.on { border-color: var(--brand-600); background: var(--brand-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(--brand-800); }
.oq-btn {
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 19px; font-weight: 800; color: var(--brand-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(--brand-700); }
.opt-group.need .opt-g-head b:first-child::after { content: " *"; color: #c0392b; }
.opt-add:disabled { background: #d4d4d4; 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(212,166,52,.2), transparent 62%),
    radial-gradient(520px 380px at 85% 95%, rgba(212,166,52,.12), transparent 60%),
    var(--brand-900);
  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: #0b0b0b; border: 1px solid rgba(212,166,52,.5); box-shadow: 0 10px 30px rgba(0,0,0,.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(--brand-600) 78%, var(--accent-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(--accent-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(212,166,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: var(--font); font-size: 24px; font-weight: 900;
  color: var(--gold-300); letter-spacing: .5px;
}
.al-text { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.7); }
.al-bar {
  width: 190px; height: 4px; border-radius: 999px; overflow: hidden;
  background: rgba(212,166,52,.2); margin-top: 4px;
}
.al-bar span {
  display: block; width: 42%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent-500));
  animation: alSlide 1.25s ease-in-out infinite;
}
@keyframes alSlide {
  0%   { transform: translateX(-115%); }
  100% { transform: translateX(275%); }
}
@media (prefers-reduced-motion: reduce) {
  .al-ring, .al-ring.two, .al-logo, .al-glow, .al-bar span { animation: none; }
  .al-bar span { width: 100%; }
}

/* هياكل مؤقتة لبطاقات المنيو ريثما تصل البيانات (صفحة الزبون) */
.dish.skeleton { pointer-events: none; }
.sk-line, .dish.skeleton .dish-media {
  background: linear-gradient(90deg, #ececec 25%, #f7f7f7 37%, #ececec 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%; } }
@media (prefers-reduced-motion: reduce) { .sk-line, .dish.skeleton .dish-media { animation: none; } }

/* ============================================================
   زر «كيف تطلب؟» أعلى المنيو + نافذة فيديو الشرح
   ============================================================ */
.hero-top {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.howto-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.34);
  color: #fff; font-family: inherit; font-weight: 800; font-size: 14px;
  padding: 8px 15px 8px 11px; border-radius: 999px;
  backdrop-filter: blur(6px); transition: .2s;
}
.howto-btn:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
.howto-btn:active { transform: translateY(0); }
.howto-btn .ht-ico {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: var(--on-gold);
  background: var(--gold-400);
  animation: htPulse 2.6s ease-in-out infinite;
}
.howto-btn .ht-ico svg { width: 15px; height: 15px; margin-inline-start: 1px; }
@keyframes htPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,166,52,.55); }
  55% { box-shadow: 0 0 0 8px rgba(212,166,52,0); }
}
@media (max-width: 560px) { .howto-btn { font-size: 13px; padding: 7px 13px 7px 9px; } }
@media (prefers-reduced-motion: reduce) { .howto-btn .ht-ico { animation: none; } }

.howto-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,.6); backdrop-filter: blur(5px);
  display: none; place-items: center; padding: 18px;
}
.howto-overlay.show { display: grid; }
.howto-card {
  width: 100%; max-width: 480px; max-height: 92vh; overflow: hidden;
  background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: pop .24s ease;
}
.howto-head {
  display: flex; align-items: center; gap: 10px; padding: 15px 18px;
  background: var(--brand-800); color: #fff;
}
.howto-head h3 { font-size: 17px; font-weight: 800; flex: 1; }
.howto-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;
}
.howto-body { padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; }
.howto-media {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: 16px; overflow: hidden; margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.howto-media.portrait { aspect-ratio: 9 / 16; max-width: 270px; margin-inline: auto; }
.howto-media video, .howto-media iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
.howto-steps { list-style: none; counter-reset: none; }
.howto-steps li { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; font-size: 14.5px; line-height: 1.75; }
.howto-steps li + li { border-top: 1px dashed var(--line); }
.howto-steps .hs-n {
  flex: none; width: 27px; height: 27px; margin-top: 2px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 900; color: var(--gold-300);
  background: linear-gradient(135deg, var(--brand-800), #2a2a2a); border: 1px solid var(--gold-600);
}
.howto-steps b { color: var(--brand-700); }

/* ============================================================
   واتساب — اختيار التطبيق على أندرويد (واتساب / واتساب للأعمال)
   ============================================================ */
/* داخل نافذة نجاح الطلب */
.ok-wa-box { margin-top: 16px; text-align: center; }
.ok-wa-title { font-size: 13.5px; font-weight: 800; color: var(--brand-800); margin-bottom: 9px; }
.ok-wa-btns { display: grid; gap: 8px; }
.ok-wa-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 11px; border: 0; border-radius: 12px; cursor: pointer;
  background: #25d366; color: #fff; font-family: inherit; font-weight: 800; font-size: 15px;
  transition: .18s;
}
.ok-wa-btn small { font-size: 11px; font-weight: 600; opacity: .85; direction: ltr; }
.ok-wa-btn:hover { filter: brightness(1.06); }
.ok-wa-btn.w4b { background: #0a5c4a; }
.ok-wa-btn.pref { box-shadow: 0 0 0 3px var(--accent-500); }
.ok-wa-remember {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.ok-wa-pref { margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.ok-wa-pref button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 800; color: var(--brand-700); text-decoration: underline;
}

/* ورقة الاختيار العامة (أزرار واتساب في الشريط الجانبي والفوتر ولوحة التحكم) */
.wa-sheet-overlay {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: none; place-items: end center;
}
.wa-sheet-overlay.show { display: grid; }
.wa-sheet {
  width: 100%; max-width: 440px; background: var(--paper);
  border-radius: 22px 22px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg); text-align: center; animation: optUp .22s ease;
}
.wa-sheet-grip { width: 44px; height: 4px; border-radius: 999px; background: var(--line); margin: 0 auto 14px; }
.wa-sheet h3 { font-size: 17px; font-weight: 800; color: var(--brand-800); }
.wa-sheet-sub { font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.wa-app-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; margin-bottom: 9px; border: 0; border-radius: 14px; cursor: pointer;
  background: #25d366; color: #fff; font-family: inherit; text-align: start; transition: .18s;
}
.wa-app-btn.w4b { background: #0a5c4a; }
.wa-app-btn:hover { filter: brightness(1.06); }
.wa-app-ico {
  position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff;
}
.wa-app-ico svg { width: 22px; height: 22px; }
.wa-app-ico .b {
  position: absolute; inset-inline-end: -2px; bottom: -2px;
  width: 16px; height: 16px; border-radius: 5px; background: var(--accent-500); color: var(--brand-900);
  font-size: 10px; font-weight: 900; font-style: normal; display: grid; place-items: center;
}
.wa-app-btn b { display: block; font-size: 15px; font-weight: 800; }
.wa-app-btn small { display: block; font-size: 11.5px; opacity: .85; direction: ltr; }
.wa-remember {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 12px 0 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.wa-cancel {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer;
}
.ok-wa-note, .wa-sheet-note {
  margin-top: 10px; padding: 9px 11px; border-radius: 11px;
  background: #fff4e2; border: 1px solid #f3d9ad; color: var(--brand-800);
  font-size: 12.5px; font-weight: 700; line-height: 1.7; text-align: center;
}
.ok-wa-note a, .wa-web {
  color: var(--brand-700); font-weight: 800; text-decoration: underline;
}
.wa-web { display: block; margin-bottom: 10px; font-size: 12.5px; }

/* ============================================================
   فيس جكن — المكوّنات الجديدة: العروض · طريقة الاستلام · الكوبون · الموقع · الدفع · نافذة النجاح
   ============================================================ */

/* أزرار لمس مريحة (≥ 44px) */
.dish-add { min-height: 44px; }
.co-submit { min-height: 52px; border-radius: 14px; }
.opt-add { min-height: 50px; }
.cat-pill { min-height: 44px; }
.qty button { width: 40px; height: 44px; }
.cr-del { height: 44px; }
.drawer-head .x { width: 44px; height: 44px; }
@media (max-width: 560px) { .dish-add { min-height: 44px; padding: 6px 11px; } }

/* ---- 🔥 العروض ---- */
.section.offers { margin-bottom: 26px; }
.section.offers .section-head .ico { background: linear-gradient(135deg, #ff8a2b, #e8590c); color: #fff; }
.cat-pill.offers-pill { border-color: var(--gold-500); color: var(--gold-700); background: var(--gold-tint); }
.cat-pill.offers-pill.active { background: var(--gold-500); color: var(--on-gold); }
.offers-strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.offers-strip::-webkit-scrollbar { height: 6px; }
.offers-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.offer-card, .offer-banner { flex: none; scroll-snap-align: start; }
.offer-card {
  width: 156px; display: flex; flex-direction: column; gap: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 8px 10px; box-shadow: var(--shadow-sm);
}
.oc-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: radial-gradient(80% 80% at 50% 40%, #232323, #0f0f0f);
}
.oc-media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.oc-name { font-size: 13px; font-weight: 800; line-height: 1.35; min-height: 2.7em; overflow: hidden; }
.oc-prices { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.oc-prices .dp-old { font-size: 12px; }
.oc-prices .dp-new { font-size: 15px; }
.offer-card .dish-add { width: 100%; }
.offer-banner {
  width: 220px; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  background: linear-gradient(135deg, var(--brand-800), #2b2b2b);
  color: #fff; border-radius: var(--radius); padding: 14px 16px;
  border: 1px solid rgba(212,166,52,.45); box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.ob-title { font-size: 12.5px; font-weight: 700; color: var(--accent-400); }
.ob-main { font-size: 17px; font-weight: 900; line-height: 1.35; }
.ob-cond { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ob-cond span { font-size: 11px; font-weight: 700; background: rgba(255,255,255,.12); border-radius: 999px; padding: 2px 9px; }
.dish-disc-badge { background: var(--gold-500); box-shadow: 0 4px 10px rgba(212,166,52,.4); }

/* ---- طريقة الاستلام (توصيل / استلام من المطعم / صالة) ---- */
.fulfill-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.fulfill-btn {
  min-height: 48px; min-width: 0; padding: 6px 4px; border-radius: 12px; cursor: pointer; text-align: center;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-family: inherit; font-weight: 800; font-size: 12px; line-height: 1.25;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: .15s;
}
.fulfill-btn .fb-ico { font-size: 18px; line-height: 1; }
.fulfill-btn:hover { border-color: var(--orange-400); }
.fulfill-btn.active {
  background: var(--gold-500); border-color: var(--gold-500); color: var(--on-gold);
  box-shadow: 0 6px 16px rgba(212,166,52,.35);
}
.fulfill-seg.single { grid-auto-flow: row; }
.fulfill-static {
  min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--gold-tint); border: 1px solid var(--gold-line); color: var(--gold-700);
  border-radius: 12px; font-weight: 800; font-size: 14px;
}
@media (min-width: 480px) { .fulfill-btn { font-size: 13px; flex-direction: row; gap: 6px; } }

/* ---- الكوبون ---- */
.coupon-box { margin-bottom: 12px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input {
  flex: 1; min-width: 0; min-height: 46px; padding: 10px 13px;
  border: 1.5px dashed var(--orange-400); border-radius: 12px; background: #fff;
  font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: 1px; color: var(--ink);
  outline: none; text-align: center; text-transform: uppercase;
}
.coupon-row input::placeholder { letter-spacing: 0; font-weight: 600; color: var(--muted); }
.coupon-row input:focus { border-style: solid; box-shadow: 0 0 0 3px rgba(212,166,52,.12); }
.coupon-apply {
  flex: none; min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--brand-800); color: #fff; font-family: inherit; font-weight: 800; font-size: 14px;
}
.coupon-apply:active { transform: scale(.97); }
.coupon-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 46px; padding: 4px 12px; border-radius: 12px;   /* زر الإزالة 44px داخلها */
  background: #eefbf1; border: 1px solid #b9e6c4; color: #1d6b34; font-size: 13.5px; font-weight: 700;
}
.coupon-chip b { color: #0f5a28; direction: ltr; unicode-bidi: isolate; }
.coupon-remove {
  flex: none; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 9px; cursor: pointer;   /* هدف لمس ≥ 44px */
  background: #fff; border: 1px solid #b9e6c4; color: #1d6b34; font-family: inherit; font-size: 12px; font-weight: 800;
}
.coupon-msg { margin-top: 6px; font-size: 12.5px; font-weight: 700; line-height: 1.6; padding: 6px 10px; border-radius: 9px; }
.coupon-msg.ok { background: #eefbf1; color: #1d6b34; }
.coupon-msg.err { background: #fdecec; color: #b02a2a; }
.coupon-msg.info { background: #fff7e6; color: #8a5a00; }

/* سطور الإجمالي الجديدة */
.co-line.offer, .co-line.offer b { color: #1d8a3f; }
.co-line.coupon, .co-line.coupon b { color: #1d6b34; }
.co-line.coupon b[dir="ltr"] { font-size: 13px; }
.co-line.grand span { font-weight: 800; }
.co-line.grand b { color: var(--gold-700); }

/* ---- الموقع (اختياري) ---- */
.loc-row { margin-top: 8px; }
.loc-btn {
  width: 100%; min-height: 44px; border-radius: 11px; cursor: pointer;
  border: 1.5px dashed var(--gold-400); background: #fdfaf0; color: var(--gold-700);
  font-family: inherit; font-weight: 800; font-size: 13.5px; transition: .15s;
}
.loc-btn:hover { background: var(--gold-tint); }
.loc-btn:disabled { opacity: .7; cursor: wait; }
.loc-status {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 4px 12px; border-radius: 11px;   /* زر الإزالة 44px داخلها */
  background: #eefbf1; border: 1px solid #b9e6c4; color: #1d6b34; font-size: 13.5px; font-weight: 800;
}
.loc-clear {
  min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 8px; cursor: pointer;   /* هدف لمس ≥ 44px */
  background: #fff; border: 1px solid #b9e6c4; color: #1d6b34; font-family: inherit; font-size: 12px; font-weight: 800;
}

/* ---- الاستلام من المطعم ---- */
.pickup-note {
  background: var(--gold-tint); border: 1px solid var(--gold-line); color: var(--ink);
  font-size: 13.5px; font-weight: 700; line-height: 1.7; border-radius: 12px;
  padding: 11px 13px; margin-bottom: 10px;
}
.pickup-note b { color: var(--gold-700); }

/* ---- طريقة الدفع ---- */
.pay-wrap { margin: 4px 0 12px; }
.pay-title { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.pay-static {
  min-height: 44px; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 8px 13px;
  font-size: 14px; font-weight: 800; color: var(--ink);
}
.pay-list { display: grid; gap: 6px; }
.pay-opt {
  display: flex; align-items: center; gap: 10px; min-height: 46px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 11px; padding: 8px 13px;
  font-size: 14px; font-weight: 800; transition: .15s;
}
.pay-opt input { accent-color: var(--orange-500); width: 18px; height: 18px; margin: 0; }
.pay-opt.on { border-color: var(--orange-500); background: var(--gold-tint); }
.po-ico { font-size: 18px; }

/* ---- نافذة النجاح: التحويل إلى واتساب + العودة إلى المنيو ---- */
.ok-wa-auto {
  margin-top: 14px; padding: 12px; border-radius: 14px;
  background: #eefbf1; border: 1px solid #b9e6c4;
}
.ok-wa-auto-txt { font-size: 13.5px; font-weight: 800; color: #1d6b34; line-height: 1.6; }
.ok-wa-again {
  width: 100%; min-height: 44px; margin-top: 8px; border: 0; border-radius: 11px; cursor: pointer;
  background: #25d366; color: #fff; font-family: inherit; font-weight: 800; font-size: 14px;
}
.ok-close.ok-return {
  min-height: 54px; margin-top: 14px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--on-gold);
  font-weight: 900; font-size: 17px; box-shadow: 0 10px 24px rgba(212,166,52,.35); cursor: pointer;
}
.ok-close.ok-return:active { transform: scale(.98); }

/* ---- الفوتر: رقم الشكاوى والملاحظات ---- */
.foot-complaints {
  margin: -6px 0 20px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  font-size: 14px; font-weight: 700; color: #fff;
}
.foot-complaints a { color: var(--gold-400); font-weight: 900; unicode-bidi: isolate; }

/* شارة طريقة الاستلام في بطاقة التتبّع */
.track-method { font-size: 11px; font-weight: 700; color: var(--muted); margin-inline-start: 6px; }

/* أجور التوصيل المشطوبة حين تكون مجانية */
.co-line.del s { color: var(--muted); font-size: 12px; font-weight: 700; margin-inline-end: 4px; }

/* الواتساب الثاني — أخضر داكن لتمييزه عن الأول */
.srl.whatsapp2 { background: #128c7e; }
.foot-soc.whatsapp2 { background: #128c7e; }

/* ============================================================
   أتروشي — مبدّل اللغة (عربي · کوردی · English) + لمسات الذهب
   ============================================================ */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(212,166,52,.45);
}
.lang-btn {
  min-height: 36px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; font-family: var(--font); font-weight: 800; font-size: 13px;
  transition: background .18s, color .18s, transform .18s; white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,.14); }
.lang-btn.on { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--on-gold); }
.lang-btn:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }
/* داخل شريط الأدوات الأبيض */
.toolbar .lang-switch { background: var(--bg); border-color: var(--line); }
.toolbar .lang-btn { color: var(--brand-800); min-height: 40px; min-width: 40px; padding: 0 9px; font-size: 12.5px; }
.toolbar .lang-btn:hover { background: #fff; }
.toolbar .lang-btn.on { color: var(--on-gold); }
/* في الفوتر */
.foot-links .lang-switch { background: rgba(255,255,255,.08); }
/* في شاشة الافتتاح — أعلى الشاشة، أول ما يراه الزبون */
.intro-lang {
  position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 4;
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(0,0,0,.45); border: 1px solid rgba(212,166,52,.55); backdrop-filter: blur(8px);
  opacity: 0; animation: introFade .8s .3s ease forwards;
}
.intro-lang .lang-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.intro-lang .lang-btn.on { box-shadow: 0 6px 18px rgba(212,166,52,.45); }
@media (max-width: 380px) { .intro-lang .lang-btn { padding: 0 11px; font-size: 13px; } }

/* زخرفة ذهبية خفيفة أعلى الهيدر */
.hero-ornament {
  position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--gold-300), var(--gold-500), transparent);
  opacity: .9;
}
/* عناوين الأقسام: خط ذهبي رفيع تحت العنوان */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: ""; display: block; height: 2px; width: 38px; margin-top: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}
/* بطاقات الأطباق: إطار ذهبي خفيف عند المرور */
.dish:hover { border-color: var(--gold-line); }
.dish-price, .dp-new { color: var(--gold-700); }
.price .num { color: var(--gold-700); }
/* المسار الزمني للطلب */
.tp-node.done, .tp-node.active, .tp-line.done { background: var(--gold-600); }
.tn-label { color: var(--gold-700); }
/* الإنجليزية: تباعد حروف مناسب في العناوين */
[dir="ltr"] .intro-kicker { letter-spacing: 5px; }
[dir="ltr"] .brand-text h1 { letter-spacing: -.3px; }
/* الشعار العريض في شاشة الافتتاح لا يحتاج الحلقة القديمة */
.intro-logo .ring { display: none; }
/* الهيدر: السطر العلوي على الهاتف — زر «كيف تطلب؟» ومبدّل اللغة جنباً إلى جنب */
.hero-top:empty { display: none; }
/* حالة تركيز لوحة المفاتيح على الأزرار الرئيسية */
.dish-add:focus-visible, .hero-order-btn:focus-visible, .intro-btn:focus-visible, .co-submit:focus-visible,
.cat-pill:focus-visible, .fulfill-btn:focus-visible, .cart-fab:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
