/* ==========================================================
   إستبرق للأثاث — ورقة الأنماط الرئيسية
   تصميم دافئ خشبي — يدعم اللغة العربية والاتجاه من اليمين لليسار
   ========================================================== */

/* ---------- 1. المتغيرات والألوان ---------- */
:root {
  /* لوحة الألوان الخشبية الدافئة */
  --walnut-900: #FFFFFF;
  --walnut-800: #F5F5F5;
  --walnut-700: #E6E6E6;
  --walnut-600: #BDBDBD;
  --oak-500:    #FFFFFF;
  --oak-400:    #BDBDBD;
  --sand-300:   #2A2A2A;
  --sand-200:   #1C1C1C;
  --cream-100:  #0A0A0A;
  --cream-50:   #FFFFFF;

  --olive:      #9A9A9A;
  --gold:       #FFFFFF;
  --clay:       #FFFFFF;

  --ink:        #F2F2F2;
  --ink-soft:   #A6A6A6;
  --line:       rgba(255, 255, 255, 0.12);

  --bg:         var(--cream-100);
  --surface:    #141414;
  --surface-2:  #101010;

  /* الظلال */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);

  /* القياسات */
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 26px;
  --maxw:      1240px;
  --nav-h:     78px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16.5px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: "Amiri", "Tajawal", Georgia, serif;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.5em;
  color: var(--walnut-800);
}

p { margin: 0 0 1em; }

::selection { background: #111; color: #fff; }

/* شريط التمرير */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--sand-200); }
::-webkit-scrollbar-thumb {
  background: var(--oak-500);
  border-radius: 99px;
  border: 3px solid var(--sand-200);
}
::-webkit-scrollbar-thumb:hover { background: var(--walnut-600); }

/* ---------- 3. عناصر مساعدة ---------- */
.container {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

.section { padding: 92px 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--oak-500);
  background: rgba(17, 17, 17, 0.10);
  border: 1px solid rgba(17, 17, 17, 0.22);
  padding: 7px 18px;
  border-radius: 99px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* فاصل زخرفي */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto 0;
  max-width: 240px;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(to left, transparent, var(--oak-400));
}
.divider::after { background: linear-gradient(to right, transparent, var(--oak-400)); }
.divider span {
  width: 9px; height: 9px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* ---------- 4. الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }

.btn--primary {
  background: #111111;
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
}

.btn--ghost {
  border-color: rgba(17, 17, 17, 0.28);
  color: var(--walnut-700);
  background: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover {
  background: var(--walnut-700);
  border-color: var(--walnut-700);
  color: var(--cream-50);
  transform: translateY(-3px);
}

.btn--wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.32);
}
.btn--wa:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37, 211, 102, 0.42); }

/* ---------- 5. شريط التنقل ---------- */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              height 0.35s var(--ease);
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, 0.07);
  height: 66px;
}

.nav__inner {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* الشعار — PNG بحبر أسود وخلفية شفافة؛ يُعكس للأبيض في التذييل */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo {
  display: block;
  height: 40px;
  width: auto;
  opacity: 0.92;
  transition: height 0.35s var(--ease), opacity 0.25s var(--ease);
}
.brand:hover .brand__logo { opacity: 0.7; }
.nav.is-stuck .brand__logo { height: 34px; }
.footer .brand__logo { height: 54px; filter: invert(1); opacity: 0.9; }

/* الروابط */
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 15px;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--walnut-700);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset-block-end: 4px;
  inset-inline-start: 50%;
  translate: 50% 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: width 0.28s var(--ease);
}
.nav__links a:hover { color: var(--walnut-900); }
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 22px; }
.nav__links a.is-active { color: var(--oak-500); font-weight: 700; }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__cta .btn { padding: 11px 22px; font-size: 0.9rem; }

