/* ==========================================================================
   INTRESSA — نظام التصميم (إعادة تصميم v2 — Swiss Modernism 2.0)
   الاتجاه: Construction/Architecture من مهارة ui-ux-pro-max —
   حبر أردوازي (slate) + برتقالي سلامة واحد للتمييز، زوايا حادة،
   حدود 1px بدل الظلال، شبكة رياضية، وخلفية شبه بيضاء نظيفة.
   ========================================================================== */

/* ------------------------------------------------------------------ 1. tokens */
:root {
  --graphite:      #0F172A;  /* حبر أردوازي غامق (عناوين/خلفيات داكنة) */
  --graphite-2:    #1E293B;
  --graphite-3:    #334155;
  --graphite-soft: #475569;

  --concrete:      #F8FAFC;  /* خلفية الصفحة: شبه بيضاء باردة */
  --concrete-2:    #EEF2F7;
  --concrete-3:    #CBD5E1;
  --white:         #ffffff;

  --clay:          #c24e1b;  /* برتقالي العلامة — يبقى كما هو مدمجاً في SVG */
  --clay-bright:   #f2712b;
  --clay-wash:     #FBEDE4;

  --stone:         #475569;  /* نص مساعد على فاتح: 7.4:1 */
  --stone-2:       #64748B;  /* يمرّر 4.5:1 على الفاتح والداكن معاً */

  --line:          #E2E8F0;
  --line-dark:     #334155;

  --ar: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --latin: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --shell: 1220px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --sec-y: clamp(3.5rem, 8vw, 6.5rem);

  /* الحدّة الصناعية: صفر انحناء */
  --r-sm: 0px;
  --r-md: 0px;
  --r-lg: 0px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 12px 28px -18px rgba(15, 23, 42, .45);
  --shadow-lg: 0 30px 60px -30px rgba(15, 23, 42, .4);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: var(--ar);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--graphite);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

h1, h2, h3, h4, h5 {
  font-family: var(--ar);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .6rem;
  letter-spacing: -.012em;
  color: var(--graphite);
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--clay); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--graphite); }

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

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

svg { display: block; }

::selection { background: var(--clay); color: var(--white); }

.num,
[data-num] {
  font-family: var(--latin);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  direction: ltr;
  unicode-bidi: isolate;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.shell--wide { max-width: 1420px; }
.shell--narrow { max-width: 860px; }

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

.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 200;
  background: var(--graphite);
  color: var(--white);
  padding: .65rem 1.4rem;
  font-size: .9rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.skip-link:focus { color: var(--white); inset-block-start: 0; }

/* ------------------------------------------------------------------ 3. typography helpers */
.h-xxl { font-size: clamp(2.1rem, 6.2vw, 4.05rem); line-height: 1.1; font-weight: 700; letter-spacing: -.028em; }
.h-xl  { font-size: clamp(1.75rem, 4.4vw, 2.85rem); line-height: 1.16; letter-spacing: -.02em; }
.h-lg  { font-size: clamp(1.35rem, 3vw, 1.95rem);  line-height: 1.26; letter-spacing: -.012em; }
.h-md  { font-size: clamp(1.1rem, 2.1vw, 1.32rem); line-height: 1.4; }

.lede {
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.85;
  color: var(--stone);
  max-width: 62ch;
}

.muted { color: var(--stone); }
.small { font-size: .895rem; line-height: 1.7; }
.tiny  { font-size: .8rem; }

/* عنوان قسم: عنوان + سطر دعم + خط أفقي. لا "أقلام حروف كبيرة". */
.sec {
  padding-block: var(--sec-y);
  position: relative;
}
.sec--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.sec--flush-top { padding-top: 0; }

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1.5px solid var(--graphite);
  margin-bottom: 2.4rem;
}
.sec-head__title { flex: 1 1 24rem; }
.sec-head__title h2 { margin-bottom: .5rem; }
.sec-head__act { flex: 0 0 auto; }

