/* ==========================================================================
   VAYA — style.css
   نظام التصميم والمكوّنات الأساسية  /  Design system & components
   يعتمد على الخصائص المنطقية (inline-start/end) ليعمل مع العربية والإنجليزية.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* الحبر — مأخوذ من شعار VAYA */
  --ink:        #231F26;
  --ink-2:      #3A353F;
  --ink-3:      #56505D;
  --muted:      #837D8B;
  --muted-2:    #A9A3B0;

  /* الأسطح */
  --bg:         #F6F4F1;
  --surface:    #FFFFFF;
  --surface-2:  #FBFAF8;
  --surface-3:  #EFECE8;
  --dark:       #231F26;
  --dark-2:     #17151A;

  /* لمسة دافئة محايدة */
  --sand:       #C9BCA6;
  --sand-soft:  #EFE8DC;
  --sand-ink:   #8A7659;

  /* الحدود */
  --line:        rgba(35, 31, 38, .09);
  --line-2:      rgba(35, 31, 38, .16);
  --line-light:  rgba(255, 255, 255, .14);

  /* الحالات */
  --danger:     #B4483F;
  --ok:         #3E7C5A;

  /* الظلال */
  --sh-1: 0 1px 2px rgba(35,31,38,.05), 0 6px 18px -10px rgba(35,31,38,.18);
  --sh-2: 0 2px 6px rgba(35,31,38,.06), 0 18px 40px -22px rgba(35,31,38,.32);
  --sh-3: 0 -1px 0 var(--line), 0 -18px 40px -26px rgba(35,31,38,.28);
  --sh-btn: 0 1px 2px rgba(35,31,38,.16), 0 8px 20px -10px rgba(35,31,38,.42);

  /* الزوايا */
  --r-xs: 10px;  --r-sm: 14px;  --r-md: 18px;
  --r-lg: 24px;  --r-xl: 30px;  --r-2xl: 38px;  --r-pill: 999px;

  /* المسافات */
  --gap:   14px;
  --pad:   18px;
  --sec:   40px;          /* المسافة بين الأقسام */

  /* القياسات */
  --h-header: 56px;
  --h-tabbar: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --wrap:  1240px;

  /* الحركة */
  --t-fast: 150ms;
  --t:      240ms;
  --t-slow: 400ms;
  --ease:   cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* الخطوط */
  --font: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'SF Pro Text',
          'Segoe UI', Tahoma, Arial, sans-serif;
  --font-serif: 'Amiri', 'IBM Plex Sans Arabic', Georgia, serif;
}

/* --------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  padding-block-start: var(--h-header);
  padding-block-end: calc(var(--h-tabbar) + var(--safe-b));
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }

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

/* نضع width/height على وسوم <img> لحجز المساحة ومنع القفز أثناء التحميل،
   لكن سمة height تتغلّب على aspect-ratio — لذا نعيدها إلى auto هنا.
   أي قاعدة مكوّن تحدّد الارتفاع (‎.pcard__img‎ مثلاً) أعلى تحديداً فتتغلّب. */
img { height: auto; }

/* الأيقونات المضمّنة بلا قياس صريح تأخذ حجم حاويتها — نعطيها مقاساً افتراضياً.
   أي قاعدة مكوّن (‎.btn svg‎ مثلاً) أعلى تحديداً فتتغلّب عليها. */
svg { width: 20px; height: 20px; flex: 0 0 auto; }

button, input, select, textarea {
  font: inherit; color: inherit;
  margin: 0;
}
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a, button { -webkit-tap-highlight-color: transparent; }

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

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

/* أرقام لاتينية دائماً للأسعار والهواتف */
.num, .price, input[type="tel"] {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

/* تبديل اللغة عبر CSS للنصوص الطويلة داخل HTML */
html[lang="ar"] [data-lang="en"] { display: none; }
html[lang="en"] [data-lang="ar"] { display: none; }

/* ----------------------------------------------------------- 3. Utilities */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.page { animation: pageIn var(--t-slow) var(--ease-out) both; }
.page.is-leaving { animation: pageOut 140ms ease forwards; }

.stack > * + * { margin-block-start: var(--gap); }
.u-center { text-align: center; }
.u-mt { margin-block-start: 12px; }
.u-hide { display: none !important; }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

.divider { height: 1px; background: var(--line); border: 0; margin-block: 4px; }

/* --------------------------------------------------------------- 4. Header */
.app-header {
  position: fixed;
  inset-block-start: 0; inset-inline: 0;
  z-index: 60;
  height: calc(var(--h-header) + var(--safe-t));
  padding-block-start: var(--safe-t);
  background: transparent;
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.app-header::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(246, 244, 241, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-block-end: 1px solid transparent;
  opacity: 0;
  transition: opacity var(--t) var(--ease), border-color var(--t) var(--ease);
}
.app-header.is-scrolled::before { opacity: 1; border-block-end-color: var(--line); }

.app-header__in {
  position: relative;
  height: var(--h-header);
  display: flex; align-items: center; gap: 6px;
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--pad);
}

.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; }
.brand__logo { height: 17px; width: auto; }
.brand__sub {
  font-size: 10px; letter-spacing: .16em; color: var(--muted);
  text-transform: uppercase; padding-block-start: 2px;
}

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  color: var(--ink);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.icon-btn:hover { background: rgba(35,31,38,.06); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 21px; height: 21px; }