/* زر القائمة للجوال */
.nav__burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  place-items: center;
}
.nav__burger span {
  display: block;
  width: 21px; height: 2px;
  background: var(--walnut-700);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__burger span + span { margin-top: 5px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(45deg); }

/* القائمة الجانبية للجوال */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: var(--cream-100);
  padding: calc(var(--nav-h) + 30px) 28px 40px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu a {
  display: block;
  padding: 16px 4px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--walnut-700);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:active { color: var(--oak-500); }
.mobile-menu .btn { width: 100%; margin-top: 26px; }

/* ---------- 6. الواجهة الرئيسية ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #FFFFFF, #F4F4F4);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 1.28;
  margin-bottom: 22px;
  color: var(--walnut-900);
}
.hero__title .accent {
  color: var(--oak-500);
  position: relative;
  white-space: nowrap;
}
.hero__title .accent::after {
  content: "";
  position: absolute;
  inset-inline: -2px;
  inset-block-end: 6px;
  height: 11px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 3px;
  z-index: -1;
}

.hero__lead {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__stat b {
  display: block;
  font-family: "Amiri", serif;
  font-size: 2.1rem;
  color: var(--walnut-700);
  line-height: 1.1;
}
.hero__stat span { font-size: 0.88rem; color: var(--ink-soft); }

/* مجموعة صور الواجهة */
.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 210px 150px;
  gap: 16px;
}
.hero__visual figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__visual figure:nth-child(1) { grid-row: span 2; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); }
.hero__visual img,
.hero__visual .ph { width: 100%; height: 100%; object-fit: cover; }
.hero__visual img { transition: transform 0.7s var(--ease); }
.hero__visual figure:hover img { transform: scale(1.06); }
.hero__visual figure { background: #fff; }

/* شارة عائمة */
.hero__badge {
  position: absolute;
  inset-block-end: -22px;
  inset-inline-start: -22px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
}
.hero__badge .icn {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(120, 120, 120, 0.14);
  display: grid; place-items: center;
  color: var(--olive);
  flex-shrink: 0;
}
.hero__badge .icn svg { width: 22px; height: 22px; }
.hero__badge b { display: block; font-size: 0.95rem; color: var(--walnut-800); }
.hero__badge span { font-size: 0.79rem; color: var(--ink-soft); }

/* تلميح التمرير */
.scroll-hint {
  position: absolute;
  inset-block-end: 26px;
  inset-inline-start: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
.scroll-hint i {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--oak-500), transparent);
  animation: hintDrop 2s var(--ease) infinite;
}
@keyframes hintDrop {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 7. شريط المزايا ---------- */
.strip {
  background: var(--walnut-800);
  color: var(--sand-200);
  padding: 30px 0;
  position: relative;
  overflow: hidden;
}
.strip::before { content: none; }
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.strip__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline-start: 18px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.18);
}
.strip__item:first-child { border-inline-start: none; padding-inline-start: 0; }
.strip__item svg { width: 30px; height: 30px; color: var(--oak-400); flex-shrink: 0; }
.strip__item b { display: block; color: var(--cream-50); font-size: 0.98rem; font-weight: 700; }
.strip__item span { font-size: 0.82rem; opacity: 0.72; }

/* ---------- 8. الأقسام / التصنيفات ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 270px;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  isolation: isolate;
}
.cat--wide { grid-column: span 2; }
.cat:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }

.cat__media { position: absolute; inset: 0; z-index: -2; }
.cat__media img,
.cat__media .ph { width: 100%; height: 100%; object-fit: cover; }
.cat__media img { transition: transform 0.8s var(--ease); }
.cat:hover .cat__media img { transform: scale(1.07); }

.cat::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.30) 48%, transparent 78%);
}

.cat__body { position: relative; width: 100%; }
.cat__body h3 { color: #fff; font-size: 1.5rem; margin-bottom: 5px; }
.cat__body p { font-size: 0.9rem; opacity: 0.85; margin: 0 0 14px; }
.cat__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 700;
  color: var(--oak-400);
  transition: gap 0.25s var(--ease);
}
.cat:hover .cat__link { gap: 14px; }
.cat__link svg { width: 16px; height: 16px; }

.cat__count {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-end: 20px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--cream-50);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
}
/* قسم بلا منتجات بعد: شارة ذهبية وصورة بديلة أهدأ */
.cat__count--soon {
  background: #FFFFFF;
  border-color: transparent;
  color: #000000;
}
.cat--soon .cat__media .ph { opacity: 0.75; }
.cat--soon .cat__media .ph b,
.cat--soon .cat__media .ph small { display: none; }
.cat__body h3 { font-size: 1.32rem; }