.sec--dark { background: var(--graphite); color: var(--concrete-2); }
.sec--dark h2, .sec--dark h3, .sec--dark h4 { color: var(--white); }
.sec--dark .lede { color: #94A3B8; }
.sec--dark .muted { color: #94A3B8; }
.sec--dark .sec-head { border-bottom-color: var(--line-dark); }

.sec--white { background: var(--white); }
.sec--sunken { background: var(--concrete-2); }

/* ------------------------------------------------------------------ 4. buttons */
.btn {
  --btn-bg: var(--graphite);
  --btn-fg: var(--white);
  --btn-bd: var(--graphite);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.45rem;
  min-height: 48px;
  font-family: var(--ar);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { --btn-bg: var(--clay); --btn-bd: var(--clay); color: var(--white); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.btn--primary { --btn-bg: var(--clay); --btn-bd: var(--clay); }
.btn--primary:hover { --btn-bg: var(--graphite); --btn-bd: var(--graphite); }

.btn--line { --btn-bg: transparent; --btn-fg: var(--graphite); --btn-bd: var(--graphite); }
.btn--line:hover { --btn-fg: var(--white); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--graphite); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: var(--clay-bright); --btn-fg: var(--white); --btn-bd: var(--clay-bright); }

.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.35); }
.btn--ghost-dark:hover { --btn-bg: var(--white); --btn-fg: var(--graphite); --btn-bd: var(--white); }

.btn--sm { padding: .5rem 1rem; min-height: 44px; font-size: .875rem; }
.btn--lg { padding: .95rem 1.9rem; min-height: 56px; font-size: 1.03rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ------------------------------------------------------------------ 5. utility bar + header */
.util {
  background: var(--graphite);
  color: var(--concrete-3);
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.util__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  flex-wrap: wrap;
}
.util__side { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.util a { color: var(--concrete-3); display: inline-flex; align-items: center; gap: .4rem; }
.util a:hover { color: var(--clay-bright); }
.util svg { width: 15px; height: 15px; flex: none; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -26px rgba(15,23,42,.6); }

.site-head__in {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 1.14rem; letter-spacing: -.01em; color: var(--graphite); }
.brand__sub { font-size: .68rem; color: var(--stone-2); font-family: var(--latin); letter-spacing: .1em; }
/* خلفية فاتحة: نحتاج رمادياً أغمق ليبلغ التباين 4.5:1 (#65686b على #f4f4f1 = 5.09) */
.site-head .brand__sub { color: var(--stone); }

.nav { display: flex; align-items: center; gap: .15rem; margin-inline-start: auto; }
.nav__link {
  position: relative;
  padding: .5rem .72rem;
  font-size: .93rem;
  font-weight: 500;
  color: var(--graphite-2);
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.nav__link:hover { color: var(--graphite); background: rgba(15,23,42,.06); }
.nav__link.is-active { color: var(--clay); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  inset-inline: .72rem;
  bottom: -2px;
  height: 2px;
  background: var(--clay);
}

.head__act { display: flex; align-items: center; gap: .55rem; flex: none; margin-inline-start: .5rem; }

.menu-btn {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  color: var(--graphite);
  cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 1024px) {
  .nav, .head__act .btn { display: none; }
  .menu-btn { display: inline-flex; margin-inline-start: auto; }
  .head__act { margin-inline-start: 0; }
}

/* القائمة الجانبية في الموبايل */
.offcanvas { --bs-offcanvas-width: min(88vw, 340px); }
.offcanvas-header { border-bottom: 1px solid var(--line-dark); }
.mnav { display: flex; flex-direction: column; gap: .1rem; }
.mnav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem .2rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--graphite);
  border-bottom: 1px solid var(--line);
}
.mnav a:hover, .mnav a.is-active { color: var(--clay); }
.mnav__sep { border-bottom: 0; margin-top: 1rem; }

/* ------------------------------------------------------------------ 6. hero (فاتح — سويسري نظيف) */
.hero {
  position: relative;
  background: var(--white);
  color: var(--graphite);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(120% 90% at 20% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 25%, transparent 78%);
  pointer-events: none;
  z-index: -1;
}
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.2rem, 7vw, 5.5rem);
}
.hero h1 { color: var(--graphite); }
.hero__lede { color: var(--stone); font-size: clamp(1rem, 1.5vw, 1.14rem); max-width: 46ch; }
.hero .btn-row { margin-top: 1.9rem; }

/* أزرار الشبح الداكنة تُستخدم داخل الهيرو الفاتح — تتحول إلى حدود حبرية */
.hero .btn--ghost-dark { --btn-fg: var(--graphite); --btn-bd: var(--graphite); }
.hero .btn--ghost-dark:hover { --btn-fg: var(--white); }

