/* السراي للمفروشات — ورقة نمط واحدة (≤ 60 ك.ب، W-10: لا Tailwind ولا إطار).
   لوحة دافئة محايدة + لون تمييز واحد؛ الواجهة الأمامية (Landing) سينمائية
   بلمسات خفيفة؛ المتجر وما بعده بسيط وواضح للفئة 40-70 (§7). خط عربي نظامي
   فقط — لا خطوط جوجل (التكليف). RTL أساسًا. */

:root {
  --bg: #faf7f2;
  --bg-deep: #17130f;
  --bg-deep-2: #241d16;
  --panel: #ffffff;
  --panel-2: #f2ece2;
  --ink: #241e1a;
  --ink-soft: #6c6058;
  --on-deep: #f6efe4;
  --on-deep-soft: #cdbfae;
  --line: #e6ddcf;
  --line-deep: #4a3f33;
  --accent: #b5652e;
  --accent-deep: #8c4c21;
  --accent-soft: #f4e3d1;
  /* نصّ التمييز فوق الخلفية العميقة (الفوتر/بطل الرئيسية) — أفتح من --accent
     كي يبقى فوق 4.5:1 هناك (اللون الأساسي 4.28:1 فقط على bg-deep) */
  --accent-on-dark: #e7a165;
  /* أُغمق من القيمة الأولى — «أبيض على accent» كان 4.32:1 فقط (WCAG يطلب 4.5) */
  --ok: #256b41;
  --ok-bg: #e4f3e9;
  --danger: #b3352c;
  --danger-bg: #fbe7e4;
  --focus: #1957c2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 14px rgba(23, 19, 16, 0.08);
  --shadow-pop: 0 8px 24px rgba(23, 19, 16, 0.14);
  --trans: 0.18s ease;
  --font: "Segoe UI", Tahoma, Arial, "Noto Naskh Arabic", "Noto Sans Arabic", sans-serif;
  --header-h: 68px;
  --bottom-nav-h: 66px;
  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding-inline-start: 1.2em; }
button { font-family: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; right: 12px; top: -60px; background: var(--accent-deep);
  color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); z-index: 100;
  transition: top var(--trans);
}
.skip-link:focus { top: 12px; }

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

/* ── القشرة: الرأس والفوتر والشريط السفلي ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40; background: var(--panel);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.site-header-inner {
  max-width: var(--container-w); margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 20px; padding: 0 16px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.05rem; color: var(--ink); flex-shrink: 0; }
.site-logo img { width: 36px; height: 36px; border-radius: 50%; }
.site-nav { display: none; gap: 22px; margin-inline-start: 8px; }
.site-nav a { text-decoration: none; font-weight: 600; padding: 8px 4px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent-deep); }
.site-header-cart { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); min-height: 48px; }
.site-header-cart:hover { border-color: var(--accent); color: var(--accent-deep); }

.site-footer { background: var(--bg-deep); color: var(--on-deep); margin-top: 48px; }
.site-footer-inner { max-width: var(--container-w); margin: 0 auto; padding: 32px 16px calc(32px + var(--bottom-nav-h)); text-align: center; }
.site-footer p { margin: 0 0 8px; color: var(--on-deep-soft); }
.site-footer-note { font-weight: 700; color: var(--on-deep); }
.site-footer nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.site-footer nav a { color: var(--on-deep); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--accent-on-dark); }

.bottom-nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50; display: flex;
  background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -2px 14px rgba(23,19,16,.10);
  height: var(--bottom-nav-h);
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none; color: var(--ink-soft); font-size: 0.78rem; font-weight: 600;
  min-height: 48px;
}
.bottom-nav-item.is-active { color: var(--accent-deep); }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .bottom-nav { display: none; }
  .site-footer-inner { padding-bottom: 32px; }
}
@media (max-width: 767px) {
  body { padding-bottom: var(--bottom-nav-h); }
}

/* ── تخطيط عام ─────────────────────────────────────────────────────────── */
/* توسيط كل كتلة مباشرة تحت main: قواعد المكوّنات تضبط الهوامش الرأسية بـmargin-block لا بالاختصار margin
   (الاختصار يصفّر الهامش الأفقي فيزحف العنصر إلى حافة البداية — انزياح اليمين الذي رآه المالك في /shop). */