/* ---------- 9. المنتجات ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.filter {
  padding: 9px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--walnut-700);
  transition: all 0.25s var(--ease);
}
.filter:hover { border-color: var(--oak-400); color: var(--oak-500); }
.filter.is-active {
  background: #111111;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
  gap: 26px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: cardIn 0.45s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;   /* مربع — يناسب الصور الطولية والعرضية معاً */
  overflow: hidden;
  background: var(--sand-200);
  cursor: zoom-in;
}
.card__media img,
.card__media .ph { width: 100%; height: 100%; object-fit: cover; }
.card__media img { transition: transform 0.7s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }

.card__tag {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--walnut-700);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.card__tag--new { background: #111111; color: #fff; }

/* مؤشر الوسائط (عدد الصور / فيديو) أسفل الصورة */
.card__media-tag {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--cream-50);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 99px;
  backdrop-filter: blur(6px);
}
.card__media-tag svg { width: 13px; height: 13px; }
.card__tag--hot { background: #fff; color: #111; box-shadow: inset 0 0 0 1.5px #111; }

.card__zoom {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.card:hover .card__zoom { opacity: 1; }
.card__zoom span {
  background: var(--cream-50);
  color: var(--walnut-800);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 0.87rem;
  font-weight: 700;
  transform: translateY(8px);
  transition: transform 0.3s var(--ease);
}
.card:hover .card__zoom span { transform: none; }

.card__body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card__cat { font-size: 0.76rem; color: var(--oak-500); font-weight: 700; letter-spacing: 0.04em; }
.card__title { font-size: 1.16rem; margin: 4px 0 8px; }
.card__desc { font-size: 0.89rem; color: var(--ink-soft); margin: 0 0 16px; flex: 1; line-height: 1.7; }

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
}
.card__price {
  font-family: "Amiri", serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--walnut-700);
  line-height: 1.35;
  min-width: 0;
}
.card__price--ask {
  font-family: "Tajawal", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.card__price small { font-size: 0.72rem; color: var(--ink-soft); font-family: "Tajawal", sans-serif; font-weight: 500; }
.card__ask {
  display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.84rem; font-weight: 700;
  color: #fff;
  background: #25D366;
  padding: 8px 15px;
  border-radius: 99px;
  transition: transform 0.22s var(--ease), filter 0.22s var(--ease);
}
.card__ask:hover { transform: translateY(-2px); filter: brightness(1.06); }
.card__ask svg { width: 16px; height: 16px; }

.empty-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px dashed rgba(17, 17, 17, 0.35);
  border-radius: var(--radius-lg);
}
.empty-note p { font-size: 1.05rem; margin-bottom: 20px; }
.empty-note b { color: var(--walnut-800); }

.more-wrap { text-align: center; margin-top: 46px; }

/* ---------- 10. قسم من نحن ---------- */
.about { background: var(--surface-2); }
.about__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 62px;
  align-items: center;
}
.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.4;
}
.about__media img, .about__media .ph { width: 100%; height: 100%; object-fit: cover; }
.about__frame {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  pointer-events: none;
}
.about__title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.about__text { color: var(--ink-soft); font-size: 1.04rem; }

.about__points { display: grid; gap: 18px; margin: 30px 0 34px; }
.about__point { display: flex; gap: 15px; align-items: flex-start; }
.about__point .icn {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.13);
  color: var(--oak-500);
  display: grid; place-items: center;
}
.about__point .icn svg { width: 22px; height: 22px; }
.about__point h4 { margin: 0 0 2px; font-size: 1.05rem; }
.about__point p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; }

