@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════════════
   مُونَتْنا — نظام التصميم
   RTL أولاً · مقروئية عالية لكبار السن · ألوان العلم اللبناني
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. الرموز (Design tokens) ─────────────────────────────────────── */
:root {
  /* الهوية */
  --red:        #CE1126;
  --red-deep:   #8E0B1C;
  --red-soft:   #F6E3E4;
  --green:      #007A3D;
  --green-deep: #04502A;
  --green-soft: #E1EFE5;

  /* أساس دافئ */
  --paper:      #FBF7F0;
  --paper-2:    #F4EDE1;
  --sand:       #E9DCC6;
  --clay:       #D8C4A4;
  --gold:       #B8863B;

  /* حبر */
  --ink:        #221B15;
  --ink-2:      #4A3E33;
  --muted:      #6E6053;
  --line:       #E0D4BF;
  --white:      #FFFFFF;

  /* حالات */
  --ok:         #17703F;
  --ok-bg:      #E3F1E8;
  --warn:       #9A6410;
  --warn-bg:    #FBEEDA;
  --info:       #1F5F86;
  --info-bg:    #E2EEF6;

  /* مسافات */
  --s1: .35rem;  --s2: .7rem;  --s3: 1.1rem;  --s4: 1.6rem;
  --s5: 2.4rem;  --s6: 3.4rem; --s7: 5rem;    --s8: 7rem;

  /* أنصاف أقطار */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 34px; --r-pill: 999px;

  /* ظلال دافئة */
  --sh-1: 0 2px 8px rgba(60,40,20,.07);
  --sh-2: 0 8px 26px rgba(60,40,20,.10);
  --sh-3: 0 20px 54px rgba(60,40,20,.16);
  --sh-red: 0 12px 30px rgba(206,17,38,.24);

  /* خطوط */
  --f-head: "Tajawal", "Cairo", system-ui, sans-serif;
  --f-body: "Cairo", "Tajawal", system-ui, sans-serif;

  /* أحجام — قاعدة 18px لكبار السن */
  --t-xs:  .875rem;   /* 14 */
  --t-sm:  1rem;      /* 16 */
  --t-base:1.125rem;  /* 18 */
  --t-md:  1.25rem;   /* 20 */
  --t-lg:  1.5rem;    /* 24 */
  --t-xl:  2rem;      /* 32 */
  --t-2xl: clamp(2.1rem, 4.4vw, 3.2rem);
  --t-3xl: clamp(2.6rem, 7vw, 5.2rem);

  --tap: 56px;                    /* أدنى مساحة لمس */
  --maxw: 1280px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ── 2. إعادة ضبط ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
p  { text-wrap: pretty; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

ul, ol { list-style: none; padding: 0; }

/* تركيز واضح — لا نحذفه أبداً */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--red); color: #fff; }

/* شريط التمرير */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--clay); border-radius: 99px; border: 3px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── 3. أدوات عامة ─────────────────────────────────────────────────── */
.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.4rem, 860px); margin-inline: auto; }

.section { padding-block: var(--s8); position: relative; }
.section--tight { padding-block: var(--s6); }
/* أول قسم بالصفحة — مضغوط حتى المنتجات تبيّن فوراً */
.section--top { padding-block: var(--s4) var(--s5); }

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

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 999;
  background: var(--green); color: #fff; padding: .9rem 1.4rem;
  border-radius: var(--r-sm); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-head); font-weight: 700; font-size: var(--t-sm);
  letter-spacing: .08em; color: var(--red);
  background: var(--red-soft); padding: .5rem 1.1rem; border-radius: var(--r-pill);
}
.eyebrow--green { color: var(--green-deep); background: var(--green-soft); }
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; flex: none;
}

.sec-head { margin-bottom: var(--s5); max-width: 720px; }
.sec-head h2 { font-size: var(--t-2xl); margin-block: var(--s2) var(--s2); }
.sec-head p  { color: var(--muted); font-size: var(--t-md); }
.sec-head--center { margin-inline: auto; text-align: center; }

.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5);
}
.head-row .sec-head { margin-bottom: 0; }

/* ── 4. أزرار ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--tap); padding: .85rem 1.9rem;
  font-family: var(--f-head); font-weight: 700; font-size: var(--t-base);
  border-radius: var(--r-pill); border: 2px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s, color .18s, border-color .18s;
  will-change: transform;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 22px; height: 22px; flex: none; }

.btn--primary { background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.btn--primary:hover { background: var(--red-deep); box-shadow: 0 16px 38px rgba(206,17,38,.32); }

.btn--green { background: var(--green); color: #fff; box-shadow: 0 12px 30px rgba(0,122,61,.24); }
.btn--green:hover { background: var(--green-deep); }

.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); }

.btn--soft { background: var(--sand); color: var(--ink); }
.btn--soft:hover { background: var(--clay); }

.btn--lg  { min-height: 66px; padding: 1rem 2.6rem; font-size: var(--t-md); }
.btn--sm  { min-height: 46px; padding: .5rem 1.2rem; font-size: var(--t-sm); }
.btn--full{ width: 100%; }

.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── 5. شريط التنقّل المثبّت ────────────────────────────────────────── */
:root { --navbar-h: 66px; }