.container, main > * { max-width: var(--container-w); margin-inline: auto; padding-inline: 16px; }
main { display: block; padding-top: 20px; }
.page-title { font-size: 1.6rem; }
.page-subtitle { color: var(--ink-soft); font-size: 1.05rem; }
.section-title { font-size: 1.3rem; margin-bottom: 16px; }
.empty-note { color: var(--ink-soft); background: var(--panel-2); border-radius: var(--radius); padding: 20px; text-align: center; }
.prose p { max-width: 65ch; }

/* ── أزرار ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700;
  font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans), transform var(--trans);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* accent-deep لا accent: أبيض فوق accent كان 4.32:1 (دون حدّ 4.5 لنص WCAG AA) */
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #6f3c19; }
.btn-secondary { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--accent-deep); }
.btn-ghost:hover:not(:disabled) { background: var(--accent-soft); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ══════════════════════════════════════════════════════════════════════════
   الصفحة الرئيسية v3 — تحرير فني سينمائي (W9). كتلة مُحدَّدة بوضوح لا تُلامس
   صنفًا من صفحات المتجر: كل ما هنا إمّا صنف خاص بالواجهة أو مقيَّد بـ
   `.page-home` على الـ`<body>` — فلا يتغيّر شيء في بقية الصفحات.

   اللوحة: فحمٌ دافئ عميق (#1C1917) أرضيةً للمشاهد الداكنة، عاجٌ دافئ
   (#FAFAF9) للأرضيات الفاتحة، وذهبٌ (#CA8A04) للنداء والتمييز وحدهما. نصّ
   الذهب لا يُكتب على العاج أبدًا (2.8:1 فقط) — عليه نسخة غامقة (#92610A،
   5.1:1)؛ وفوق الفحم نسخة مُضاءة (#E9B949، 9.6:1). الأبيض العاجي فوق الفحم
   16.7:1، والفحم فوق زر الذهب 6.8:1.

   الإيقاع: داكن (بطل) ⇄ فاتح (حكاية · تشكيلات · رواج) ⇄ داكن (باقة) ⇄ فاتح
   دافئ (ثقة) ⇄ داكن (ختام + فوتر) — لا سبعة صناديق متشابهة.
   ══════════════════════════════════════════════════════════════════════════ */

.page-home {
  --h-ink: #0C0A09;
  --h-ink-soft: #57534E;
  --h-ivory: #FAFAF9;
  --h-ivory-warm: #F1ECE3;
  --h-char: #1C1917;
  --h-char-2: #292524;
  --h-char-3: #44403C;
  --h-gold: #CA8A04;
  --h-gold-lit: #E9B949;
  --h-gold-deep: #92610A;
  --h-on-dark: #FAFAF9;
  --h-on-dark-soft: #C7C0B8;
  --h-hair: rgba(202, 138, 4, 0.34);
  --h-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --h-gap: clamp(56px, 9vw, 108px);
  --motif: url("/brand/hero-silhouette.svg");
  /* حُبيبات فيلم: ضجيج SVG مُدرَج بيانًا (CSP: `img-src 'self' data:`) — لا ملف
     ولا مورد خارجي. تُطبَّق فوق المشاهد الداكنة وحدها بمزجٍ ناعم. */
  --h-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.5'/%3E%3C/svg%3E");
  background: var(--h-ivory);
  color: var(--h-ink);
}
.page-home main { padding-top: 0; }
.hero, .bundle-band, .trust-band, .closing-band { max-width: none; margin-inline: 0; padding-inline: 0; }

/* ── الرأس ──────────────────────────────────────────────────────────────
   الحالة **الافتراضية** رأسٌ صلبٌ فوق البطل كبقية الصفحات — هي ما يراه زائرٌ
   بلا جافاسكربت، فلا يقع نصٌّ عاجيّ على أرضيةٍ عاجية. الشفافية فوق البطل
   ترقيةٌ يفتحها `main.js` بصنف `js-hero` على `<html>` بعد أن يتأكد أنه يعمل. */
.page-home .site-header {
  color: var(--h-on-dark); background: rgba(28, 25, 23, 0.94);
  border-bottom-color: rgba(202, 138, 4, 0.24); box-shadow: 0 10px 30px rgba(12, 10, 9, 0.34);
}
.page-home .site-logo, .page-home .site-nav a, .page-home .site-header-cart { color: var(--h-on-dark); }
.page-home .site-header-cart { border-color: rgba(250, 250, 249, 0.34); }
.page-home .site-nav a:hover, .page-home .site-nav a[aria-current="page"] { color: var(--h-gold-lit); border-color: var(--h-gold); }
.page-home .site-header-cart:hover { color: var(--h-gold-lit); border-color: var(--h-gold); }
.js-hero .page-home .site-header {
  position: fixed; inset-inline: 0; top: 0; background: transparent;
  border-bottom-color: transparent; box-shadow: none;
  transition: background 0.3s var(--h-ease), border-color 0.3s var(--h-ease), box-shadow 0.3s var(--h-ease);
}
.js-hero .page-home .site-header.is-solid {
  background: rgba(28, 25, 23, 0.94);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: rgba(202, 138, 4, 0.24);
  box-shadow: 0 10px 30px rgba(12, 10, 9, 0.34);
}
/* الفوتر امتدادٌ لشريط الختام هنا لا كتلة ثالثة مستقلة */
.page-home .site-footer { margin-top: 0; background: #0C0A09; }
.page-home .site-footer nav a:hover { color: var(--h-gold-lit); }

/* ── البطل ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--h-char); color: var(--h-on-dark);
  padding: calc(var(--header-h) + 16px) 0 calc(var(--bottom-nav-h) + 28px);
}
@media (min-width: 768px) { .hero { padding-bottom: clamp(56px, 10vh, 104px); } }

.hero-stage { position: absolute; inset: -18%; z-index: 0; will-change: transform; }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 56% 44%; animation: kenBurns 34s ease-in-out infinite alternate;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(12, 10, 9, 0.74) 0%, rgba(12, 10, 9, 0.2) 17%, transparent 34%),
    linear-gradient(to top, rgba(12, 10, 9, 0.9) 0%, rgba(12, 10, 9, 0.56) 34%, transparent 66%),
    radial-gradient(122% 88% at 50% 46%, transparent 34%, rgba(12, 10, 9, 0.52) 100%);
}
.hero-grain, .bundle-grain, .closing-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: var(--h-grain); background-size: 180px 180px;
  opacity: 0.42; mix-blend-mode: soft-light;
}
.hero-inner {
  position: relative; z-index: 3; width: 100%;
  max-width: var(--container-w); margin-inline: auto; padding-inline: 16px;
}
.hero-panel {
  max-width: 620px;
  background: rgba(28, 25, 23, 0.72);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  border: 1px solid rgba(250, 250, 249, 0.14);
  border-radius: 22px; padding: 30px 26px 34px;
  box-shadow: inset 0 1px 0 rgba(250, 250, 249, 0.14), 0 30px 80px rgba(12, 10, 9, 0.5);
}
.hero-title {
  font-size: clamp(2.3rem, 7.4vw, 4.6rem); line-height: 1.16; font-weight: 800;
  margin: 0 0 12px; color: var(--h-on-dark);
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--h-on-dark-soft);
  margin: 0 0 28px; max-width: 32ch; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0; }
.hero-scroll {
  display: none; position: absolute; z-index: 3; bottom: 20px; inset-inline-start: 50%;
  width: 1px; height: 56px; overflow: hidden;
  background: linear-gradient(to bottom, transparent, rgba(250, 250, 249, 0.45));
}
.hero-scroll::after {
  content: ""; position: absolute; inset-inline: 0; top: -56px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--h-gold-lit));
  animation: scrollCue 2.8s ease-in-out infinite;
}

@media (min-width: 768px) { .hero-scroll { display: block; } }
@media (min-width: 1024px) {
  .hero-scrim {
    background:
      linear-gradient(to bottom, rgba(12, 10, 9, 0.66) 0%, transparent 26%),
      linear-gradient(to left, rgba(12, 10, 9, 0.88) 0%, rgba(12, 10, 9, 0.52) 42%, rgba(12, 10, 9, 0.06) 80%),
      linear-gradient(to top, rgba(12, 10, 9, 0.72) 0%, transparent 52%),
      radial-gradient(122% 90% at 50% 45%, transparent 36%, rgba(12, 10, 9, 0.5) 100%);
  }
  .hero-panel { background: rgba(28, 25, 23, 0.62); padding: 46px 44px 50px; }
}

@keyframes kenBurns { from { transform: scale(1.02); } to { transform: scale(1.14) translate3d(0, -1.2%, 0); } }
.eyebrow-rule { display: block; flex: none; width: 34px; height: 2px; background: var(--h-gold); }
.hero-panel .eyebrow, .bundle-body .eyebrow, .closing-inner .eyebrow { color: var(--h-gold-lit); }
.page-home .section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.28; font-weight: 800;
  margin: 0; color: var(--h-ink);
}
.section-head { margin-bottom: clamp(24px, 3vw, 38px); }
.section-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.link-quiet {
  display: inline-flex; align-items: center; min-height: 48px; font-weight: 600;
  color: var(--h-on-dark); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.link-quiet:hover { color: var(--h-gold-lit); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 700;
  color: var(--h-gold-deep); text-decoration: none; border-bottom: 2px solid var(--h-hair);
  transition: color var(--trans), border-color var(--trans);
}
.link-arrow:hover { color: var(--h-ink); border-bottom-color: var(--h-gold); }
.btn-gold {
  background: var(--h-gold); color: var(--h-char); border-color: var(--h-gold);
  box-shadow: 0 14px 34px rgba(202, 138, 4, 0.24), 0 2px 6px rgba(12, 10, 9, 0.3);
}
.btn-gold:hover:not(:disabled) { background: #E0A008; border-color: #E0A008; transform: translateY(-2px); box-shadow: 0 20px 44px rgba(202, 138, 4, 0.3); }
.btn-gold:active { transform: translateY(0); box-shadow: 0 8px 20px rgba(202, 138, 4, 0.24); }
.btn-xl { min-height: 60px; padding: 0 38px; font-size: 1.12rem; }
.page-home .price { color: var(--h-gold-deep); font-size: 1.05rem; }
.price-from-label { font-weight: 600; color: var(--h-ink-soft); font-size: 0.78em; margin-inline-end: 4px; }

/* اللوحة البديلة حين لا صورة: نفس نقشة الأثاث فوق تدرّجٍ دافئ — لا مستطيل فارغ */
.tile-art {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  background-image:
    var(--motif),
    radial-gradient(66% 62% at 24% 10%, rgba(202, 138, 4, 0.2), transparent 70%),
    linear-gradient(155deg, #44403C 0%, #292524 46%, #1C1917 100%);
  background-repeat: no-repeat; background-position: center bottom; background-size: cover, auto, auto;
}
.tile-art-tall { background-position: 58% bottom; }
/* قصّةٌ مختلفة من النقشة لكل بلاطة — لولا هذا لتكرّر المقطع نفسه ستّ مرات */
.bento-tile:nth-child(3n+2) .tile-art, .showcase-card:nth-child(3n+2) .tile-art { background-position: 24% bottom; }
.bento-tile:nth-child(3n) .tile-art, .showcase-card:nth-child(3n) .tile-art { background-position: 76% bottom; }

/* ── ١) شريط الحكاية ───────────────────────────────────────────────────── */
.story { margin-top: var(--h-gap); }
.story-layout { display: grid; gap: clamp(26px, 4vw, 54px); align-items: center; }
.story-media {
  position: relative; margin: 0; overflow: hidden; border-radius: 20px;
  aspect-ratio: 4 / 3; background: var(--h-char-2); box-shadow: 0 26px 60px rgba(12, 10, 9, 0.16);
}
.story-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-media-edge {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(12, 10, 9, 0.1), inset 0 -130px 120px -90px rgba(12, 10, 9, 0.55);
}
.story-list { list-style: none; margin: clamp(20px, 3vw, 30px) 0 0; padding: 0; display: grid; gap: 30px; }
.story-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding-top: 30px; border-top: 1px solid rgba(12, 10, 9, 0.1); }
.story-item:first-child { padding-top: 0; border-top: 0; }
.story-num { font-size: 1rem; font-weight: 800; color: var(--h-gold-deep); direction: ltr; padding-top: 4px; }
.story-item-title { font-size: 1.3rem; margin: 0 0 8px; }
.story-item-body { color: var(--h-ink-soft); margin: 0; line-height: 1.85; }
@media (min-width: 900px) {
  .story-layout { grid-template-columns: 1fr 1fr; }
  .story-media { aspect-ratio: 4 / 5; max-height: 620px; }
}

/* ── ٢) شبكة «بينتو» للتشكيلات ─────────────────────────────────────────── */
.collections { margin-top: var(--h-gap); }
.bento { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.bento-tile {
  position: relative; display: block; overflow: hidden; border-radius: 18px;
  aspect-ratio: 1 / 1; text-decoration: none; color: var(--h-on-dark);
  background: var(--h-char-2); box-shadow: 0 18px 44px rgba(12, 10, 9, 0.14);
  transition: box-shadow var(--trans), transform var(--trans);
}
.bento-tile:hover { transform: translateY(-3px); box-shadow: 0 26px 56px rgba(12, 10, 9, 0.24); }
.bento-n1 > .bento-tile, .bento.has-lead > .bento-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (max-width: 899px) {
  /* بعد البلاطة القائدة يبقى عددٌ فرديّ حين يكون المجموع زوجيًا — فتتمدّد الأخيرة */
  .bento-n4 > .bento-tile:last-child, .bento-n6 > .bento-tile:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}
.bento-media { position: absolute; inset: 0; display: block; }
.bento-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--h-ease); }
.bento-tile:hover .bento-media img { transform: scale(1.06); }
.bento-veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 10, 9, 0.88) 0%, rgba(12, 10, 9, 0.38) 44%, rgba(12, 10, 9, 0.06) 80%); }
.bento-body { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.bento-icon { display: block; color: var(--h-gold-lit); margin-bottom: 4px; }
.bento-name { font-size: 1.18rem; font-weight: 800; }
.bento-count { color: var(--h-on-dark-soft); font-size: 0.92rem; }
.bento.has-lead > .bento-tile:first-child .bento-name { font-size: clamp(1.3rem, 2.6vw, 1.85rem); }
@media (min-width: 900px) {
  /* ستّة أعمدة وصفوفٌ ثابتة: لكل عددٍ من التصنيفات (١-٦) تخطيطٌ يملأ المستطيل
     تمامًا — لا خانة يتيمة في آخر صفّ مهما كان العدد. */
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 216px; gap: 20px; }
  .bento-tile { aspect-ratio: auto; grid-column: span 2; }
  .bento-n1 > .bento-tile { grid-column: span 6; grid-row: span 2; }
  .bento-n2 > .bento-tile { grid-column: span 3; grid-row: span 2; }
  .bento.has-lead > .bento-tile:first-child { grid-column: span 4; grid-row: span 2; }
  .bento-n4 > .bento-tile:nth-child(4) { grid-column: span 6; }
  .bento-n5 > .bento-tile:nth-child(4), .bento-n5 > .bento-tile:nth-child(5) { grid-column: span 3; }
  .bento-body { padding: 22px 26px; }
}

/* ── ٣) الأكثر رواجًا ──────────────────────────────────────────────────── */
.featured { margin-top: var(--h-gap); }
.showcase-grid { display: grid; gap: 22px 16px; grid-template-columns: repeat(2, 1fr); }
/* عددُ البطاقات يُختار في الخادم ليملأ الصفوف (١ · ٢ · ٣ · ٦)، وعلى الهاتف
   (عمودان) تتمدّد البطاقة الأولى حين يكون العدد فرديًا — فلا خانة يتيمة. */
@media (max-width: 639px) {
  .showcase-n1 > .showcase-card, .showcase-n3 > .showcase-card:first-child { grid-column: 1 / -1; }
  .showcase-n1 > .showcase-card .showcase-media, .showcase-n3 > .showcase-card:first-child .showcase-media { aspect-ratio: 16 / 11; }
}
.showcase-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--h-ink); }
.showcase-media {
  position: relative; display: block; overflow: hidden; border-radius: 16px;
  aspect-ratio: 4 / 5; background: var(--h-ivory-warm); box-shadow: 0 16px 40px rgba(12, 10, 9, 0.12);
}
.showcase-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--h-ease); }
.showcase-card:hover .showcase-media img { transform: scale(1.06); }
.showcase-card:hover .showcase-name { color: var(--h-gold-deep); }
.showcase-body { display: flex; flex-direction: column; gap: 4px; padding-inline: 2px; }
.showcase-name { font-weight: 800; font-size: 1.08rem; transition: color var(--trans); }
@media (min-width: 640px) {
  .showcase-grid { grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
  .showcase-n1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
  .showcase-n2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .showcase-grid { gap: 34px 26px; } }

/* ── ٤) شريط الباقة (بعمقٍ خفيف على الصورة) ────────────────────────────── */
.bundle-band {
  position: relative; overflow: hidden; margin-top: var(--h-gap);
  background: var(--h-char); color: var(--h-on-dark); padding: clamp(50px, 8vw, 100px) 0;
}
.bundle-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(62% 70% at 78% 18%, rgba(202, 138, 4, 0.16), transparent 68%);
}
.bundle-inner {
  position: relative; z-index: 3; max-width: var(--container-w); margin-inline: auto;
  padding-inline: 16px; display: grid; gap: clamp(28px, 4vw, 54px); align-items: center;
}
.bundle-frame {
  position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 11;
  background: var(--h-char-2); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.bundle-photo { position: absolute; inset: -16% 0; width: 100%; height: 132%; object-fit: cover; will-change: transform; }
.page-home .bundle-band .section-title { color: var(--h-on-dark); }
.bundle-desc { color: var(--h-on-dark-soft); margin: 14px 0 0; max-width: 46ch; line-height: 1.85; }
.bundle-price { font-size: 1.2rem; font-weight: 700; margin: 18px 0 26px; color: var(--h-on-dark); }
.page-home .bundle-band .price { color: var(--h-gold-lit); }
@media (min-width: 900px) { .bundle-inner { grid-template-columns: 1.1fr 0.9fr; } }

/* ── ٥) شريط الثقة (نصٌّ وحقائق — لا تقييمات ولا أرقام مُختلَقة) ────────── */
.trust-band {
  margin-top: var(--h-gap); background: var(--h-ivory-warm);
  border-block: 1px solid rgba(12, 10, 9, 0.08); padding: clamp(46px, 7vw, 88px) 0;
}
.trust-inner { max-width: var(--container-w); margin-inline: auto; padding-inline: 16px; }
.trust-title { text-align: center; margin-bottom: clamp(26px, 4vw, 40px); }
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.trust-item { text-align: center; padding-inline: 6px; }
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px;
  border-radius: 50%; color: var(--h-gold-deep); border: 1px solid var(--h-hair);
  background: rgba(202, 138, 4, 0.07); margin-bottom: 14px;
}
.trust-item-title { font-size: 1.16rem; margin: 0 0 6px; }
.trust-item-body { color: var(--h-ink-soft); margin: 0; line-height: 1.8; max-width: 34ch; margin-inline: auto; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 34px; } }