.badge-count {
  position: absolute;
  inset-block-start: 3px; inset-inline-end: 2px;
  min-width: 17px; height: 17px; padding-inline: 4px;
  border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 17px;
  text-align: center;
  border: 2px solid var(--bg);
  transform: scale(0); transition: transform var(--t) var(--ease-out);
}
.badge-count.is-on { transform: scale(1); }

/* روابط سطح المكتب */
.app-nav { display: none; }

/* --------------------------------------------------------- 5. Bottom tabbar */
.tabbar {
  position: fixed;
  inset-block-end: 0; inset-inline: 0;
  z-index: 60;
  padding-block-end: var(--safe-b);
  background: rgba(246, 244, 241, .86);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-block-start: 1px solid var(--line);
}
.tabbar__in {
  height: var(--h-tabbar);
  display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 620px; margin-inline: auto;
}
.tabbar__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px; font-weight: 500;
  transition: color var(--t-fast) var(--ease);
}
.tabbar__item svg { width: 22px; height: 22px; stroke-width: 1.6; }
.tabbar__item.is-active { color: var(--ink); }
.tabbar__item.is-active .tabbar__label { font-weight: 600; }
.tabbar__item:active svg { transform: scale(.88); }
.tabbar__item svg { transition: transform var(--t-fast) var(--ease); }
.tabbar__dot {
  position: absolute; inset-block-start: 4px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink);
  opacity: 0; transform: scale(0);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out);
}
.tabbar__item.is-active .tabbar__dot { opacity: 1; transform: scale(1); }
.tabbar .badge-count { inset-block-start: 4px; inset-inline-end: calc(50% - 20px); }

/* --------------------------------------------------------------- 6. Buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding-inline: 22px;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: var(--sh-btn);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.btn--light  { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: var(--sh-1); }
.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: none; border: 1px solid var(--line-2); }
.btn--onDark { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; box-shadow: none; border: 1px solid var(--line-light); }
.btn--wa     { --btn-bg: #1FAF54; --btn-fg: #fff; }
.btn--sm     { min-height: 40px; padding-inline: 16px; font-size: 13.5px; }
.btn--block  { display: flex; width: 100%; }

/* ----------------------------------------------------------------- 7. Pills */
.rail-x {
  display: flex; gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline: var(--pad);
  margin-inline: calc(var(--pad) * -1);
  scroll-padding-inline: var(--pad);
}
.rail-x::-webkit-scrollbar { display: none; }
.rail-x > * { scroll-snap-align: start; flex: 0 0 auto; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding-inline: 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13.5px; font-weight: 500;
  white-space: nowrap;
  transition: all var(--t-fast) var(--ease);
}
.pill:active { transform: scale(.96); }
.pill.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
  box-shadow: var(--sh-btn);
}

/* --------------------------------------------------------------- 8. Section */
.section { margin-block-start: var(--sec); }
.section--tight { margin-block-start: 24px; }