/* منع أي انزياح أفقي — مهم بالـRTL مع الدرج الجانبي */
html, body { overflow-x: hidden; max-width: 100%; }

.navbar {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1000;
  height: var(--navbar-h);
  background: rgba(251,247,240,.94);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
.navbar__in {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  height: 100%; width: min(100% - 1.6rem, var(--maxw)); margin-inline: auto;
}

/* المحتوى بينزاح تحت الشريط المثبّت */
body { padding-top: var(--navbar-h); }

.logo { display: flex; align-items: center; gap: .5rem; flex: none; min-width: 0; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo__name {
  font-family: var(--f-head); font-weight: 900; font-size: 1.32rem;
  letter-spacing: -.02em; white-space: nowrap;
}
.logo__tag { display: none; }

.navbar__actions { display: flex; align-items: center; gap: .4rem; flex: none; }
.navbar__actions .icon-btn { width: 48px; height: 48px; }
.navbar__actions .icon-btn svg { width: 24px; height: 24px; }

/* ── 5ب. البحث + زر الطلب الخاص ────────────────────────────────────── */
.subhead { background: var(--paper); border-bottom: 1px solid var(--line); }
.subhead__in {
  width: min(100% - 1.6rem, 720px); margin-inline: auto;
  padding-block: var(--s2) var(--s3);
  display: grid; gap: .6rem;
}
.subhead .search { max-width: none; width: 100%; }
.request-cta { font-size: var(--t-sm); min-height: 52px; }

/* ── 5ج. الدرج الجانبي — طبقة ثابتة فوق الصفحة ─────────────────────── */
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0;
  width: min(84vw, 330px); max-width: 100vw;
  z-index: 9999;
  background: var(--paper);
  box-shadow: var(--sh-3);
  padding: var(--s3);
  display: flex; flex-direction: column; gap: .25rem;
  overflow-y: auto; overscroll-behavior: contain;
  /* بالـRTL الحافة inline-end هي اليسار — فالدرج بينزلق من اليسار،
     بنفس جهة زر القائمة. وبالـLTR بيصير العكس. */
  transform: translateX(-100%);
  transition: transform .3s var(--ease);
  visibility: hidden;
}
[dir="ltr"] .drawer { transform: translateX(100%); }
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--s2); margin-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-family: var(--f-head); font-weight: 800; font-size: var(--t-md); }

.drawer a {
  padding: .85rem 1rem; border-radius: var(--r-md); font-weight: 700;
  font-size: var(--t-base); min-height: var(--tap);
  display: flex; align-items: center; transition: background-color .2s, color .2s;
}
.drawer a:hover { background: var(--sand); }
.drawer a.is-active { color: var(--red); background: var(--red-soft); }

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(34,27,21,.55);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer-backdrop.is-on { opacity: 1; pointer-events: auto; }

/* لما الدرج مفتوح منقفل تمرير الصفحة */
body.drawer-open { overflow: hidden; }

.icon-btn {
  width: var(--tap); height: var(--tap); border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform .18s var(--ease), border-color .2s, background-color .2s;
  position: relative;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--green); }
.icon-btn svg { width: 26px; height: 26px; }

.cart-count {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 26px; height: 26px; padding: 0 6px;
  background: var(--red); color: #fff; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--paper);
}
.cart-count[data-empty="1"] { display: none; }

/* زر الحساب — بيتحوّل لحرف اسم المستخدم لمّا يسجّل دخول */
.acc-initial { display: none; }
#accountBtn.is-in .acc-ico { display: none; }
#accountBtn.is-in .acc-initial {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--f-head); font-weight: 900; font-size: 1.3rem;
  color: var(--green-deep);
}
#accountBtn.is-in { background: var(--green-soft); border-color: var(--green); }

/* أزرار نجوم التقييم */
.rv-star { transition: transform .15s var(--ease); }
.rv-star:hover { transform: scale(1.14); }

.burger { display: none; }

/* ── 6. البحث الصوتي ───────────────────────────────────────────────── */
.search {
  display: flex; align-items: center; gap: .4rem; flex: 1 1 260px;
  max-width: 460px; background: var(--white);
  border: 2px solid var(--line); border-radius: var(--r-pill);
  padding: .3rem .35rem .3rem 1.2rem; box-shadow: var(--sh-1);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: var(--t-sm); min-height: 46px; font-weight: 600;
}
.search input::placeholder { color: var(--muted); font-weight: 500; }

.mic {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--red); color: #fff; display: grid; place-items: center;
  transition: transform .18s var(--ease), background-color .2s;
  position: relative;
}
.mic:hover { transform: scale(1.06); }
.mic svg { width: 24px; height: 24px; }
.mic.is-live { background: var(--green); animation: micPulse 1.3s infinite; }
@keyframes micPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,122,61,.55); }
  70%  { box-shadow: 0 0 0 18px rgba(0,122,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,122,61,0); }
}
.search__go { width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--sand); display: grid; place-items: center; transition: background-color .2s; }
.search__go:hover { background: var(--clay); }
.search__go svg { width: 22px; height: 22px; }

