/* ═══════════════════════════════════════════════════════════════════════
   واجهة المتجر — **مشتركة بين كل المستأجرين**.

   🔴 كل قرار جمالي (خط · نسبة صورة · انحناء · كابيتال · تتبّع) **توكن**
   مش قيمة محفورة. `:root` بيحمل الثيم **المحايد**، و`[data-theme=...]`
   بيحمل ثيم فئة معيّنة. مستأجر بلا ثيم بيقع على المحايد — مش على ثيم
   متجر تاني. السجل: `onecart/domain/themes.py`.

   انكتب أصلاً لفليكس وير (نظام تحريري مونوكروم، مقيس من مراجع الفئة
   aloyoga 2026-09-25) — وهاد صار ثيم `editorial` بآخر الملف، مش
   الافتراضي.

   🔴 **ممنوع letter-spacing على العربي** — حروفه متصلة والتتبّع بيفكّها.
   التتبّع محصور بـ[lang=en] و[lang=he] (حروفهن منفصلة)، وهاد **مش
   قابل للثيم**: قاعدة لغة مش ذوق.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #000;
  --ink-soft: #6a6a6a;
  --line: #e5e5e5;
  --bg: #fff;
  --bg-tint: #f6f5f3;
  --brand: #242424;
  --brand-contrast: #fff;

  --gutter: clamp(1rem, 4vw, 3rem);
  --rail: 1440px;
  --label: 0.75rem;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* ── توكنز الثيم — القيم هون هي **المحايد** ──────────────────────── */
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body-he: "Heebo", system-ui, sans-serif;
  --font-body-en: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-display-he: "Heebo", system-ui, sans-serif;

  /* صور مربّعة: منتج السوبرماركت باكشوت مش قصّة أزياء */
  --ratio-card: 1;
  --ratio-tile: 1;
  --ratio-hero: 4 / 5;
  --radius: .5rem;

  /* بلا كابيتال ولا تتبّع — التحريري بس بيحتاجهن */
  --case-label: none;
  --track-label: normal;
  --track-kicker: normal;
  --track-title: normal;
  --track-announce: normal;
  --track-brand: .02em;
  --track-btn: normal;

  /* نص لوحة الهيرو فوق الصورة */
  --hero-kicker: var(--ink-soft);
  --hero-lede: #3a3a3a;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── الخطوط: مكدّس لكل لغة ──────────────────────────────────────────────
   Changa خط البراند (brand.md) وبيغطي العربي واللاتيني — **بس ما بيغطي
   العبري**. الاعتماد عليه بالعبري بيطلّع مربّعات فاضية بلا أي خطأ.
   لهيك كل لغة إلها مكدّسها.                                              */
/* اقتران عرض + متن: **Changa** خط البراند (brand.md) للوردمارك والهيرو —
   حروفه العريضة بتعطي حضور. و**IBM Plex Sans Arabic** للمتن والواجهة،
   لأنه بيضل مقروء بـ12px حيث Changa بتتلخبط.
   🔴 ولا واحد منهن بيغطي العبري — الاعتماد عليهن بيطلّع مربّعات فاضية بلا
   أي خطأ. لهيك للعبري **Heebo** بمكدّس منفصل. */
body { font-family: var(--font-body); }
:lang(he) { font-family: var(--font-body-he); }
:lang(en) { font-family: var(--font-body-en); }
.display { font-family: var(--font-display); }
:lang(he) .display { font-family: var(--font-display-he); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

/* ── الليبل: وحدة الطباعة المركزية ─────────────────────────────────────
   كل عنوان قسم وكل تسمية بالواجهة بتستعمل هاد. صغير وهادي — العنوان
   الغليظ بيسرق الانتباه من الصورة.                                       */
.label {
  font-size: var(--label);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
[lang="en"] .label { text-transform: var(--case-label); letter-spacing: var(--track-label); }
[lang="he"] .label { letter-spacing: var(--track-label); }
/* العربي: بلا تتبّع بقصد — التتبّع بيفكّ الحروف المتصلة */

.muted { color: var(--ink-soft); }

/* ── طبقتا العناوين ────────────────────────────────────────────────────
   قياس من المرجع: عنوان القسم **32px وزن 600 بتتبّع سالب**، والكيكر فوقه
   **16px وزن 500 بتتبّع موجب**. التضاد بين التتبّعين هو اللي بيعطي الحضور
   التحريري — لا عنوان ضخم لحاله ولا ليبل صغير لحاله.
   🔴 التتبّع (سالب أو موجب) **بيتخطّى العربي** — حروفه متصلة. */
.kicker {
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-soft);
}
:lang(en) .kicker { text-transform: var(--case-label); letter-spacing: var(--track-kicker); }
:lang(he) .kicker { letter-spacing: var(--track-kicker); }

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.1;
}
:lang(en) .section-title { text-transform: var(--case-label); letter-spacing: var(--track-title); }
:lang(he) .section-title { letter-spacing: var(--track-title); }
:lang(he) .section-title { font-family: var(--font-display-he); }
.section-title .count { font-size: .55em; font-weight: 400; color: var(--ink-soft);
                        margin-inline-start: .5rem; vertical-align: .35em; }

