/* =====================================================================
   HealthCare Pharmacy Hurghada — نظام التصميم "Reef Pulse"
   الفكرة: خط النبض الطبي (ECG) يندمج مع خط الموج البحري كعنصر توقيع
   بصري يتكرر في كل الصفحة (الهيدر، الفوتر، الفواصل بين الأقسام)
   ===================================================================== */

:root{
  /* الألوان */
  --teal-deep:      #0E4F56;   /* اللون الأساسي — عمق البحر الأحمر */
  --teal-darker:    #0A3B41;
  --coral:          #FF6B4A;   /* لون الشعاب المرجانية — أزرار وCTA */
  --coral-dark:     #E8552F;
  --sand:           #F5F7F6;   /* خلفية باردة قريبة من البياض، مش كريمي */
  --seafoam:        #BFE3DD;   /* خلفيات فاتحة وشارات */
  --gold:           #F2B705;   /* لمسة الشمس — نادرة الاستخدام */
  --ink:            #14282B;   /* النص الأساسي */
  --ink-soft:       #4C6367;
  --white:          #FFFFFF;
  --border:         #DCE6E4;
  --success:        #1F9D55;
  --danger:         #E0483E;

  /* الخطوط */
  --font-display: 'Sora', 'Cairo', sans-serif;
  --font-body:    'Inter', 'Cairo', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(14,79,86,0.08);
  --shadow-md: 0 8px 24px rgba(14,79,86,0.12);
  --shadow-lg: 0 16px 40px rgba(14,79,86,0.18);
  --container-w: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--sand);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
body.lang-ar, body.lang-ar *{ font-family:var(--font-body), 'Cairo', sans-serif; }
h1,h2,h3,h4,.brand-name,.hero-title{ font-family:var(--font-display); }
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4,
body.lang-ar .brand-name, body.lang-ar .hero-title{ font-family:'Cairo', sans-serif; }

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

.container{ max-width:var(--container-w); margin-inline:auto; padding-inline:20px; }

.skip-link{
  position:absolute; inset-inline-start:-999px; top:0; background:var(--teal-deep);
  color:#fff; padding:10px 16px; z-index:200; border-radius:0 0 8px 8px;
}
.skip-link:focus{ inset-inline-start:0; }