/* ---------- 11. معرض الصور ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(6) { grid-column: span 2; }
.gallery img, .gallery .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 26px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.82), transparent);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }

/* ---------- 12. آراء العملاء ---------- */
.reviews { background: var(--walnut-800); color: var(--sand-200); position: relative; overflow: hidden; }
.reviews::before { content: none; }
.reviews .section-title { color: var(--cream-50); }
.reviews .section-sub { color: rgba(255, 255, 255, 0.72); }
.reviews .eyebrow {
  color: var(--oak-400);
  background: rgba(17, 17, 17, 0.14);
  border-color: rgba(17, 17, 17, 0.28);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.review {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.review:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.09); }
.review__stars { color: #FFFFFF; letter-spacing: 3px; margin-bottom: 14px; font-size: 1rem; }
.review__text { font-size: 0.98rem; line-height: 1.9; color: rgba(255, 255, 255, 0.92); margin-bottom: 22px; }
.review__who { display: flex; align-items: center; gap: 13px; }
.review__ava {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #111111;
  display: grid; place-items: center;
  font-family: "Amiri", serif;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
}
.review__who b { display: block; color: var(--cream-50); font-size: 0.96rem; }
.review__who span { font-size: 0.8rem; opacity: 0.65; }

/* ---------- 13. شريط الدعوة للتواصل ---------- */
.cta-band {
  background: linear-gradient(140deg, #000000, #2A2A2A);
  border-radius: var(--radius-lg);
  padding: 56px 52px;
  color: var(--cream-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -6%;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--cream-50); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: 0.88; max-width: 52ch; }
.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--cream-50);
  background: transparent;
}
.cta-band .btn--ghost:hover { background: var(--cream-50); color: var(--walnut-800); border-color: var(--cream-50); }
.cta-band__actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* ---------- 14. التواصل ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 46px;
  align-items: start;
}
.info-card, .form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
}
.info-list { display: grid; gap: 22px; margin-bottom: 28px; }
.info-item { display: flex; gap: 15px; align-items: flex-start; }
.info-item .icn {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 13px;
  background: rgba(17, 17, 17, 0.12);
  color: var(--oak-500);
  display: grid; place-items: center;
}
.info-item .icn svg { width: 22px; height: 22px; }
.info-item b { display: block; font-size: 0.98rem; color: var(--walnut-800); margin-bottom: 1px; }
.info-item p, .info-item a { margin: 0; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; }
.info-item a:hover { color: var(--oak-500); }

.socials { display: flex; gap: 11px; padding-top: 24px; border-top: 1px solid var(--line); }
.socials a {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--walnut-700);
  transition: all 0.25s var(--ease);
}
.socials a svg { width: 20px; height: 20px; }
.socials a:hover {
  background: var(--walnut-700);
  border-color: var(--walnut-700);
  color: var(--cream-50);
  transform: translateY(-3px);
}

/* النموذج */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 17px; }
.field label {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--walnut-700);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--oak-400);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.14);
}
.field select { appearance: none; cursor: pointer; }
.sel-wrap { position: relative; }
.sel-wrap::after {
  content: "";
  position: absolute;
  inset-inline-end: 16px;
  inset-block-start: 50%;
  width: 8px; height: 8px;
  /* حدود فيزيائية حتى يبقى السهم متجهاً للأسفل في الاتجاهين */
  border-right: 2px solid var(--oak-500);
  border-bottom: 2px solid var(--oak-500);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin: 14px 0 0; text-align: center; }
.form-card .btn { width: 100%; }

/* ---------- 15. الخريطة ---------- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  height: 380px;
  background: var(--sand-200);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1); }

/* ---------- 16. التذييل ---------- */
.footer {
  background: var(--walnut-900);
  color: rgba(255, 255, 255, 0.76);
  padding: 66px 0 0;
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
}
.footer h4 {
  color: var(--cream-50);
  font-size: 1.05rem;
  margin-bottom: 18px;
  font-family: "Tajawal", sans-serif;
}
.footer p { font-size: 0.91rem; line-height: 1.85; }
.footer .brand { margin-bottom: 18px; }
.footer__links { display: grid; gap: 11px; }
.footer__links a { font-size: 0.91rem; transition: color 0.2s var(--ease), padding 0.2s var(--ease); }
.footer__links a:hover { color: var(--oak-400); padding-inline-start: 5px; }
.footer__hours { display: grid; gap: 9px; font-size: 0.89rem; }
.footer__hours div { display: flex; justify-content: space-between; gap: 14px; }
.footer__hours span:last-child { color: var(--oak-400); font-weight: 600; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer__bottom a:hover { color: var(--oak-400); }

/* ---------- 17. الأزرار العائمة ---------- */
.wa-float {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  z-index: 800;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.1) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-float::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.65); opacity: 0; }
}