.block { padding: clamp(3rem, 6vw, 5.5rem) 0 0; }
.block-head { padding-bottom: 1.75rem; }

.link-underline { font-size: var(--label); border-bottom: 1px solid var(--ink);
                  padding-bottom: .15rem; }

/* ── الشريط العلوي ─────────────────────────────────────────────────── */
.announce {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: .6rem 1rem;
  font-size: .72rem;
  font-weight: 600;
}
[lang="en"] .announce { text-transform: var(--case-label); letter-spacing: var(--track-announce); }
[lang="he"] .announce { letter-spacing: var(--track-announce); }

/* ── الهيدر ────────────────────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--gutter);
}
.site-head .brand {
  grid-column: 2;
  justify-self: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: var(--case-label);
  white-space: nowrap;
}
/* 🔴 الوردمارك اسم المتجر، وممكن يكون **عربي**. التتبّع بيفكّ حروفه
   المتصلة — فبينطبق على اللاتيني والعبري بس، زي باقي الملف.
   كان منطبق على الكل: شكليّاً ما بان لأن FLEXWEAR لاتيني. */
[lang="en"] .site-head .brand,
[lang="he"] .site-head .brand { letter-spacing: var(--track-brand); }
.head-start { grid-column: 1; display: flex; gap: 1.1rem; align-items: center; }
.head-end   { grid-column: 3; display: flex; gap: 1.1rem; align-items: center;
              justify-content: flex-end; }
.head-start a, .head-end a, .head-start button { font-size: var(--label); }
.lang-switch { display: flex; gap: .85rem; }
.lang-switch a { color: var(--ink-soft); transition: color .2s var(--ease); }
.lang-switch a:hover { color: var(--ink); }
.cart-link .badge {
  display: inline-block; min-width: 1.15rem; padding: 0 .3rem;
  background: var(--ink); color: var(--bg); font-size: .66rem;
  line-height: 1.15rem; text-align: center; margin-inline-start: .2rem;
}

.search-field { display: flex; align-items: center; gap: .4rem; }
.search-field input {
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: .3rem 0; width: clamp(6rem, 14vw, 11rem); font-size: var(--label);
  transition: border-color .2s var(--ease);
}
.search-field input:focus { outline: 0; border-bottom-color: var(--ink); }
.search-field button {
  border: 0; background: transparent; cursor: pointer; padding: .3rem 0;
  font-size: var(--label);
}

/* الموبايل: الهيدر بيصير سطرين — الوردمارك لحاله، وتحته البحث واللغات
   والسلة. تلات أعمدة على 375px بتزاحم الوردمارك وبتقصّ السلة. */
@media (max-width: 40rem) {
  .site-head {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand brand" "search actions";
    row-gap: .85rem;
    padding: .9rem var(--gutter);
  }
  .site-head .brand { grid-area: brand; font-size: .95rem; }
  .head-start { grid-area: search; }
  .head-end { grid-area: actions; }
  .search-field { width: 100%; }
  .search-field input { width: 100%; }
  .head-end { gap: .9rem; }
  .lang-switch { gap: .7rem; }
}

/* ── التخطيط ───────────────────────────────────────────────────────── */
.rail { max-width: var(--rail); margin-inline: auto; padding-inline: var(--gutter); }
.bleed { width: 100%; }
main { padding-bottom: 5rem; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 3.5rem 0 1.25rem;
}
.section-head .count { font-size: var(--label); color: var(--ink-soft); }

/* ── الهيرو ────────────────────────────────────────────────────────────
   بيان طباعي على صورة كاملة الارتفاع، ومداخل المجموعات على الحافة
   السفلية — فالكتلة بتشتغل جمالياً ووظيفياً بنفس الوقت.

   التدرّج من الجهة اللي فيها النص بس — تغطية الصورة كلها بتطفّيها.       */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  /* 🔴 صفّان: النص وشريط المجموعات. كان الشريط **مطلق** على الحافة،
     فعنوان بيلفّ سطر زيادة (الإنجليزي «confidently.» والعبري «בחופשיות»)
     بينزل تحته وبيتداخل — وبيتغيّر مع كل عرض شاشة. الشبكة بتمنع
     التداخل بالبنية مش بضبط هوامش. */
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* الشرائح فوق بعض؛ وحدة ظاهرة والباقي شفافات. `visibility` مع `opacity`
   عشان المخفي ما يضل يستقبل تركيز ولا يتقرا بقارئ الشاشة. */
