/* =========================================================================
   ياقوت | نظام التصميم — هوية "الحجر الكريم"
   الألوان الأساسية محافظ عليها من الهوية القديمة (ذهبي/أسود) + لون ياقوتي
   عميق كإشارة لاسم البراند، وحواف مقصوصة بشكل "وجه الجوهرة" كعنصر مميز
   ========================================================================= */

:root {
  --onyx:        #0b0b0d;
  --onyx-soft:   #16151a;
  --gold:        #c9a24b;
  --gold-light:  #e8d9a8;
  --gold-dim:    rgba(201, 162, 75, 0.35);
  --garnet:      #7a1330;
  --garnet-light:#a83a52;
  --ivory:       #f7f3ea;
  --ivory-dim:   #efe8d8;
  --ink:         #1c1a17;
  --ink-soft:    #55504a;

  --font-display: 'Aref Ruqaa', 'Amiri', serif;
  --font-body: 'Tajawal', sans-serif;

  --radius: 4px;
  --ease: cubic-bezier(.4,0,.2,1);
  --facet: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* حماية إضافية من أي عنصر بيسبب سكرول أفقي غير مقصود على الموبايل */
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

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

/* ---------- عنصر التصميم المميز: زاوية "قصّة الجوهرة" ---------- */
.gem-cut {
  clip-path: var(--facet);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .5px;
}

/* =========================== شريط علوي =========================== */
.promo-bar {
  background: var(--onyx);
  color: var(--gold-light);
  font-size: 12.5px;
  text-align: center;
  padding: 8px 12px;
  letter-spacing: .5px;
}

/* =========================== الهيدر =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11,11,13,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-dim);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
  flex-wrap: nowrap; /* منع أي التفاف للعناصر لسطر تاني - كان بيسبب شكل "متكسر" على الموبايل */
}
.logo {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold-light);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.logo img {
  /* بدون الحد الأقصى ده، أي لوجو عريض (زي شعار أفقي) كان بياخد مساحة كبيرة جدًا
     ويزحم باقي عناصر الهيدر، خصوصًا على الموبايل */
  max-width: 160px; max-height: 40px; width: auto; height: auto; object-fit: contain;
}
.logo span { color: var(--gold); }
.main-nav { display: flex; gap: 32px; }
.main-nav a {
  color: var(--ivory);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.main-nav a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.icon-btn {
  color: var(--ivory);
  font-size: 18px;
  position: relative;
  transition: color .3s var(--ease);
}
.icon-btn:hover { color: var(--gold); }
.cart-badge {
  position: absolute;
  top: -8px; left: -10px;
  background: var(--garnet);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; color: var(--ivory); font-size: 22px; }
.lang-switch { font-size: 12px; font-weight: 800; letter-spacing: .5px; border: 1px solid var(--gold-dim); border-radius: 4px; padding: 5px 9px; }
.lang-switch:hover { border-color: var(--gold); color: var(--gold); }

/* =========================== بار سفلي احترافي للموبايل (زي شوبيفاي) =========================== */
.mobile-tabbar { display: none; }
.mtab-badge { display: none; }

@media (max-width: 900px) {
  .header-only-icon { display: none; }
  body { padding-bottom: 62px; }
  .header-row { height: 64px; gap: 10px; } /* كان 78px/24px - كبير على الموبايل ومحتاج مساحة للأيقونات */
  .logo img { max-width: 110px; max-height: 34px; } /* أصغر على الموبايل عشان يسيب مساحة كافية للأيقونات */
  .header-actions { gap: 10px; } /* كانت 20px - على الشاشات الصغيرة كانت بتسبب زحمة/التفاف */
  .icon-btn {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; min-height: 40px; /* مساحة لمس مريحة للإصبع بدل الأيقونة العارية بس */
  }
  .lang-switch { padding: 5px 7px; font-size: 11px; } /* تصغير بسيط عشان يوفّر مساحة أكتر */
  .nav-toggle { min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; }

  .mobile-tabbar {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(11,11,13,.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--gold-dim);
    z-index: 850;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mtab-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    padding: 9px 4px 8px;
    color: rgba(247,243,234,.55);
    font-size: 10.5px;
    font-weight: 600;
    position: relative;
    transition: color .2s;
  }
  .mtab-item i { font-size: 18px; }
  .mtab-item.active, .mtab-item:active { color: var(--gold-light); }
  .mtab-badge {
    display: none;
    position: absolute; top: 2px; right: 50%; margin-right: -14px;
    background: var(--garnet); color: #fff;
    font-size: 9px; font-weight: 700;
    min-width: 15px; height: 15px; border-radius: 50%;
    align-items: center; justify-content: center; padding: 0 3px;
  }
  .mtab-badge.show { display: flex; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}

/* =========================== درج المنيو الكامل للموبايل =========================== */
.mnav-overlay {
  position: fixed; inset: 0; background: rgba(11,11,13,.6);
  z-index: 950; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.mnav-overlay.open { opacity: 1; pointer-events: auto; }
.mnav-drawer {
  position: fixed; top: 0; bottom: 0; right: -340px; width: 320px; max-width: 88vw;
  background: var(--onyx); color: var(--ivory); z-index: 951;
  transition: right .38s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,.3);
}
.mnav-drawer.open { right: 0; }
.mnav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid rgba(247,243,234,.1);
  flex-shrink: 0;
}
.mnav-head button { color: var(--ivory); font-size: 20px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.mnav-account-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(247,243,234,.08);
  flex-shrink: 0;
}
.mnav-account-link { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--gold-light); }
.mnav-lang-link { font-size: 12.5px; color: rgba(247,243,234,.6); display: flex; align-items: center; gap: 6px; }
.mnav-links { flex-shrink: 0; padding: 6px 0; overflow-y: auto; }
.mnav-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px;
  font-size: 15px; font-weight: 600; color: var(--ivory);
  border-bottom: 1px solid rgba(247,243,234,.06);
  transition: background .2s;
}
.mnav-links a:hover, .mnav-links a:active { background: rgba(255,255,255,.04); }
.mnav-links a i { font-size: 11px; color: rgba(247,243,234,.35); }
.mnav-section-title {
  padding: 18px 20px 10px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; flex-shrink: 0;
}
.mnav-cat-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 20px;
  flex-shrink: 0; scrollbar-width: none;
}
.mnav-cat-scroll::-webkit-scrollbar { display: none; }
.mnav-cat-chip { flex-shrink: 0; width: 78px; text-align: center; }
.mnav-cat-chip img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-dim); margin-bottom: 6px; }
.mnav-cat-chip span { font-size: 11px; color: var(--ivory); display: block; line-height: 1.3; }
.mnav-foot {
  margin-top: auto; padding: 18px 20px; border-top: 1px solid rgba(247,243,234,.1);
  flex-shrink: 0;
}
.mnav-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #fff; padding: 12px; font-weight: 700; font-size: 13.5px;
  border-radius: 8px; margin-bottom: 16px;
}
.mnav-social { display: flex; justify-content: center; gap: 14px; }
.mnav-social a {
  width: 34px; height: 34px; border: 1px solid var(--gold-dim); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--ivory);
}

