/* ==========================================================================
   عالم الرواد لتحلية المياه — نظام التصميم
   الهندسة مستنسخة من «بيت التنقية»، والهوية اللونية هوية عالم الرواد.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap");

:root {
  /* الهوية — أزرق عالم الرواد */
  /* لتبديل الأزرق كله: غيّر --brand وحده. #235BA8 هو أزرق شعاركم المسجّل في سلة. */
  --brand: #0284c7;          /* الأزرق الملكي المعتمد */
  --brand-600: #0369a1;
  --brand-700: #075985;
  --brand-50: #f0f9ff;
  --brand-100: #e0f2fe;
  --sky: #38bdf8;            /* سماوي الشارات */
  --sky-bg: #e0f2fe;
  --sky-line: #bae6fd;

  /* الكحلي العميق — الهيرو والفوتر */
  --navy: #0c2547;
  --navy-2: #0a1e3a;
  --navy-3: #0b1329;   /* كحلي الفوتر الملكي */

  /* الأحمر — الأسعار والشارات (كما في المرجع) */
  --red: #e02b2b;
  --red-600: #c81e1e;

  /* المحايدات */
  --ink: #16202e;
  --ink-2: #334155;
  --muted: #6b7a90;
  --line: #e3e9f2;
  --mist: #f6f8fb;
  --paper: #ffffff;

  --shadow-sm: 0 1px 2px rgba(12, 37, 71, 0.05);
  --shadow: 0 4px 16px rgba(12, 37, 71, 0.08);
  --shadow-lg: 0 12px 34px rgba(12, 37, 71, 0.13);

  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --container: 1280px;
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Cairo", "Tajawal", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; font-weight: 800; color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select { font-family: inherit; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.en { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* رمز الريال السعودي */
.sar { width: .82em; height: .82em; display: inline-block; vertical-align: -.02em; margin-inline-start: 3px; opacity: .9; }

/* ==========================================================================
   1. الشريط المتحرك العلوي
   ========================================================================== */
.topbar {
  background: var(--brand);
  color: #fff; font-size: 13px; overflow: hidden; padding: 8px 0;
}
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { padding-inline: 34px; white-space: nowrap; font-weight: 500; }
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.topbar:hover .marquee { animation-play-state: paused; }

/* ==========================================================================
   2. شريط الخدمات
   ========================================================================== */
.utilitybar { background: var(--navy-3); color: rgba(255,255,255,.72); font-size: 12.5px; }
.utilitybar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utilitybar a { transition: color .2s; }
.utilitybar a:hover { color: #fff; }
.utility-contact { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.utility-contact span { display: inline-flex; align-items: center; gap: 6px; }
.utility-links { display: flex; gap: 16px; }
@media (max-width: 880px) { .utility-links { display: none; } .utilitybar .container { justify-content: center; } }

/* ==========================================================================
   3. الترويسة
   ========================================================================== */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.header .container { display: flex; align-items: center; gap: 14px; min-height: 76px; min-width: 0; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; max-width: 250px; }
.logo img { height: 48px; width: auto; object-fit: contain; }
.logo-text { font-family: var(--font-head); font-weight: 900; font-size: 15px; line-height: 1.2; color: var(--brand); line-height: 1.15; }
.logo-text small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .06em; }

.nav { display: flex; gap: 2px; margin-inline: auto; min-width: 0; flex-wrap: nowrap; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex; align-items: center; gap: 4px; padding: 10px 9px; font-size: 13.5px;
  font-weight: 500; color: var(--ink-2); border-radius: 8px; transition: .2s; white-space: nowrap;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--brand); background: var(--brand-50); }