.hero-slide {
  position: absolute; inset: 0; display: block;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.hero-slide.is-on {
  opacity: 1; visibility: visible; transition-delay: 0s, 0s;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
}
.hero-slide.is-on img { animation: hero-in 1.4s var(--ease) both; }
/* الرجوع: صورة منتج خام — القصّ من فوق عشان الراس ما ينقطع */
.hero-slide--raw img { object-position: 50% 18%; }
@keyframes hero-in { from { transform: scale(1.05); } }

/* 🔴 الحجاب الأسود اللي كان هون انشال: اللوحات صارت **مركّبة** والجسم
   على جنب والنص على الفاضي، فما في داعي نطمّ الصورة. بدله وشاح فاتح
   بيرفع الأرضية الخوخية تحت الحبر — وحبر على خوخي بيقيس فوق 9:1 بينما
   الأبيض على الخوخي كان لازم حجاب .72 عشان يمرق. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, rgba(255,255,255,.42) 0%,
              rgba(255,255,255,.2) 34%, rgba(255,255,255,0) 66%);
}


.hero-copy {
  grid-row: 1;
  align-self: center;
  /* 🔴 `right` **فيزيائي** مش `end`: اللوحة مبنيّة والجسم على يسارها
     بالبكسل، فالنص لازم يقعد يمين بكل اللغات. `end` بالعربي بتعني يسار
     فالنص بيركب على الموديل. وقلب اللوحة بالإنجليزي مرفوض: بيقلب لوجو
     FlexWear المطبوع على القطعة. */
  justify-self: right;
  padding: clamp(2rem, 6vw, 5rem);
  padding-block-end: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  max-width: min(38rem, 92vw);
}
/* 🔴 .72 بتقيس 4.37:1 فوق الصورة — تحت 4.5. القياس على البكسل
   مش على تخمين، والفرق بين .72 و.86 مش ملحوظ بالعين. */
.hero-copy .kicker { color: var(--hero-kicker); }
.hero-copy h1 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  display: grid;
}
/* العبري أطول بالحرف من العربي بنفس الجملة: «לנוע בחופשיות» بتلفّ على
   أربع سطور بحجم العربي وبتطلع برّا الهيرو. قياس أصغر بيرجّعها سطرين. */
:lang(he) .hero-copy h1 { font-family: var(--font-display-he);
                          font-size: clamp(1.9rem, 4.4vw, 3.3rem); }
/* والإنجليزي كمان: «confidently.» بتاخد سطر لحالها بقياس العربي،
   فالعنوان بيصير تلات سطور وبينزل تحت شريط المجموعات. */
:lang(en) .hero-copy h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); }
/* كل سطر بيطلع لحاله — الكشف المتدرّج بيعطي إيقاع بدل ظهور دفعة وحدة */
.hero-line {
  display: block;
  animation: line-in .85s var(--ease) both;
  animation-delay: calc(.25s + var(--i) * .13s);
}
@keyframes line-in { from { opacity: 0; transform: translateY(.6em); } }
.hero-copy .lede {
  margin: 0 0 1.9rem; font-size: clamp(.95rem, 1.3vw, 1.1rem);
  color: var(--hero-lede); max-width: 32ch;
  animation: line-in .85s var(--ease) both; animation-delay: .62s;
}
.hero-copy .btn {
  border-color: var(--ink); background: var(--ink); color: #fff;
  animation: line-in .85s var(--ease) both; animation-delay: .74s;
}
.hero-copy .btn:hover { background: transparent; color: var(--ink); }

/* مداخل المجموعات على الحافة — زجاج خفيف عشان تضل مقروءة فوق أي صورة */
.hero-nav {
  grid-row: 2;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border-block-start: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(10px);
  /* زجاج فاتح بيكمّل الهيرو الحبري — والحبر فوقه بيقيس فوق 10:1 */
  background: rgba(255,255,255,.72);
}
.hero-nav a {
  display: flex; align-items: baseline; justify-content: center; gap: .5rem;
  padding: 1.15rem .75rem; color: var(--ink); font-size: var(--label);
  font-weight: 500;
  transition: background .25s var(--ease);
}
.hero-nav a + a { border-inline-start: 1px solid rgba(0,0,0,.14); }
.hero-nav a:hover, .hero-nav a:focus-visible { background: rgba(255,255,255,.95); }
/* المجموعة المعروضة حالياً — خطّ تحتها، وهو نفسه مؤشّر السلايدر */
.hero-nav a[aria-current] { background: rgba(255,255,255,.95); }
.hero-nav a[aria-current]::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--ink);
}
.hero-nav a { position: relative; }
:lang(en) .hero-nav a { text-transform: var(--case-label); letter-spacing: var(--track-label); }
.hero-nav-count { font-size: .72rem; color: var(--ink-soft); }