:focus-visible{ outline:3px solid var(--coral); outline-offset:2px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ---------------------------------------------------------------
   الهيدر
   --------------------------------------------------------------- */
.site-header{ position:relative; background:var(--white); box-shadow:var(--shadow-sm); z-index:50; }

.header-top{ background:var(--teal-deep); color:#fff; font-size:0.82rem; }
.header-top-inner{ display:flex; align-items:center; justify-content:space-between; padding-block:7px; gap:12px; flex-wrap:wrap; }
.header-top-tagline{ opacity:0.9; }
.switcher-group{ display:flex; gap:14px; }
.switcher{ display:flex; align-items:center; gap:5px; }
.switcher select{
  background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.35);
  border-radius:6px; padding:3px 6px; font-size:0.8rem;
}
.switcher select option{ color:#14282B; }

.header-main-inner{ display:flex; align-items:center; justify-content:space-between; padding-block:14px; gap:20px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ flex-shrink:0; display:flex; }
.brand-logo-img{ height:42px; width:auto; max-width:180px; object-fit:contain; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-name{ font-weight:800; font-size:1.15rem; color:var(--teal-deep); }
.brand-sub{ font-size:0.72rem; color:var(--ink-soft); letter-spacing:0.03em; }

.main-nav{ display:flex; gap:26px; font-weight:600; font-size:0.95rem; }
.main-nav a{ color:var(--ink); position:relative; padding-block:4px; }
.main-nav a:hover{ color:var(--coral); }

.header-actions{ display:flex; align-items:center; gap:14px; }
.cart-link{ position:relative; color:var(--teal-deep); }
.cart-badge{
  position:absolute; top:-8px; inset-inline-end:-10px; background:var(--coral); color:#fff;
  font-size:0.68rem; font-weight:700; border-radius:50%; min-width:18px; height:18px;
  display:flex; align-items:center; justify-content:center; padding:0 3px;
}
.nav-toggle{ display:none; background:none; border:0; flex-direction:column; gap:4px; padding:6px; }
.nav-toggle span{ width:22px; height:2px; background:var(--teal-deep); border-radius:2px; }

/* موجة/نبض التوقيع البصري أسفل الهيدر */
.header-wave{ line-height:0; color:var(--sand); }
.header-wave svg{ width:100%; height:16px; display:block; }
.header-wave path{ fill:var(--sand); }

/* ---------------------------------------------------------------
   الأزرار
   --------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 26px; border-radius:999px; font-weight:700; font-size:0.95rem;
  border:2px solid transparent; transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{ background:var(--coral); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--coral-dark); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-outline{ background:transparent; border-color:#fff; color:#fff; }
.btn-outline:hover{ background:rgba(255,255,255,0.15); }
.btn-teal{ background:var(--teal-deep); color:#fff; }
.btn-teal:hover{ background:var(--teal-darker); transform:translateY(-2px); }
.btn-block{ width:100%; }
.btn-sm{ padding:8px 16px; font-size:0.85rem; }
.btn:disabled{ opacity:0.5; cursor:not-allowed; transform:none !important; }

/* ---------------------------------------------------------------
   الهيرو
   --------------------------------------------------------------- */
.hero{
  position:relative; overflow:hidden; background:var(--teal-deep); color:#fff;
  min-height:560px; display:flex; align-items:center;
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media video, .hero-media img{ width:100%; height:100%; object-fit:cover; opacity:0.55; }
.hero-media::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(14,79,86,0.55) 0%, rgba(10,59,65,0.88) 100%);
}
.hero-inner{ position:relative; z-index:2; padding-block:80px 100px; max-width:640px; }
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.3); padding:6px 14px; border-radius:999px;
  font-size:0.82rem; font-weight:600; margin-bottom:18px;
}
.hero-title{ font-size:clamp(2rem, 5vw, 3.2rem); font-weight:800; line-height:1.12; margin:0 0 18px; }
.hero-subtitle{ font-size:1.05rem; opacity:0.92; margin:0 0 32px; max-width:520px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

/* شكل الموج/النبض أسفل الهيرو — العنصر البصري المميز للموقع */
.pulse-wave-divider{ position:absolute; bottom:-1px; inset-inline:0; z-index:1; line-height:0; }
.pulse-wave-divider svg{ width:100%; height:60px; display:block; }
.pulse-wave-divider path{ fill:var(--sand); }

/* شريط الثقة تحت الهيرو */
.trust-bar{ background:var(--white); border-bottom:1px solid var(--border); }
.trust-bar-inner{
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding-block:26px;
}
.trust-item{ display:flex; align-items:center; gap:12px; font-size:0.88rem; font-weight:600; color:var(--ink-soft); }
.trust-item .icon{
  width:38px; height:38px; border-radius:50%; background:var(--seafoam); color:var(--teal-deep);
  display:flex; align-items:center; justify-content:center; font-size:1.05rem; flex-shrink:0;
}

/* ---------------------------------------------------------------
   الأقسام العامة
   --------------------------------------------------------------- */
section{ padding-block:60px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:32px; gap:16px; flex-wrap:wrap; }
.section-head h2{ font-size:1.7rem; font-weight:800; color:var(--teal-deep); margin:0; }
.section-head .see-all{ font-weight:700; color:var(--coral); font-size:0.9rem; }

/* أقسام المنتجات — كروت "تايد بول" */
.category-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.category-card{
  position:relative; background:var(--white); border-radius:var(--radius-lg); overflow:hidden;
  border:1px solid var(--border); transition:transform .2s ease, box-shadow .2s ease; text-align:center;
  padding:30px 18px;
}
.category-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:transparent; }
.category-card .cat-icon{
  width:64px; height:64px; margin:0 auto 14px; border-radius:50%; background:var(--seafoam);
  display:flex; align-items:center; justify-content:center; font-size:1.8rem;
}
.category-card h3{ font-size:1rem; margin:0 0 4px; color:var(--teal-deep); }
.category-card p{ font-size:0.8rem; color:var(--ink-soft); margin:0; }