.nav .caret { width: 12px; height: 12px; opacity: .55; transition: transform .2s; }
.nav > li:hover .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 240px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 70;
}
.nav > li:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: .15s; }
.submenu a:hover { background: var(--brand-50); color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  color: var(--ink-2); transition: .2s; position: relative;
}
.icon-btn:hover { background: var(--mist); color: var(--brand); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 2px; inset-inline-start: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.burger { display: none; }
@media (max-width: 1280px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header .container { min-height: 66px; }
  .logo img { height: 40px; }
}

/* القائمة الجوالية */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(7,23,48,.55); backdrop-filter: blur(2px);
  z-index: 100; opacity: 0; visibility: hidden; transition: .25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(330px, 86vw); background: #fff;
  padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .28s ease;
}
[dir="rtl"] .mobile-panel { transform: translateX(-100%); }
.mobile-menu.open .mobile-panel { transform: translateX(0); }
.mobile-panel h4 { font-size: 13px; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.mobile-panel a { display: block; padding: 11px 12px; border-radius: 9px; font-size: 15px; color: var(--ink-2); }
.mobile-panel a:hover { background: var(--brand-50); color: var(--brand); }
.mobile-panel .sub a { padding-inline-start: 26px; font-size: 14px; color: var(--muted); }

/* ==========================================================================
   4. الهيرو
   ========================================================================== */
.hero { padding: 22px 0 8px; }
.hero-slider { position: relative; border-radius: var(--radius-xl); overflow: hidden; }
.hero-slide {
  display: none; position: relative; min-height: 400px;
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 55%, #e8eef6 100%);
  border: 1px solid var(--line);
}
.hero-slide.active { display: block; animation: fadeIn .55s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(2,132,199,.07) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .8;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 30px; padding: 44px 52px; min-height: 400px;
}
.hero-copy { color: var(--ink); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: var(--sky-bg);
  border: 1px solid var(--sky-line); color: var(--brand-600); padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; margin-bottom: 16px;
}
.hero-copy h2 { color: var(--ink); font-size: clamp(26px, 3.4vw, 42px); font-weight: 900; margin-bottom: 12px; }
.hero-copy p { color: var(--muted); font-size: 16px; max-width: 460px; margin-bottom: 22px; }
.hero-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.hero-price b { font-size: 36px; font-weight: 900; color: var(--red); font-family: var(--font-head); }
.hero-price span { color: var(--muted); font-size: 14px; }
.hero-pay { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.pay-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 13px; font-weight: 800; font-size: 13px;
  color: var(--navy); box-shadow: var(--shadow-sm);
}
.pay-chip.tabby { color: #3bb54a; }
.pay-chip.tamara { background: linear-gradient(90deg,#ffd9e8,#e0d4ff,#d4ecff); color: #3a2a5a; }

.hero-media { position: relative; display: grid; place-items: center; }
.hero-media img { max-height: 340px; width: auto; filter: drop-shadow(0 26px 30px rgba(15,23,42,.22)); }

.hero-dots { position: absolute; bottom: 16px; inset-inline-start: 50%; transform: translateX(50%); display: flex; gap: 7px; z-index: 5; }
.hero-dots button { width: 9px; height: 9px; border-radius: 999px; background: rgba(15,23,42,.22); transition: .2s; }
.hero-dots button.active { background: var(--brand); width: 26px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; z-index: 5;
  background: #fff; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--brand); box-shadow: var(--shadow); transition: .2s;
}
.hero-arrow:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.hero-arrow.prev { inset-inline-end: 16px; }
.hero-arrow.next { inset-inline-start: 16px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 30px 22px; text-align: center; min-height: auto; }
  .hero-copy p { margin-inline: auto; }
  .hero-price, .hero-pay { justify-content: center; }
  .hero-media { order: -1; }
  .hero-media img { max-height: 210px; }
  .hero-arrow { display: none; }
}

/* ==========================================================================
   5. شريط الأقسام الدائري
   ========================================================================== */
.catstrip { padding: 34px 0 10px; }
.catstrip-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.catstrip a { display: grid; justify-items: center; gap: 10px; padding: 12px 6px; border-radius: var(--radius); transition: .22s; }
.catstrip a:hover { background: var(--mist); transform: translateY(-3px); }
.catstrip .bubble {
  width: 84px; height: 84px; border-radius: 50%; background: var(--brand-50);
  display: grid; place-items: center; border: 1px solid var(--brand-100); transition: .22s;
}
.catstrip a:hover .bubble { background: var(--brand-100); box-shadow: var(--shadow); }
.catstrip .bubble svg { width: 40px; height: 40px; color: var(--brand); }
.catstrip span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.35; }
@media (max-width: 1000px) { .catstrip-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) {
  .catstrip-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .catstrip .bubble { width: 64px; height: 64px; }
  .catstrip .bubble svg { width: 30px; height: 30px; }
  .catstrip span { font-size: 12px; }
}

/* ==========================================================================
   6. ترويسة القسم
   ========================================================================== */
.section { padding: 46px 0; }
.section.tint { background: var(--mist); }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(21px, 2.6vw, 29px); font-weight: 900; display: inline-block; position: relative; padding-bottom: 12px; }
.section-head h2::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 50%; transform: translateX(50%);
  width: 62px; height: 3px; background: var(--brand); border-radius: 2px;
}
.section-head p { color: var(--muted); margin-top: 12px; font-size: 15px; max-width: 620px; margin-inline: auto; }