.section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-block-end: 14px;
}
.section__title { font-size: clamp(19px, 5vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.section__sub { color: var(--muted); font-size: 13.5px; margin-block-start: 4px; line-height: 1.6; }
.section__link {
  font-size: 13px; font-weight: 500; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.section__link:hover { color: var(--ink); }
.section__link svg { width: 14px; height: 14px; }
html[dir="rtl"] .section__link svg { transform: scaleX(-1); }

/* ------------------------------------------------------------------ 9. Hero */
.hero {
  position: relative;
  margin-block-start: 8px;
  border-radius: var(--r-2xl);
  background: linear-gradient(155deg, #3A3441 0%, var(--dark) 46%, var(--dark-2) 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(201,188,166,.18), transparent 70%);
}
.hero__in { padding: 30px var(--pad) 26px; }
.hero__eyebrow { color: rgba(255,255,255,.55); }
.hero__title {
  margin-block-start: 14px;
  font-size: clamp(34px, 10.5vw, 52px);
  font-weight: 600; line-height: 1.1; letter-spacing: -.035em;
}
.hero__sub {
  margin-block-start: 12px;
  color: rgba(255,255,255,.66);
  font-size: 15px; line-height: 1.65; max-width: 34ch;
}
.hero__cta { display: flex; gap: 10px; margin-block-start: 22px; flex-wrap: wrap; }
.hero__mark {
  position: absolute;
  inset-block-start: 24px; inset-inline-end: var(--pad);
  height: 14px; width: auto;
  opacity: .5;
}

/* لوحة المعاينة الحيّة داخل الهيرو */
.plate {
  position: relative;
  margin-block-start: 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, #8B8494 0%, #5A5468 48%, #35303F 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 20px 40px -22px rgba(0,0,0,.7);
  padding: 26px 18px 20px;
  text-align: center;
  overflow: hidden;
}
.plate::after {
  content: ''; position: absolute; inset-block-start: 0; inset-inline-start: -60%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent);
  transform: skewX(-18deg);
}
.plate__text {
  font-family: var(--font-serif);
  font-size: clamp(26px, 8vw, 38px);
  line-height: 1.3;
  color: #100E14;
  text-shadow: 0 1.5px 0 rgba(255,255,255,.34);
  min-height: 1.3em;
  word-break: break-word;
}
.plate__caret {
  display: inline-block; width: 2px; height: .9em;
  background: rgba(19,17,23,.5);
  vertical-align: -.08em; margin-inline-start: 3px;
}
.plate__hint {
  margin-block-start: 10px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.34);
}

/* ------------------------------------------------------- 10. Product card */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.pcard { position: relative; display: flex; flex-direction: column; }

/* حاوية الصورة — مرجع تموضع الأزرار العائمة */
.pcard__top { position: relative; }

.pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-3);
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: transform var(--t) var(--ease);
}
.pcard__media:active { transform: scale(.975); }
.pcard__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t) var(--ease);
}
.pcard:hover .pcard__img { transform: scale(1.04); }

.pcard__tag {
  position: absolute;
  inset-block-start: 10px; inset-inline-start: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding-inline: 9px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 10.5px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink-2);
  box-shadow: 0 1px 3px rgba(35,31,38,.1);
}
.pcard__tag::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sand-ink);
}
.pcard__tag--best::before { background: var(--ink); }

.pcard__fav {
  position: absolute;
  inset-block-start: 8px; inset-inline-end: 8px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink-2);
  box-shadow: 0 1px 3px rgba(35,31,38,.1);
  transition: transform var(--t-fast) var(--ease);
}
.pcard__fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pcard__fav.is-on { color: var(--danger); }
.pcard__fav.is-on svg { fill: currentColor; stroke: currentColor; }
.pcard__fav:active { transform: scale(.85); }

.pcard__add {
  position: absolute;
  inset-block-end: 10px; inset-inline-end: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  box-shadow: var(--sh-btn);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.pcard__add svg { width: 17px; height: 17px; }
.pcard__add:active { transform: scale(.85); }

.pcard__body { display: block; padding: 10px 4px 0; }
.pcard__name {
  font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.pcard__prices { display: flex; align-items: baseline; gap: 7px; margin-block-start: 3px; }
.pcard__price { font-size: 14px; font-weight: 600; }
.pcard__old { font-size: 12px; color: var(--muted-2); text-decoration: line-through; }

/* عربة أفقية للمنتجات */
.rail { gap: var(--gap); padding-block-end: 4px; }
.rail .pcard { width: 46vw; max-width: 210px; }

/* عمودان — على الجوال يصبح عموداً واحداً */
.two-col__aside { margin-block-start: 20px; display: block; }

/* -------------------------------------------------------- 11. Gift tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: transform var(--t) var(--ease);
}
.tile:active { transform: scale(.98); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile__label {
  position: absolute; inset-block-end: 0; inset-inline: 0;
  padding: 26px 14px 14px;
  background: linear-gradient(to top, rgba(35,31,38,.62), transparent);
  color: #fff; font-size: 15px; font-weight: 600;
}

/* ------------------------------------------------------- 12. Feature band */
.band {
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--dark); color: #fff;
  position: relative;
}
.band__img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; opacity: .9; }
.band__in { padding: 22px var(--pad) 26px; }
.band__title { font-size: clamp(21px, 5.6vw, 27px); letter-spacing: -.025em; }
.band__sub { margin-block-start: 8px; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.65; }
.band__cta { margin-block-start: 18px; }

