/* ==========================================================================
   العز للعود — نظام التصميم
   أبيض الشعار خلفيةً · حبر الشعار نصّاً — لا لون ثالث
   ========================================================================== */

:root {
  /* ── مأخوذة حرفياً من ملف الشعار ── */
  --logo-ink: #001220;      /* حبر الشعار */
  --logo-bg:  #FFFFFF;      /* خلفية الشعار */

  /* ── السلّم: مزج خطّي بين اللونين أعلاه، ولا شيء غيرهما ── */
  --paper:    #FFFFFF;      /* الخلفية */
  --mist:     #F5F6F6;      /* مزج ٩٦٪ — أسطح خفيفة */
  --line:     #E0E3E5;      /* مزج ٨٨٪ — الحدود الشعرية */
  --muted:    #667179;      /* مزج ٤٠٪ — نص ثانوي (AA على الورق والضباب) */
  --ink-soft: #384651;      /* مزج ٢٢٪ — نص مساعد */
  --ink:      #001220;      /* الحبر — النص والأزرار */

  /* ── اللون الثالث: نحاس العود. لهجة لا هوية — حدّه ٥٪ من المساحة ──
     لا توجد درجة واحدة تصلح للورق والحبر معاً، فاثنتان:
     gold على الأبيض 5.29:1 (AA) · gold-bright على الحبر 9.44:1 (AAA) */
  --gold:        #8A6524;   /* نص وأيقونات على الورق */
  --gold-mid:    #B4894A;   /* تعبئات وعناصر كبيرة */
  --gold-bright: #D4B36A;   /* فوق الكتل الحبرية */

  /* لونان وظيفيان لا هوية: السعر القديم وشارة التوصيل */
  --danger: #B3261E;   /* 6.54:1 على الورق */
  --ship:      #0F6B3C;   /* 6.59:1 على الورق */
  --ship-deep: #0B5233;   /* تعبئة صلبة فوق الصور — الأبيض عليها 9.26:1 */

  --nav-h: 76px;
  --shadow-sm: 0 1px 2px rgba(0, 18, 32, .05);
  --shadow-md: 0 2px 6px rgba(0, 18, 32, .06), 0 16px 32px -22px rgba(0, 18, 32, .30);
  --shadow-lg: 0 8px 20px rgba(0, 18, 32, .08), 0 32px 64px -34px rgba(0, 18, 32, .40);
}

* { -webkit-tap-highlight-color: transparent; }

/* لا يجوز لأي قاعدة display أن تهزم خاصية hidden */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body { background: var(--paper); color: var(--ink); }

::selection { background: var(--ink); color: var(--paper); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: rgba(0, 18, 32, .22); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 18, 32, .40); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ── الشريط العلوي وشريط التنقل ─────────────────────────────────────────── */
.delivery-bar {
  position: relative; z-index: 45;
  background: var(--ink); color: var(--paper);
}

.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-nav.is-scrolled { background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-sm); }

.nav-link {
  display: inline-block; padding: .55rem .85rem; border-radius: .5rem;
  font-size: .95rem; color: var(--ink-soft);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--gold); background: var(--mist); }
.nav-link--accent { color: var(--ink); border: 1px solid var(--ink); }
.nav-link--accent:hover { background: var(--ink); color: var(--paper); }

/* قائمة الجوال */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: rgba(0, 18, 32, .35); backdrop-filter: blur(4px); }
.mobile-menu__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(88vw, 340px);
  background: var(--paper); border-inline-start: 1px solid var(--line);
  padding: 1.5rem; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slide-in .28s ease;
}
.mobile-link {
  display: block; padding: .8rem .6rem; border-radius: .6rem;
  color: var(--ink-soft); border-bottom: 1px solid var(--line);
}
.mobile-link:hover { color: var(--ink); background: var(--mist); }

@keyframes slide-in { from { transform: translateX(-100%); opacity: .4; } to { transform: none; opacity: 1; } }