.hero__meta {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--concrete-3);
}
.hero__meta div { padding: 1.05rem .9rem 0 0; }
.hero__meta dt { font-size: .78rem; color: var(--stone); margin-bottom: .2rem; }
.hero__meta dd { margin: 0; font-family: var(--latin); font-size: 1.5rem; font-weight: 700; color: var(--graphite); letter-spacing: -.01em; }
.hero__meta dd span { font-family: var(--ar); font-size: .82rem; font-weight: 400; color: var(--stone); margin-inline-start: .2rem; }

@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__meta { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .hero__meta { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------ 7. Pattern Lab — العنصر المميّز (مرساة داكنة على خلفية فاتحة) */
.lab {
  background: var(--graphite);
  border: 1px solid var(--graphite-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.lab__stage {
  position: relative;
  aspect-ratio: 4 / 2.85;
  background: var(--graphite-2);
  overflow: hidden;
}
.lab__stage .paver-svg { position: absolute; inset: 0; }
.lab__badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  background: rgba(15,23,42,.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm);
  padding: .3rem .62rem;
  font-size: .74rem;
  color: var(--concrete-2);
  letter-spacing: .01em;
}
.lab__body { padding: 1.15rem 1.25rem 1.3rem; }

.lab__ctrl { display: grid; gap: .95rem; }
.lab__row { display: grid; gap: .45rem; }
.lab__label {
  font-size: .78rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.lab__label b { color: var(--concrete-2); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; }

.chip {
  padding: .38rem .72rem;
  font-size: .82rem;
  font-weight: 500;
  color: #94A3B8;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: var(--ar);
  transition: all .16s var(--ease);
}
.chip:hover { color: var(--white); border-color: var(--graphite-soft); }
.chip[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); color: var(--white); }

.swatches { display: flex; gap: .4rem; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 1px solid rgba(255,255,255,.2);
  outline-offset: 2px;
  cursor: pointer;
  padding: 0;
  transition: transform .16s var(--ease);
}
.swatch:hover { transform: scale(1.09); }
.swatch[aria-pressed="true"] { border-color: var(--white); transform: scale(1.12); }

.lab__read {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.lab__read div { display: grid; gap: .1rem; }
.lab__read dt { font-size: .72rem; color: #94A3B8; }
.lab__read dd { margin: 0; font-family: var(--latin); font-size: 1.02rem; font-weight: 600; color: var(--white); }

.lab__loading { position: absolute; inset: 0; display: grid; place-items: center; }
.lab__loading span {
  width: 26px; height: 26px;
  border: 2px solid rgba(255,255,255,.22);
  border-top-color: var(--clay-bright);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* لحظة واحدة فقط: "كبس" عند فتح الصفحة */
@keyframes press {
  0%   { opacity: 0; transform: translateY(-14px) scaleY(1.045); filter: contrast(.8); }
  62%  { opacity: 1; transform: translateY(1.5px) scaleY(.995); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); filter: contrast(1); }
}
.lab__stage .paver-svg { animation: press .95s var(--ease-out) both; }
.lab__stage .paver-svg + .paver-svg { animation: none; }

/* ------------------------------------------------------------------ 8. paver visuals */
.paver-svg { width: 100%; height: 100%; display: block; }

.visual {
  position: relative;
  overflow: hidden;
  background: var(--graphite-3);
  border-radius: var(--r-sm);
}
.visual .paver-svg,
.visual img { transition: transform .55s var(--ease-out); }
.tile:hover .visual .paver-svg,
.tile:hover .visual img { transform: scale(1.055); }

@media (prefers-reduced-motion: no-preference) {
  .tile:hover .visual .paver-svg {
    animation: paverSpin .85s var(--ease-out) forwards;
  }
  @keyframes paverSpin {
    0%   { transform: scale(1.055) rotate(0deg);   }
    100% { transform: scale(1.055) rotate(360deg); }
  }
}

/* ------------------------------------------------------------------ 9. product tiles */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
  gap: 1.15rem;
}
.grid-cards--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tile:hover { border-color: var(--graphite-3); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.tile__visual { position: relative; aspect-ratio: 16 / 10; }
.tile__thick {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-start: 10px;
  background: var(--white);
  color: var(--graphite);
  border-radius: var(--r-sm);
  padding: .16rem .5rem;
  font-family: var(--latin);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.tile__cat {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  background: rgba(15,23,42,.82);
  color: var(--concrete-2);
  border-radius: var(--r-sm);
  padding: .16rem .5rem;
  font-size: .74rem;
}
.tile__body { padding: 1.05rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.tile__name { font-size: 1.06rem; font-weight: 700; line-height: 1.4; margin: 0; }
.tile__name a { color: var(--graphite); }
.tile__name a:hover { color: var(--clay); }
.tile__desc { color: var(--stone); font-size: .895rem; line-height: 1.68; margin: 0; }
.tile__foot {
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
}
.tile__price { font-family: var(--latin); font-weight: 700; font-size: 1.08rem; color: var(--graphite); }
.tile__price small { font-family: var(--ar); font-weight: 400; font-size: .74rem; color: var(--stone); }

.swatches-row { display: flex; gap: .3rem; }
.swatches-row i { width: 15px; height: 15px; border-radius: 50%; display: block; outline: 1px solid rgba(0,0,0,.12); outline-offset: 1px; }

/* ------------------------------------------------------------------ 10. spec table */
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.spec th,
.spec td {
  padding: .78rem .2rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.spec th { font-weight: 600; color: var(--stone); width: 42%; }
.spec td { font-family: var(--latin); font-weight: 600; color: var(--graphite); }
.spec td:lang(ar) { font-family: var(--ar); font-weight: 500; }
.spec tr:last-child th,
.spec tr:last-child td { border-bottom: 0; }
.spec--dark th, .spec--dark td { border-color: var(--line-dark); }
.spec--dark th { color: #94A3B8; }
.spec--dark td { color: var(--white); }

/* ------------------------------------------------------------------ 11. process (sequence → numbering justified) */
.line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.line__step {
  padding: 1.4rem 1.2rem 1.5rem;
  border-inline-end: 1px solid var(--line);
  position: relative;
}
.line__step:last-child { border-inline-end: 0; }
.line__step::before {
  content: '';
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--clay);
  transition: width .5s var(--ease);
}
.line__step:hover::before { width: 100%; }
.line__n {
  font-family: var(--latin);
  font-size: .8rem;
  font-weight: 700;
  color: var(--clay);
  letter-spacing: .04em;
  display: block;
  margin-bottom: .55rem;
}
.line__t { font-weight: 700; font-size: 1rem; margin: 0 0 .35rem; }
.line__d { font-size: .875rem; color: var(--stone); line-height: 1.68; margin: 0; }
.sec--dark .line { border-color: var(--line-dark); }
.sec--dark .line__step { border-color: var(--line-dark); }
.sec--dark .line__d { color: var(--stone-2); }

/* ------------------------------------------------------------------ 12. service compare */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .93rem;
}
.cmp th, .cmp td { padding: 1rem .85rem; text-align: start; vertical-align: top; }
.cmp thead th { border-bottom: 1.5px solid var(--graphite); }
.cmp tbody tr { border-bottom: 1px solid var(--line); }
.cmp tbody tr:hover { background: rgba(194,78,27,.04); }
.cmp__name { font-size: 1.06rem; font-weight: 700; }
.cmp__sum { font-size: .86rem; color: var(--stone); font-weight: 400; display: block; margin-top: .2rem; }
.cmp__price { font-family: var(--latin); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.cmp__price small { font-family: var(--ar); font-size: .74rem; font-weight: 400; color: var(--stone-2); }
.cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.cmp li { display: flex; gap: .45rem; font-size: .875rem; color: var(--stone); line-height: 1.55; }
.cmp li svg { width: 15px; height: 15px; flex: none; margin-top: .28rem; }
.cmp li.is-yes svg { color: var(--clay); }
.cmp li.is-no { color: var(--stone-2); }
.cmp li.is-no svg { color: var(--concrete-3); }

/* ------------------------------------------------------------------ 13. filter rail */
.cats { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.2rem; align-items: start; }
@media (max-width: 900px) { .cats { grid-template-columns: 1fr; gap: 1.4rem; } }

.rail {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1.5rem;
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
@media (max-width: 900px) { .rail { position: static; } }

.rail__grp { display: grid; gap: .6rem; }
.rail__t { font-size: .86rem; font-weight: 700; color: var(--graphite); margin: 0; }
.rail__opts { display: grid; gap: .3rem; }
.rail__opt {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .885rem;
  color: var(--graphite-2);
  cursor: pointer;
  padding: .18rem 0;
}
.rail__opt:hover { color: var(--clay); }
.rail__opt input { accent-color: var(--clay); width: 16px; height: 16px; flex: none; cursor: pointer; }
.rail__opt span.n { margin-inline-start: auto; font-family: var(--latin); font-size: .78rem; color: var(--stone-2); }
.rail__chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.rail__chips .chip { border-color: var(--line); color: var(--graphite-2); }
.rail__chips .chip:hover { border-color: var(--graphite-3); color: var(--graphite); }
.rail__chips .chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--white); }

.search { position: relative; }
.search input {
  width: 100%;
  padding: .65rem .85rem .65rem 2.35rem;
  font-family: var(--ar);
  font-size: .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--concrete);
  color: var(--graphite);
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.search input:focus { border-color: var(--graphite); background: var(--white); outline: none; }
.search svg { position: absolute; inset-inline-start: .7rem; inset-block-start: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--stone-2); pointer-events: none; }

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.filter-bar__res { font-size: .895rem; color: var(--stone); }
.filter-bar__res b { color: var(--graphite); font-family: var(--latin); }

/* ------------------------------------------------------------------ 14. pager */
.pager { display: flex; gap: .35rem; justify-content: center; margin-top: 2.4rem; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .7rem;
  font-family: var(--latin);
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--graphite);
}
.pager a:hover { border-color: var(--graphite); color: var(--graphite); }
.pager .is-cur { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.pager .is-off { color: var(--stone-2); border-style: dashed; }

/* ------------------------------------------------------------------ 15. calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

.calc__out {
  background: var(--graphite);
  color: var(--concrete-2);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.7rem;
  position: sticky;
  top: 96px;
}
@media (max-width: 900px) { .calc__out { position: static; } }
.calc__out h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 1.1rem; }
.calc__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.calc__line:last-of-type { border-bottom: 0; }
.calc__line span { font-size: .875rem; color: #94A3B8; }
.calc__line b { font-family: var(--latin); font-size: 1.22rem; font-weight: 700; color: var(--white); }
.calc__line b i { font-family: var(--ar); font-style: normal; font-size: .78rem; font-weight: 400; color: #94A3B8; margin-inline-start: .25rem; }
.calc__total { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 2px solid var(--clay); }
.calc__total b { font-size: 2rem; color: var(--clay-bright); }
.calc__note { font-size: .79rem; color: #94A3B8; line-height: 1.6; margin-top: 1rem; }

/* ------------------------------------------------------------------ 16. before / after */
.ba {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--graphite-3);
  border-radius: var(--r-md);
  --pos: 50%;
}
.ba__layer { position: absolute; inset: 0; }
/* الاتجاه المادي ثابت دائماً حتى يعمل المقبض بنفس الطريقة في RTL و LTR */
.ba__after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__divider {
  position: absolute;
  top: 0; bottom: 0; left: var(--pos);
  width: 2px;
  background: var(--white);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  pointer-events: none;
}
.ba__handle {
  position: absolute;
  top: 50%; left: var(--pos);
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--graphite);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  pointer-events: none;
}
.ba__handle svg { width: 20px; height: 20px; }
.ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 3;
}
.ba__tag {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  background: rgba(15,23,42,.85);
  color: var(--concrete-2);
  border-radius: var(--r-sm);
  padding: .22rem .6rem;
  font-size: .76rem;
  direction: rtl;
}
.ba__tag--b { left: 12px; }
.ba__tag--a { right: 12px; background: var(--clay); color: var(--white); }

/* ------------------------------------------------------------------ 17. forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .span-2 { grid-column: 1 / -1; }

.field { display: grid; gap: .35rem; }
.field label { font-size: .86rem; font-weight: 600; color: var(--graphite-2); }
.field label .req { color: var(--clay); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .68rem .8rem;
  font-family: var(--ar);
  font-size: .95rem;
  color: var(--graphite);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--stone-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--graphite);
  box-shadow: 0 0 0 3px rgba(15,23,42,.08);
}
.field textarea { min-height: 108px; resize: vertical; }
.field input[type="file"] { padding: .5rem; background: var(--concrete); }
.field input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--clay); }
.field .hint { font-size: .78rem; color: var(--stone-2); }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--clay); }
.field .err { font-size: .8rem; color: var(--clay); display: none; }
.field.is-bad .err { display: block; }

/* حقل هاني بوت: مخفي بصرياً لكنه قابل للتعبئة.
   نتجنّب الإزاحة السالبة (left:-9999px) لأنها في اتجاه RTL تُنتج تمريراً
   أفقياً بعرض 9999px. نستخدم بدلاً منها نمط الإخفاء البصري القياسي. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status {
  display: none;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  line-height: 1.6;
  border: 1px solid transparent;
}
.form-status.is-ok { display: block; background: #e8f2e9; border-color: #bcd9c0; color: #245b2b; }
.form-status.is-err { display: block; background: var(--clay-wash); border-color: #e8bda6; color: #8f3210; }

.form-note {
  font-size: .82rem;
  color: var(--stone-2);
  line-height: 1.7;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
/* الرابط داخل النص لا يُميَّز إلا باللون أصلاً (text-decoration: none عام) —
   يوضع تسطيراً ليمتثل قاعدة link-in-text-block في الوصول. */
.form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ 18. toast */
.toast-wrap {
  position: fixed;
  inset-block-end: 96px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 130;
  display: grid;
  gap: .5rem;
  width: min(92vw, 430px);
  pointer-events: none;
}
.toast {
  background: var(--graphite);
  color: var(--concrete-2);
  border: 1px solid var(--graphite-3);
  border-radius: var(--r-md);
  padding: .8rem 1rem;
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in .28s var(--ease-out) both;
}
.toast.is-err { background: #6b2410; border-color: #8f3210; color: #ffd9c6; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ 19. floating actions */
.fab {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.15rem;
  background: #17803f;
  color: var(--white);
  font-weight: 600;
  font-size: .93rem;
  border-radius: 999px;
  box-shadow: 0 16px 34px -14px rgba(31,157,85,.75);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.fab:hover { color: var(--white); background: #178044; transform: translateY(-2px); }
.fab svg { width: 22px; height: 22px; flex: none; }

.call-bar { display: none; }

@media (max-width: 640px) {
  .fab { inset-block-end: 4.9rem; padding: .72rem; }
  .fab span { display: none; }
  .call-bar {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 108;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--graphite);
    border-top: 1px solid var(--graphite-3);
  }
  .call-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .95rem .5rem;
    color: var(--white);
    font-size: .92rem;
    font-weight: 600;
  }
  .call-bar a + a { border-inline-start: 1px solid var(--graphite-3); background: #17803f; }
  .call-bar svg { width: 19px; height: 19px; }
  body { padding-bottom: 62px; }
  .toast-wrap { inset-block-end: 148px; }
}

/* ------------------------------------------------------------------ 20. footer */
.site-foot { background: var(--graphite); color: #94A3B8; font-size: .9rem; }
.site-foot__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: clamp(2.8rem, 5vw, 4rem); }
@media (max-width: 900px) { .site-foot__top { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 560px) { .site-foot__top { grid-template-columns: 1fr; } }

.site-foot h4 { color: var(--white); font-size: .95rem; margin-bottom: 1rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-foot a { color: #94A3B8; }
.site-foot a:hover { color: var(--clay-bright); }
.site-foot .brand__name { color: var(--white); }
.site-foot .brand__sub { color: #94A3B8; }

.foot-addr { display: grid; gap: .7rem; }
.foot-addr li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.6; }
.foot-addr svg { width: 16px; height: 16px; flex: none; margin-top: .3rem; color: var(--clay-bright); }

.socials { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: 1.1rem; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  color: #94A3B8;
}
.socials a:hover { border-color: var(--clay-bright); color: var(--clay-bright); }
.socials svg { width: 17px; height: 17px; }

.site-foot__bot {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  font-size: .83rem;
  color: #94A3B8;
}
.stds { display: flex; gap: .4rem; flex-wrap: wrap; }
.stds span {
  font-family: var(--latin);
  font-size: .74rem;
  font-weight: 600;
  color: #94A3B8;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  padding: .15rem .45rem;
}

/* ------------------------------------------------------------------ 21. misc blocks */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.5rem 1.6rem;
}
.panel--dark { background: var(--graphite); border-color: var(--graphite); color: var(--concrete-2); }
.panel--wash { background: var(--clay-wash); border-color: #ecd0bf; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats > div { background: var(--concrete); padding: 1.35rem 1.2rem; }
.stats dt { font-size: .8rem; color: var(--stone); margin-bottom: .25rem; }
.stats dd { margin: 0; font-family: var(--latin); font-size: 1.85rem; font-weight: 700; line-height: 1.1; color: var(--graphite); }
.stats dd i { font-family: var(--ar); font-style: normal; font-size: .82rem; font-weight: 400; color: var(--stone); margin-inline-start: .2rem; }
.sec--dark .stats { background: var(--line-dark); border-color: var(--line-dark); }
.sec--dark .stats > div { background: var(--graphite-2); }
.sec--dark .stats dt { color: var(--stone-2); }
.sec--dark .stats dd { color: var(--white); }

/* الأسئلة الشائعة */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.6rem 1.15rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  color: var(--graphite);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  inset-inline-end: .2rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  font-family: var(--latin);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--clay);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--clay); }
.faq__a { padding: 0 2.6rem 1.25rem 0; color: var(--stone); font-size: .94rem; line-height: 1.85; }

/* آراء العملاء */
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote-card__txt { font-size: .95rem; line-height: 1.85; color: var(--graphite-2); margin: 0; flex: 1; }
.quote-card__meta { border-top: 1px solid var(--line); padding-top: .85rem; }
.quote-card__name { font-weight: 700; font-size: .92rem; }
.quote-card__role { font-size: .8rem; color: var(--stone-2); }
.stars { display: flex; gap: 2px; color: var(--clay); }
.stars svg { width: 15px; height: 15px; }

/* مقالات */
.post-card { display: flex; flex-direction: column; gap: .8rem; }
.post-card__meta { display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--stone-2); }
.post-card__meta i { font-style: normal; }
.post-card h3 { font-size: 1.15rem; line-height: 1.45; margin: 0; }
.post-card h3 a { color: var(--graphite); }
.post-card h3 a:hover { color: var(--clay); }
.prose { font-size: 1.02rem; line-height: 2; color: var(--graphite-2); }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose h3 { font-size: 1.16rem; margin-top: 1.6rem; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: .45rem; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: .9rem 1.2rem;
  border-inline-start: 3px solid var(--clay);
  background: var(--clay-wash);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.crumb { font-size: .83rem; color: var(--stone-2); margin-bottom: 1.1rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.crumb a { color: var(--stone-2); }
.crumb a:hover { color: var(--clay); }
.crumb span[aria-current] { color: var(--graphite); font-weight: 500; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .16rem .55rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--stone);
  background: var(--white);
}
.pill--ok { background: #e8f2e9; border-color: #bcd9c0; color: #245b2b; }
.pill--new { background: var(--clay-wash); border-color: #e8bda6; color: #8f3210; }
.pill--wait { background: #fbf3df; border-color: #e8d9a8; color: #7a5b0d; }
.pill--muted { background: var(--concrete); border-color: var(--line); color: var(--stone); }

.empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--stone);
}
.empty h3 { font-size: 1.12rem; margin-bottom: .4rem; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--concrete-2);
}
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }

.contact-item { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-item svg { width: 20px; height: 20px; color: var(--clay); flex: none; margin-top: .15rem; }
.contact-item dt { font-size: .8rem; color: var(--stone-2); margin-bottom: .1rem; }
.contact-item dd { margin: 0; font-weight: 600; }
.contact-item dd a { color: var(--graphite); }

/* بانر مدرّج */
.promo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: 1.6rem 1.7rem;
  border-radius: var(--r-md);
  background: var(--clay-wash);
  border: 1px solid #ecd0bf;
}
.promo--dark { background: var(--graphite); border-color: var(--graphite); color: var(--concrete-2); }
.promo--dark h3 { color: var(--white); }
.promo h3 { font-size: 1.18rem; margin-bottom: .3rem; }
.promo p { font-size: .9rem; color: var(--stone); margin: 0; }
.promo--dark p { color: #94A3B8; }
@media (max-width: 620px) { .promo { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ 22. reveal (light, one-shot) */
[data-reveal] { opacity: 0; transform: translateY(14px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }

/* ------------------------------------------------------------------ 23. admin */
.admin-body { background: var(--concrete-2); }
.admin-bar {
  background: var(--graphite);
  color: var(--concrete-3);
  padding: .6rem 0;
  font-size: .85rem;
}
.admin-bar__in { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.admin-bar a { color: var(--concrete-3); }
.admin-bar a:hover, .admin-bar a.is-active { color: var(--white); }
.admin-bar__brand { color: var(--white); font-weight: 700; font-family: var(--latin); letter-spacing: .04em; }
.admin-bar__sp { margin-inline-start: auto; }

.admin-wrap { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.75rem; align-items: start; padding-block: 1.75rem 3rem; }
@media (max-width: 860px) { .admin-wrap { grid-template-columns: 1fr; } }

.admin-nav { display: grid; gap: .1rem; position: sticky; top: 1.75rem; }
.admin-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .8rem;
  font-size: .9rem;
  color: var(--graphite-2);
  border-radius: var(--r-sm);
}
.admin-nav a:hover { background: var(--white); }
.admin-nav a.is-active { background: var(--graphite); color: var(--white); }
.admin-nav a b { font-family: var(--latin); font-size: .78rem; font-weight: 600; opacity: .7; }
@media (max-width: 860px) { .admin-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .admin-nav a { white-space: nowrap; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.card__h { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.card__h h2 { font-size: 1.05rem; margin: 0; }
.card__b { padding: 1.25rem; }
.card__f { padding: 1rem 1.25rem; border-top: 1px solid var(--line); background: var(--concrete); border-radius: 0 0 var(--r-md) var(--r-md); }

.table-rows { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table-rows th, .table-rows td { padding: .7rem .75rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-rows thead th { background: var(--concrete); font-size: .78rem; font-weight: 700; color: var(--stone); position: sticky; top: 0; }
.table-rows tbody tr:hover { background: #F1F5F9; }
.table-wrap { overflow-x: auto; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.15rem; }
.kpi__l { font-size: .8rem; color: var(--stone); margin-bottom: .3rem; }
.kpi__v { font-family: var(--latin); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.kpi__d { font-size: .78rem; color: var(--stone-2); margin-top: .25rem; }
.kpi--hot .kpi__v { color: var(--clay); }

.btn-ghost { background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .35rem .7rem; font-size: .8rem; font-family: var(--ar); color: var(--graphite-2); cursor: pointer; }
.btn-ghost:hover { border-color: var(--graphite); }
.btn-ghost--danger { color: var(--clay); border-color: #e8bda6; }
.btn-ghost--danger:hover { background: var(--clay); color: var(--white); border-color: var(--clay); }

.bar { height: 8px; background: var(--concrete-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--clay); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: var(--graphite); }
.login-card { width: min(100%, 400px); background: var(--white); border-radius: var(--r-lg); padding: 2rem 1.9rem 2.2rem; box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------------------ 23b. أهداف اللمس (SOP / قسم 04)
   قسم 04 يطلب أهداف لمس ≥ 44px. نطبّقها على الإشارات اللمسية فقط عبر
   (pointer: coarse) حتى يبقى التصميم المكتبي الذي اخترناه كما هو حرفياً —
   ولا نستخدم ::after لتوسيع المساحة لأن تباعد الشرائح الصغيرة (5.6px)
   سيجعل أهدافاً متداخلة، وهو أسوأ من هدف صغير. */
@media (pointer: coarse) {
  button.chip { min-height: 44px; padding-block: .5rem; }
  .swatch { width: 44px; height: 44px; }
  .rail__opt { min-height: 44px; padding-block: .45rem; }
  .util a { padding-block: .55rem; }
  .btn-ghost { min-height: 44px; }
  .crumb a { padding-block: .6rem; }
}

/* ------------------------------------------------------------------ 23c. عارض صور المنتج (Lightbox) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem 5rem;
  background: rgba(15, 23, 42, .93);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.lightbox.is-open { display: flex; }
.lightbox.is-shown { opacity: 1; }
.lightbox__img {
  max-width: min(100%, 1100px);
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background .18s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { inset-block-start: 1.1rem; inset-inline-end: 1.1rem; }
.lightbox__prev { inset-inline-start: 1.1rem; inset-block-start: 50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-end: 1.1rem; inset-block-start: 50%; transform: translateY(-50%); }
.lightbox__cap {
  position: absolute;
  inset-block-end: 1.4rem;
  inset-inline: 0;
  text-align: center;
  color: var(--concrete-2);
  font-size: .9rem;
  padding-inline: 5rem;
}
.lightbox__count { font-family: var(--latin); color: var(--stone-2); margin-inline-start: .5rem; }
@media (max-width: 640px) {
  .lightbox { padding: 4.5rem .75rem 6rem; }
  .lightbox__btn { width: 42px; height: 42px; }
  .lightbox__cap { padding-inline: 4rem; font-size: .82rem; }
}
#pvMain.has-zoom { cursor: zoom-in; }
body.lb-open { overflow: hidden; }

/* ------------------------------------------------------------------ 24. print */
@media print {
  .util, .site-head, .fab, .call-bar, .toast-wrap, .site-foot { display: none !important; }
  body { background: #fff; }
}