@media (max-width: 47rem) {
  .hero { min-height: 0; }
  .hero-media { position: static; }
  /* 🔴 الشرائح مطلقة بالديسكتوب — لو ضلّت هيك على الموبايل بيصير ارتفاع
     الحاوية صفر والنص بيركب على الصورة. هون وحدة ظاهرة بالتدفّق العادي
     وبلا تلاشي: التلاشي بدّه تراكب، والتراكب هو اللي بيكسر الارتفاع. */
  .hero-slide { position: static; display: none; opacity: 1;
                visibility: visible; transition: none; }
  .hero-slide.is-on { display: block; }
  .hero-media img { aspect-ratio: var(--ratio-hero); height: auto; }
  /* على الموبايل النص **تحت** الصورة مش فوقها — النص فوق صورة طولية
     على شاشة ضيقة بيصير غير مقروء مهما كان التدرّج. */
  .hero { background: var(--bg); }
  .hero::before { content: none; }
  .hero-copy { color: var(--ink); padding: 2rem var(--gutter) 1.5rem;
               max-width: none; justify-self: stretch; }
  .hero-copy .kicker { color: var(--ink-soft); }
  .hero-copy .lede { color: #3a3a3a; }
  .hero-copy .btn { border-color: var(--ink); background: var(--ink); color: #fff; }
  .hero-copy .btn:hover { background: transparent; color: var(--ink); }
  .hero-nav { background: transparent; backdrop-filter: none;
              border-block-start: 1px solid var(--line);
              border-block-end: 1px solid var(--line); }
  .hero-nav a { color: var(--ink); padding: 1rem .5rem; }
  .hero-nav a + a { border-inline-start-color: var(--line); }
  .hero-nav-count { color: var(--ink-soft); }
}

/* ── الأزرار ───────────────────────────────────────────────────────── */
.btn {
  display: inline-block; border: 1px solid var(--ink); background: var(--ink);
  color: var(--bg); padding: .85rem 2rem; font-size: var(--label);
  font-weight: 600; cursor: pointer; border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease);
}
[lang="en"] .btn { text-transform: var(--case-label); letter-spacing: var(--track-btn); }
.btn:hover { background: transparent; color: var(--ink); }
.btn[disabled] { border-color: var(--line); background: var(--line);
                 color: var(--ink-soft); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ── شريط التصنيفات ────────────────────────────────────────────────── */
.categories { display: flex; gap: 2rem; flex-wrap: wrap; padding: 1.75rem 0 0; }
.categories a {
  font-size: var(--label); font-weight: 500; padding-bottom: .3rem;
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease);
}
[lang="en"] .categories a { text-transform: var(--case-label); letter-spacing: var(--track-label); }
.categories a:hover { border-bottom-color: var(--ink); }

/* ── بلاطات الفئات ─────────────────────────────────────────────────── */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
         grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.tiles figure { margin: 0; overflow: hidden; background: var(--bg-tint); }
.tiles img, .tiles .noimg { width: 100%; aspect-ratio: var(--ratio-tile); object-fit: cover;
                            transition: transform .7s var(--ease); }
.tiles a:hover img { transform: scale(1.04); }
.tiles figure { position: relative; }
.tiles figcaption {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 1.1rem 1.25rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
}
.tile-name { font-size: 1.05rem; font-weight: 600; }
.tile-go { font-size: var(--label); border-bottom: 1px solid rgba(255,255,255,.6);
           padding-bottom: .1rem; }
:lang(en) .tile-go { text-transform: var(--case-label); letter-spacing: var(--track-label); }

/* ── كاروسيل أفقي — scroll-snap بلا جافاسكربت ──────────────────────── */
.rail-scroll {
  list-style: none; margin: 0; padding: 0 var(--gutter) 1rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 17rem);
  gap: 1px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.rail-scroll > li { scroll-snap-align: start; }
.rail-scroll::-webkit-scrollbar { height: 2px; }
.rail-scroll::-webkit-scrollbar-thumb { background: var(--line); }

/* ── تسوّق حسب اللون ───────────────────────────────────────────────── */
.colour-row { list-style: none; margin: 0; padding: 0; display: flex;
              gap: 1.75rem; flex-wrap: wrap; }
.colour-row a { display: grid; justify-items: center; gap: .55rem; }
.dot-lg { width: 3.25rem; height: 3.25rem; border-radius: 50%;
          box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
          transition: transform .3s var(--ease); }
.colour-row a:hover .dot-lg { transform: scale(1.08); }
.colour-name { font-size: var(--label); }
.colour-count { font-size: .7rem; color: var(--ink-soft); }

/* ── الزوج التحريري ────────────────────────────────────────────────── */
.editorial { display: grid; grid-template-columns: 1fr minmax(16rem, .85fr) 1fr;
             gap: 1px; align-items: stretch; margin-top: clamp(3rem, 6vw, 5.5rem); }
.editorial figure { margin: 0; overflow: hidden; background: var(--bg-tint); }
.editorial img { width: 100%; height: 100%; object-fit: cover; }
.editorial-copy { display: grid; align-content: center; justify-items: start;
                  gap: 1.1rem; padding: clamp(2rem, 4vw, 3.5rem);
                  background: var(--bg-tint); }
.editorial-line { margin: 0; font-size: clamp(1.15rem, 1.9vw, 1.6rem);
                  line-height: 1.3; }
@media (max-width: 55rem) {
  .editorial { grid-template-columns: 1fr 1fr; }
  .editorial-copy { grid-column: 1 / -1; order: -1; }
}

/* ── شبكة المنتجات ─────────────────────────────────────────────────── */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2.5rem 1px;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
@media (max-width: 47rem) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1px; }
}
.card figure { margin: 0; position: relative; background: var(--bg-tint);
               overflow: hidden; }