/* ── الأزرار ───────────────────────────────────────────────────────────── */
.btn-brand, .btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.6rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-brand {
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-brand:disabled { opacity: .35; cursor: not-allowed; transform: none; }

.btn-outline { color: var(--ink); border: 1px solid rgba(0, 18, 32, .25); background: var(--paper); }
.btn-outline:hover { border-color: var(--ink); background: var(--mist); }

/* ── السلايدر ──────────────────────────────────────────────────────────── */
/* نسبة ثابتة: الصورة هي المحتوى كله، فلا تُقصّ عشوائياً */
.hero {
  position: relative; overflow: hidden; background: var(--paper);
  aspect-ratio: 16 / 7; min-height: 300px; max-height: 76vh;
}
@media (max-width: 640px) { .hero { aspect-ratio: 4 / 3; min-height: 260px; } }
.hero__slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .9s ease;
  background-image: var(--slide-image, none);
  background-size: cover; background-position: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide.is-active .hero-slide__content > * { animation: rise .8s ease both; }
.hero-slide.is-active .hero-title { animation-delay: .1s; }
.hero-slide.is-active .hero-sub { animation-delay: .2s; }

.hero-slide__content { position: relative; width: 100%; max-width: 80rem; margin-inline: auto; padding: 4rem 1rem; }
@media (min-width: 1024px) { .hero-slide__content { padding-inline: 2rem; } }

.hero-badge {
  display: inline-block; padding: .4rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: var(--gold-bright);
  font-size: .78rem; font-weight: 500; letter-spacing: .04em;
}
.hero-title {
  margin-top: 1.2rem; max-width: 18ch; color: var(--ink);
  font-family: Amiri, serif; font-weight: 700; line-height: 1.06;
  font-size: clamp(2.7rem, 6.6vw, 5rem); letter-spacing: -.01em;
}
.hero-sub { margin-top: 1.2rem; max-width: 46ch; font-size: clamp(1.02rem, 2vw, 1.18rem); line-height: 1.95; color: var(--ink-soft); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__nav {
  position: absolute; inset-block-end: 2rem; inset-inline-start: 50%;
  transform: translateX(50%); display: flex; align-items: center; gap: 1rem; z-index: 2;
}
.hero__nav > button {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; font-size: 1.5rem; line-height: 1;
  color: var(--ink); border: 1px solid var(--line); background: rgba(255, 255, 255, .9);
}
.hero__nav > button:hover { border-color: var(--ink); }
.hero__dots { display: flex; gap: .5rem; }
.hero__dots button { width: 2rem; height: 3px; border-radius: 999px; background: rgba(0, 18, 32, .20); transition: background .3s; }
.hero__dots button.is-active { background: var(--ink); }

/* ── شريط الثقة ────────────────────────────────────────────────────────── */
.trust-strip { border-block: 1px solid var(--line); background: var(--line); }
.trust-cell { display: flex; align-items: center; gap: .9rem; padding: 1.35rem 1rem; background: var(--paper); }
.trust-cell__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 999px;
  background: var(--ink); color: var(--gold-bright); font-size: 1.05rem;
}

/* ── الأقسام العامة ────────────────────────────────────────────────────── */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--mist); border-block: 1px solid var(--line); }

.page-head { padding-top: 3rem; padding-bottom: 1rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }

.section-title {
  position: relative; font-family: Amiri, serif; line-height: 1.25;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700;
  color: var(--ink); padding-inline-start: 1.35rem;
}
.section-title::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block: .32rem .38rem;
  width: 6px; border-radius: 2px; background: var(--gold-mid);
}
.section-sub { max-width: 60ch; color: var(--muted); line-height: 1.9; }

.prose-ar { color: var(--ink-soft); line-height: 2.05; font-size: 1rem; max-width: 62ch; }
.prose-ar p + p { margin-top: 1rem; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; border-radius: 999px; font-size: .85rem;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--paper); transition: all .2s;
}
.chip:hover { border-color: var(--gold); background: var(--gold); color: var(--paper); }