/* ------------------------------------------------------------- 13. Steps */
.steps { display: grid; gap: 10px; }
.step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.step__n {
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step__t { font-size: 15px; font-weight: 600; }
.step__d { font-size: 13px; color: var(--muted); line-height: 1.6; margin-block-start: 2px; }

/* ------------------------------------------------------------- 14. Trust */
.trust { display: grid; gap: 10px; }
.trust__item {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.trust__item svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--ink-3); stroke-width: 1.5; }
.trust__t { font-size: 14px; font-weight: 600; }
.trust__d { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* -------------------------------------------------------------- 15. Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
}
.card--flat { box-shadow: none; }
.card__title { font-size: 15px; font-weight: 600; margin-block-end: 10px; }

/* ------------------------------------------------------- 16. Bottom sheet */
.sheet {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
.sheet.is-open { pointer-events: auto; }

.sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 18, 24, .45);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.sheet.is-open .sheet__backdrop { opacity: 1; }

.sheet__panel {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: min(88vh, 780px);
  display: flex; flex-direction: column;
  background: var(--bg);
  border-start-start-radius: var(--r-2xl);
  border-start-end-radius: var(--r-2xl);
  box-shadow: 0 -20px 60px -20px rgba(20,18,24,.5);
  transform: translateY(100%);
  transition: transform var(--t-slow) var(--ease-out);
  padding-block-end: var(--safe-b);
  overscroll-behavior: contain;
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet.is-dragging .sheet__panel { transition: none; }

.sheet__grab {
  flex: 0 0 auto;
  padding: 10px 0 6px;
  display: grid; place-items: center;
  cursor: grab; touch-action: none;
}
.sheet__grab::before {
  content: ''; width: 38px; height: 4px; border-radius: 4px;
  background: var(--line-2);
}
.sheet__head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 4px var(--pad) 12px;
}
.sheet__title { font-size: 17px; font-weight: 600; }
.sheet__body { flex: 1 1 auto; overflow-y: auto; padding: 0 var(--pad) 16px; -webkit-overflow-scrolling: touch; }
.sheet__foot {
  flex: 0 0 auto;
  padding: 12px var(--pad) calc(12px + var(--safe-b));
  border-block-start: 1px solid var(--line);
  background: var(--surface-2);
  display: flex; gap: 10px;
}
.sheet__foot .btn { flex: 1; }

/* قائمة داخل الشيت */
.menu { display: grid; gap: 2px; }
.menu__item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.menu__item:active { transform: scale(.985); background: var(--surface-2); }
.menu__item svg { width: 20px; height: 20px; color: var(--ink-3); stroke-width: 1.6; flex: 0 0 auto; }
.menu__item .chev { margin-inline-start: auto; color: var(--muted-2); width: 16px; height: 16px; }
html[dir="rtl"] .menu__item .chev { transform: scaleX(-1); }

/* ------------------------------------------------------------- 17. Toasts */
.toasts {
  position: fixed; z-index: 120;
  inset-block-end: calc(var(--h-tabbar) + var(--safe-b) + 14px);
  inset-inline: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
  padding-inline: var(--pad);
}
.toast {
  display: inline-flex; align-items: center; gap: 9px;
  max-width: 100%;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: rgba(28, 25, 32, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 12px 34px -12px rgba(0,0,0,.6);
  animation: toastIn 320ms var(--ease-out) both;
}
.toast.is-out { animation: toastOut 220ms ease forwards; }
.toast svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ------------------------------------------------------------- 18. Search */
.search {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out), visibility var(--t);
}
.search.is-open { visibility: visible; opacity: 1; transform: none; }

.search__panel {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  width: 100%; min-height: 0;
}
.search__results-grid { display: block; }