.card img, .card .noimg {
  width: 100%; aspect-ratio: var(--ratio-card); object-fit: cover;
  transition: transform .7s var(--ease);
}
.card .noimg { background: var(--bg-tint); }
.card a:hover img { transform: scale(1.035); }
.card .name { display: block; margin-top: .9rem; font-size: .85rem; font-weight: 500; }
.card .price { display: block; margin-top: .15rem; font-size: .85rem;
               color: var(--ink-soft); }
.card .flag {
  position: absolute; inset-block-start: .75rem; inset-inline-start: .75rem;
  background: var(--bg); padding: .25rem .6rem; font-size: .66rem; font-weight: 600;
}

/* ── السعر: العملة صغيرة قبال الرقم (DESIGN-RULES) ─────────────────── */
.price-lg { font-size: 1.15rem; font-weight: 500; }
.cur { font-size: .66em; font-weight: 500; margin-inline-end: .18em;
       vertical-align: .14em; color: var(--ink-soft); }

/* ── صفحة المنتج ───────────────────────────────────────────────────── */
.crumbs { display: flex; gap: .55rem; font-size: var(--label);
          color: var(--ink-soft); padding: 1.25rem 0; }
.crumbs a:not(:last-child)::after { content: "/"; margin-inline-start: .55rem; }

.product { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
           gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (max-width: 55rem) { .product { grid-template-columns: 1fr; } }

/* معرض المنتج — شبكة ثلاثية والنشطة بتكبر بمحلها.
   🔴 النسخة القديمة كانت عمود واحد على الموبايل: منتج بـ28 صورة بيطلع
   ~16 ألف بكسل طول وما حدا بيوصل لآخر الصفحة. `dense` بيخلّي الصورة
   اللي صغرت تردم الفراغ بدل ما تترك خانة فاضية. */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
           grid-auto-flow: dense; }
/* 🔒 مربّع **ثابت بلا ثيم**: شبكة المصغّرات لازم تتحاذى، ونسبة
   مختلفة لكل صورة بتكسر الصفوف. وظيفة مش ذوق. */
.shot {
  display: block; width: 100%; aspect-ratio: 1; overflow: hidden;
  padding: 0; border: 0; background: var(--bg-tint); cursor: pointer;
  /* الحجم مش بينحرّك: تحريك خانة شبكة بيقفّز الصفحة كلها */
  transition: opacity .2s var(--ease);
}
.shot:hover { opacity: .88; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.is-lead {
  grid-column: 1 / -1; aspect-ratio: var(--ratio-hero); cursor: default; opacity: 1;
}
.shot:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.details { position: sticky; top: 6rem; padding-top: .5rem; }
@media (max-width: 55rem) { .details { position: static; } }
.details h1 { margin: 0 0 .5rem; font-size: 1.35rem; font-weight: 500;
              line-height: 1.25; }
.sold-out { font-size: var(--label); color: var(--ink-soft); font-weight: 600; }

.option { border: 0; padding: 0; margin: 2rem 0 0; }
.option legend { padding: 0; margin-bottom: .75rem; font-size: var(--label);
                 font-weight: 500; color: var(--ink-soft); }
[lang="en"] .option legend { text-transform: var(--case-label); letter-spacing: var(--track-label); }
.option label { display: inline-flex; align-items: center; justify-content: center;
                cursor: pointer; margin-inline-end: .5rem; margin-bottom: .5rem; }
.option input { position: absolute; opacity: 0; width: 0; height: 0; }

.swatch { gap: .45rem; }
.swatch .dot {
  width: 1.5rem; height: 1.5rem; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
  transition: box-shadow .2s var(--ease);
}
.swatch input:checked + .dot,
.swatch input:focus-visible + .dot {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 1px var(--bg),
              0 0 0 2px var(--ink);
}
.swatch .vis-label { font-size: var(--label); }

.size { min-width: 3.1rem; padding: .6rem .8rem; border: 1px solid var(--line);
        font-size: var(--label); font-weight: 500;
        transition: border-color .2s var(--ease), background .2s var(--ease); }
.size:hover { border-color: var(--ink); }
.size:has(input:checked) { border-color: var(--ink); background: var(--ink);
                           color: var(--bg); }

.add-form { margin-top: 2rem; }
.add-form .btn { width: 100%; padding: 1.05rem; }

.description { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line);
               font-size: .92rem; color: #222; }
.description p { margin: 0 0 .85rem; }
.description ul { padding-inline-start: 1.1rem; margin: 0 0 .85rem; }
.description li { margin-bottom: .3rem; }
.barcode, .hint { font-size: var(--label); color: var(--ink-soft); }
.weights { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.weights li { border: 1px solid var(--line); padding: .35rem .7rem;
              font-size: var(--label); }

/* ── السلة والتشيك أوت والطلب ──────────────────────────────────────── */
.cart-lines, .order-lines { list-style: none; padding: 0; margin: 0 0 2rem; }
.cart-lines li, .order-lines li {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.cart-lines .name, .order-lines .name { font-weight: 500; }
.cart-lines .variant, .order-lines .variant { font-size: var(--label);
                                              color: var(--ink-soft); }
.cart-lines .price, .order-lines .price { margin-inline-start: auto;
                                          font-weight: 500; }
.qty { display: flex; gap: .4rem; }
.qty input { width: 3.75rem; border: 1px solid var(--line); padding: .45rem .5rem;
             text-align: center; }
.qty button { border: 1px solid var(--line); background: transparent;
              padding: .45rem .8rem; font-size: var(--label); cursor: pointer; }
.qty button:hover { border-color: var(--ink); }
.total { font-size: 1.05rem; font-weight: 500; }

.empty { padding: 5rem 0 6rem; display: grid; gap: 1.25rem; justify-items: start; }

.summary { margin-top: 2rem; display: grid; gap: .6rem; justify-items: start; }
.summary .btn { margin-top: .75rem; min-width: 16rem; }
.total { display: flex; align-items: baseline; gap: .75rem; font-size: var(--label);
         color: var(--ink-soft); margin: 0; }
.total .price-lg { color: var(--ink); }

.checkout-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem);
                 grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
                 align-items: start; padding-bottom: 2rem; }
@media (max-width: 55rem) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { order: -1; }
}
.order-summary { background: var(--bg-tint); padding: 1.75rem; position: sticky;
                 top: 6rem; }