/* ── بطاقة المنتج ──────────────────────────────────────────────────────── */
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 1rem; background: var(--paper);
  transition: border-color .3s ease, transform .3s ease, box-shadow .35s ease;
}
.product-card { box-shadow: var(--shadow-sm); }
.product-card:hover { border-color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card__media {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: var(--mist); border-bottom: 1px solid var(--line); overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.15rem 1.3rem; }
.product-card__tags { position: absolute; inset-block-start: .7rem; inset-inline-start: .7rem; display: grid; gap: .35rem; justify-items: start; }

.bottle-art { width: 62%; max-height: 90%; }

.tag { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .7rem; border: 1px solid; }
.tag--out { color: var(--muted); border-color: var(--line); background: var(--mist); }

.add-btn {
  padding: .5rem .95rem; border-radius: 999px; font-size: .85rem; white-space: nowrap;
  color: var(--ink); border: 1px solid rgba(0, 18, 32, .25); background: var(--paper); transition: all .2s ease;
}
.add-btn:hover:not(:disabled) { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.add-btn:disabled { opacity: .35; cursor: not-allowed; }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


/* ── التقييمات ─────────────────────────────────────────────────────────── */
.review-card { padding: 1.4rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--paper); transition: box-shadow .3s ease, border-color .3s ease; }
.review-card:hover { border-color: rgba(0, 18, 32, .3); box-shadow: var(--shadow-sm); }
.review-avatar {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px;
  font-family: Amiri, serif; font-size: 1.15rem; color: var(--gold-bright); background: var(--ink);
}
.rating-badge { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.4rem; border-radius: 1rem; background: var(--ink); color: var(--paper); }

.star-picker { display: inline-flex; flex-direction: row-reverse; gap: .25rem; }
.star-picker input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-picker label { font-size: 1.9rem; line-height: 1; color: rgba(0, 18, 32, .18); cursor: pointer; transition: color .15s; }
.star-picker input:checked ~ label, .star-picker label:hover, .star-picker label:hover ~ label { color: var(--gold); }

.contact-line { display: block; padding: .85rem 1.1rem; border-radius: .75rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); transition: all .2s; }
.contact-line:hover { border-color: var(--ink); color: var(--ink); }

/* ── النماذج ───────────────────────────────────────────────────────────── */
form label { display: block; margin-bottom: .45rem; font-size: .85rem; color: var(--muted); }
input[type="text"], input[type="search"], input[type="email"], input[type="tel"],
input[type="number"], input[type="url"], input[type="password"], select, textarea {
  width: 100%; padding: .8rem 1rem; border-radius: .6rem; font-family: inherit; font-size: .95rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 18, 32, .10); }
input::placeholder, textarea::placeholder { color: rgba(0, 18, 32, .38); }
select option { background: var(--paper); color: var(--ink); }
.errorlist { margin-top: .4rem; padding: 0; list-style: none; color: var(--ink); font-size: .8rem; font-weight: 500; }
.errorlist li { border-inline-start: 3px solid var(--ink); padding-inline-start: .5rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--mist); }
.filter-bar__search { flex: 1 1 16rem; }
.filter-bar__select { flex: 0 1 12rem; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 3rem; font-size: .9rem; }
.pagination a { padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.pagination a:hover { border-color: var(--ink); background: var(--mist); }
.pagination__current { color: var(--muted); }

/* ── صفحة المنتج ───────────────────────────────────────────────────────── */
.detail-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden;
  border: 1px solid var(--line); border-radius: 1.5rem; background: var(--mist);
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .bottle-art { width: min(60%, 320px); }


/* ── السلة ─────────────────────────────────────────────────────────────── */
.cart-drawer { position: fixed; inset: 0; z-index: 70; }
.cart-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 18, 32, .35); backdrop-filter: blur(4px); }
.cart-drawer__panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; display: flex; flex-direction: column;
  width: min(92vw, 420px); background: var(--paper);
  border-inline-end: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: drawer-in .3s ease;
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
[dir="rtl"] .cart-drawer__panel { animation-name: drawer-in-rtl; }
@keyframes drawer-in-rtl { from { transform: translateX(-100%); } to { transform: none; } }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-drawer__empty { flex: 1; display: grid; align-content: center; padding: 2rem; text-align: center; }
.cart-drawer__footer { border-top: 1px solid var(--line); background: var(--mist); padding: 1.25rem; }