.to-top {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-start: 24px;
  z-index: 800;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--walnut-700);
  color: var(--cream-50);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.3s var(--ease);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--oak-500); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 18. صندوق عرض الصور ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.93);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 36px 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__inner {
  max-width: 900px;
  width: 100%;
  text-align: center;
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}
.lightbox.is-open .lightbox__inner { transform: none; }
.lightbox__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--walnut-800);
  min-height: 240px;
  display: grid;
}
.lightbox__media img,
.lightbox__media .ph { width: 100%; max-height: 74svh; object-fit: contain; }
.lightbox__cap { color: var(--sand-200); margin-top: 18px; font-size: 1.02rem; font-weight: 600; }
.lightbox__cap small { display: block; font-weight: 400; opacity: 0.6; font-size: 0.86rem; margin-top: 3px; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--cream-50);
  display: grid; place-items: center;
  transition: background-color 0.22s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__close { inset-block-start: 22px; inset-inline-end: 22px; }
.lightbox__nav svg, .lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav { inset-block-start: 50%; translate: 0 -50%; }
.lightbox__nav--prev { inset-inline-start: 22px; }
.lightbox__nav--next { inset-inline-end: 22px; }

/* ---------- 19. الصور البديلة ---------- */
/* البديل الخشبي يوضع خلف كل صورة، وتغطيه الصورة الحقيقية عند توفرها */
/* ملاحظة: .cat__media موضعه absolute مسبقاً ويصلح كمرجع للصورة بداخله */
.card__media,
.gallery figure,
.hero__visual figure,
.about__media { position: relative; }

.card__media > img,
.cat__media > img,
.gallery figure > img,
.hero__visual figure > img,
.about__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media > .ph,
.cat__media > .ph,
.gallery figure > .ph,
.hero__visual figure > .ph,
.about__media > .ph { width: 100%; height: 100%; }