.order-summary .order-lines li { border-bottom-color: #e0ded9; }
.order-summary .order-lines li:last-child { border-bottom: 0; }
.qty-flat { font-size: var(--label); color: var(--ink-soft); }

.code-row { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.code-row .btn { padding: .6rem 1.2rem; }

.confirm { padding-top: 3.5rem; max-width: 40rem; }
.confirm .reference { font-size: var(--label); color: var(--ink-soft);
                      margin: .5rem 0 2.5rem; }
.confirm .reference strong { display: inline-block; margin-inline-start: .4rem;
                             font-size: 1.35rem; color: var(--ink);
                             letter-spacing: .12em; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1rem;
          margin: 1.75rem 0; font-size: .9rem; }
.totals dt { color: var(--ink-soft); }
.totals dd { margin: 0; text-align: end; }
.totals .grand { padding-top: .85rem; border-top: 1px solid var(--line);
                 color: var(--ink); font-weight: 500; }

.checkout { display: grid; gap: 1.1rem; max-width: 30rem; margin-top: 0; }
.checkout label { display: grid; gap: .35rem; font-size: var(--label);
                  color: var(--ink-soft); }
.checkout input {
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: .55rem 0; font-size: .95rem; color: var(--ink);
  transition: border-color .2s var(--ease);
}
.checkout input:focus { outline: 0; border-bottom-color: var(--ink); }
.checkout .payment { padding: 1rem; background: var(--bg-tint);
                     font-size: var(--label); font-weight: 500; }
.error { padding: .85rem 1rem; background: var(--bg-tint);
         border-inline-start: 2px solid var(--ink); font-size: .9rem; }
/* 🔒 تتبّع **ثابت بلا ثيم**: رقم الطلب حروف وأرقام لاتينية بينقرا
   بصوت عالي بالتلفون — التباعد بيمنع خلط 0/O و1/l. */
.reference strong { font-size: 1.1rem; letter-spacing: .06em; }
.static-page { max-width: 42rem; padding-top: 1rem; }
.static-page h1 { font-size: 1.35rem; font-weight: 500; margin: 0 0 1.5rem; }
.static-page p { margin: 0 0 1.1rem; }

/* ── الفوتر ────────────────────────────────────────────────────────── */
/* ===== الفوتر ===== */
.site-foot { border-top: 1px solid var(--line); margin-top: 5rem;
             padding: 3.5rem 0 2rem; background: var(--bg-tint); }
.foot-grid { display: grid; gap: 2.5rem 2rem;
             grid-template-columns: 1.4fr repeat(3, 1fr); align-items: start; }
.foot-brand .brand-mark { font-family: var(--font-display); font-size: 1.25rem;
                          font-weight: 600; margin: 0; }
.site-foot .tagline { font-size: .85rem; color: var(--ink-soft); margin: .7rem 0 0;
                      max-width: 22ch; line-height: 1.6; }
.site-foot .label { font-size: .8rem; font-weight: 600; margin: 0;
                    text-transform: var(--case-label); color: var(--ink); }
:lang(en) .site-foot .label, :lang(he) .site-foot .label { letter-spacing: var(--track-label); }
.site-foot ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid;
                gap: .55rem; }
.site-foot li { font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
.site-foot a { font-size: .85rem; color: var(--ink-soft);
               transition: color .2s var(--ease); }
.site-foot a:hover { color: var(--ink); text-decoration: underline;
                     text-underline-offset: .25em; }
.foot-contact li { max-width: 26ch; }
.site-foot .muted { color: var(--ink-soft); font-size: .78rem; margin: 0; }
.foot-base { display: flex; flex-wrap: wrap; gap: .6rem 2rem;
             justify-content: space-between; margin-top: 3rem;
             padding-top: 1.4rem; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .foot-brand { grid-column: 1 / -1; }
}

/* تخطّي للمحتوى: مخفي لحد ما ينركّز عليه — مش `display:none`،
   لأن المخفي كلياً ما بيستقبل تركيز أصلاً فبيصير بلا فايدة. */
.skip-link { position: fixed; inset-inline-start: 1rem; top: -4rem; z-index: 100;
             background: var(--ink); color: var(--bg); padding: .7rem 1.1rem;
             font-size: .85rem; transition: top .15s var(--ease); }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important;
                           transition-duration: .01ms !important; }
}