.cart-line { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cart-line__thumb {
  display: grid; place-items: center; width: 4.2rem; height: 4.2rem; flex-shrink: 0; overflow: hidden;
  border-radius: .7rem; border: 1px solid var(--line); background: var(--mist);
}
.cart-line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__thumb .bottle-art { width: 70%; }

.cart-row { display: flex; gap: 1.2rem; padding: 1.2rem; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.cart-row__thumb { display: grid; place-items: center; width: 6rem; height: 6rem; flex-shrink: 0; overflow: hidden; border-radius: .8rem; border: 1px solid var(--line); background: var(--mist); }
.cart-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row__thumb .bottle-art { width: 72%; }

.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-box button { width: 2rem; height: 2rem; color: var(--ink); font-size: 1.05rem; line-height: 1; transition: background .2s; }
.qty-box button:hover { background: var(--mist); }
.qty-box span { min-width: 2.2rem; text-align: center; font-size: .9rem; color: var(--ink); }
.qty-box--lg button { width: 2.6rem; height: 2.8rem; font-size: 1.2rem; }
.qty-box--lg span { min-width: 3rem; font-size: 1rem; }

.summary-card { align-self: start; position: sticky; top: calc(var(--nav-h) + 1.5rem); padding: 1.6rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--mist); }

.success-seal {
  display: grid; place-items: center; width: 5rem; height: 5rem; margin-inline: auto; border-radius: 999px;
  font-size: 2.2rem; color: var(--paper); background: var(--gold); box-shadow: var(--shadow-md);
}

/* ── الإشعارات ─────────────────────────────────────────────────────────── */
.toast-host { position: fixed; inset-block-end: 1.5rem; inset-inline-start: 1.5rem; z-index: 80; display: grid; gap: .6rem; }
.toast {
  padding: .85rem 1.2rem; border-radius: .8rem; font-size: .9rem; color: var(--ink);
  border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-md); animation: toast-in .3s ease;
}
/* لا يوجد أحمر في الهوية، فالتمييز بالقلب لا بالدرجة */
.toast--error { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 500; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.flash { padding: .9rem 1.2rem; margin-bottom: .75rem; border-radius: .8rem; font-size: .92rem; border: 1px solid var(--line); background: var(--mist); color: var(--ink); }
.flash--success { border-inline-start: 4px solid var(--ink); background: var(--mist); }
.flash--error { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 500; }

.whatsapp-fab {
  position: fixed; inset-block-end: 1.4rem; inset-inline-end: 1.4rem; z-index: 60;
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 999px;
  color: var(--paper); background: var(--ink); box-shadow: var(--shadow-md); transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.07); }