/* لوحة الاستماع */
.voice-panel {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; background: rgba(34,27,21,.72);
  backdrop-filter: blur(8px); padding: 1.5rem;
}
.voice-panel.is-open { display: grid; }
.voice-card {
  background: var(--paper); border-radius: var(--r-xl); padding: var(--s6) var(--s5);
  text-align: center; max-width: 520px; width: 100%; box-shadow: var(--sh-3);
}
.voice-card h3 { font-size: var(--t-xl); margin-bottom: .6rem; }
.voice-card p  { color: var(--muted); font-size: var(--t-md); }
.voice-orb {
  width: 130px; height: 130px; border-radius: 50%; margin: 0 auto var(--s4);
  background: var(--red); display: grid; place-items: center; color: #fff;
  position: relative;
}
.voice-orb svg { width: 58px; height: 58px; }
.voice-orb::before, .voice-orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--red); animation: ripple 2s infinite;
}
.voice-orb::after { animation-delay: 1s; }
@keyframes ripple {
  from { transform: scale(1); opacity: .7; }
  to   { transform: scale(1.9); opacity: 0; }
}
.voice-heard {
  margin-top: var(--s3); font-family: var(--f-head); font-weight: 700;
  font-size: var(--t-lg); color: var(--green-deep); min-height: 2.2rem;
}
.voice-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: var(--s4); }
.voice-chips button {
  padding: .55rem 1.1rem; border-radius: var(--r-pill); background: var(--sand);
  font-size: var(--t-xs); font-weight: 700; min-height: 44px;
}
.voice-chips button:hover { background: var(--clay); }

/* ── 7. الواجهة (Hero) ─────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--paper-2); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.18); will-change: transform;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(20,14,10,.86) 12%, rgba(20,14,10,.55) 55%, rgba(20,14,10,.30) 100%);
}
.hero__in {
  position: relative; z-index: 2; color: #fff;
  min-height: 92svh; display: flex; flex-direction: column; justify-content: center;
  padding-block: var(--s8) var(--s7);
  width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto;
}
.hero__title {
  font-size: var(--t-3xl); font-weight: 900; max-width: 15ch;
  text-shadow: 0 3px 26px rgba(0,0,0,.4); margin-block: var(--s3);
}
.hero__title .hl { color: #FFC94D; }
.hero__sub {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); max-width: 46ch;
  color: rgba(255,255,255,.92); margin-bottom: var(--s5);
}
.hero__cta { display: flex; gap: var(--s2); flex-wrap: wrap; }

.hero__stats {
  display: flex; gap: var(--s5); flex-wrap: wrap; margin-top: var(--s6);
  padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.22);
}
.hero__stat b {
  display: block; font-family: var(--f-head); font-weight: 900;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; color: #FFC94D;
}
.hero__stat span { font-size: var(--t-sm); color: rgba(255,255,255,.8); }

.scroll-hint {
  position: absolute; bottom: 1.6rem; inset-inline-start: 50%;
  transform: translateX(50%); z-index: 3; color: rgba(255,255,255,.75);
  font-size: var(--t-xs); text-align: center; font-weight: 600;
}
.scroll-hint span {
  display: block; width: 26px; height: 42px; margin: .5rem auto 0;
  border: 2px solid rgba(255,255,255,.55); border-radius: var(--r-pill); position: relative;
}
.scroll-hint span::after {
  content: ""; position: absolute; top: 8px; left: 50%; margin-left: -3px;
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: wheel 1.7s infinite;
}
@keyframes wheel { 0% { top: 8px; opacity: 1; } 70% { top: 24px; opacity: 0; } 100% { opacity: 0; } }

/* ── 8. شريط متحرك لا نهائي (Marquee loop) ─────────────────────────── */
.marquee {
  overflow: hidden; background: var(--red); color: #fff;
  padding-block: 1rem; border-block: 3px solid var(--red-deep);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: .8rem; padding-inline: 1.8rem;
  font-family: var(--f-head); font-weight: 800; font-size: var(--t-md);
  white-space: nowrap;
}
.marquee__item::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: #FFC94D; flex: none;
}
.marquee--green { background: var(--green); border-color: var(--green-deep); }

/* ── 9. بطاقات الأصناف — صناديق صغيرة جنب بعضها ───────────────────── */
/* أعمدة صريحة حتى تطلع صفوف متوازنة — auto-fill بيعطي ٥+١ وبيبيّن مكسور */
/* عمودين دايماً — وصورة طولية ٣/٤ مناسبة للموبايل */
.cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
}

.cat-card {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  aspect-ratio: 3 / 4;
  display: flex; align-items: flex-end;
  box-shadow: var(--sh-1); isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.cat-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.cat-card:hover img { transform: scale(1.07); }
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20,14,10,.93) 6%, rgba(20,14,10,.42) 55%, rgba(20,14,10,.10) 100%);
}
.cat-card__body { padding: var(--s3); color: #fff; width: 100%; }
.cat-card__tag { display: none; }          /* الصندوق الصغير ما بيتحمّل وسم زيادة */
.cat-card h2, .cat-card h3 { font-size: var(--t-md); margin-bottom: .2rem; line-height: 1.3; }
.cat-card p  { display: none; }            /* الوصف بينعرض بصفحة الصنف */
.cat-card__count {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 800; font-size: var(--t-xs); color: #FFC94D;
}

/* ── 10. بطاقة منتج ────────────────────────────────────────────────── */
.grid-products {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: var(--s3);
}

.pcard {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: var(--clay); }

.pcard__media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--paper-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.08); }