/* ==========================================================================
   7. بطاقة المنتج — قلب التصميم
   ========================================================================== */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .grid-products { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 420px)  { .grid-products { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; position: relative; transition: .25s;
}
.pcard:hover { border-color: var(--brand-100); box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.pcard-badge {
  position: absolute; top: 0; inset-inline-end: 0; z-index: 3; background: var(--sky-bg);
  color: var(--brand-600); border: 1px solid var(--sky-line); border-top: 0; border-inline-end: 0;
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-end-start-radius: 10px;
}

.pcard-media { position: relative; aspect-ratio: 1 / 0.92; background: #fff; display: grid; place-items: center; padding: 14px; }
.pcard-media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .35s; }
.pcard:hover .pcard-media img { transform: scale(1.06); }

.pcard-quick {
  position: absolute; bottom: 8px; inset-inline-start: 50%; transform: translateX(50%) translateY(8px);
  display: flex; gap: 7px; opacity: 0; transition: .25s;
}
.pcard:hover .pcard-quick { opacity: 1; transform: translateX(50%) translateY(0); }
.pcard-quick button {
  width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: .18s;
}
.pcard-quick button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.pcard-quick svg { width: 15px; height: 15px; }

.pcard-body { padding: 4px 14px 14px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.pcard-title {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5; min-height: 42px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px;
}
.pcard:hover .pcard-title { color: var(--brand); }
.pcard-note { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

.pcard-price { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; }
.price-old { color: var(--muted); font-size: 13px; text-decoration: line-through; text-decoration-color: rgba(107,122,144,.6); }
.price-now { color: var(--red); font-size: 18px; font-weight: 800; font-family: var(--font-head); }
.pcard-off { color: var(--red); font-size: 12.5px; font-weight: 700; margin-top: 3px; }

.btn-cart {
  margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; border: 1.5px solid var(--brand); color: #fff; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; background: var(--brand); transition: .2s;
}
.btn-cart:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-cart svg { width: 16px; height: 16px; }
.btn-cart.added { background: #16a34a; border-color: #16a34a; color: #fff; }

@media (max-width: 420px) {
  .pcard-body { padding: 4px 9px 10px; }
  .pcard-title { font-size: 12.5px; min-height: 38px; }
  .price-now { font-size: 16px; }
  .btn-cart { padding: 9px 8px; font-size: 12px; }
}

/* ==========================================================================
   8. آراء العملاء
   ========================================================================== */
.grid-testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-testi { grid-template-columns: 1fr; } }
.testi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; position: relative; transition: .25s;
}
.testi:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.testi .quote { font-size: 44px; line-height: 1; color: var(--brand-100); font-family: Georgia, serif; margin-bottom: 6px; }
.testi p { color: var(--ink-2); font-size: 14.5px; min-height: 84px; }
.testi-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 16px; flex-shrink: 0; font-family: var(--font-head);
}
.testi-foot b { display: block; font-size: 14px; }
.testi-foot small { color: var(--muted); font-size: 12px; }
.stars { color: #f5a524; font-size: 13px; letter-spacing: 1px; margin-inline-start: auto; }

/* ==========================================================================
   9. شريط الثقة الثلاثي
   ========================================================================== */
.grid-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-trust { grid-template-columns: 1fr; } }
.trust {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 24px; text-align: center;
  background: #fff; transition: .25s;
}
.trust:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.trust svg { width: 42px; height: 42px; color: var(--brand); margin-bottom: 14px; }
.trust h3 { font-size: 17px; margin-bottom: 8px; }
.trust p { color: var(--muted); font-size: 14px; }

/* ==========================================================================
   10. شريط شعارات العملاء
   ========================================================================== */
.logos { overflow: hidden; padding: 8px 0; }
.logos-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.logos:hover .logos-track { animation-play-state: paused; }
.logos-item {
  width: 150px; height: 84px; margin-inline: 8px; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; background: #fff; color: var(--muted); font-size: 13px;
  font-weight: 700; text-align: center; padding: 8px; filter: grayscale(1); opacity: .7; transition: .25s;
}
.logos-item:hover { filter: none; opacity: 1; border-color: var(--brand-100); }

/* ==========================================================================
   11. الأسئلة الشائعة
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: .2s; }
.faq-item[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 15px 18px; display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center; flex-shrink: 0; margin-inline-start: auto; transition: .25s; font-size: 15px;
}
.faq-item[open] .faq-plus { background: var(--brand); color: #fff; transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 18px 16px 54px; color: var(--muted); font-size: 14px; }

/* ==========================================================================
   12. النشرة البريدية
   ========================================================================== */
.newsletter { background: var(--navy-2); color: #fff; padding: 28px 0; }
.newsletter .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.newsletter h3 { color: #fff; font-size: 20px; }
.newsletter form { display: flex; gap: 8px; flex: 1; max-width: 460px; }
.newsletter input {
  flex: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; font-size: 14px;
}
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus { outline: 2px solid var(--brand); }
.newsletter button {
  padding: 12px 26px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; transition: .2s;
}
.newsletter button:hover { background: var(--brand-600); }

/* ==========================================================================
   13. الفوتر
   ========================================================================== */
.footer { background: var(--navy-3); color: rgba(255,255,255,.62); padding: 46px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.4fr .9fr; gap: 36px; padding-bottom: 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; } }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { transition: .2s; }
.footer-links a:hover { color: #fff; padding-inline-start: 4px; }
.footer-about img { height: 56px; margin-bottom: 14px; }
@media (max-width: 900px) { .footer-about img { margin-inline: auto; } }
.footer-about p { margin-bottom: 14px; line-height: 1.8; }
.footer-tax { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-tax { justify-content: center; } }
.footer-tax div { text-align: center; }
.footer-tax small { display: block; font-size: 11px; opacity: .6; }
.footer-tax b { color: #fff; font-size: 13.5px; letter-spacing: .04em; }
.sbc {
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 14px; text-align: center;
  display: inline-block; transition: .2s;
}
.sbc:hover { border-color: rgba(255,255,255,.35); }
.sbc small { display: block; font-size: 11px; opacity: .65; }
.sbc b { color: #fff; font-size: 13px; }

.footer-contact {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1);
}
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; transition: .2s; }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { width: 17px; height: 17px; }

.footer-social { display: flex; gap: 9px; justify-content: center; padding-bottom: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; transition: .2s;
}
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; display: flex;
  align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.paylogos { display: flex; gap: 7px; flex-wrap: wrap; }
.paylogos span {
  background: #fff; border-radius: 5px; padding: 4px 9px; font-size: 10px; font-weight: 800;
  color: var(--navy); letter-spacing: .02em;
}

/* ==========================================================================
   14. الأزرار العائمة
   ========================================================================== */
.fab-wa {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 80; background: #25d366; color: #fff;
  border-radius: 999px; padding: 12px 20px; display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 14px; box-shadow: 0 8px 22px rgba(37,211,102,.4); transition: .22s;
}
.fab-wa:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(37,211,102,.5); }
.fab-wa svg { width: 21px; height: 21px; }
.fab-top {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 80; width: 42px; height: 42px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--brand);
  display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .25s;
}
.fab-top.show { opacity: 1; visibility: visible; }
@media (max-width: 560px) { .fab-wa span { display: none; } .fab-wa { padding: 13px; } }

/* ==========================================================================
   15. سلة التسوق الجانبية
   ========================================================================== */
.cart-drawer { position: fixed; inset: 0; z-index: 110; opacity: 0; visibility: hidden; transition: .25s; }
.cart-drawer.open { opacity: 1; visibility: visible; }
.cart-drawer .backdrop { position: absolute; inset: 0; background: rgba(7,23,48,.55); }
.cart-panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(400px, 92vw); background: #fff;
  display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .28s ease;
}
[dir="rtl"] .cart-panel { transform: translateX(100%); }
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cart-head h3 { font-size: 17px; }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.cart-empty svg { width: 54px; height: 54px; opacity: .3; margin-bottom: 14px; }
.cart-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 60px; height: 60px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.cart-row .ci { flex: 1; min-width: 0; }
.cart-row b { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; }
.cart-row .cp { color: var(--red); font-weight: 800; font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 5px; }
.qty button { width: 26px; height: 26px; display: grid; place-items: center; color: var(--ink-2); font-size: 15px; }
.qty button:hover { background: var(--mist); color: var(--brand); }
.qty b { min-width: 28px; text-align: center; font-size: 13px; }
.cart-foot { padding: 18px 20px; border-top: 1px solid var(--line); background: var(--mist); }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.cart-total .t { color: var(--red); }
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px;
  background: var(--brand); color: #fff; border-radius: 10px; font-weight: 700; font-size: 15px; transition: .2s;
}
.btn-primary:hover { background: var(--brand-600); }
.cart-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ==========================================================================
   16. صفحة القسم
   ========================================================================== */