/* ── ٦) شريط الختام ────────────────────────────────────────────────────── */
.closing-band {
  position: relative; overflow: hidden; background: var(--h-char); color: var(--h-on-dark);
  text-align: center; padding: clamp(64px, 10vw, 124px) 16px;
}
.closing-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 62% at 50% 0%, rgba(202, 138, 4, 0.18), transparent 68%),
    linear-gradient(180deg, #292524 0%, #1C1917 46%, #0C0A09 100%);
}
.closing-inner { position: relative; z-index: 3; max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.closing-inner .eyebrow { justify-content: center; }
.closing-title { font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.24; margin: 0 0 26px; }
.closing-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pill-link {
  margin-top: 24px; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid rgba(250, 250, 249, 0.24); color: var(--h-on-dark-soft);
  text-decoration: none; font-weight: 600; transition: color var(--trans), border-color var(--trans);
}
.pill-link:hover { border-color: var(--h-gold); color: var(--h-gold-lit); }
@media (min-width: 640px) { .closing-actions { flex-direction: row; gap: 28px; } }

/* حلقة التركيز الزرقاء العامة (‎#1957C2‎) تبلغ 6.3:1 على العاج لكنها 2.65:1
   فقط على الفحم — دون حدّ 3:1 لعناصر غير النص. فوق المشاهد الداكنة وحدها
   تُبدَّل بالعاجية (16.7:1) ويبقى ما عداها على العام. */
.hero :focus-visible, .bundle-band :focus-visible, .closing-band :focus-visible,
.bento-tile:focus-visible, .js-hero .page-home .site-header :focus-visible {
  outline-color: var(--h-on-dark, #FAFAF9);
}

/* ── احترام تقليل الحركة: يسكن كل شيء، ولا يبقى شيء مخفيًا ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-stage, .bundle-photo { transform: none !important; }
  .hero-photo, .hero-scroll::after { animation: none; }
  .hero-scroll { display: none; }
  .hero-panel > *, [data-reveal].is-in, [data-reveal].is-in .story-item,
  [data-reveal].is-in .bento-tile, [data-reveal].is-in .showcase-card, [data-reveal].is-in .trust-item {
    animation: none; opacity: 1; transform: none;
  }
  .js-reveal [data-reveal]:not(.is-in) { opacity: 1; }
  .bento-tile:hover, .btn-gold:hover:not(:disabled) { transform: none; }
  .bento-tile:hover .bento-media img, .showcase-card:hover .showcase-media img { transform: none; }
}
/* ══════════════════════ نهاية كتلة الصفحة الرئيسية v3 ══════════════════ */

/* ── شبكة المنتجات وبطاقاتها ───────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.product-card {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: box-shadow var(--trans), transform var(--trans);
}
.product-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.product-card-img { aspect-ratio: 1 / 1; background: var(--panel-2); display: block; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--panel-2), var(--line)); }
.product-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.product-card-name { font-weight: 700; font-size: 1rem; }
.product-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

/* ── السعر والشارات ────────────────────────────────────────────────────── */
.price { font-weight: 700; color: var(--accent-deep); font-size: 1.05rem; }
.price-unpublished { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-out { background: var(--danger-bg); color: var(--danger); }
.badge-limited { background: var(--accent-soft); color: var(--accent-deep); }
.stale-badge { background: var(--accent-soft); color: var(--accent-deep); border-radius: var(--radius-sm); padding: 10px 16px; font-size: 0.9rem; margin-bottom: 16px; }

/* ── مسار التصفّح ──────────────────────────────────────────────────────── */
.breadcrumb { margin-block: 16px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.breadcrumb li:not(:last-child)::after { content: "‹"; margin-inline-start: 6px; }
.breadcrumb a { text-decoration: underline; }

/* ── فلاتر المتجر ──────────────────────────────────────────────────────── */
.filters-bar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-block: 16px; display: flex; flex-direction: column; gap: 14px; }
.search-box input[type="search"] { width: 100%; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 1.05rem; }
.filters-fields { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.filters-fields .field { flex: 1 1 160px; }
.checkbox-field { display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 48px; }
.filters-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.results-count { color: var(--ink-soft); margin-block: 4px 0; }

/* ── الحقول العامة (فلاتر ونماذج) ──────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; background: var(--panel); color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.optional-tag { color: var(--ink-soft); font-weight: 500; font-size: 0.85em; }
.field-error { color: var(--danger); font-weight: 600; font-size: 0.9rem; margin: 0; }
.form-error { color: var(--danger); background: var(--danger-bg); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; }
.form-success { color: var(--ok); background: var(--ok-bg); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; }

/* ── صفحة المنتج/الباقة ────────────────────────────────────────────────── */
.product-detail { display: grid; gap: 28px; margin-top: 8px; }
.product-gallery-main { aspect-ratio: 1 / 1; background: var(--panel-2); border-radius: var(--radius); overflow: hidden; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.product-thumb { flex: 0 0 72px; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--panel-2); }
.product-thumb.is-active { border-color: var(--accent); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info .price, .product-info .badge { margin-inline-end: 8px; }
.product-attr { margin: 10px 0; }
.product-sku { color: var(--ink-soft); font-size: 0.9rem; }
.product-description h2 { font-size: 1.1rem; margin-top: 18px; }
.variant-swatches { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.swatch { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; text-decoration: none; color: var(--ink); }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch.is-active { border-color: var(--accent); }
.swatch.is-out { opacity: 0.4; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.qty-field { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.qty-field input { width: 76px; min-height: 48px; text-align: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; }
.added-to-cart-note { color: var(--ok); font-weight: 700; margin-top: 10px; }
.related-section { margin-top: 44px; }

.bundle-contents { margin-top: 36px; }
.bundle-items { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bundle-item { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bundle-item-name { font-weight: 700; flex: 1 1 auto; }
.bundle-total { text-align: end; font-size: 1.15rem; margin-top: 14px; }

@media (min-width: 900px) {
  .product-detail { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ── الخطوات (صمّم غرفتك) ──────────────────────────────────────────────── */
.steps { display: grid; gap: 20px; margin-block: 28px; grid-template-columns: 1fr; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.step-icon { display: inline-flex; color: var(--accent-deep); margin-bottom: 10px; }
.room-builder-notice { background: var(--accent-soft); border-radius: var(--radius); padding: 24px; text-align: center; }
.room-builder-form { max-width: 380px; margin: 18px auto 0; text-align: start; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ── السلة ─────────────────────────────────────────────────────────────── */
.cart-asof { color: var(--ink-soft); font-size: 0.9rem; }
.cart-empty { text-align: center; padding: 48px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; background: var(--panel-2); }
.cart-line-body { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 700; }
.cart-line-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.cart-line-actions input[type="number"] { width: 64px; min-height: 40px; text-align: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.cart-summary { background: var(--panel-2); border-radius: var(--radius); padding: 18px; margin-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 1.15rem; font-weight: 700; }

/* ── إتمام الطلب ───────────────────────────────────────────────────────── */
.checkout-grid { margin-top: 12px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 20px; }
legend { font-weight: 700; padding: 0 8px; font-size: 1.05rem; }
.radio-group { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.radio-option { display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 48px; }
.radio-option input { width: 22px; height: 22px; }
.delivery-fee-note { color: var(--ink-soft); font-size: 0.9rem; }
.payment-field p { background: var(--panel-2); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0; }
.checkout-summary:not(:empty) { background: var(--panel-2); border-radius: var(--radius); padding: 16px; margin: 16px 0; }

/* ── حالة الطلب ────────────────────────────────────────────────────────── */
.order-status-card { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 20px; margin-top: 12px; }
.order-reference, .order-number { font-size: 1.3rem; font-weight: 700; direction: ltr; unicode-bidi: embed; }
.cod-notice { color: var(--ink-soft); margin: 14px 0 24px; }
.order-status-card .btn { margin: 6px; }

/* ── المساعد ──────────────────────────────────────────────────────────── */
.assistant-intro { color: var(--ink-soft); }
.assistant-thread { min-height: 320px; max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.assistant-placeholder { color: var(--ink-soft); text-align: center; }
.assistant-msg { max-width: 80%; padding: 12px 16px; border-radius: var(--radius); font-size: 1.05rem; line-height: 1.7; }
.assistant-msg-user { align-self: flex-end; background: var(--accent-soft); }
.assistant-msg-bot { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); }
.assistant-status { color: var(--ink-soft); font-style: italic; margin-block: 8px; }
.assistant-composer { display: flex; gap: 10px; margin-top: 16px; align-items: flex-end; }
.assistant-composer textarea { flex: 1; min-height: 56px; padding: 12px 16px; border-radius: var(--radius); border: 1.5px solid var(--line); font-size: 1.05rem; font-family: inherit; resize: vertical; }

/* ── صفحات الخطأ ───────────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 60px 16px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ── شاشات كبيرة ───────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  html { font-size: 18px; }
  .checkout-grid { max-width: 720px; margin-inline: auto; }
}
@media (min-width: 1440px) {
  .container, main > * { padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