.pcard__badges {
  position: absolute; top: .7rem; inset-inline-start: .7rem;
  display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; z-index: 2;
}
.badge {
  font-size: .8rem; font-weight: 800; padding: .3rem .75rem;
  border-radius: var(--r-pill); font-family: var(--f-head);
  display: inline-flex; align-items: center; gap: .3rem;
}
.badge--sale  { background: var(--red);   color: #fff; }
.badge--pro   { background: var(--gold);  color: #fff; }
.badge--ok    { background: var(--ok-bg);   color: var(--ok); }
.badge--pre   { background: var(--info-bg); color: var(--info); }
.badge--season{ background: var(--warn-bg); color: var(--warn); }
.badge--off   { background: #EEE7DC; color: var(--muted); }
.badge svg { width: 14px; height: 14px; }

.pcard__region {
  position: absolute; bottom: .7rem; inset-inline-start: .7rem; z-index: 2;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  padding: .3rem .8rem; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 800; display: inline-flex; align-items: center; gap: .35rem;
}
.pcard__region svg { width: 15px; height: 15px; color: var(--red); }

.pcard__body { padding: var(--s3); display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pcard__name {
  font-family: var(--f-head); font-weight: 800; font-size: var(--t-md);
  line-height: 1.35;
}
/* الرابط يملأ كل ارتفاع العنوان — مساحة لمس ≥ 44px لكبار السن */
.pcard__name a { display: flex; align-items: center; min-height: 44px; }
.pcard__seller { font-size: var(--t-xs); color: var(--muted); font-weight: 600; }

/* بطاقة نظيفة: صورة طولية + اسم + تاجر + سعر — بلا شارات ولا وسوم */
.pcard__badges,
.pcard__region,
.pcard__cat,
.pcard__meta { display: none; }

.price-row { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-now { font-family: var(--f-head); font-weight: 900; font-size: 1.55rem; color: var(--red); }
.price-old { font-size: var(--t-sm); color: var(--muted); text-decoration: line-through; }
.price-unit{ font-size: var(--t-xs); color: var(--muted); font-weight: 600; }

.pcard__foot { margin-top: auto; padding-top: .6rem; display: flex; gap: .5rem; }
.pcard__foot .btn { flex: 1; }

/* نجوم */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star { width: 17px; height: 17px; fill: #DCD2C2; flex: none; }
.star.on   { fill: #F0A81E; }
.star.half { fill: url(#halfGrad); }
.rating-txt { font-size: var(--t-xs); color: var(--muted); font-weight: 700; }

/* ── 11. الفلاتر ───────────────────────────────────────────────────── */
.catalog-layout { display: grid; grid-template-columns: 292px 1fr; gap: var(--s4); align-items: start; }

.filters {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s4); box-shadow: var(--sh-1); position: sticky; top: 104px;
}
.filters h3 { font-size: var(--t-md); margin-bottom: var(--s3); display: flex; align-items: center; gap: .5rem; }
.filters h3 svg { width: 22px; height: 22px; color: var(--red); }

.fgroup { border-top: 1px solid var(--line); padding-top: var(--s3); margin-top: var(--s3); }
.fgroup:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.fgroup > h4 { font-size: var(--t-sm); margin-bottom: .8rem; color: var(--ink-2); }

.fopt {
  display: flex; align-items: center; gap: .7rem; min-height: 48px;
  padding: .3rem .6rem; border-radius: var(--r-sm); cursor: pointer;
  transition: background-color .18s; font-size: var(--t-sm); font-weight: 600;
}
.fopt:hover { background: var(--paper-2); }
.fopt input { width: 22px; height: 22px; accent-color: var(--green); flex: none; cursor: pointer; }
.fopt .n { margin-inline-start: auto; font-size: var(--t-xs); color: var(--muted); font-weight: 700; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  flex-wrap: wrap; margin-bottom: var(--s3);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: .7rem 1.1rem; box-shadow: var(--sh-1);
}
.toolbar__count { font-weight: 700; font-size: var(--t-sm); }
.toolbar__count b { color: var(--red); }

/* شريط صفحة التصنيف — بلا فلاتر، بس العدد وزر الرجوع */
.listing-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3);
}
.listing-bar__count { font-weight: 700; font-size: var(--t-sm); }
.listing-bar__count b { color: var(--red); font-size: var(--t-md); }

.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap svg {
  position: absolute; inset-inline-end: .9rem; width: 18px; height: 18px;
  pointer-events: none; color: var(--muted);
}
select.ui-select {
  appearance: none; min-height: 50px; padding: .5rem 2.6rem .5rem 1.1rem;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--t-sm); cursor: pointer;
}

.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: var(--s3); }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  padding: .4rem 1rem; border-radius: var(--r-pill);
  background: var(--green-soft); color: var(--green-deep);
  font-weight: 700; font-size: var(--t-xs);
}
.chip button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.08); }
.chip button:hover { background: var(--red); color: #fff; }
.chip svg { width: 13px; height: 13px; }

.empty {
  text-align: center; padding: var(--s7) var(--s3);
  background: var(--white); border: 2px dashed var(--line); border-radius: var(--r-lg);
}
.empty svg { width: 74px; height: 74px; margin: 0 auto var(--s3); color: var(--clay); }
.empty h3 { font-size: var(--t-xl); margin-bottom: .6rem; }
.empty p { color: var(--muted); margin-bottom: var(--s3); }

/* ── 12. قصة / خطوات ───────────────────────────────────────────────── */
.story { background: var(--ink); color: var(--paper); overflow: hidden; }
.story .sec-head h2 { color: #fff; }
.story .sec-head p  { color: rgba(251,247,240,.7); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.step {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: var(--s4);
  transition: transform .3s var(--ease), background-color .3s;
}
.step:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); }
.step__n {
  width: 62px; height: 62px; border-radius: var(--r-md); background: var(--red);
  display: grid; place-items: center; font-family: var(--f-head);
  font-weight: 900; font-size: 1.7rem; color: #fff; margin-bottom: var(--s3);
}
.step:nth-child(2) .step__n { background: var(--green); }
.step:nth-child(3) .step__n { background: var(--gold); }
.step h3 { font-size: var(--t-lg); margin-bottom: .5rem; color: #fff; }
.step p  { color: rgba(251,247,240,.72); font-size: var(--t-sm); }

/* قسم مثبّت بتكبير (pinned zoom) */
.zoom-stage {
  position: relative; height: 100svh; overflow: hidden;
  display: grid; place-items: center; background: var(--ink);
}
.zoom-stage__img { position: absolute; inset: 0; }
.zoom-stage__img img { width: 100%; height: 100%; object-fit: cover; opacity: .55; will-change: transform; }
.zoom-stage__txt {
  position: relative; z-index: 2; text-align: center; color: #fff;
  padding: var(--s4); width: min(100% - 3rem, 900px);
}
.zoom-stage__txt h2 {
  font-size: clamp(2rem, 6vw, 4.4rem); font-weight: 900;
  text-shadow: 0 4px 30px rgba(0,0,0,.55);
}
.zoom-stage__txt p { font-size: var(--t-md); color: rgba(255,255,255,.86); margin-top: var(--s3); }

/* ── 13. تمرير أفقي مثبّت ──────────────────────────────────────────── */
.hscroll { overflow: hidden; background: var(--paper-2); }
.hscroll__track { display: flex; gap: var(--s3); width: max-content; padding-inline: 6vw; align-items: stretch; }
.hscroll__card {
  width: min(78vw, 380px); flex: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-2); display: flex; flex-direction: column;
}
.hscroll__card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.hscroll__card .b { padding: var(--s3); flex: 1; display: flex; flex-direction: column; gap: .45rem; }
.hscroll__card h3 { font-size: var(--t-lg); }
.hscroll__card p { color: var(--muted); font-size: var(--t-sm); }

/* ── 14. التجّار ───────────────────────────────────────────────────── */
.grid-sellers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3); }