/* داخل صندوق العرض تظهر الصورة كاملة بدون قص */
.lightbox__media > .ph { min-height: 240px; }
.lightbox__media > img {
  position: relative;
  grid-area: 1 / 1;
  object-fit: contain;
}
.lightbox__media > .ph { grid-area: 1 / 1; }
.lightbox__media > video {
  grid-area: 1 / 1;
  width: 100%;
  max-height: 74svh;
  background: #fff;
  position: relative;
  z-index: 1;
}
.lightbox__media { background: #fff; }

.ph {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: linear-gradient(150deg, #F4F4F4, #E4E4E4);
  color: rgba(60, 60, 60, 0.62);
  text-align: center;
  padding: 18px;
}
.ph svg { width: 46px; height: 46px; opacity: 0.55; }
.ph b { font-size: 0.86rem; font-weight: 700; }
.ph small { font-size: 0.7rem; opacity: 0.8; }



/* ---------- بطاقات الأقسام: أبيض وأسود ----------
   القطعة في أعلى البطاقة والنص تحتها، بدون تدرّج داكن */
.cat {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.cat::after { content: none; }
.cat__media { background: #FFFFFF; }
.cat__media > img {
  object-fit: contain;
  object-position: center;
  padding: 14px 20px 132px;   /* المساحة السفلية محجوزة للنص */
  background: #FFFFFF;
}
.cat__body h3 { color: var(--ink); }
.cat__body p { color: var(--ink-soft); opacity: 1; }
.cat__link { color: var(--ink); }
.cat__count { background: #111111; color: #FFFFFF; border-color: transparent; }
.cat__count--soon { background: #FFFFFF; color: #111111; box-shadow: inset 0 0 0 1.5px #111111; }
.cat--soon .cat__media .ph { opacity: 1; }

/* ملء الصف الأخير */
.cat--span-2 { grid-column: span 2; }
.cat--span-3 { grid-column: span 3; }
.cat--span-4 { grid-column: span 4; }
@media (max-width: 1080px) {
  .cat--span-2, .cat--span-3, .cat--span-4 { grid-column: auto; }
  .cat--wide, .cat--m-full { grid-column: span 2; }
}
@media (max-width: 780px) {
  .cat__media > img { padding: 12px 12px 70px; }
}

/* ---------- توسيط الصور ----------
   الصورة كاملة في منتصف الإطار أفقياً وعمودياً، على خلفية بيضاء */
.card__media,
.gallery figure,
.hero__visual figure,
.about__media,
.lightbox__media { background: #FFFFFF; }

.card__media > img,
.gallery figure > img,
.hero__visual figure > img,
.about__media > img {
  object-fit: contain;
  object-position: center center;
  padding: 6%;
  background: #FFFFFF;   /* يغطي الصورة البديلة خلفها */
}
.hero__visual figure:nth-child(1) > img { padding: 10% 8%; }

/* ---------- 20. حركات الظهور عند التمرير ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 21. الاستجابة للشاشات ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 560px; }
  .hero { min-height: auto; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-width: 460px; aspect-ratio: 4/3.4; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat--wide { grid-column: span 2; }
  .reviews__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .strip__item:nth-child(3) { border-inline-start: none; padding-inline-start: 0; }
}

@media (max-width: 780px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }
  .section { padding: 68px 0; }
  /* الأقسام: عمودان ببطاقات مختصرة بدل قائمة طويلة */
  .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat--wide { grid-column: span 2; }
  .cat { min-height: 170px; padding: 16px; border-radius: var(--radius); }
  .cat__body h3 { font-size: 1.15rem; margin-bottom: 2px; }
  .cat__body p { display: none; }
  .cat__link { font-size: 0.78rem; }
  .cat__count { inset-block-start: 12px; inset-inline-end: 12px; padding: 3px 10px; font-size: 0.68rem; }

  /* الفلاتر: صف واحد قابل للسحب أفقياً */
  .filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-inline: -20px;
    padding: 4px 20px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 152px; }
  .gallery figure:nth-child(6) { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-band { padding: 40px 28px; text-align: center; justify-content: center; }
  .cta-band__actions { justify-content: center; width: 100%; }
  .hero__visual { grid-template-rows: 170px 122px; }
  /* على الجوال تنزل الشارة أسفل الصور بدل أن تغطيها */
  .hero__badge {
    position: static;
    grid-column: 1 / -1;   /* صف كامل أسفل الصور */
    justify-self: center;
    width: max-content;
    max-width: 100%;
    margin-top: 4px;
  }
  .scroll-hint { display: none; }
  .hero__stats { gap: 24px; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  body { font-size: 15.8px; }
  .container, .nav__inner { width: min(100% - 28px, var(--maxw)); }
  .hero__actions .btn { width: 100%; }
  .strip__grid { grid-template-columns: 1fr; }
  .strip__item { border-inline-start: none; padding-inline-start: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .info-card, .form-card { padding: 26px 22px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { inset-inline-start: 8px; }
  .lightbox__nav--next { inset-inline-end: 8px; }
  .filters { margin-inline: -14px; padding-inline: 14px; }
}

/* ---------- 22. الطباعة ---------- */
@media print {
  .nav, .wa-float, .to-top, .lightbox, .scroll-hint, .filters { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   السمة الداكنة — خلفية سوداء ونص أبيض
   الصور تبقى على مربعات بيضاء لأن خلفيات الصور بيضاء
   ========================================================== */
body { background: #0A0A0A; color: var(--ink); }

/* الشعار: الحبر الأسود يصبح أبيض */
.brand__logo { filter: invert(1); }
.footer .brand__logo { filter: invert(1); }

.nav.is-stuck {
  background: rgba(10, 10, 10, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav__burger { background: transparent; border-color: rgba(255, 255, 255, 0.2); }
.mobile-menu { background: #0A0A0A; }
.hero__bg { background: linear-gradient(180deg, #0A0A0A, #131313); }
.hero__title .accent::after { background: rgba(255, 255, 255, 0.18); }

/* أزرار: أبيض على أسود */
.btn--primary { background: #FFFFFF; color: #000000; box-shadow: none; }
.btn--primary:hover { background: #DDDDDD; box-shadow: none; }
.btn--ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.3); }
.btn--ghost:hover { background: #FFFFFF; color: #000000; border-color: #FFFFFF; }
.filter { background: transparent; color: #DDDDDD; border-color: rgba(255, 255, 255, 0.18); }
.filter:hover { color: #FFFFFF; border-color: #FFFFFF; }
.filter.is-active { background: #FFFFFF; color: #000000; box-shadow: none; }
.eyebrow { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #DDDDDD; }

/* الأشرطة: درجات من الأسود للفصل بين الأقسام */
.strip { background: #141414; color: #A6A6A6; border-block: 1px solid rgba(255, 255, 255, 0.06); }
.strip__item { border-inline-start-color: rgba(255, 255, 255, 0.1); }
.strip__item b { color: #FFFFFF; }
.strip__item svg { color: #FFFFFF; }
.about { background: #101010; }
.reviews { background: #141414; color: #CCCCCC; }
.reviews .section-title { color: #FFFFFF; }
.review { background: #1A1A1A; border-color: rgba(255, 255, 255, 0.08); }
.review__ava { background: #FFFFFF; color: #000000; }
.footer { background: #000000; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #A6A6A6; }
.footer h4 { color: #FFFFFF; }
.footer__hours span:last-child, .footer__links a:hover { color: #FFFFFF; }
.cta-band { background: #FFFFFF; color: #000000; }
.cta-band h2 { color: #000000; }
.cta-band::before { background: rgba(0, 0, 0, 0.04); }
.cta-band .btn--ghost { color: #000000; border-color: rgba(0, 0, 0, 0.3); }
.cta-band .btn--ghost:hover { background: #000000; color: #FFFFFF; border-color: #000000; }

/* بطاقات المنتجات: جسم داكن وصورة على مربع أبيض */
.card { background: #141414; border-color: rgba(255, 255, 255, 0.08); }
.card__desc { color: #A6A6A6; }
.card__meta { border-top-color: rgba(255, 255, 255, 0.1); }
.card__tag { background: #FFFFFF; color: #000000; }
.card__tag--new { background: #000000; color: #FFFFFF; }
.card__tag--hot { background: #FFFFFF; color: #000000; box-shadow: none; }
.card__media-tag { background: rgba(0, 0, 0, 0.8); }
.card__zoom span { background: #000000; color: #FFFFFF; }

/* بطاقات الأقسام */
.cat { background: #141414; border-color: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.cat__media { background: #141414; }
.cat__media > img { background: transparent; }
.cat__body h3 { color: #FFFFFF; }
.cat__body p { color: #A6A6A6; }
.cat__link { color: #FFFFFF; }
.cat__count { background: #FFFFFF; color: #000000; }
.cat__count--soon { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px #FFFFFF; }
.ph { background: linear-gradient(150deg, #1E1E1E, #161616); color: rgba(255, 255, 255, 0.45); }

/* التواصل والنماذج */
.info-card, .form-card { background: #141414; border-color: rgba(255, 255, 255, 0.08); }
.info-item .icn, .about__point .icn, .hero__badge .icn { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.hero__badge { background: #141414; border-color: rgba(255, 255, 255, 0.1); }
.field input, .field select, .field textarea {
  background: #0E0E0E; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.14);
}
.field input:focus, .field select:focus, .field textarea:focus {
  background: #0E0E0E; border-color: #FFFFFF; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}
.sel-wrap::after { border-color: #FFFFFF; }
.socials a { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.16); }
.socials a:hover { background: #FFFFFF; color: #000000; border-color: #FFFFFF; }
.empty-note { background: #141414; border-color: rgba(255, 255, 255, 0.2); }
.empty-note b { color: #FFFFFF; }
.map-wrap { background: #141414; border-color: rgba(255, 255, 255, 0.08); }
.map-wrap iframe { filter: grayscale(1) invert(0.92) contrast(0.9); }
.to-top { background: #FFFFFF; color: #000000; }
.to-top:hover { background: #DDDDDD; }

::selection { background: #FFFFFF; color: #000000; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #444444; border-color: #0A0A0A; }
::-webkit-scrollbar-thumb:hover { background: #666666; }

/* الصورة البديلة تختفي عندما توجد صورة حقيقية فوقها */
.ph:has(+ img) > * { visibility: hidden; }
.cat:not(.cat--soon) .cat__media .ph > * { visibility: hidden; }

/* ==========================================================
   بطاقات الأقسام بالأيقونات — الأيقونة تملأ البطاقة والنص تحتها
   ========================================================== */
.cat {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 340px;
  padding: 22px 24px 22px;
  background: radial-gradient(120% 90% at 50% 30%, #1C1C1C 0%, #121212 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.cat:hover { border-color: rgba(255, 255, 255, 0.35); }
.cat__icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 18px 0 14px;
  color: #FFFFFF;
}
.cat__icon svg {
  width: 190px;
  height: 190px;
  max-width: 80%;
  stroke-width: 1.5;
  transition: transform 0.5s var(--ease);
}
.cat:hover .cat__icon svg { transform: scale(1.07); }
.cat--soon .cat__icon { color: rgba(255, 255, 255, 0.4); }
.cat__body { position: static; }
.cat__body h3 { font-size: 1.45rem; }

@media (max-width: 780px) {
  .cat { min-height: 190px; padding: 14px; }
  .cat__icon { min-height: 90px; padding: 10px 0 6px; }
  .cat__icon svg { width: 104px; height: 104px; stroke-width: 1.8; }
  .cat__body h3 { font-size: 1.12rem; }
}

/* العناصر المخفية (مثلاً حقل محتوى فارغ) تبقى مخفية مهما كان نوع العرض */
[hidden] { display: none !important; }

/* ==========================================================
   عرض القسم — صفحة كاملة بمنتجات القسم المختار
   ========================================================== */
.catview {
  position: fixed;
  inset: 0;
  z-index: 950;                 /* فوق الصفحة، وتحت صندوق عرض الصور */
  background: #0A0A0A;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: catviewIn 0.35s var(--ease) both;
}
@keyframes catviewIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.catview__head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.catview__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 84px;
}
.catview__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.catview__back svg { width: 18px; height: 18px; }
.catview__back:hover { background: #FFFFFF; color: #000000; }
.catview__titles { flex: 1; display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.catview__titles h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); color: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catview__count { color: #A6A6A6; font-size: 0.9rem; white-space: nowrap; }
.catview__icon { color: #FFFFFF; flex-shrink: 0; }
.catview__icon svg { width: 52px; height: 52px; stroke-width: 1.6; display: block; }
.catview__body { padding: 36px 0 90px; }

@media (max-width: 780px) {
  .catview__bar { min-height: 66px; gap: 10px; }
  .catview__back { padding: 8px 12px; }
  .catview__back span { display: none; }
  .catview__icon svg { width: 38px; height: 38px; }
  .catview__body { padding: 20px 0 80px; }
}

/* داخل صفحة القسم لا حاجة لتكرار اسم القسم على كل بطاقة */
.catview .card__cat { display: none; }

/* ==========================================================
   الأقسام المخصّصة (تُضاف من لوحة التحكم)
   ========================================================== */
.custom-text { white-space: pre-line; }              /* الأسطر الجديدة في النص تظهر كما كُتبت */
.custom-btn { margin-top: 26px; }
.custom-split .about__copy .btn { margin-top: 8px; }
.custom-split--flip .about__media { order: 2; }      /* الصورة على الجهة الأخرى */
.custom-textsec .section-head { margin-bottom: 0; }
.custom-images .gallery { margin-bottom: 0; }
.custom-banner .cta-band p { white-space: pre-line; }
@media (max-width: 1080px) {
  .custom-split--flip .about__media { order: 0; }
}
.custom-banner { padding: 56px 0; }