/* Changa بلا عبري — بلا هالسطر اسم المتجر بالفوتر بيطلع مربّعات */
:lang(he) .foot-brand .brand-mark { font-family: var(--font-display-he); }

/* ═══ طرق الدفع وواتساب بالفوتر ═══ */
.foot-pay { display: flex; flex-wrap: wrap; align-items: center;
            gap: .7rem 1.6rem; margin-top: 2.4rem; }
/* 🔴 `.site-foot ul` بتحطّ `display:grid` وتخصيصها أعلى — بلا رفع تخصيص
   هون العلامات بتتكوّم عمود واحد بعرض علامة وحدة. */
.site-foot .pay-marks { list-style: none; display: flex; flex-wrap: wrap;
                        gap: .4rem; margin: 0; padding: 0; }
.site-foot .pay-marks .mark {
  display: grid; place-items: center; width: 3.6rem; height: 2.4rem; padding: 0;
  border: 1px solid var(--line); color: var(--ink); background: var(--bg);
}
.foot-pay .secure { display: inline-flex; align-items: center; gap: .35rem; }
.foot-contact .wa { display: inline-flex; align-items: center; gap: .4rem; }

/* ═══ لوحة الوصولية ═══ */
.a11y-open {
  position: fixed; inset-block-end: 1rem; inset-inline-start: 1rem; z-index: 90;
  width: 2.9rem; height: 2.9rem; display: grid; place-items: center;
  border: 1px solid var(--ink); background: var(--bg); color: var(--ink);
  border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
}
.a11y-open:hover { background: var(--ink); color: var(--bg); }
.a11y-panel {
  position: fixed; inset-block-end: 4.4rem; inset-inline-start: 1rem; z-index: 91;
  width: min(17rem, calc(100vw - 2rem)); background: var(--bg);
  border: 1px solid var(--ink); padding: .9rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.a11y-head { display: flex; align-items: center; justify-content: space-between; }
.a11y-close { border: 0; background: none; font-size: 1.4rem; line-height: 1;
              cursor: pointer; color: var(--ink); padding: 0 .2rem; }
.a11y-tools { list-style: none; margin: .8rem 0 0; padding: 0; display: grid;
              gap: .35rem; }
.a11y-tools button {
  width: 100%; text-align: start; display: flex; align-items: center; gap: .5rem;
  padding: .55rem .6rem; font-size: .82rem; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.a11y-tools button[aria-pressed="true"] { background: var(--ink); color: var(--bg);
                                          border-color: var(--ink); }
.a11y-foot { display: flex; align-items: center; justify-content: space-between;
             gap: .6rem; margin-top: .8rem; font-size: .78rem; }
.a11y-reset { border: 0; background: none; text-decoration: underline;
              cursor: pointer; color: var(--ink-soft); font-size: .78rem; padding: 0; }

/* ── اللي بتعمله المفاتيح فعلاً ── */
/* 🔴 تكبير النص على `html` بالـrem — كل المقاسات بالموقع نسبية فبتكبر معه.
   تكبير `body` لحاله ما بيأثر على اللي مقاسه بالـrem. */
html.a11y-text { font-size: 125%; }
html.a11y-contrast { --ink: #000; --ink-soft: #1a1a1a; --line: #000;
                     --bg: #fff; --bg-tint: #fff; }
html.a11y-contrast .hero::before { background: rgba(255,255,255,.75); }
html.a11y-contrast .site-foot { background: #fff; }
html.a11y-links a { text-decoration: underline; text-underline-offset: .2em; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  transition-duration: .01ms !important; scroll-behavior: auto !important;
}

@media print { .a11y-open, .a11y-panel { display: none; } }

/* علامات الدفع — صندوق موحّد لأن نسب اللوجوهات مختلفة جداً
   (فيزا كلمة عريضة، بايبال حرف ضيّق) */
.site-foot .pay-marks .mark img, .site-foot .pay-marks .mark svg {
  max-width: 78%; max-height: 74%; width: auto; height: auto;
}
.site-foot .pay-marks .mark-cash svg { max-width: 66%; max-height: 58%; }
.vis-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden;
              clip-path: inset(50%); white-space: nowrap; }

/* عناوين فرعية داخل عمود التواصل */
.foot-contact-col .sublabel { font-size: .74rem; font-weight: 600;
                              color: var(--ink); margin: 1.1rem 0 0; }
.foot-contact-col .sublabel:first-of-type { margin-top: .9rem; }
.foot-contact-col .foot-contact { margin-top: .35rem; }
.foot-legal { margin-top: 1.1rem; line-height: 1.6; }

/* موافقة التقنون بصفحة الدفع — شرط اعتماد سليقة الموقع */
.accept { display: flex; align-items: flex-start; gap: .55rem;
          margin: 1.2rem 0; font-size: .85rem; line-height: 1.6; }
.accept input { margin-top: .25rem; flex: 0 0 auto; width: 1rem; height: 1rem; }
.accept a { text-decoration: underline; text-underline-offset: .2em; }


/* ═══════════════════════════════════════════════════════════════════════
   ثيم `editorial` — أزياء. قرارات مقيسة من مراجع الفئة (aloyoga
   2026-09-25) ومعدّلة للعربي:
   · صفر انحناء — البطاقة المدوّرة بتقرا «تطبيق»، والمربّعة بتقرا «مجلّة»
   · صور 2:3 طولية — قصّة الأزياء، مش مربّع الكتالوج
   · ليبل 12px بوزن خفيف بدل عنوان غليظ
   · التضاد بين تتبّع العنوان السالب وتتبّع الكيكر الموجب بيعطي الحضور

   🔴 التتبّع هون **بيتخطّى العربي** لحاله — القاعدة بالمحرّك فوق
   (محصورة بـ[lang=en] و[lang=he])، مش بالقيم هون.
   ═══════════════════════════════════════════════════════════════════════ */
[data-theme="editorial"] {
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body-he: "Heebo", system-ui, sans-serif;
  --font-body-en: "IBM Plex Sans", system-ui, sans-serif;
  /* Changa خط البراند للعرض — حروفه العريضة بتعطي حضور، بس بيتلخبط
     بـ12px فالمتن بيضل Plex. و**Changa ما فيها حرف عبري**: مكدّس
     العبري Heebo، وإلا مربّعات فاضية بلا أي خطأ. */
  --font-display: "Changa", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-display-he: "Heebo", system-ui, sans-serif;

  --ratio-card: 2 / 3;
  --ratio-tile: 4 / 5;
  --ratio-hero: 4 / 5;
  --radius: 0;

  --case-label: uppercase;
  --track-label: .09em;
  --track-kicker: .07em;
  --track-title: -.03em;
  --track-announce: .12em;
  --track-brand: .22em;
  --track-btn: .1em;

  /* 🔴 مقيسة على بكسل لوحة الهيرو تبع فليكس وير — فاتح أكتر بينزل تحت
     4.5:1 فوق الصورة. ثيم تاني بصورة تانية بدّه قياس من جديد. */
  --hero-kicker: #4a3a30;
  --hero-lede: #3a2c24;
}

/* اختيار طريقة الدفع — بيبيّن بس لما يكون في مزوّد موصول */
.pay-choice { border: 1px solid var(--line); padding: .9rem 1.1rem;
              margin: 1.2rem 0; }
.pay-choice legend { font-size: var(--label); font-weight: 600; padding: 0 .4rem; }
.pay-choice label { display: flex; align-items: center; gap: .55rem;
                    padding: .35rem 0; cursor: pointer; }
.pay-choice input { width: auto; margin: 0; }
.pay-choice .muted { font-size: .78rem; margin: .5rem 0 0; }

.payment.paid { color: #0a7; font-weight: 600; }
.payment.unpaid { color: #c00; font-weight: 600; }

/* كوبون الخصم */
.coupon { margin: 1rem 0; }
.coupon-row { display: flex; gap: .5rem; }
/* التحويل لكابيتال بيصير على الخادم — `normalise_code` — فما في
   داعي نفرضه بالعرض ونكسر حارس الثيم. */
.coupon-row input { flex: 1; }
.coupon .applied { display: flex; align-items: center; gap: .6rem;
                   font-weight: 600; }
.coupon .link { border: 0; background: none; text-decoration: underline;
                cursor: pointer; font-size: .8rem; color: var(--ink-soft); }
.total.subtotal, .total.discount-line { font-size: .9rem; font-weight: 400; }
.total.discount-line { color: #0a7; }