.scard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s4); box-shadow: var(--sh-1); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.scard:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.scard--featured { border-color: var(--gold); border-width: 2px; }
.scard--featured::before {
  content: "تاجر مميّز"; position: absolute; top: 14px; inset-inline-end: -34px;
  background: var(--gold); color: #fff; font-size: .72rem; font-weight: 800;
  padding: .3rem 2.6rem; transform: rotate(45deg); font-family: var(--f-head);
}
.scard__top { display: flex; align-items: center; gap: .9rem; margin-bottom: var(--s3); }
.scard__ava {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  background: var(--green-soft); color: var(--green-deep);
  display: grid; place-items: center; font-family: var(--f-head);
  font-weight: 900; font-size: 1.5rem; border: 2px solid var(--green);
}
.scard__name { font-family: var(--f-head); font-weight: 800; font-size: var(--t-md); display: flex; align-items: center; gap: .35rem; }
.scard__name svg { width: 19px; height: 19px; color: var(--green); flex: none; }
.scard__region { font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.scard__bio { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: var(--s3); }
.scard__stats { display: flex; gap: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.scard__stat b { display: block; font-family: var(--f-head); font-weight: 900; font-size: var(--t-md); color: var(--red); }
.scard__stat span { font-size: var(--t-xs); color: var(--muted); }

/* ── 15. صفحة المنتج ───────────────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s6); align-items: start; }
.pdp__media {
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3);
  position: sticky; top: 108px; background: var(--paper-2);
}
.pdp__media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.pdp h1 { font-size: var(--t-2xl); margin-block: .7rem 1rem; }
.pdp__price { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: var(--s3); }
.pdp__price .price-now { font-size: 2.6rem; }
.pdp__desc { font-size: var(--t-md); color: var(--ink-2); margin-bottom: var(--s4); }

.spec-list { display: grid; gap: .1rem; margin-bottom: var(--s4); border-radius: var(--r-md); overflow: hidden; }
.spec-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .95rem 1.2rem; background: var(--white); font-size: var(--t-sm);
}
.spec-row:nth-child(even) { background: var(--paper-2); }
.spec-row dt { color: var(--muted); font-weight: 600; }
.spec-row dd { font-weight: 800; text-align: end; }

.qty { display: inline-flex; align-items: center; gap: .2rem; background: var(--white);
  border: 2px solid var(--line); border-radius: var(--r-pill); padding: .25rem; }
.qty button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); font-size: 1.4rem; font-weight: 800; transition: background-color .2s; }
.qty button:hover { background: var(--sand); }
.qty input { width: 62px; text-align: center; border: 0; background: none; outline: none;
  font-family: var(--f-head); font-weight: 900; font-size: var(--t-md); }

.buy-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: var(--s4); }

.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.trust-item {
  display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem;
  background: var(--green-soft); border-radius: var(--r-md); font-size: var(--t-xs); font-weight: 700;
}
.trust-item svg { width: 26px; height: 26px; color: var(--green-deep); flex: none; }

/* ── 16. الدفع ─────────────────────────────────────────────────────── */
.checkout { display: grid; grid-template-columns: 1.25fr .85fr; gap: var(--s5); align-items: start; }

.stepper { display: flex; gap: .5rem; margin-bottom: var(--s5); }
.stepper__i {
  flex: 1; text-align: center; padding: .9rem .5rem; border-radius: var(--r-md);
  background: var(--white); border: 2px solid var(--line); font-weight: 700; font-size: var(--t-xs);
}
.stepper__i.on { border-color: var(--green); background: var(--green-soft); color: var(--green-deep); }
.stepper__i b { display: block; font-family: var(--f-head); font-size: var(--t-md); }

.card-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--sh-1);
}
.card-panel + .card-panel { margin-top: var(--s3); }
.card-panel > h2 { font-size: var(--t-xl); margin-bottom: var(--s2); }
.card-panel > p.hint { color: var(--muted); font-size: var(--t-sm); margin-bottom: var(--s4); }