/* ── تقليل الحركة ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .hero { min-height: 74vh; }
  .toast-host { inset-inline: 1rem; }
}


/* ══ كتل حبرية مصمتة: هي ما يعطي الصفحة إيقاعها ══════════════════════════ */
.on-ink { background: var(--ink); color: var(--paper); }
.on-ink .section-title { color: var(--paper); }
.on-ink .section-title::before { background: var(--gold-bright); }
.on-ink .section-sub { color: rgba(255, 255, 255, .62); }
.on-ink .prose-ar { color: rgba(255, 255, 255, .82); }
.on-ink .info-row { border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .82); }
.on-ink .info-row__key { color: rgba(255, 255, 255, .5); }
.on-ink .gov-chip { border-color: rgba(255, 255, 255, .22); background: transparent; color: rgba(255, 255, 255, .78); }
.on-ink .btn-outline { color: var(--paper); border-color: rgba(255, 255, 255, .35); background: transparent; }
.on-ink .btn-outline:hover { background: rgba(255, 255, 255, .10); border-color: var(--paper); }
.on-ink .btn-brand { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* قسم «رؤيتنا» بوصفه لحظة تحرير مستقلة */
#vision.on-ink .section-title { padding-inline-start: 0; font-size: clamp(2.3rem, 5vw, 3.6rem); }
#vision.on-ink .section-title::before { content: none; }
#vision.on-ink .prose-ar { max-width: none; font-size: 1.12rem; line-height: 2.15; }

/* ══ زخرفة السلايدر: قرص حبري يملأ الفراغ الأبيض ═════════════════════════ */
.hero-ornament {
  position: absolute; inset-block: 0; inset-inline-end: 3%;
  display: none; place-items: center; width: min(40vw, 440px); z-index: 0;
  pointer-events: none;
}
.hero-ornament svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 18, 32, .28)); }
.hero__slides { z-index: 1; }
@media (min-width: 1024px) {
  .hero-ornament { display: grid; }
  /* حجز النصف المقابل للنص حتى لا يمرّ فوق القرص */
  .hero-slide__content { padding-inline-end: min(46%, 520px); }
  .hero-title { max-width: 14ch; }
  .hero-sub { max-width: 34ch; }
}

/* ══ فاصل زخرفي بين الأقسام ══════════════════════════════════════════════ */
.rule-diamond { display: flex; align-items: center; gap: 1rem; margin-block: 2.5rem; }
.rule-diamond::before, .rule-diamond::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule-diamond span { width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold-mid); }


/* ══ لهجة النحاس: تفاصيل صغيرة متكرّرة، لا مساحات ══════════════════════ */
.price { color: var(--gold); }                       /* 5.29:1 على الورق */
.on-ink .price { color: var(--gold-bright); }        /* 9.44:1 على الحبر */

.stars { color: var(--gold); letter-spacing: .08em; }
.stars--empty { color: rgba(138, 101, 36, .26); }
.on-ink .stars { color: var(--gold-bright); }

/* خيط نحاسي رفيع أعلى بطاقة المنتج يظهر عند المرور */
.product-card__media::after {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: var(--gold-mid); transform: scaleX(0); transform-origin: inline-start;
  transition: transform .35s ease;
}
.product-card:hover .product-card__media::after { transform: scaleX(1); }

/* شارة التقييم: كانت حبراً على حبر — غير مرئية */
.rating-badge .rating-badge__score { color: var(--gold-bright); }
.rating-badge .stars { color: var(--gold-bright); }
.rating-badge__meta { color: rgba(255, 255, 255, .68); }

/* ══ السعر القديم وشارة العرض (بلا كلمة «خصم») ═══════════════════════════ */
.offer-line {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  font-size: .88rem; color: var(--ink-soft);
}
.cart-free {
  display: inline-block; margin-top: .25rem; padding: .1rem .5rem; border-radius: 999px;
  font-size: .7rem; color: var(--gold); border: 1px solid var(--gold); background: rgba(180, 137, 74, .12);
}



/* حالة السلسلة الفارغة — تظهر للإدارة وحدها */
.series__empty {
  padding: 2.5rem 1.5rem; text-align: center;
  border: 1px dashed var(--gold-mid); border-radius: 1rem; background: var(--paper);
}
.series__empty code {
  display: inline-block; padding: .15rem .5rem; border-radius: .35rem;
  background: var(--mist); border: 1px solid var(--line);
  font-family: ui-monospace, monospace; font-size: .78rem; color: var(--ink); direction: ltr;
}