.search__top {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) var(--pad) 12px;
  border-block-end: 1px solid var(--line);
  background: var(--surface);
}
.search__field {
  flex: 1; position: relative;
  display: flex; align-items: center; gap: 9px;
  height: 44px; padding-inline: 14px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
}
.search__field svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.search__input {
  flex: 1; border: 0; background: none; outline: none;
  font-size: 15.5px; min-width: 0;
}
.search__input::placeholder { color: var(--muted-2); }
.search__clear { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--line-2); color: #fff; }
.search__clear svg { width: 11px; height: 11px; color: #fff; }
.search__body { flex: 1; overflow-y: auto; padding: 18px var(--pad) 40px; }
.search__label {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  margin-block-end: 10px;
}

.sresult {
  display: flex; align-items: center; gap: 12px;
  padding: 9px; border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease);
}
.sresult:active { background: var(--surface-3); }
.sresult__img {
  width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: var(--r-xs); object-fit: cover;
  background: var(--surface-3);
}
.sresult__name { font-size: 14px; font-weight: 500; line-height: 1.45; }
.sresult__meta { font-size: 12px; color: var(--muted); margin-block-start: 2px; }
.sresult__price { margin-inline-start: auto; font-size: 13.5px; font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------- 19. Empty */
.empty { text-align: center; padding: 56px 20px; }
.empty__icon {
  width: 68px; height: 68px; margin-inline: auto;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted);
  margin-block-end: 18px;
}
.empty__icon svg { width: 28px; height: 28px; stroke-width: 1.4; }
.empty__title { font-size: 17px; font-weight: 600; }
.empty__text { margin-block-start: 7px; color: var(--muted); font-size: 14px; max-width: 30ch; margin-inline: auto; line-height: 1.65; }
.empty .btn { margin-block-start: 22px; }

/* ------------------------------------------------------------ 20. Gallery */
.gallery { position: relative; background: var(--surface-3); }
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__dots {
  position: absolute; inset-block-end: 14px; inset-inline: 0;
  display: flex; justify-content: center; gap: 6px;
}
.gallery__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(35,31,38,.22);
  transition: all var(--t) var(--ease);
}
.gallery__dot.is-on { background: var(--ink); width: 18px; border-radius: 3px; }

/* عارض ملء الشاشة */
.viewer {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(16, 14, 19, .97);
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0;
  transition: opacity var(--t) var(--ease), visibility var(--t);
}
.viewer.is-open { visibility: visible; opacity: 1; }
.viewer__track {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  align-items: center;
}
.viewer__track::-webkit-scrollbar { display: none; }
.viewer__slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 20px; }
.viewer__slide img { max-height: 78vh; width: auto; border-radius: var(--r-md); }
.viewer__close {
  position: absolute; inset-block-start: calc(14px + var(--safe-t)); inset-inline-end: 14px;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
}
.viewer__close svg { width: 18px; height: 18px; }

/* ------------------------------------------------------- 21. Product page */
.pdp__head { padding: 20px var(--pad) 0; }
.pdp__name { font-size: clamp(21px, 5.6vw, 28px); font-weight: 600; letter-spacing: -.028em; line-height: 1.28; }
.pdp__prices { display: flex; align-items: baseline; gap: 10px; margin-block-start: 10px; }
.pdp__price { font-size: 20px; font-weight: 600; }
.pdp__old { font-size: 14px; color: var(--muted-2); text-decoration: line-through; }
.pdp__save {
  font-size: 11px; font-weight: 600; color: var(--sand-ink);
  background: var(--sand-soft); padding: 3px 9px; border-radius: var(--r-pill);
}
.pdp__desc { margin-block-start: 12px; color: var(--ink-3); font-size: 14.5px; line-height: 1.75; }
.pdp__section { padding-inline: var(--pad); margin-block-start: 26px; }
.pdp__label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 13px; font-weight: 600; margin-block-end: 10px;
}
.pdp__label span { font-weight: 400; color: var(--muted); font-size: 12.5px; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding-inline: 13px 15px;
  border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}
.swatch:active { transform: scale(.96); }
.swatch__dot {
  width: 17px; height: 17px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(35,31,38,.16);
}
.swatch.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* بطاقة التخصيص */
.pz {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pz__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px 14px;
  border-block-end: 1px solid var(--line);
}
.pz__icon {
  width: 36px; height: 36px; border-radius: var(--r-pill);
  display: grid; place-items: center; flex: 0 0 auto;
  background: var(--sand-soft); color: var(--sand-ink);
}
.pz__icon svg { width: 18px; height: 18px; }
.pz__title { font-size: 15px; font-weight: 600; }
.pz__sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pz__body { padding: 16px; display: grid; gap: 14px; }