.field { margin-bottom: var(--s3); }
.field label { display: block; font-weight: 800; margin-bottom: .5rem; font-size: var(--t-sm); }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; min-height: var(--tap); padding: .85rem 1.2rem;
  border: 2px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); font-size: var(--t-base); font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field .help { font-size: var(--t-xs); color: var(--muted); margin-top: .4rem; }
.field .err { font-size: var(--t-xs); color: var(--red); font-weight: 700; margin-top: .4rem; display: none; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--red); }
.field.is-bad .err { display: block; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }

.pay-opts { display: grid; gap: .8rem; }
.pay-opt {
  display: flex; align-items: flex-start; gap: .9rem; padding: var(--s3);
  border: 2px solid var(--line); border-radius: var(--r-md); cursor: pointer;
  background: var(--paper); transition: border-color .2s, background-color .2s;
}
.pay-opt:hover { border-color: var(--clay); }
.pay-opt input { width: 24px; height: 24px; accent-color: var(--green); flex: none; margin-top: 3px; }
.pay-opt:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.pay-opt b { display: block; font-family: var(--f-head); font-size: var(--t-md); }
.pay-opt span { font-size: var(--t-xs); color: var(--muted); }
.pay-opt__ico { width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--sand); flex: none; }
.pay-opt__ico svg { width: 26px; height: 26px; color: var(--ink-2); }

.wish-box { display: none; margin-top: var(--s3); padding: var(--s4);
  background: var(--paper-2); border-radius: var(--r-md); border: 2px dashed var(--clay); }