/* ══ طيران المنتج إلى السلة ══════════════════════════════════════════════ */
.fly-ghost {
  position: fixed; z-index: 90; margin: 0; pointer-events: none;
  object-fit: cover; border-radius: .8rem;
  box-shadow: 0 18px 40px -18px rgba(0, 18, 32, .45);
  will-change: transform, opacity;
}

/* نبضة شارة السلة عند وصول القطعة */
[data-cart-open].is-bumped { animation: cart-bump .45s cubic-bezier(.34, 1.56, .64, 1); }
[data-cart-open].is-bumped [data-cart-count] {
  animation: badge-pop .45s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes cart-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.10); }
  100% { transform: scale(1); }
}
@keyframes badge-pop {
  0%   { transform: scale(1); background: var(--ink); }
  45%  { transform: scale(1.45); background: var(--gold); }
  100% { transform: scale(1); background: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .fly-ghost { display: none; }
  [data-cart-open].is-bumped, [data-cart-open].is-bumped [data-cart-count] { animation: none; }
}

/* ══ شبكة أمان: لو سقط Tailwind لا تنهار الصفحة بصمت ════════════════════ */
.build-warning {
  margin: 1rem auto; max-width: 80rem; padding: .9rem 1.2rem;
  border: 1px solid var(--gold); border-inline-start: 5px solid var(--gold);
  border-radius: .7rem; background: rgba(180, 137, 74, .12);
  font-size: .88rem; line-height: 1.9; color: var(--ink);
}
.build-warning code {
  padding: .1rem .4rem; border-radius: .3rem; background: var(--paper);
  border: 1px solid var(--line); font-family: ui-monospace, monospace;
  font-size: .8rem; direction: ltr; display: inline-block;
}

/* أي أيقونة بلا مقاس من Tailwind تبقى محدودة بدل أن تنفخ لعرض الحاوية */
.site-nav svg, .delivery-bar svg, .cart-drawer svg, .whatsapp-fab svg { max-width: 2rem; max-height: 2rem; }
.site-nav img, .delivery-bar img { max-width: 3rem; max-height: 3rem; }

html.no-tailwind[data-staff] body::before {
  content: "Tailwind لم يُحمَّل — افتح Console. الحل: TAILWIND_BUILD=False في .env، أو npm run build";
  display: block; padding: .9rem 1.2rem; text-align: center;
  background: var(--ink); color: var(--gold-bright); font-size: .85rem;
  position: sticky; top: 0; z-index: 100;
}


/* ══ الشريط العلوي: قفل العلامة ══════════════════════════════════════════ */
.brand-bar { display: grid; place-items: center; gap: .1rem; padding: .7rem 1rem; text-align: center; }
.brand-bar__lockup {
  display: inline-flex; align-items: center; gap: .45rem;
  direction: ltr;   /* الترتيب في الشيفرة Hersh ثم التاج ثم Alezz — بلا هذا ينعكس في RTL */
  font-family: Amiri, serif; font-size: 1.5rem; font-weight: 700;
  letter-spacing: .02em; line-height: 1; color: var(--paper);
}
.brand-bar__crown { color: var(--ink); filter: drop-shadow(0 0 1px rgba(255,255,255,.85)); flex-shrink: 0; }
.brand-bar__sub { font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .92); letter-spacing: .01em; }

/* ══ السعر: القديم والجديد بنفس الحجم، القديم أحمر ══════════════════════ */
/* الحجم يُضبط هنا وحده — لا أصناف حجم في القوالب حتى لا يفترق السعران */
.price-row { display: flex; align-items: baseline; gap: .45rem; flex-wrap: nowrap; }
.price-row .price,
.price-row .old-price {
  font-family: Amiri, serif; font-weight: 700; font-size: 1.12rem; line-height: 1; white-space: nowrap;
}
.price-row--lg .price,
.price-row--lg .old-price { font-size: 1.65rem; }
.price-row__currency { font-size: .72rem; color: var(--muted); }