/* لوحة المعاينة داخل صفحة المنتج */
.pz__preview {
  border-radius: var(--r-md);
  padding: 22px 16px 16px;
  text-align: center;
  background: linear-gradient(140deg, #837C8C 0%, #565064 48%, #322D3B 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26);
  min-height: 118px;
  display: flex; flex-direction: column; justify-content: center;
}
.pz__preview[data-tone="light"] {
  background: linear-gradient(140deg, #FFFFFF 0%, #E6E4E9 48%, #C9C6CE 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.pz__preview[data-tone="gold"] {
  background: linear-gradient(140deg, #F6E4BE 0%, #DCBB80 48%, #A5834A 100%);
}
.pz__preview[data-tone="leather"] {
  background: linear-gradient(140deg, #A8794F 0%, #7A5236 48%, #4A3020 100%);
}
/* النقش المحفور: حرف داكن مع حافة ضوئية أسفله */
.pz__line {
  font-size: clamp(20px, 6.4vw, 30px);
  line-height: 1.35;
  color: #100E14;
  text-shadow: 0 1.5px 0 rgba(255,255,255,.34);
  word-break: break-word;
}
.pz__preview[data-tone="light"] .pz__line { color: #46414F; text-shadow: 0 1.5px 0 rgba(255,255,255,.95); }
.pz__preview[data-tone="gold"]    .pz__line { color: #5A431E; text-shadow: 0 1.5px 0 rgba(255,255,255,.5); }
.pz__preview[data-tone="leather"] .pz__line { color: #24140A; text-shadow: 0 1.5px 0 rgba(255,255,255,.24); }
.pz__sub-line { font-size: 12.5px; margin-block-start: 6px; color: rgba(16,14,20,.66); letter-spacing: .06em; }
.pz__empty { color: rgba(255,255,255,.34); font-size: 13.5px; }
.pz__preview[data-tone="light"] .pz__empty { color: rgba(35,31,38,.34); }
.pz__hint { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.5; }

/* التبديل */
.toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
}
.toggle__track {
  position: relative; flex: 0 0 auto;
  width: 46px; height: 28px; border-radius: var(--r-pill);
  background: var(--line-2);
  transition: background var(--t) var(--ease);
}
.toggle__track::after {
  content: ''; position: absolute;
  inset-block-start: 3px; inset-inline-start: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28);
  transition: transform var(--t) var(--ease-out);
}
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle input:checked + .toggle__track { background: var(--ink); }
.toggle input:checked + .toggle__track::after { transform: translateX(18px); }
html[dir="rtl"] .toggle input:checked + .toggle__track::after { transform: translateX(-18px); }

/* عدّاد الكمية */
.qty {
  display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.qty__btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: var(--ink); transition: background var(--t-fast) var(--ease);
}
.qty__btn:active { background: var(--surface-3); }
.qty__btn[disabled] { color: var(--muted-2); pointer-events: none; }
.qty__btn svg { width: 15px; height: 15px; }
.qty__val { min-width: 34px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty--sm .qty__btn { width: 34px; height: 34px; }
.qty--sm .qty__val { min-width: 28px; font-size: 14px; }

/* الأكورديون */
.acc { border-block-start: 1px solid var(--line); }
.acc__item { border-block-end: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 0;
  font-size: 14.5px; font-weight: 500; text-align: start;
}
.acc__btn svg { width: 16px; height: 16px; color: var(--muted); transition: transform var(--t) var(--ease); flex: 0 0 auto; }
.acc__item.is-open .acc__btn svg { transform: rotate(180deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__content { padding-block-end: 18px; color: var(--ink-3); font-size: 13.5px; line-height: 1.8; }
.acc__content li { position: relative; padding-inline-start: 16px; }
.acc__content li::before {
  content: ''; position: absolute; inset-block-start: .72em; inset-inline-start: 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--sand);
}

/* شريط الشراء الثابت */
.buybar {
  position: fixed;
  inset-block-end: calc(var(--h-tabbar) + var(--safe-b));
  inset-inline: 0; z-index: 55;
  background: rgba(246, 244, 241, .9);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-block-start: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform var(--t-slow) var(--ease-out);
}
.buybar.is-on { transform: none; }
.buybar__in {
  max-width: var(--wrap); margin-inline: auto;
  padding: 10px var(--pad);
  display: flex; align-items: center; gap: 12px;
}
.buybar__price { flex: 0 0 auto; }
.buybar__label { font-size: 11px; color: var(--muted); line-height: 1.2; }
.buybar__val { font-size: 17px; font-weight: 600; }
.buybar .btn { flex: 1; }

/* ------------------------------------------------------------- 22. Cart */
.citem {
  display: flex; gap: 13px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.citem__media {
  width: 84px; height: 84px; flex: 0 0 auto;
  border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3);
}
.citem__media img { width: 100%; height: 100%; object-fit: cover; }
.citem__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.citem__name { font-size: 14px; font-weight: 500; line-height: 1.45; }
.citem__meta { font-size: 12px; color: var(--muted); margin-block-start: 3px; line-height: 1.55; }
.citem__engrave {
  display: inline-flex; align-items: center; gap: 6px;
  margin-block-start: 6px;
  font-size: 12px; color: var(--sand-ink);
  background: var(--sand-soft);
  padding: 3px 9px; border-radius: var(--r-pill);
  max-width: 100%;
}
.citem__engrave span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem__engrave svg { width: 12px; height: 12px; flex: 0 0 auto; }
.citem__foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-block-start: auto; padding-block-start: 10px;
}
.citem__price { margin-inline-start: auto; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.citem__act { display: flex; gap: 4px; }
.citem__act button {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: var(--r-pill); color: var(--muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.citem__act button:hover { background: var(--surface-3); color: var(--ink); }
.citem__act svg { width: 15px; height: 15px; }

.summary { display: grid; gap: 11px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-3); }
.summary__row strong { font-weight: 500; color: var(--ink); }
.summary__row--total {
  border-block-start: 1px solid var(--line);
  padding-block-start: 12px;
  font-size: 17px; color: var(--ink);
}
.summary__row--total strong { font-weight: 600; }
.summary__free { color: var(--ok); font-weight: 600; }

.progress {
  height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden;
  margin-block-start: 4px;
}
.progress__bar { height: 100%; background: var(--ink); border-radius: 4px; transition: width var(--t-slow) var(--ease-out); }

/* ------------------------------------------------------------ 23. Forms */
.field { display: block; }
.field + .field { margin-block-start: 14px; }
.field__label {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 13px; font-weight: 500; margin-block-end: 7px;
}
.field__label em { font-style: normal; font-size: 11.5px; color: var(--muted-2); }
.field__req { color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15.5px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px rgba(35,31,38,.08);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.65; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23837D8B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 17px;
  background-position: left 15px center;
  padding-inline-end: 15px; padding-inline-start: 42px;
}
html[dir="rtl"] .select { background-position: left 15px center; padding-inline-start: 42px; padding-inline-end: 15px; }
html[dir="ltr"] .select { background-position: right 15px center; padding-inline-end: 42px; padding-inline-start: 15px; }

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--danger); }
.field__err {
  display: none;
  margin-block-start: 6px; font-size: 12.5px; color: var(--danger);
}
.field.is-invalid .field__err { display: block; animation: shake 340ms var(--ease); }

.counter { font-size: 11.5px; color: var(--muted-2); text-align: end; margin-block-start: 5px; }
.counter.is-max { color: var(--danger); }

/* اختيار من بطاقات */
.choice { display: grid; gap: 9px; }
.choice__item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.choice__item input { position: absolute; opacity: 0; }
.choice__mark {
  width: 20px; height: 20px; flex: 0 0 auto;
  border-radius: 50%; border: 1.5px solid var(--line-2);
  display: grid; place-items: center;
  transition: all var(--t-fast) var(--ease);
}
.choice__mark::after {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; transform: scale(0);
  transition: transform var(--t-fast) var(--ease-out);
}
.choice__item:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice__item:has(input:checked) .choice__mark { background: var(--ink); border-color: var(--ink); }
.choice__item:has(input:checked) .choice__mark::after { transform: scale(1); }
.choice__t { font-size: 14.5px; font-weight: 500; }
.choice__d { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.choice__icon { margin-inline-start: auto; color: var(--ink-3); }
.choice__icon svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------ 24. Success */
.done { text-align: center; padding: 44px var(--pad) 0; }
.done__mark {
  position: relative;
  width: 92px; height: 92px; margin-inline: auto;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  box-shadow: var(--sh-2);
}
.done__mark svg { width: 40px; height: 40px; }
.done__title { margin-block-start: 24px; font-size: clamp(24px, 6.4vw, 32px); letter-spacing: -.03em; }
.done__sub { margin-block-start: 8px; color: var(--muted); font-size: 15px; }
.done__no {
  display: inline-flex; align-items: center; gap: 8px;
  margin-block-start: 20px;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.done__no svg { width: 15px; height: 15px; color: var(--muted); }

.kv { display: grid; gap: 10px; }
.kv__row { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.kv__k { color: var(--muted); flex: 0 0 auto; }
.kv__v { text-align: end; font-weight: 500; }

/* --------------------------------------------------------- 25. Skeletons */
.sk { background: var(--surface-3); border-radius: var(--r-sm); position: relative; overflow: hidden; }
.sk::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.3s infinite;
}
.sk--media { aspect-ratio: 1/1; border-radius: var(--r-lg); }
.sk--line { height: 11px; margin-block-start: 9px; }
.sk--line.w60 { width: 60%; }

/* ---------------------------------------------------------- 26. Editorial */
.lede { font-size: clamp(17px, 4.6vw, 21px); line-height: 1.65; letter-spacing: -.015em; color: var(--ink); }
.prose { color: var(--ink-3); font-size: 15px; line-height: 1.85; }
.prose p + p { margin-block-start: 14px; }
.prose h3 { font-size: 17px; color: var(--ink); margin-block-start: 26px; margin-block-end: 8px; }
.prose ul { margin-block-start: 10px; display: grid; gap: 7px; }
.prose li { position: relative; padding-inline-start: 17px; }
.prose li::before {
  content: ''; position: absolute; inset-block-start: .74em; inset-inline-start: 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--sand);
}

.page-hero { padding: 26px var(--pad) 0; }
.page-hero__title { font-size: clamp(28px, 8vw, 44px); letter-spacing: -.035em; line-height: 1.12; }
.page-hero__sub { margin-block-start: 12px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 42ch; }

.contact-grid { display: grid; gap: 10px; }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t-fast) var(--ease);
}
.contact-card:active { transform: scale(.985); }
.contact-card__ic {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-2);
}
.contact-card__ic svg { width: 20px; height: 20px; }
.contact-card__t { font-size: 14.5px; font-weight: 600; }
.contact-card__d { font-size: 12.5px; color: var(--muted); }
.contact-card .chev { margin-inline-start: auto; color: var(--muted-2); width: 16px; height: 16px; }
html[dir="rtl"] .contact-card .chev { transform: scaleX(-1); }

/* -------------------------------------------------------------- 27. Footer */
.footer {
  margin-block-start: 54px;
  padding: 32px var(--pad) 40px;
  border-block-start: 1px solid var(--line);
  text-align: center;
}
.footer__logo { height: 15px; width: auto; margin-inline: auto; opacity: .82; }
.footer__tag { margin-block-start: 12px; font-size: 12.5px; color: var(--muted); }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-block-start: 18px; }
.footer__links a { font-size: 13px; color: var(--ink-3); }
.footer__links a:hover { color: var(--ink); }
.footer__social { display: flex; justify-content: center; gap: 10px; margin-block-start: 20px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2);
  transition: transform var(--t-fast) var(--ease);
}
.footer__social a:active { transform: scale(.9); }
.footer__social svg { width: 17px; height: 17px; }
.footer__copy { margin-block-start: 22px; font-size: 11.5px; color: var(--muted-2); }

/* --------------------------------------------------------------- 28. Chips */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding-inline: 13px;
  border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}
.chip:active { transform: scale(.95); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip svg { width: 15px; height: 15px; }

/* شريط أدوات صفحة المنتجات */
.toolbar {
  position: sticky;
  inset-block-start: calc(var(--h-header) + var(--safe-t));
  z-index: 40;
  background: rgba(246,244,241,.92);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-block-end: 1px solid var(--line);
  padding-block: 10px;
  margin-block-start: 8px;
}
.toolbar__row { display: flex; align-items: center; gap: 8px; padding-inline: var(--pad); }
.toolbar__count { font-size: 12.5px; color: var(--muted); margin-inline-start: auto; white-space: nowrap; }
.toolbar__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding-inline: 14px;
  border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}
.toolbar__btn:active { transform: scale(.96); }
.toolbar__btn svg { width: 15px; height: 15px; }
.toolbar__btn.has-filters { background: var(--ink); color: #fff; border-color: var(--ink); }
/* حاوية بحواف داخلية حتى يعمل الهامش السالب لـ .rail-x بشكل صحيح */
.toolbar__pills { padding-inline: var(--pad); margin-block-start: 10px; }

/* زر الرجوع فوق معرض صور المنتج */
.pdp__back {
  position: absolute; z-index: 5;
  inset-block-start: 12px; inset-inline-start: 12px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(35,31,38,.14);
  transition: transform var(--t-fast) var(--ease);
}
.pdp__back:active { transform: scale(.9); }
.pdp__back svg { width: 18px; height: 18px; }
html[dir="rtl"] .pdp__back svg { transform: scaleX(-1); }