.wish-box.is-open { display: block; }
.wish-box__grid { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.qr { width: 168px; height: 168px; background: #fff; padding: 10px; border-radius: var(--r-sm); flex: none; box-shadow: var(--sh-1); }
.wish-num { font-family: var(--f-head); font-weight: 900; font-size: var(--t-lg); color: var(--green-deep); direction: ltr; text-align: start; }

.summary { position: sticky; top: 108px; }
.sum-line { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; font-size: var(--t-sm); }
.sum-line--total {
  border-top: 2px solid var(--line); margin-top: .6rem; padding-top: 1rem;
  font-family: var(--f-head); font-weight: 900; font-size: var(--t-lg);
}
.sum-line--total span:last-child { color: var(--red); }

.cart-item { display: flex; gap: .9rem; padding-block: var(--s2); border-bottom: 1px solid var(--line); }
.cart-item img { width: 74px; height: 74px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.cart-item__b { flex: 1; min-width: 0; }
.cart-item__n { font-weight: 800; font-size: var(--t-sm); line-height: 1.4; }
.cart-item__m { font-size: var(--t-xs); color: var(--muted); }
.cart-item__x { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); flex: none; align-self: center; }
.cart-item__x:hover { background: var(--red); color: #fff; }
.cart-item__x svg { width: 16px; height: 16px; }

/* ── 17. لوحة التاجر ───────────────────────────────────────────────── */
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.kpi {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s4); box-shadow: var(--sh-1);
}
.kpi__ico { width: 54px; height: 54px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: var(--s2); }
.kpi__ico svg { width: 28px; height: 28px; }
.kpi:nth-child(1) .kpi__ico { background: var(--red-soft); color: var(--red); }
.kpi:nth-child(2) .kpi__ico { background: var(--green-soft); color: var(--green-deep); }
.kpi:nth-child(3) .kpi__ico { background: var(--warn-bg); color: var(--warn); }
.kpi:nth-child(4) .kpi__ico { background: var(--info-bg); color: var(--info); }
.kpi b { display: block; font-family: var(--f-head); font-weight: 900; font-size: 2.3rem; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: var(--t-sm); font-weight: 600; }
.kpi .delta { font-size: var(--t-xs); font-weight: 800; color: var(--ok); }

.dtable { width: 100%; border-collapse: collapse; background: var(--white); overflow: hidden; border-radius: var(--r-lg); }
.dtable th, .dtable td { padding: 1rem 1.2rem; text-align: start; font-size: var(--t-sm); border-bottom: 1px solid var(--line); }
.dtable th { background: var(--paper-2); font-family: var(--f-head); font-weight: 800; white-space: nowrap; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable tbody tr { transition: background-color .18s; }
.dtable tbody tr:hover { background: var(--paper); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }

.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; min-height: 48px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 58px; height: 32px; border-radius: var(--r-pill); background: var(--clay);
  position: relative; transition: background-color .25s; flex: none;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 26px; height: 26px; border-radius: 50%; background: #fff;
  transition: transform .25s var(--ease); box-shadow: var(--sh-1);
}
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track::after { transform: translateX(-26px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--green); outline-offset: 3px; }
.switch__lbl { font-size: var(--t-sm); font-weight: 700; }

/* ── 18. التسعير ───────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); align-items: start; }
.plan {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s5); box-shadow: var(--sh-1); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.plan--hot { border-color: var(--red); box-shadow: var(--sh-2); }
.plan__badge {
  position: absolute; top: -16px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--red); color: #fff; padding: .4rem 1.3rem; border-radius: var(--r-pill);
  font-family: var(--f-head); font-weight: 800; font-size: var(--t-xs); white-space: nowrap;
}
.plan h3 { font-size: var(--t-xl); margin-bottom: .3rem; }
.plan__tag { color: var(--muted); font-size: var(--t-sm); margin-bottom: var(--s3); min-height: 3em; }
.plan__price { font-family: var(--f-head); font-weight: 900; font-size: 3.2rem; line-height: 1; color: var(--red); }
.plan__price sup { font-size: 1.3rem; vertical-align: super; }
.plan__per { color: var(--muted); font-size: var(--t-sm); margin-bottom: var(--s4); }
.plan__f { display: grid; gap: .7rem; margin-bottom: var(--s4); }
.plan__f li { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--t-sm); }
.plan__f svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.plan__f .yes svg { color: var(--green); }
.plan__f .no { color: var(--muted); }
.plan__f .no svg { color: var(--clay); }

/* ── 19. المدونة ───────────────────────────────────────────────────── */
.grid-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s3); }
.post {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.post img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover img { transform: scale(1.06); }
.post__media { overflow: hidden; }
.post__b { padding: var(--s3); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post__cat { font-size: var(--t-xs); font-weight: 800; color: var(--red); }
.post h3 { font-size: var(--t-md); line-height: 1.4; }
.post p { font-size: var(--t-sm); color: var(--muted); flex: 1; }
.post__m { font-size: var(--t-xs); color: var(--muted); display: flex; gap: .8rem; padding-top: .5rem; border-top: 1px solid var(--line); }

.prose { font-size: var(--t-md); line-height: 1.95; }
.prose h2 { font-size: var(--t-xl); margin-block: var(--s5) var(--s2); }
.prose h3 { font-size: var(--t-lg); margin-block: var(--s4) var(--s2); }
.prose p  { margin-bottom: var(--s3); color: var(--ink-2); }
.prose ul { margin-bottom: var(--s3); display: grid; gap: .7rem; }
.prose ul li { padding-inline-start: 1.8rem; position: relative; color: var(--ink-2); }
.prose ul li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .72em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
}
.prose blockquote {
  border-inline-start: 5px solid var(--green); background: var(--green-soft);
  padding: var(--s3) var(--s4); border-radius: var(--r-md); margin-block: var(--s4);
  font-weight: 600; color: var(--green-deep);
}

/* ── 20. الشريط السفلي / التذييل ───────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff; border-radius: var(--r-xl); padding: var(--s6) var(--s5);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.cta-band::before { top: -150px; inset-inline-start: -80px; }
.cta-band::after  { bottom: -180px; inset-inline-end: -60px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--t-2xl); margin-bottom: var(--s2); }
.cta-band p { color: rgba(255,255,255,.88); font-size: var(--t-md); max-width: 56ch; margin: 0 auto var(--s4); }

.footer { background: var(--ink); color: rgba(251,247,240,.72); padding-block: var(--s7) var(--s4); margin-top: var(--s7); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s5); margin-bottom: var(--s5); }
.footer h4 { color: #fff; font-size: var(--t-md); margin-bottom: var(--s3); }
.footer a { transition: color .2s; display: inline-block; padding-block: .35rem; }
.footer a:hover { color: #FFC94D; }
.footer .logo__name { color: #fff; }
.footer .logo__tag  { color: rgba(251,247,240,.55); }
.footer__about { font-size: var(--t-sm); margin-block: var(--s3); max-width: 42ch; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background-color .2s, transform .2s;
}
.footer__social a:hover { background: var(--red); transform: translateY(-3px); }
.footer__social svg { width: 22px; height: 22px; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.13); padding-top: var(--s4);
  display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
  font-size: var(--t-xs);
}
.footer__pay { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.footer__pay span { background: rgba(255,255,255,.08); padding: .35rem .9rem; border-radius: var(--r-sm); font-weight: 700; }

/* ── 21. توست ──────────────────────────────────────────────────────── */
.toast-wrap {
  position: fixed; bottom: 1.4rem; inset-inline-start: 1.4rem; z-index: 300;
  display: grid; gap: .6rem; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: .8rem; background: var(--ink); color: #fff;
  padding: 1rem 1.4rem; border-radius: var(--r-md); box-shadow: var(--sh-3);
  font-weight: 700; font-size: var(--t-sm); max-width: 360px;
  animation: toastIn .35s var(--ease);
}
.toast svg { width: 24px; height: 24px; color: #6FD08C; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.94); } }

/* ── 22. تحضيرات GSAP ──────────────────────────────────────────────── */
[data-anim] { will-change: transform, opacity; }
.js [data-anim="up"]    { opacity: 0; transform: translateY(46px); }
.js [data-anim="fade"]  { opacity: 0; }
.js [data-anim="scale"] { opacity: 0; transform: scale(.9); }
.js [data-anim="side"]  { opacity: 0; transform: translateX(-56px); }
.js .split-line { overflow: hidden; }

/* شبكة أمان: إذا ما اشتغلت الحركة، منجبر كل شي يظهر —
   بيتجاوز حتى الأنماط السطرية يلي بيكتبها GSAP. */
.anim-failsafe [data-anim],
.anim-failsafe [data-anim] * ,
.anim-failsafe .split-line > span {
  opacity: 1 !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  visibility: visible !important;
}
.anim-failsafe .split-line { overflow: visible !important; }

/* ── 23. استجابة ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .pdp { grid-template-columns: 1fr; gap: var(--s4); }
  .pdp__media { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
}

@media (max-width: 900px) {
  :root { --s7: 3.6rem; --s8: 4.6rem; }
  .steps, .plans { grid-template-columns: 1fr; }

  /* الأصناف بتضل عمودين بصورة طولية على كل الشاشات */
  .cat-card h2, .cat-card h3 { font-size: var(--t-sm); }
  .cat-card__body { padding: var(--s2); }
  .trust { grid-template-columns: 1fr; }
  .field-2 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --t-base: 1.0625rem; }
  .wrap, .wrap-narrow { width: calc(100% - 1.6rem); }

  /* ── منمنع صفوف العناوين تتلفّ لسطرين ── */
  .head-row { gap: .6rem; align-items: center; margin-bottom: var(--s2); }
  .head-row > h1,
  .head-row > h2 { font-size: var(--t-md); flex: 1 1 55%; line-height: 1.3; }
  .head-row > .btn--sm { flex: none; padding: .4rem .85rem; font-size: var(--t-xs); }
  .h1-more { display: none; }              /* العنوان الطويل بيضل بالـHTML للسيو */

  .section--top   { padding-block: var(--s3) var(--s2); }
  .section--tight { padding-block: var(--s3); }
  .footer__grid { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .pcard__body { padding: .8rem; }
  .pcard__name { font-size: var(--t-sm); }
  .price-now { font-size: 1.25rem; }
  .pcard__foot { flex-direction: column; }
  .stepper { flex-direction: column; }
  .hero__stats { gap: var(--s3); }
  .card-panel { padding: var(--s3); }
  .toast-wrap { inset-inline: .8rem; }
  .toast { max-width: none; }
}

@media (max-width: 400px) {
  .grid-products { grid-template-columns: 1fr; }
}

/* ── 24. تفضيل تقليل الحركة ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-anim] { opacity: 1 !important; transform: none !important; }
}

/* ── 25. الطباعة ───────────────────────────────────────────────────── */
@media print {
  .header, .footer, .marquee, .btn, .toast-wrap, .scroll-hint { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}

/* ── منشورات التجّار بصفحة الصنف ───────────────────────────────────── */
.cat-posts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: var(--s3);
}
.cat-post {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-post:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.cat-post__img { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.cat-post__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-post__b { padding: var(--s3); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.cat-post__who { display: flex; align-items: center; gap: .55rem; }
.cat-post__ava {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--green-soft); color: var(--green-deep);
  display: grid; place-items: center; font-family: var(--f-head); font-weight: 900;
  font-size: .95rem; border: 2px solid var(--green);
}
.cat-post__who b { display: flex; align-items: center; gap: .25rem; font-size: var(--t-xs); }
.cat-post__who b svg { width: 14px; height: 14px; color: var(--green); flex: none; }
.cat-post__who > span > span { display: block; font-size: .72rem; color: var(--muted); }
.cat-post__text { font-size: var(--t-sm); line-height: 1.65; color: var(--ink-2); flex: 1; }
.cat-post__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: var(--t-xs);
}
.cat-post__price {
  background: var(--red-soft); color: var(--red);
  font-family: var(--f-head); font-weight: 900; padding: .2rem .7rem; border-radius: var(--r-pill);
}
.cat-post__foot a { font-weight: 800; color: var(--green-deep); display: inline-flex; align-items: center; gap: .25rem; }
.cat-post__foot a svg { width: 14px; height: 14px; }

/* اسم التاجر ببطاقة المنتج — رابط لبروفايلو */
a.pcard__seller { display: inline-block; }
a.pcard__seller:hover { color: var(--green-deep); text-decoration: underline; }