/* كروت المنتجات */
.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.product-card{
  background:var(--white); border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--border);
  display:flex; flex-direction:column; transition:box-shadow .2s ease, transform .2s ease;
}
.product-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-4px); }
.product-card .thumb{ position:relative; aspect-ratio:1/1; background:var(--sand); overflow:hidden; }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.product-card .badge-sale{
  position:absolute; top:10px; inset-inline-start:10px; background:var(--coral); color:#fff;
  font-size:0.7rem; font-weight:700; padding:4px 10px; border-radius:999px;
}
.product-card .body{ padding:16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-card .brand{ font-size:0.72rem; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.04em; }
.product-card h3{ font-size:0.95rem; margin:0; font-weight:700; color:var(--ink); min-height:2.6em; }
.product-card .price-row{ display:flex; align-items:baseline; gap:8px; margin-top:auto; }
.product-card .price{ font-family:var(--font-mono); font-weight:600; font-size:1.05rem; color:var(--teal-deep); }
.product-card .price-old{ font-family:var(--font-mono); font-size:0.85rem; color:#9aa; text-decoration:line-through; }
.product-card .rating{ font-size:0.78rem; color:var(--gold); }
.product-card .card-actions{ padding:0 16px 16px; display:flex; gap:8px; }

/* فاصل نبض/موج بين الأقسام */
.pulse-divider{ width:100%; height:40px; margin-block:0; }
.pulse-divider svg{ width:100%; height:100%; }
.pulse-divider path{ fill:none; stroke:var(--seafoam); stroke-width:2.5; }

/* ---------------------------------------------------------------
   الفوتر
   --------------------------------------------------------------- */
.site-footer{ background:var(--teal-deep); color:rgba(255,255,255,0.85); position:relative; margin-top:40px; }
.footer-wave{ line-height:0; }
.footer-wave svg{ width:100%; height:30px; display:block; }
.footer-wave path{ fill:var(--sand); }
.footer-inner{ display:grid; grid-template-columns:1.6fr repeat(auto-fit, minmax(140px,1fr)); gap:32px; padding-block:44px 24px; }
.footer-brand .brand-name{ color:#fff; font-size:1.2rem; font-weight:800; }
.footer-brand p{ font-size:0.88rem; opacity:0.85; max-width:280px; }
.footer-col h4{ color:#fff; font-size:0.95rem; margin:0 0 14px; }
.footer-col li{ margin-bottom:8px; font-size:0.88rem; }
.footer-col a:hover{ color:var(--coral); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.15); padding-block:16px; font-size:0.8rem; text-align:center; opacity:0.75; }

/* زر واتساب العائم */
.whatsapp-float{
  position:fixed; bottom:22px; inset-inline-end:22px; width:58px; height:58px; border-radius:50%;
  background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(37,211,102,0.5); z-index:100; animation:pulseRing 2.4s infinite;
}
@keyframes pulseRing{
  0%{ box-shadow:0 6px 18px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.5); }
  70%{ box-shadow:0 6px 18px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0); }
  100%{ box-shadow:0 6px 18px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------------------------------------------------------------
   صفحات: المنتجات / تفاصيل المنتج
   --------------------------------------------------------------- */
.products-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:26px; }
.filter-chips{ display:flex; gap:10px; flex-wrap:wrap; }
.filter-chip{
  padding:8px 16px; border-radius:999px; border:1.5px solid var(--border); font-size:0.85rem; font-weight:600;
  color:var(--ink-soft); background:#fff;
}
.filter-chip.active, .filter-chip:hover{ border-color:var(--teal-deep); color:var(--teal-deep); background:var(--seafoam); }
.search-box{ display:flex; align-items:center; border:1.5px solid var(--border); border-radius:999px; padding:6px 6px 6px 16px; background:#fff; }
.search-box input{ border:0; outline:0; font-size:0.9rem; flex:1; background:transparent; }
.search-box button{ background:var(--teal-deep); color:#fff; border:0; border-radius:50%; width:34px; height:34px; }

.product-detail{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:flex-start; }
.product-detail .gallery img{ border-radius:var(--radius-lg); border:1px solid var(--border); }
.product-detail h1{ font-size:1.7rem; color:var(--teal-deep); margin:0 0 8px; }
.product-detail .price-row{ display:flex; align-items:baseline; gap:12px; margin:18px 0; }
.product-detail .price{ font-family:var(--font-mono); font-size:1.8rem; font-weight:700; color:var(--coral); }
.qty-selector{ display:flex; align-items:center; gap:0; border:1.5px solid var(--border); border-radius:999px; width:fit-content; }
.qty-selector button{ background:none; border:0; width:38px; height:38px; font-size:1.1rem; color:var(--teal-deep); }
.qty-selector input{ width:44px; text-align:center; border:0; font-family:var(--font-mono); font-weight:600; }
.stock-flag{ font-size:0.85rem; font-weight:700; }
.stock-flag.in{ color:var(--success); }
.stock-flag.out{ color:var(--danger); }

/* ---------------------------------------------------------------
   السلة
   --------------------------------------------------------------- */
.cart-table{ width:100%; border-collapse:collapse; background:#fff; border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-sm); }
.cart-table th{ background:var(--teal-deep); color:#fff; text-align:start; padding:14px 16px; font-size:0.85rem; }
.cart-table td{ padding:14px 16px; border-bottom:1px solid var(--border); font-size:0.9rem; vertical-align:middle; }
.cart-table .item-info{ display:flex; align-items:center; gap:12px; }
.cart-table .item-info img{ width:56px; height:56px; object-fit:cover; border-radius:8px; border:1px solid var(--border); }
.cart-summary{ max-width:380px; margin-inline-start:auto; background:#fff; border-radius:var(--radius-md); padding:22px; box-shadow:var(--shadow-sm); margin-top:24px; }
.cart-summary .row{ display:flex; justify-content:space-between; padding-block:8px; font-size:0.92rem; }
.cart-summary .row.total{ font-weight:800; font-size:1.15rem; color:var(--teal-deep); border-top:1px solid var(--border); margin-top:8px; padding-top:14px; }
.empty-state{ text-align:center; padding:60px 20px; }
.empty-state .icon{ font-size:3rem; margin-bottom:14px; }

/* ---------------------------------------------------------------
   فورم الـ Checkout
   --------------------------------------------------------------- */
.checkout-layout{ display:grid; grid-template-columns:1.2fr 0.8fr; gap:40px; align-items:flex-start; }
.form-card{ background:#fff; border-radius:var(--radius-md); padding:28px; box-shadow:var(--shadow-sm); }
.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-weight:600; font-size:0.9rem; margin-bottom:6px; color:var(--ink); }
.form-control{
  width:100%; padding:12px 14px; border:1.5px solid var(--border); border-radius:var(--radius-sm);
  font-size:0.95rem; font-family:inherit; background:#fff;
}
.form-control:focus{ border-color:var(--teal-deep); }
.radio-group{ display:flex; gap:16px; }
.radio-option{ display:flex; align-items:center; gap:8px; font-size:0.9rem; }
.form-error{ color:var(--danger); font-size:0.85rem; margin-top:6px; }
.alert{ padding:14px 18px; border-radius:var(--radius-sm); font-size:0.9rem; margin-bottom:18px; }
.alert-error{ background:#FDEDEC; color:var(--danger); border:1px solid #F3C6C2; }
.alert-success{ background:#EAF7EF; color:var(--success); border:1px solid #C4E9D1; }

/* صفحة نجاح الطلب */
.success-box{ text-align:center; max-width:520px; margin-inline:auto; padding:60px 20px; }
.success-box .check-circle{
  width:84px; height:84px; border-radius:50%; background:var(--success); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:2.4rem; margin:0 auto 22px;
}
.order-number-box{
  background:var(--teal-deep); color:#fff; border-radius:var(--radius-md); padding:18px 24px;
  font-family:var(--font-mono); font-size:1.4rem; font-weight:700; letter-spacing:0.05em; margin-block:20px;
}

/* ---------------------------------------------------------------
   صفحة تتبع الطلب الحي (Stage 3)
   --------------------------------------------------------------- */
.tracking-card{ background:#fff; border-radius:var(--radius-md); padding:26px; box-shadow:var(--shadow-sm); margin-top:20px; }
.tracking-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; flex-wrap:wrap; gap:10px; }
.tracking-order-no{ font-family:var(--font-mono); font-weight:700; font-size:1.15rem; color:var(--teal-deep); }
.tracking-live-dot{
  display:inline-flex; align-items:center; gap:6px; font-size:0.78rem; font-weight:700; color:var(--success);
  text-transform:uppercase; letter-spacing:0.04em;
}
.tracking-live-dot span{ width:8px; height:8px; border-radius:50%; background:var(--success); }
.tracking-live-dot.pulse span{ animation:liveDotPulse 1s ease; }
@keyframes liveDotPulse{ 0%{ transform:scale(1.8); opacity:0.4; } 100%{ transform:scale(1); opacity:1; } }

.tracking-stepper{
  display:flex; justify-content:space-between; list-style:none; margin:0 0 28px; padding:0; position:relative;
}
.tracking-stepper::before{
  content:''; position:absolute; top:22px; inset-inline:6%; height:3px; background:var(--border); z-index:0;
}
.tracking-stepper .step{
  position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:8px; flex:1; text-align:center;
}
.tracking-stepper .step-icon{
  width:44px; height:44px; border-radius:50%; background:var(--sand); border:2px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:1.2rem; transition:all .3s ease;
}
.tracking-stepper .step-label{ font-size:0.76rem; font-weight:600; color:var(--ink-soft); max-width:90px; }
.tracking-stepper .step.done .step-icon{ background:var(--seafoam); border-color:var(--teal-deep); }
.tracking-stepper .step.active .step-icon{
  background:var(--coral); border-color:var(--coral); color:#fff;
  box-shadow:0 0 0 6px rgba(255,107,74,0.18); animation:stepBreathe 1.8s ease-in-out infinite;
}
.tracking-stepper .step.active .step-label{ color:var(--coral); font-weight:800; }
.tracking-stepper .step.cancelled .step-icon{ background:#FDEDEC; border-color:var(--danger); }
@keyframes stepBreathe{ 0%,100%{ box-shadow:0 0 0 6px rgba(255,107,74,0.18); } 50%{ box-shadow:0 0 0 10px rgba(255,107,74,0.08); } }

.tracking-map{ width:100%; height:280px; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--border); margin-bottom:10px; }
.map-note{ font-size:0.8rem; color:var(--ink-soft); margin:0 0 20px; }
.map-pin{ font-size:1.4rem; text-align:center; line-height:1; filter:drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }

.tracking-details, .tracking-items{ border-top:1px solid var(--border); padding-top:16px; margin-top:16px; }
.tracking-details h4, .tracking-items h4{ margin:0 0 10px; font-size:0.95rem; color:var(--teal-deep); }
.tracking-items .row{ display:flex; justify-content:space-between; font-size:0.88rem; padding-block:5px; }
.tracking-items .row.total{ font-weight:800; border-top:1px solid var(--border); margin-top:6px; padding-top:10px; color:var(--teal-deep); }

/* ---------------------------------------------------------------
   Breadcrumbs (SEO + UX)
   --------------------------------------------------------------- */
.breadcrumbs{ font-size:0.82rem; color:var(--ink-soft); margin-bottom:18px; }
.breadcrumbs a{ color:var(--ink-soft); }
.breadcrumbs a:hover{ color:var(--coral); }
.breadcrumbs .sep{ margin:0 8px; opacity:0.5; }
.breadcrumbs span[aria-current]{ color:var(--teal-deep); font-weight:600; }

/* أيقونات السوشيال ميديا في الفوتر */
.social-icons{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.social-icon{
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.12); color:#fff; transition:background .2s, transform .2s;
}
.social-icon:hover{ transform:translateY(-3px); }
.si-fb:hover{ background:#1877F2; }
.si-ig:hover{ background:radial-gradient(circle at 30% 110%,#f09433,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888); }
.si-tk:hover{ background:#000; }
.si-yt:hover{ background:#FF0000; }
.si-wa:hover{ background:#25D366; }

/* ---------------------------------------------------------------
   Hero Slider (صفحة رئيسية)
   --------------------------------------------------------------- */
.hero-slider{ position:absolute; inset:0; z-index:0; }
.hero-slide{ position:absolute; inset:0; opacity:0; transition:opacity 1s ease; }
.hero-slide.active{ opacity:1; }
.hero-slide img,.hero-slide video{ width:100%; height:100%; object-fit:cover; opacity:0.55; }
.hero-slide::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(14,79,86,0.5) 0%,rgba(10,59,65,0.88) 100%);
}
.hero-slider-nav{
  position:absolute; bottom:80px; left:50%; transform:translateX(-50%);
  display:flex; gap:8px; z-index:3;
}
.hero-slider-nav span{
  width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.4);
  cursor:pointer; transition:all .3s; display:block;
}
.hero-slider-nav span.active{ background:#fff; width:24px; border-radius:4px; }
.hero-slider-arrows{
  position:absolute; top:50%; transform:translateY(-50%);
  width:100%; display:flex; justify-content:space-between; padding:0 16px; z-index:3;
}
.hero-arrow{
  background:rgba(255,255,255,0.15); border:0; color:#fff; width:40px; height:40px;
  border-radius:50%; font-size:1.2rem; cursor:pointer; transition:background .2s;
}
.hero-arrow:hover{ background:rgba(255,255,255,0.3); }

/* قسم الإحصائيات */
.stats-section{ background:var(--teal-deep); color:#fff; padding-block:40px; }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; text-align:center; }
.stat-item .num{ font-family:var(--font-mono); font-size:2rem; font-weight:800; color:var(--coral); }
.stat-item .lbl{ font-size:0.85rem; opacity:0.85; margin-top:4px; }

/* قسم لماذا نحن */
.why-section{ background:var(--white); }
.why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.why-card{ background:var(--sand); border-radius:var(--radius-lg); padding:28px 22px; text-align:center; }
.why-card .icon{ font-size:2.4rem; margin-bottom:14px; }
.why-card h3{ font-size:1rem; color:var(--teal-deep); margin:0 0 8px; }
.why-card p{ font-size:0.85rem; color:var(--ink-soft); margin:0; line-height:1.7; }

/* شهادات العملاء */
.testimonials{ background:var(--sand); }
.testimonials-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.testimonial-card{ background:#fff; border-radius:var(--radius-md); padding:22px; box-shadow:var(--shadow-sm); }
.testimonial-card .stars{ color:var(--gold); font-size:1rem; margin-bottom:10px; }
.testimonial-card p{ font-size:0.88rem; color:var(--ink-soft); margin:0 0 14px; line-height:1.7; font-style:italic; }
.testimonial-card .author{ font-weight:700; font-size:0.85rem; color:var(--teal-deep); }
.testimonial-card .flag{ font-size:1rem; }

@media(max-width:768px){
  .stats-grid{ grid-template-columns:repeat(2,1fr); }
  .why-grid{ grid-template-columns:1fr; }
  .testimonials-grid{ grid-template-columns:1fr; }
  .hero-slider-arrows{ display:none; }
}

/* ---------------------------------------------------------------
   Responsive (existing)
   --------------------------------------------------------------- */
@media (max-width: 992px){
  .category-grid{ grid-template-columns:repeat(2,1fr); }
  .product-grid{ grid-template-columns:repeat(2,1fr); }
  .trust-bar-inner{ grid-template-columns:repeat(2,1fr); }
  .footer-inner{ grid-template-columns:1fr 1fr; }
  .product-detail{ grid-template-columns:1fr; }
  .checkout-layout{ grid-template-columns:1fr; }
}

@media (max-width: 640px){
  .main-nav{
    position:absolute; top:100%; inset-inline:0; background:#fff; flex-direction:column;
    padding:18px 20px; gap:16px; box-shadow:var(--shadow-md); display:none;
  }
  .main-nav.open{ display:flex; }
  .nav-toggle{ display:flex; }
  .header-top-tagline{ display:none; }
  .hero-inner{ padding-block:56px 90px; }
  .category-grid{ grid-template-columns:repeat(2,1fr); gap:14px; }
  .product-grid{ grid-template-columns:repeat(2,1fr); gap:14px; }
  .trust-bar-inner{ grid-template-columns:1fr 1fr; padding-block:18px; }
  .footer-inner{ grid-template-columns:1fr; padding-block:32px 16px; }
  .cart-summary{ margin-inline:0; max-width:none; }
  .whatsapp-float{ width:52px; height:52px; bottom:16px; inset-inline-end:16px; }
  .tracking-stepper .step-icon{ width:36px; height:36px; font-size:1rem; }
  .tracking-stepper .step-label{ font-size:0.66rem; max-width:64px; }
  .tracking-stepper::before{ top:18px; }
  .tracking-map{ height:220px; }
}

/* ---------------------------------------------------------------
   كارت المنتج المحسّن — سلايدر صور
   --------------------------------------------------------------- */
.product-card .card-desc{
  font-size:0.78rem; color:var(--ink-soft); margin:0; line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.product-card .rating{ font-size:0.82rem; display:flex; align-items:center; gap:3px; }
.product-card .rating small{ color:var(--ink-soft); margin-right:2px; }

/* سلايدر الصور جوه الكارت */
.card-slider{ position:relative; width:100%; aspect-ratio:1/1; overflow:hidden; }
.card-slider .slide{ position:absolute; inset:0; opacity:0; transition:opacity .5s ease; }
.card-slider .slide.active{ opacity:1; position:relative; }
.card-slider .slide img{ width:100%; height:100%; object-fit:cover; }
.slider-dots{
  position:absolute; bottom:8px; left:50%; transform:translateX(-50%);
  display:flex; gap:5px; z-index:2;
}
.slider-dots .dot{
  width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,0.5);
  cursor:pointer; transition:background .2s;
}
.slider-dots .dot.active{ background:#fff; }

/* رفع صور متعددة في لوحة التحكم */
.multi-upload-preview{
  display:flex; flex-wrap:wrap; gap:10px; margin-top:10px;
}
.multi-upload-preview img{
  width:70px; height:70px; object-fit:cover;
  border-radius:8px; border:1px solid var(--border);
}

/* ============================================================
   ANIMATED CATEGORY CARDS — 2-image crossfade slider
   ============================================================ */
.cat-card-link { text-decoration: none; display: block; }

.cat-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 280px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s;
}
.cat-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 16px 48px rgba(14,79,86,.22); }

/* --- slider images --- */
.cat-card__slider { position: absolute; inset: 0; }
.cat-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}
.cat-card__img--active { opacity: 1; }

/* --- dark gradient overlay --- */
.cat-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,26,29,.82) 0%, rgba(6,26,29,.18) 55%, transparent 100%);
}

/* --- text body --- */
.cat-card__body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 20px 18px;
  z-index: 2;
}
.cat-card__icon { font-size: 2rem; margin-bottom: 6px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.cat-card__name {
  color: #fff; font-size: 1.15rem; font-weight: 700;
  margin: 0 0 6px; text-shadow: 0 2px 8px rgba(0,0,0,.6);
  font-family: 'Cairo', 'Sora', sans-serif;
}
.cat-card__desc {
  color: rgba(255,255,255,.82); font-size: .82rem; margin: 0 0 12px;
  line-height: 1.4; text-shadow: 0 1px 4px rgba(0,0,0,.5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-card__btn {
  display: inline-block;
  background: rgba(255,107,74,.92);
  color: #fff; border-radius: 50px;
  padding: 6px 18px; font-size: .82rem; font-weight: 600;
  transition: background .25s, transform .2s;
  box-shadow: 0 2px 10px rgba(255,107,74,.45);
}
.cat-card:hover .cat-card__btn { background: #ff6b4a; transform: scale(1.07); }

/* --- category grid on homepage --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 30px;
}
@media (max-width: 600px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { height: 200px; }
  .cat-card__desc { display: none; }
}

/* slide-in animation for cards on page load */
@keyframes catFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cat-card { animation: catFadeUp .55s ease both; }
.cat-card:nth-child(2) { animation-delay: .08s; }
.cat-card:nth-child(3) { animation-delay: .16s; }
.cat-card:nth-child(4) { animation-delay: .24s; }
.cat-card:nth-child(5) { animation-delay: .32s; }
.cat-card:nth-child(6) { animation-delay: .40s; }
.cat-card:nth-child(7) { animation-delay: .48s; }
.cat-card:nth-child(8) { animation-delay: .56s; }
.cat-card:nth-child(9) { animation-delay: .64s; }
.cat-card:nth-child(10){ animation-delay: .72s; }