/* ذيل البطاقة رأسي دائماً: السطر الواحد لا يتّسع في الشبكة الرباعية،
   والالتفاف المشروط كان يجعل البطاقات غير متساوية حسب وجود سعر قديم */
.card-foot { display: grid; gap: .7rem; margin-top: 1rem; }
.card-foot .price-row { min-width: 0; }
.card-foot .add-btn { width: 100%; text-align: center; }
.old-price { color: var(--danger); text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* ══ شريط الأقسام ═══════════════════════════════════════════════════════ */
.collections { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.chip.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip--sm { padding: .35rem .8rem; font-size: .8rem; }
.collections__compass {
  display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  padding: .3rem .6rem .3rem .3rem; border-radius: 999px;
  border: 1px dashed var(--gold-mid); background: rgba(180, 137, 74, .07);
}
.collections__label { font-size: .78rem; color: var(--gold); padding-inline-start: .4rem; }

/* ══ لوحة إرسال الطلب عبر واتساب ════════════════════════════════════════ */
.wa-panel {
  margin-top: 2rem; padding: 1.5rem; border-radius: 1rem;
  border: 1px solid var(--gold-mid); background: rgba(180, 137, 74, .08);
}
.wa-panel__lead { font-size: .95rem; line-height: 1.9; color: var(--ink); }
.wa-panel button { color: var(--gold); }

/* ══ سلسلة هيرش: عنوان علوي ═════════════════════════════════════════════ */
.series__eyebrow { margin-bottom: .5rem; font-family: Amiri, serif; font-size: 1.05rem; letter-spacing: .3em; color: var(--gold); }
.series__empty { padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed var(--gold-mid); border-radius: 1rem; background: var(--paper); }
.series__empty code {
  display: inline-block; padding: .15rem .5rem; border-radius: .35rem;
  background: var(--mist); border: 1px solid var(--line);
  font-family: ui-monospace, monospace; font-size: .78rem; color: var(--ink); direction: ltr;
}


/* ══ شارة التوصيل المجاني ════════════════════════════════════════════════ */
.free-ship {
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
  padding: .24rem .62rem; border-radius: 999px;
  font-size: .72rem; font-weight: 500; line-height: 1.5; white-space: nowrap;
  color: var(--ship); border: 1px solid rgba(21, 127, 76, .30); background: rgba(21, 127, 76, .09);
}
.free-ship svg { flex-shrink: 0; }
.free-ship--lg { font-size: .84rem; padding: .34rem .8rem; }

/* فوق صورة المنتج: تعبئة صلبة لا شفافة — الصورة خلفها غير معلومة */
.free-ship--on-media {
  color: var(--paper); background: var(--ship-deep); border-color: var(--ship-deep);
  box-shadow: 0 2px 8px rgba(0, 18, 32, .25);
}

/* ══ أزرار مواقع التواصل ════════════════════════════════════════════════ */
.social { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.social__btn {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px;
  color: var(--ink); border: 1px solid rgba(0, 18, 32, .22); background: var(--paper);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.social__btn:hover {
  color: var(--paper); background: var(--ink); border-color: var(--ink); transform: translateY(-2px);
}
.social--sm .social__btn { width: 2.2rem; height: 2.2rem; }
.social--sm .social__btn svg { width: 17px; height: 17px; }

/* داخل الكتل الحبرية: مقلوبة */
.on-ink .social__btn { color: var(--paper); border-color: rgba(255, 255, 255, .28); background: transparent; }
.on-ink .social__btn:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }

/* ══ منع التمدّد الأفقي على الجوال ══ */
html, body { max-width: 100%; overflow-x: hidden; }
@media (max-width: 1023px) {
  .hero-ornament { display: none !important; }
}
img, svg, video { max-width: 100%; }

/* ══ السلايدر على الجوال: الصورة كاملة بلا قصّ ══ */
@media (max-width: 767px) {
  .hero { aspect-ratio: 4 / 3; min-height: 0; }
  .hero-slide {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
}