.pagehero { background: linear-gradient(115deg, var(--navy-3), var(--navy) 60%, var(--brand-700)); color: #fff; padding: 46px 0; position: relative; overflow: hidden; }
.pagehero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px; opacity: .5;
}
.pagehero .container { position: relative; }
.pagehero h1 { color: #fff; font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 10px; }
.pagehero p { color: rgba(255,255,255,.78); max-width: 680px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.toolbar select { padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; color: var(--ink-2); background: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px;
  color: var(--ink-2); background: #fff; transition: .2s; font-weight: 500;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ==========================================================================
   17. صفحة المنتج
   ========================================================================== */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 36px 0; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 26px; } }
.pdp-media { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; background: #fff; display: grid; place-items: center; }
.pdp-media img { max-height: 420px; width: auto; object-fit: contain; }
.pdp h1 { font-size: clamp(21px, 2.7vw, 30px); margin-bottom: 12px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.pdp-price .now { font-size: 32px; font-weight: 900; color: var(--red); font-family: var(--font-head); }
.pdp-price .old { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.pdp-price .off { background: var(--red); color: #fff; padding: 4px 11px; border-radius: 7px; font-size: 13px; font-weight: 700; }
.pdp-excerpt { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }
.pdp-specs { width: 100%; border-collapse: collapse; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pdp-specs tr:nth-child(odd) { background: var(--mist); }
.pdp-specs td { padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.pdp-specs td:first-child { font-weight: 600; color: var(--ink); width: 42%; }
.pdp-specs td:last-child { color: var(--ink-2); }
.pdp-specs tr:last-child td { border-bottom: 0; }
.pdp-actions { display: flex; gap: 10px; align-items: stretch; margin: 22px 0; flex-wrap: wrap; }
.pdp-actions .qty { margin: 0; border-radius: 10px; }
.pdp-actions .qty button { width: 40px; height: 100%; font-size: 18px; }
.pdp-actions .qty b { min-width: 40px; font-size: 15px; }
.pdp-actions .btn-primary { flex: 1; min-width: 200px; }
.pdp-perks { display: grid; gap: 10px; margin-top: 22px; }
.pdp-perks div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.pdp-perks svg { width: 19px; height: 19px; color: var(--brand); flex-shrink: 0; }
.pay-inline { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 14px 16px; background: var(--mist); border-radius: var(--radius); margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }

/* ==========================================================================
   18. أدوات عامة
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee, .logos-track { animation: none; }
  html { scroll-behavior: auto; }
}
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; border: 1.5px solid var(--brand);
  color: var(--brand); border-radius: 10px; font-weight: 700; font-size: 14px; transition: .2s;
}
.btn-ghost:hover { background: var(--brand); color: #fff; }
.toast {
  position: fixed; bottom: 82px; inset-inline-start: 50%; transform: translateX(50%) translateY(14px);
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 14px;
  font-weight: 600; box-shadow: var(--shadow-lg); z-index: 200; opacity: 0; visibility: hidden; transition: .25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(50%) translateY(0); }

/* ==========================================================================
   19. إضافات خطة إعادة الهيكلة (2026-09-17)
   ========================================================================== */

/* ---- سطر المواصفات المختصرة داخل الكرت ---- */
.pcard-spec {
  font-size: 11.5px; color: var(--brand-600); background: var(--brand-50);
  border: 1px solid var(--brand-100); border-radius: 6px; padding: 3px 9px;
  display: inline-block; margin-bottom: 8px; font-weight: 600; line-height: 1.5;
}

/* ---- سطر التقسيط أسفل السعر ---- */
.pcard-split {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap;
}
.pcard-split b { font-weight: 600; color: var(--ink-2); }
.split-chip {
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 5px;
  border: 1px solid var(--line); background: #fff;
}
.split-chip.tabby { color: #3bb54a; }
.split-chip.tamara { background: linear-gradient(90deg,#ffd9e8,#e0d4ff,#d4ecff); color: #3a2a5a; border-color: transparent; }

/* ---- شريط المزايا الأربع أسفل الهيرو ---- */
.perks { padding: 26px 0 8px; }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perk {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); transition: .22s;
}
.perk:hover { border-color: var(--sky-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.perk-ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--brand-50);
  display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--brand-100);
}
.perk-ico svg { width: 22px; height: 22px; color: var(--brand); }
.perk b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.perk small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 1000px) { .perks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .perks-grid { grid-template-columns: 1fr; gap: 10px; }
  .perk { padding: 13px 14px; }
}

/* ---- الفوتر: ثلاثة أعمدة بترتيب الخطة ---- */
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-brief { line-height: 1.85; margin-bottom: 16px; }
.footer-legal { display: grid; gap: 10px; }
.footer-legal div {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 11px 14px;
}
.footer-legal small { display: block; font-size: 11px; opacity: .65; margin-bottom: 2px; }
.footer-legal b { color: #fff; font-size: 14px; letter-spacing: .04em; }

/* ---- واتساب العائم بنص الاستشارة ---- */
.fab-wa { background: #0ea5a4; box-shadow: 0 8px 22px rgba(14,165,164,.4); }
.fab-wa:hover { box-shadow: 0 12px 28px rgba(14,165,164,.52); }