/* =========================== الهيرو =========================== */
.hero {
  position: relative;
  background: var(--onyx);
  color: var(--ivory);
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at 82% 20%, var(--gold-dim), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(122,19,48,.35), transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero p {
  font-size: 16.5px;
  color: rgba(247,243,234,.75);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-visual {
  position: relative;
  padding-top: 125%; /* بديل متوافق مع كل المتصفحات بدل الاعتماد على aspect-ratio فقط */
  background: linear-gradient(155deg, var(--onyx-soft), var(--onyx) 70%);
  border: 1px solid var(--gold-dim);
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
  overflow: hidden;
}
.hero-visual .gem-mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46%;
  opacity: .9;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  transition: all .35s var(--ease);
  clip-path: var(--facet);
}
.btn-gold { background: var(--gold); color: var(--onyx); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--gold-dim); color: var(--ivory); }
/* نسخة من الزرار المفرغ لما يكون فوق خلفية فاتحة (مش الهيرو الغامق) - كانت متكررة كـ inline style في 5 صفحات مختلفة */
.btn-outline-light { border: 1px solid #ddd; color: var(--ink); }
.btn-outline-light:hover { border-color: var(--gold); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-garnet { background: var(--garnet); color: #fff; }
.btn-garnet:hover { background: var(--garnet-light); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* رأس صفحة مبسّط (للصفحات الفرعية زي التواصل/المدونة/العروض) - نفس خلفية الهيرو الغامقة
   بس بارتفاع وحجم عنوان أصغر، بدل ما تتكرر نفس الـ inline styles في كل صفحة لوحدها */
.page-header { padding: 60px 0 80px; }
.page-header h1 { font-size: clamp(30px, 4vw, 46px); }
@media (max-width: 900px) { .page-header { padding: 46px 0 56px; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; margin: 0 auto; }
  .hero { padding: 56px 0 70px; } /* كان 90/110 - كتير أوي على شاشة موبايل، بيدفع المحتوى لتحت من غير داعي */
  .hero p { margin-bottom: 26px; }
}

/* =========================== أقسام عامة =========================== */
.section { padding: 84px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 42px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); color: var(--ink); }
.section-head .link-more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--garnet);
  border-bottom: 1px solid var(--garnet);
  padding-bottom: 2px;
}
.section-dark { background: var(--onyx); color: var(--ivory); }
.section-dark .section-head h2 { color: var(--ivory); }

/* =========================== تصنيفات =========================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  display: block;
  padding-top: 133.33%; /* نسبة 3:4 بديل متوافق مع كل المتصفحات */
  overflow: hidden;
  clip-path: var(--facet);
  background: var(--onyx-soft);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,11,13,.88) 0%, rgba(11,11,13,.1) 55%);
}
.cat-card span {
  position: absolute;
  bottom: 20px; right: 20px; left: 20px;
  z-index: 2;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 19px;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================== كروت آراء العملاء =========================== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: #fff; padding: 32px 28px; position: relative; clip-path: var(--facet);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(28,26,23,.07); }
.testimonial-quote-icon { position: absolute; top: 24px; left: 26px; font-size: 26px; color: var(--gold-dim); }
[dir="ltr"] .testimonial-quote-icon { left: auto; right: 26px; }
.testimonial-stars { color: var(--gold); font-size: 13px; margin-bottom: 16px; }
.testimonial-text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; margin-bottom: 22px; min-height: 76px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(28,26,23,.07); }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--onyx); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; flex-shrink: 0;
}
.testimonial-author strong { font-size: 13.5px; color: var(--ink); display: block; }
.testimonial-role { font-size: 11.5px; color: var(--ink-soft); margin-top: 1px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* =========================== كروت المدونة =========================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: #fff; display: block; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(28,26,23,.08); }
.blog-card-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--ivory-dim); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-body { padding: 22px 20px; }
.blog-card-date { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.blog-card-date i { color: var(--gold); }
.blog-card-title {
  font-family: var(--font-display); font-size: 18px; color: var(--ink); margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4;
}
.blog-card:hover .blog-card-title { color: var(--garnet); }
.blog-card-excerpt { font-size: 13px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; }
.blog-card-readmore { font-size: 12.5px; font-weight: 700; color: var(--garnet); display: inline-flex; align-items: center; gap: 6px; }
.blog-card-readmore i { font-size: 10px; transition: transform .2s; }
.blog-card:hover .blog-card-readmore i { transform: translateX(-3px); }
[dir="ltr"] .blog-card:hover .blog-card-readmore i { transform: translateX(3px); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* =========================== المنتجات =========================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card {
  background: #fff;
  border: 1px solid rgba(28,26,23,.07);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
  position: relative;
}
.product-card:hover { box-shadow: 0 24px 48px rgba(11,11,13,.14); transform: translateY(-6px); border-color: transparent; }
.product-thumb { position: relative; display: block; padding-top: 110%; overflow: hidden; background: var(--ivory-dim); clip-path: var(--facet); }
.product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-thumb img { transform: scale(1.08); }
.badge-discount {
  position: absolute; top: 12px; right: 12px;
  background: var(--garnet); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 5px 10px;
  z-index: 2;
  letter-spacing: .3px;
}
.badge-new {
  position: absolute; top: 12px; right: 12px;
  background: var(--onyx); color: var(--gold-light);
  font-size: 10.5px; font-weight: 700;
  padding: 5px 10px;
  z-index: 2;
}
.product-body { padding: 18px 16px 20px; }
.product-body .p-brand { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 5px; }
.product-body .p-name { font-size: 15.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; min-height: 2.8em; transition: color .2s; }
.product-card:hover .p-name { color: var(--garnet); }
/* تقييم النجوم على كارت المنتج - تقنية CSS بحتة لعرض نجوم منقوصة (زي 3.5 من 5) بدرجة تعبئة دقيقة */
.p-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.p-stars { position: relative; display: inline-block; font-size: 12px; color: #e0ddd6; letter-spacing: 2px; }
.p-stars::before {
  content: "\f005\f005\f005\f005\f005"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0; width: var(--fill, 0%); overflow: hidden; color: var(--gold); white-space: nowrap;
}
.p-rating-count { font-size: 11.5px; color: var(--ink-soft); }
.product-body .p-desc { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; min-height: 3em; }
.p-price-row { display: flex; align-items: center; justify-content: space-between; }
.p-variant-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.p-variant-pill {
  font-family: inherit; background: #fff; border: 1px solid rgba(28,26,23,.15);
  border-radius: 999px; padding: 4px 11px; font-size: 11px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.p-variant-pill:hover { border-color: var(--gold); color: var(--ink); }
.p-variant-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.p-variant-pill.out-of-stock { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.p-variant-pill.out-of-stock:hover { border-color: rgba(28,26,23,.15); color: var(--ink-soft); }

/* شارة "نفد المخزون" على كارت المنتج */
.badge-outofstock {
  position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--ink); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 3px; letter-spacing: .02em;
}
[dir="ltr"] .badge-outofstock { right: auto; left: 12px; }
.product-card.is-out-of-stock .product-thumb img { opacity: .55; filter: grayscale(40%); }
.add-cart-btn:disabled { background: #e2ddd0; color: #a8a29a; cursor: not-allowed; }
.add-cart-btn:disabled:hover { background: #e2ddd0; }
.p-price { font-weight: 800; color: var(--garnet); font-size: 16.5px; }
.p-price .old { color: #a09b92; text-decoration: line-through; font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.p-rating { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--gold); margin-bottom: 6px; }
.p-rating span { color: var(--ink-soft); font-weight: 600; }
.add-cart-btn {
  width: 40px; height: 40px;
  background: var(--onyx); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  clip-path: var(--facet);
  transition: background .3s var(--ease), transform .2s var(--ease);
  flex-shrink: 0;
}
.add-cart-btn:hover { background: var(--garnet); color: #fff; transform: scale(1.06); }
.add-cart-btn:active { transform: scale(.94); }
.wishlist-btn {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  transition: all .25s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.wishlist-btn:hover { color: var(--garnet); transform: scale(1.08); }
.wishlist-btn.active { color: var(--garnet); }
.wishlist-btn.active i { font-weight: 900; }

/* زرار العرض السريع - دايرة أيقونة تحت زرار المفضلة مباشرة (نفس الستايل، مكدّسين فوق بعض) */
.quickview-btn {
  position: absolute; top: 56px; left: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  font-size: 14px; transition: all .25s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.quickview-btn span { display: none; } /* أي نص جوه الزرار (لو فاضل من نسخة قديمة) مبيتفظش */
.quickview-btn:hover { color: var(--garnet); transform: scale(1.08); }

@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* =========================== نافذة العرض السريع Quick View =========================== */
/* =========================== لوحة البحث الفوري (Autocomplete) =========================== */
.search-overlay {
  position: fixed; inset: 0; background: rgba(11,11,13,.5); z-index: 950;
  display: flex; align-items: flex-start; justify-content: center; padding: 0;
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-panel {
  background: #fff; width: 100%; max-width: 640px; margin-top: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,.2); max-height: 100vh; overflow-y: auto;
  transform: translateY(-12px); transition: transform .25s var(--ease);
}
.search-overlay.open .search-panel { transform: translateY(0); }
.search-input-row { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid rgba(28,26,23,.08); }
.search-input-row i.fa-magnifying-glass { color: var(--ink-soft); font-size: 16px; }
.search-input-row input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 16px; background: transparent; }
.search-input-row button { background: none; border: none; color: var(--ink-soft); font-size: 18px; padding: 4px; }
.search-input-row button:hover { color: var(--garnet); }
.search-results { padding: 8px 0 16px; min-height: 40px; }
.search-hint, .search-loading { padding: 30px 24px; text-align: center; color: var(--ink-soft); font-size: 13.5px; }
.search-loading { font-size: 20px; color: var(--gold); }
.search-section-label { padding: 14px 24px 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #a8a29a; text-transform: uppercase; }
.search-cat-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 24px; font-size: 13.5px; color: var(--ink); transition: background .15s;
}
.search-cat-row i { color: var(--gold); width: 16px; }
.search-cat-row:hover { background: var(--ivory-dim); }
.search-product-row { display: flex; align-items: center; gap: 14px; padding: 10px 24px; transition: background .15s; }
.search-product-row:hover { background: var(--ivory-dim); }
.search-product-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; background: var(--ivory-dim); flex-shrink: 0; }
.search-product-info .n { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.search-product-info .p { font-size: 13px; color: var(--garnet); font-weight: 700; }
.search-see-all {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 24px 0;
  padding: 12px; border: 1px solid rgba(28,26,23,.12); border-radius: 4px; font-size: 13px; font-weight: 700; color: var(--ink);
}
.search-see-all:hover { border-color: var(--garnet); color: var(--garnet); }

/* زرار البحث في درج الموبايل */
.mnav-search-trigger {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 40px); margin: 0 20px 18px;
  padding: 12px 16px; background: var(--ivory-dim); border: none; border-radius: 6px;
  font-family: inherit; font-size: 13.5px; color: var(--ink-soft); text-align: right;
}
[dir="ltr"] .mnav-search-trigger { text-align: left; }

@media (max-width: 640px) {
  .search-panel { max-width: 100%; }
  .search-input-row { padding: 18px 16px; }
  .search-section-label, .search-cat-row, .search-product-row { padding-left: 16px; padding-right: 16px; }
  .search-see-all { margin-left: 16px; margin-right: 16px; }
}

.qv-overlay {
  position: fixed; inset: 0; background: rgba(11,11,13,.6); z-index: 900;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease);
}
.qv-overlay.open { opacity: 1; visibility: visible; }
.qv-modal {
  background: #fff; border-radius: 4px; max-width: 860px; width: 100%; max-height: 88vh;
  overflow-y: auto; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.3);
  transform: translateY(16px); transition: transform .25s var(--ease);
}
.qv-overlay.open .qv-modal { transform: translateY(0); }
.qv-close {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.qv-close:hover { background: var(--garnet); color: #fff; }
.qv-loading { padding: 80px; text-align: center; font-size: 26px; color: var(--gold); }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.qv-img { position: relative; aspect-ratio: 1/1; background: var(--ivory-dim); overflow: hidden; }
.qv-img img { width: 100%; height: 100%; object-fit: cover; }
.qv-info { padding: 34px; display: flex; flex-direction: column; }
.qv-info h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 12px; }
.qv-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 18px; }
.qv-price { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 22px; }
.qv-price .old { color: #a09b92; text-decoration: line-through; font-weight: 400; font-size: 14px; margin-right: 8px; }
.qv-sizes { margin-bottom: 24px; }
.qv-sizes label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; color: var(--ink-soft); }
.qv-actions { display: flex; gap: 12px; margin-top: auto; }
.qv-actions .btn { flex: 1; justify-content: center; padding: 14px; }
@media (max-width: 720px) {
  .qv-grid { grid-template-columns: 1fr; }
  .qv-info { padding: 24px; }
  .qv-actions { flex-direction: column; }
}

/* =========================== سلايدر العروض =========================== */
.promo-carousel-wrap { position: relative; background: var(--onyx); }
.promo-carousel { position: relative; width: 100%; aspect-ratio: 21/9; max-height: 420px; overflow: hidden; }
.promo-slide {
  position: absolute; inset: 0; display: block;
  opacity: 0; transition: opacity .7s var(--ease); pointer-events: none;
}
.promo-slide.active { opacity: 1; pointer-events: auto; }
.promo-slide img { width: 100%; height: 100%; object-fit: cover; }
.promo-slide-text {
  position: absolute; bottom: 0; right: 0; left: 0;
  background: linear-gradient(0deg, rgba(11,11,13,.85), transparent);
  padding: 40px 30px 24px;
  color: var(--ivory);
}
.promo-slide-text span { font-family: var(--font-display); font-size: 24px; display: block; margin-bottom: 4px; }
.promo-slide-text small { font-size: 13.5px; color: rgba(247,243,234,.75); }
.promo-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.promo-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(247,243,234,.4); transition: all .3s; }
.promo-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }
@media (max-width: 600px) {
  /* كانت 4/5 (طولي) - ده كان بيقص أي بانر عريض (الشكل الطبيعي لصور العروض) بشكل
     وحشي جدًا، وبيسيب بس شريحة رفيعة طولية من الصورة الأصلية (زي خط طويل) بدل ما
     يعرضها كاملة. النسبة الجديدة عريضة زي الصورة الأصلية المتوقعة، بس أقصر شوية
     من الديسكتوب عشان تاخد مساحة مناسبة على شاشة الموبايل. */
  .promo-carousel { aspect-ratio: 4/3; max-height: 340px; }
  .promo-slide-text span { font-size: 19px; }
}

/* =========================== صفحة المنتج المفرد =========================== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pd-gallery { position: sticky; top: 100px; }
.pd-main-image { clip-path: none; border: 1px solid rgba(28,26,23,.08); border-radius: 4px; }
.pd-discount-badge { border-radius: 0; }
.pd-title { font-size: 30px; margin-bottom: 14px; line-height: 1.25; }
.pd-rating { color: var(--gold); margin-bottom: 16px; font-size: 14px; }
.pd-rating span { color: var(--ink-soft); font-size: 13px; }
.pd-price { font-size: 28px; margin-bottom: 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-from { font-size: 14px; color: var(--ink-soft); font-weight: 400; }
.pd-description { color: var(--ink-soft); margin-bottom: 26px; line-height: 1.9; font-size: 14.5px; }
.pd-size-group label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.pd-size-options { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-size-pill {
  font-family: inherit;
  background: #fff;
  border: 1.5px solid rgba(28,26,23,.15);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.pd-size-pill:hover { border-color: var(--gold); }
.pd-size-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pd-size-pill.out-of-stock { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.pd-size-pill.out-of-stock:hover { border-color: rgba(28,26,23,.15); color: var(--ink); }
.pd-stock-msg { font-size: 12px; color: var(--garnet); margin-top: 8px; }

/* =========================== سلسلة اختيار الكمية (Bundle Selector) زي شوبيفاي =========================== */
.pd-bundle-selector { margin: 20px 0; }
.pd-bundle-selector .pd-bundle-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.pd-bundle-selector .pd-bundle-title i { color: var(--gold); margin-left: 4px; }
[dir="ltr"] .pd-bundle-selector .pd-bundle-title i { margin-left: 0; margin-right: 4px; }
.pd-bundle-options { display: flex; flex-direction: column; gap: 10px; }
.pd-bundle-option {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: #fff; border: 1.5px solid rgba(28,26,23,.14); border-radius: 6px;
  cursor: pointer; text-align: right; font-family: inherit; width: 100%;
  transition: border-color .2s, background .2s;
}
[dir="ltr"] .pd-bundle-option { text-align: left; }
.pd-bundle-option:hover { border-color: var(--gold); }
.pd-bundle-option.active { border-color: var(--garnet); background: var(--ivory-dim); box-shadow: 0 0 0 1px var(--garnet) inset; }
.pd-bundle-check {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(28,26,23,.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: transparent; font-size: 10px;
  transition: all .2s;
}
.pd-bundle-option.active .pd-bundle-check { background: var(--garnet); border-color: var(--garnet); color: #fff; }
.pd-bundle-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pd-bundle-qty { font-size: 14px; font-weight: 700; color: var(--ink); }
.pd-bundle-unit-price { font-size: 12px; color: var(--ink-soft); }
.pd-bundle-total { font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.pd-bundle-option.active .pd-bundle-total { color: var(--garnet); }
.pd-bundle-badge {
  position: absolute; top: -10px; right: 14px; background: var(--garnet); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .01em;
}
[dir="ltr"] .pd-bundle-badge { right: auto; left: 14px; }
@media (max-width: 640px) {
  .pd-bundle-option { padding: 12px 14px; gap: 10px; }
  .pd-bundle-total { font-size: 13.5px; }
}
.pd-actions { display: flex; gap: 10px; margin: 24px 0 20px; }
.pd-add-btn { flex: 1; justify-content: center; padding: 17px; font-size: 14.5px; }
.pd-wishlist-btn { width: 56px; padding: 0; justify-content: center; color: var(--ink); border-color: rgba(28,26,23,.15); flex-shrink: 0; }
.pd-wishlist-btn.active { color: var(--garnet); border-color: var(--garnet); }
.pd-trust-row { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 20px; border-top: 1px solid rgba(28,26,23,.08); }
.pd-trust-row div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.pd-trust-row i { color: var(--gold); }

/* =========================== تابات صفحة المنتج =========================== */
.pd-tabs { margin-top: 70px; max-width: 780px; }
.pd-tabs-nav { display: flex; gap: 6px; border-bottom: 1px solid rgba(28,26,23,.12); margin-bottom: 32px; }
.pd-tab-btn {
  font-family: inherit; background: none; border: none; padding: 14px 6px; margin-left: 26px;
  font-size: 14px; font-weight: 700; color: var(--ink-soft); cursor: pointer; position: relative;
  border-bottom: 2px solid transparent; transition: color .2s;
}
[dir="ltr"] .pd-tab-btn { margin-left: 0; margin-right: 26px; }
.pd-tab-btn:hover { color: var(--ink); }
.pd-tab-btn.active { color: var(--ink); border-bottom-color: var(--garnet); }
.pd-tab-count { display: inline-block; background: var(--ivory-dim); color: var(--ink-soft); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; margin-right: 4px; }
.pd-tab-panel { display: none; animation: pdFadeIn .25s var(--ease); }
.pd-tab-panel.active { display: block; }
@keyframes pdFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.pd-full-description { color: var(--ink-soft); line-height: 1.95; font-size: 14.5px; max-width: 640px; }
.pd-review-row { border-bottom: 1px solid #eee; padding: 16px 0; }
.pd-review-stars { color: var(--gold); font-size: 13px; margin: 4px 0; }
.pd-review-comment { font-size: 14px; color: var(--ink-soft); }
.pd-shipping-list { display: flex; flex-direction: column; gap: 16px; }
.pd-shipping-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.pd-shipping-list i { color: var(--gold); font-size: 16px; margin-top: 2px; width: 18px; text-align: center; }

@media (max-width: 640px) {
  .pd-tabs-nav { gap: 0; overflow-x: auto; }
  .pd-tab-btn { margin-left: 18px; font-size: 13px; white-space: nowrap; }
  [dir="ltr"] .pd-tab-btn { margin-right: 18px; }
}

/* الشريط الثابت أسفل الشاشة (موبايل بس) */
.pd-sticky-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  background: #fff; border-top: 1px solid rgba(28,26,23,.1);
  padding: 12px 16px; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.08);
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.pd-sticky-bar.show { transform: translateY(0); }
.pd-sticky-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pd-sticky-info img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.pd-sticky-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.pd-sticky-price { font-size: 13px; font-weight: 800; color: var(--garnet); }
.pd-sticky-bar .btn { padding: 11px 18px; font-size: 12.5px; white-space: nowrap; flex-shrink: 0; }

@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .pd-gallery { position: static; }
  .pd-main-image { max-width: 420px; margin: 0 auto; }
  .pd-title { font-size: 24px; }
  .pd-price { font-size: 24px; }
  /* الشريط الثابت بيتراكب فوق البار السفلي العام للموقع (مش بيغيّر مسافاته) */
  .pd-sticky-bar { display: flex; bottom: 62px; padding-bottom: 12px; }
}

/* =========================== Breadcrumb =========================== */
.breadcrumb { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--garnet); }
.breadcrumb i { font-size: 9px; color: #c4bfae; }
.breadcrumb span { color: var(--ink); font-weight: 600; }

/* =========================== صفحة المنتجات: تخطيط بفلاتر جانبية =========================== */
.collection-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.filters-mobile-toggle { display: none; }
.filters-panel { position: sticky; top: 100px; }
.filter-block { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid rgba(28,26,23,.08); }
.filter-block:last-child { border-bottom: none; }
.filter-block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; color: var(--ink); }
.filter-cat-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.filter-cat-list a { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; color: var(--ink-soft); transition: color .2s; }
.filter-cat-list a:hover { color: var(--garnet); }
.filter-cat-list a.active { color: var(--garnet); font-weight: 700; }
.cat-count { color: #b0a99c; font-size: 12px; }
.price-range-inputs { display: flex; align-items: center; gap: 8px; }
.price-range-inputs input { width: 100%; padding: 9px 10px; border: 1px solid rgba(28,26,23,.15); font-size: 13px; }
.price-range-inputs span { color: #b0a99c; }

.collection-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(28,26,23,.08); }
.results-count { font-size: 13px; color: var(--ink-soft); }
.sort-form select { padding: 9px 12px; border: 1px solid rgba(28,26,23,.15); font-size: 13px; background: #fff; }

@media (max-width: 900px) {
  .collection-layout { grid-template-columns: 1fr; }
  .filters-mobile-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px; background: var(--onyx); color: var(--gold-light);
    font-size: 13.5px; font-weight: 700; margin-bottom: 16px; clip-path: var(--facet);
  }
  .filters-panel { display: none; position: static; background: var(--ivory-dim); padding: 20px; margin-bottom: 20px; }
  .filters-panel.open { display: block; }
}

/* =========================== شريط الثقة =========================== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 46px 0;
  border-top: 1px solid rgba(28,26,23,.08);
  border-bottom: 1px solid rgba(28,26,23,.08);
}
.trust-item { text-align: center; }
.trust-item i { color: var(--gold); font-size: 22px; margin-bottom: 10px; }
.trust-item h4 { font-size: 14.5px; margin-bottom: 4px; }
.trust-item p { font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 900px) { .trust-bar { grid-template-columns: repeat(2, 1fr); } }

/* =========================== النشرة البريدية =========================== */
.newsletter-section { background: var(--onyx); padding: 64px 0; }
.newsletter-box {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap; background: var(--onyx-soft);
  border: 1px solid var(--gold-dim); padding: 40px 44px; clip-path: var(--facet);
}
.newsletter-text { flex: 1; min-width: 260px; }
.newsletter-text h2 { color: var(--ivory); font-size: 26px; margin-bottom: 8px; }
.newsletter-text p { color: rgba(247,243,234,.7); font-size: 14px; }
.newsletter-form { display: flex; gap: 10px; flex: 1; min-width: 280px; max-width: 420px; }
.newsletter-form input {
  flex: 1; padding: 14px 16px; border: 1px solid rgba(247,243,234,.2);
  background: rgba(255,255,255,.05); color: var(--ivory); font-family: inherit; font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(247,243,234,.4); }
.newsletter-form input:focus { border-color: var(--gold); outline: none; }
@media (max-width: 600px) {
  .newsletter-box { padding: 30px 24px; }
  .newsletter-form { flex-direction: column; }
}

/* =========================== الفوتر =========================== */
.site-footer { background: var(--onyx); color: rgba(247,243,234,.7); padding: 70px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-grid h5 { color: var(--gold-light); font-size: 14px; margin-bottom: 18px; letter-spacing: .5px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-grid ul a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(247,243,234,.1); padding-top: 22px; display: flex; justify-content: space-between; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }
.social-row { display: flex; gap: 14px; }
.social-row a { width: 34px; height: 34px; border: 1px solid var(--gold-dim); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.social-row a:hover { background: var(--gold); color: var(--onyx); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* =========================== سلة جانبية =========================== */
.side-cart-overlay {
  position: fixed; inset: 0; background: rgba(11,11,13,.6);
  z-index: 900; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.side-cart-overlay.open { opacity: 1; pointer-events: auto; }
.side-cart {
  position: fixed; top: 0; bottom: 0; left: -440px; width: 420px; max-width: 92vw;
  background: #fff; z-index: 901; transition: left .4s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(11,11,13,.2);
}
.side-cart.open { left: 0; }
.side-cart-head {
  padding: 22px 24px; border-bottom: 1px solid #eee;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ivory);
}
.side-cart-head strong { font-family: var(--font-display); font-size: 19px; }
.side-cart-head button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); border-radius: 50%; transition: background .2s; }
.side-cart-head button:hover { background: rgba(0,0,0,.06); }
.side-cart-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.side-cart-foot { padding: 20px 24px 24px; border-top: 1px solid #eee; background: #fff; }

.free-ship-bar { padding: 14px 20px; background: var(--ivory); font-size: 12.5px; color: var(--ink-soft); border-bottom: 1px solid #eee; }
.free-ship-bar strong { color: var(--garnet); }
.free-ship-track { height: 5px; background: #e8e2d4; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.free-ship-fill { height: 100%; background: var(--gold); transition: width .4s var(--ease); }

.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f2efe8; align-items: flex-start; }
.cart-line-upsell {
  display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 10px;
  background: var(--ivory-dim); border: 1px dashed var(--gold); border-radius: 4px;
  font-size: 11px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: right; font-family: inherit; width: 100%;
}
[dir="ltr"] .cart-line-upsell { text-align: left; }
.cart-line-upsell:hover { border-color: var(--garnet); }
.cart-line-upsell i { color: var(--garnet); font-size: 10px; }
.cart-line img { width: 68px; height: 68px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--ivory-dim); }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info .n { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.cart-line-info .s { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 8px; }
.cart-line-price { font-size: 13px; font-weight: 700; color: var(--garnet); white-space: nowrap; margin-right: auto; }
.qty-ctrl { display: inline-flex; align-items: center; gap: 0; border: 1px solid #e2ddd0; border-radius: 6px; overflow: hidden; }
.qty-ctrl button { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink); transition: background .2s; }
.qty-ctrl button:hover { background: var(--ivory-dim); }
.qty-ctrl span { width: 28px; text-align: center; font-size: 13px; font-weight: 700; }

@media (max-width: 900px) {
  /* أزرار +/- الكمية كانت صغيرة أوي للمس بالإصبع (26px) - المفروض 40px+ عشان تبقى مريحة */
  .qty-ctrl button { width: 40px; height: 40px; font-size: 15px; }
  .qty-ctrl span { width: 36px; font-size: 14px; }
}
.cart-line-remove { color: #b0a99c; transition: color .2s; padding: 4px; }
.cart-line-remove:hover { color: var(--garnet); }
.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.side-cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.side-cart-empty i { font-size: 40px; color: #e2ddd0; margin-bottom: 16px; display: block; }
.side-cart-empty a { color: var(--garnet); font-weight: 700; }
.empty-results-state { grid-column: 1/-1; text-align: center; padding: 70px 20px; }
.empty-results-state i { font-size: 40px; color: #e2ddd0; margin-bottom: 16px; display: block; }
.empty-results-state p { color: var(--ink-soft); margin-bottom: 20px; font-size: 14.5px; }

.storefront-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination-link {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(28,26,23,.15); font-size: 13.5px; font-weight: 600; color: var(--ink);
  transition: border-color .2s, background .2s, color .2s;
}
.pagination-link:hover { border-color: var(--gold); }
.pagination-link.active { background: var(--onyx); color: var(--gold-light); border-color: var(--onyx); }

.cart-summary-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.cart-summary-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin: 14px 0; padding-top: 14px; border-top: 1px dashed #e2ddd0; }
.trust-mini { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: var(--ink-soft); margin-top: 12px; }

/* =========================== صفحة السلة الكاملة =========================== */
.cart-page-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.cart-page-list { background: #fff; border: 1px solid rgba(28,26,23,.08); }
.cart-page-row { display: flex; gap: 18px; padding: 22px; border-bottom: 1px solid #f2efe8; align-items: center; }
.cart-page-row:last-child { border-bottom: none; }
.cart-page-row img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--ivory-dim); flex-shrink: 0; }
.cart-page-info { flex: 1; min-width: 0; }
.cart-page-info .n { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.cart-page-info .s { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 12px; }
.cart-page-actions { display: flex; align-items: center; gap: 20px; }
.cart-page-actions .cart-line-remove { font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.cart-page-price { font-weight: 800; color: var(--garnet); font-size: 15px; white-space: nowrap; }
.cart-summary-card { background: var(--ivory-dim); padding: 26px; border: 1px solid rgba(28,26,23,.06); position: sticky; top: 100px; }
.cart-summary-card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 18px; }
@media (max-width: 900px) {
  .cart-page-grid { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
  .cart-page-row { flex-wrap: wrap; }
  .cart-page-price { margin-right: auto; }
}

/* =========================== نماذج =========================== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border: 1px solid rgba(28,26,23,.15);
  font-family: inherit; font-size: 14px; background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--gold); }

@media (max-width: 900px) {
  /* أي حقل إدخال أصغر من 16px بيخلي Safari على الآيفون يزوم تلقائي جوه الحقل لما تدوس عليه -
     مضايقة معروفة ومتكررة، فبنخلي كل الحقول 16px بالظبط على الموبايل تحديدًا لمنع الزوم ده */
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; padding: 14px 16px; }
}

/* =========================== توست تنبيه =========================== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--onyx); color: var(--gold-light); padding: 14px 26px;
  font-size: 13.5px; z-index: 1000; opacity: 0; transition: all .35s var(--ease);
  clip-path: var(--facet);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* =========================================================================
   دعم اللغة الإنجليزية (LTR) — تصحيحات اتجاه للعناصر اللي مكتوبة بمواقع ثابتة
   ========================================================================= */
[dir="ltr"] { --font-display: 'Cormorant Garamond', serif; }
[dir="ltr"] body { font-family: 'Tajawal', 'Cormorant Garamond', sans-serif; }

[dir="ltr"] .cart-badge { left: auto; right: -10px; }
[dir="ltr"] .wishlist-btn { left: auto; right: 12px; }
[dir="ltr"] .quickview-btn { left: auto; right: 12px; }
[dir="ltr"] .badge-discount { right: auto; left: 12px; }
[dir="ltr"] .p-price .old { margin-left: 0; margin-right: 6px; }
[dir="ltr"] .cat-card span { right: auto; left: 20px; }
[dir="ltr"] .side-cart { left: auto; right: -420px; }
[dir="ltr"] .side-cart.open { left: auto; right: 0; }
[dir="ltr"] .side-cart-foot .btn,
[dir="ltr"] .qty-ctrl button:last-child { direction: ltr; }
[dir="ltr"] .eyebrow::before { margin-left: 0; }
[dir="ltr"] .hero-ctas .btn i,
[dir="ltr"] .btn i { transform: scaleX(-1); }
