/* ==========================================================================
   Bio Store — Design System
   ========================================================================== */

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

:root {
  --font-ar: 'Cairo', 'Tajawal', system-ui, sans-serif;
  --font-fr: 'Poppins', system-ui, sans-serif;
  --font-body: var(--font-ar);

  /* Light theme (default) */
  --bg: #FBF8F1;
  --bg-alt: #F3EEE0;
  --surface: #FFFFFF;
  --surface-2: #F7F3E9;
  --text: #23291D;
  --text-muted: #6B6357;
  --text-soft: #8A8272;
  --border: #E9E2CE;
  --border-strong: #DCD3B8;

  --primary: #3E6B4A;
  --primary-dark: #2B4E35;
  --primary-light: #5C8F6A;
  --primary-tint: #E7F0E7;

  --accent: #C97B3D;
  --accent-dark: #A75F28;
  --accent-tint: #FBEADA;

  --honey: #E0A438;
  --honey-dark: #B8802A;
  --honey-tint: #FCF1DA;

  --danger: #C1503C;
  --whatsapp: #25D366;

  --shadow-sm: 0 2px 8px rgba(35, 41, 29, 0.06);
  --shadow-md: 0 8px 24px rgba(35, 41, 29, 0.10);
  --shadow-lg: 0 20px 48px rgba(35, 41, 29, 0.16);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1240px;
  --header-h: 128px;
}

:root[data-theme="dark"] {
  --bg: #14170F;
  --bg-alt: #1A1E14;
  --surface: #1E2318;
  --surface-2: #242A1C;
  --text: #F2EFE3;
  --text-muted: #B6B29F;
  --text-soft: #8D8A78;
  --border: #2E3325;
  --border-strong: #3A4030;

  --primary: #6FA97E;
  --primary-dark: #4E8360;
  --primary-light: #8AC29A;
  --primary-tint: #24301F;

  --accent: #E2A24B;
  --accent-dark: #C6842F;
  --accent-tint: #2E2417;

  --honey: #F0BC55;
  --honey-dark: #C79632;
  --honey-tint: #2E2716;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.5);
}

html[lang="fr"] {
  --font-body: var(--font-fr);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { padding: 0; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}

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; }
input, textarea, select { font-family: inherit; }

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

[dir="rtl"] .ltr-flip { transform: scaleX(-1); }

.section {
  padding: 88px 0;
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  margin-bottom: 16px;
}
:root[data-theme="dark"] .eyebrow { color: var(--accent); }

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--text);
}
.section-sub {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 620px;
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15.5px;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-accent:hover { background: var(--accent-dark); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--border); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

.stars { color: var(--honey); letter-spacing: 2px; font-size: 14px; white-space: nowrap; }

/* ==========================================================================
   Shared marquee keyframes (used by the slim infinite marquee, section 4)
   ========================================================================== */
@keyframes marquee-ltr {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* ==========================================================================
   2. Header / Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.brand img { height: 42px; width: 42px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.brand-name span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a { color: var(--text-muted); transition: color .2s ease; position: relative; }
.nav-links a:hover { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  position: relative;
  font-size: 18px;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-btn:hover { background: var(--primary-tint); border-color: var(--primary); transform: translateY(-1px); }

.lang-switch {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  transition: all .2s ease;
}
.lang-switch button.active { background: var(--primary); color: #fff; }

.cart-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--surface);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  min-width: 220px;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 14px;
  width: 100%;
}
.search-box input::placeholder { color: var(--text-soft); }

.mobile-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0 18px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 12px 6px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }

@media (max-width: 980px) {
  .nav-links, .search-box { display: none; }
  .mobile-toggle { display: inline-flex; }
}

/* ==========================================================================
   3. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transition: opacity .6s ease;
}
.hero-bg-light {
  opacity: 1;
  background-image: url("../../Hero section/Hero Section White Pc.webp");
}
.hero-bg-dark {
  opacity: 0;
  background-image: url("../../Hero section/Hero Section Dark Pc.webp");
}
:root[data-theme="dark"] .hero-bg-light { opacity: 0; }
:root[data-theme="dark"] .hero-bg-dark { opacity: 1; }

@media (max-width: 767px) {
  .hero-bg-light { background-image: url("../../Hero section/Hero Section White Phone.webp"); }
  .hero-bg-dark { background-image: url("../../Hero section/Hero Section Dark Phone.webp"); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 8, .55) 0%, rgba(10, 14, 8, .35) 45%, rgba(10, 14, 8, .75) 100%);
  z-index: -1;
}
:root:not([data-theme="dark"]) .hero::before {
  background: linear-gradient(180deg, rgba(20, 22, 12, .34) 0%, rgba(20, 22, 12, .18) 45%, rgba(15, 18, 10, .62) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 90px 0;
  color: #fff;
}
.hero-inner .eyebrow {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  color: #fff;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.28;
  margin: 18px 0 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.hero p {
  font-size: 17.5px;
  color: rgba(255,255,255,.92);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-ctas .btn-outline { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(4px); }
.hero-ctas .btn-outline:hover { background: rgba(255,255,255,.18); border-color: #fff; }

/* ==========================================================================
   4. Slim infinite marquee
   ========================================================================== */
.slim-marquee {
  border-block: 1px solid var(--border);
  background: var(--surface-2);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}
.slim-marquee-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  overflow: hidden;
}
.slim-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee-ltr 26s linear infinite;
}
[dir="rtl"] .slim-track { animation-name: marquee-rtl; }
.slim-marquee:hover .slim-track { animation-play-state: paused; }
.slim-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
.slim-item i { color: var(--primary); font-size: 16px; }

/* ==========================================================================
   5 / 14. Trust pillars
   ========================================================================== */
.trust-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border-radius: var(--radius-md);
  transition: background-color .2s ease, transform .2s ease;
}
.trust-item:hover { background: var(--surface-2); transform: translateY(-2px); }
.trust-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.trust-item:nth-child(2) .trust-icon { background: var(--accent-tint); color: var(--accent-dark); }
.trust-item:nth-child(3) .trust-icon { background: var(--primary-tint); color: var(--primary); }
.trust-item:nth-child(4) .trust-icon { background: var(--honey-tint); color: var(--honey-dark); }
.trust-item h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 800; }
.trust-item p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 980px) {
  .trust-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .trust-wrap { grid-template-columns: 1fr; }
}

/* ==========================================================================
   6. About / Brand story
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.2;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: 20px;
  inset-inline-start: 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-badge strong { display: block; font-size: 22px; color: var(--primary); }
.about-badge span { font-size: 12.5px; color: var(--text-muted); }
.about-text p { color: var(--text-muted); font-size: 16px; margin-bottom: 22px; }
.about-points { display: grid; gap: 14px; margin-top: 26px; }
.about-point { display: flex; gap: 12px; align-items: flex-start; }
.about-point i {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px; margin-top: 2px;
}
.about-point strong { font-size: 15px; }
.about-point span { color: var(--text-muted); font-size: 13.5px; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   7. Categories grid
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/3.6;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.08); }
.cat-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,8,0) 35%, rgba(10,14,8,.82) 100%);
}
.cat-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px;
  z-index: 1;
  color: #fff;
}
.cat-info h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.cat-info .cat-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--honey); }

/* ==========================================================================
   8. Products
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.product-media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--surface-2);
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 12px; inset-inline-start: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  z-index: 1;
}
.product-wish {
  position: absolute;
  top: 12px; inset-inline-end: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  z-index: 1;
}
.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-cat { font-size: 11.5px; color: var(--text-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.product-name { font-size: 16px; font-weight: 800; margin: 0; min-height: 44px; }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}
.product-price { display: flex; flex-direction: column; }
.product-price strong { font-size: 19px; color: var(--primary); }
:root[data-theme="dark"] .product-price strong { color: var(--primary-light); }
.product-price del { font-size: 12.5px; color: var(--text-soft); }
.add-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  transition: background-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.add-cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.add-cart-btn.added { background: var(--accent); }

.view-all-wrap { text-align: center; margin-top: 44px; }

/* Category filter bar (catalog pages) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-chip {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: all .2s ease;
}
.filter-chip.active, .filter-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.page-hero {
  background: linear-gradient(160deg, var(--primary-tint), var(--bg));
  padding: 64px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.breadcrumbs { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--primary); font-weight: 700; }

/* ==========================================================================
   9. Sourcing steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 16.5px; margin: 0 0 8px; }
.step-card p { color: var(--text-muted); font-size: 13.8px; margin: 0; }

/* ==========================================================================
   10. Bundles
   ========================================================================== */
.bundle-section {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.bundle-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(6px);
  display: flex;
  gap: 20px;
  align-items: center;
}
.bundle-card img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-md); flex-shrink: 0; }
.bundle-info h3 { margin: 0 0 8px; font-size: 18px; }
.bundle-info p { margin: 0 0 12px; font-size: 13.5px; color: rgba(255,255,255,.82); }
.bundle-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.bundle-price strong { font-size: 24px; color: var(--honey); }
.bundle-price del { font-size: 14px; color: rgba(255,255,255,.6); }
.bundle-save {
  display: inline-block;
  background: var(--honey);
  color: #2B2107;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-inline-start: 8px;
}

@media (max-width: 900px) {
  .bundle-section { padding: 30px 20px; }
  .bundle-grid { grid-template-columns: 1fr; }
  .bundle-card { flex-direction: column; text-align: center; }
  .bundle-card img { width: 100%; height: 180px; }
}

/* ==========================================================================
   11. Testimonials
   ========================================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testi-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.testi-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.testi-name { font-weight: 800; font-size: 15px; }
.testi-loc { font-size: 12px; color: var(--text-soft); }
.testi-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.testi-verified {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; font-size: 11.5px; color: var(--primary); font-weight: 700;
}

/* ==========================================================================
   12. FAQ
   ========================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: start;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--accent-tint); color: var(--accent-dark); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p { padding: 0 24px 20px; margin: 0; color: var(--text-muted); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 220px; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
  margin-top: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin: 16px 0 20px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.footer-col h4 { font-size: 15px; margin: 0 0 18px; font-weight: 800; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 14px; transition: color .2s ease; }
.footer-col a:hover { color: var(--primary); }
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  font-size: 13.5px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-soft);
  flex-wrap: wrap;
}
.payment-icons { display: flex; gap: 8px; font-size: 20px; color: var(--text-muted); }

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* Floating WhatsApp CTA */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 70;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .5);
  animation: pulse-wa 2.4s ease-in-out infinite;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, .45); }
  50% { box-shadow: 0 10px 40px rgba(37, 211, 102, .75); }
}

/* ==========================================================================
   Cart drawer
   ========================================================================== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(10,12,8,.55);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: min(420px, 100%);
  background: var(--surface);
  z-index: 81;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
[dir="rtl"] .cart-drawer { transform: translateX(-100%); }
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: grid; gap: 16px; align-content: start; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 60px 20px; }
.cart-empty i { font-size: 44px; color: var(--border-strong); margin-bottom: 14px; display: block; }

.cart-row { display: flex; gap: 14px; align-items: center; }
.cart-row img { width: 66px; height: 66px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.cart-row-info { flex: 1; }
.cart-row-info h5 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.cart-row-price { font-size: 13px; color: var(--primary); font-weight: 700; }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-control button {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.cart-row-remove { color: var(--danger); font-size: 13px; }

.cart-foot { border-top: 1px solid var(--border); padding: 20px 24px 26px; }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; margin-bottom: 16px; }
.cart-note { font-size: 12px; color: var(--text-soft); text-align: center; margin-top: 10px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  inset-inline-end: 24px;
  background: var(--primary-dark);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  display: flex; align-items: center; gap: 10px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* Theme toggle switch */
.theme-toggle {
  width: 52px; height: 30px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  flex-shrink: 0;
}
.theme-toggle .knob {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: transform .3s ease, background-color .3s ease;
  transform: translateX(0);
}
[dir="rtl"] .theme-toggle .knob { margin-inline-start: auto; }
:root[data-theme="dark"] .theme-toggle .knob { background: var(--honey); transform: translateX(22px); }
[dir="rtl"] :root[data-theme="dark"] .theme-toggle .knob { transform: translateX(-22px); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.d-none { display: none !important; }

/* ==========================================================================
   Responsive: consolidated grids + mobile containment
   ========================================================================== */

/* Grid/flex items default to min-width:auto, so one nowrap child or long word
   can widen its track and, with it, the whole page. Let them shrink. */
.navbar > *, .about > *, .cat-grid > *, .products-grid > *, .steps > *,
.testi-grid > *, .trust-wrap > *, .bundle-grid > *, .footer-top > *,
.product-body > *, .newsletter-form > * { min-width: 0; }

/* Second line of defence: nothing inside a section may create page-level
   horizontal scroll (clip, unlike hidden, keeps position:sticky working). */
.section, .page-hero, .site-footer { overflow-x: clip; }

@media (max-width: 980px) {
  .cat-grid, .products-grid, .testi-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .products-grid, .testi-grid, .steps { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 4/3; }
  .hero-inner { padding: 60px 0; }
  .container { padding-inline: 16px; }

  /* Compact 2-up category cards on mobile only (desktop/tablet untouched). */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { aspect-ratio: 1/1.1; border-radius: var(--radius-sm); }
  .cat-info { padding: 10px; }
  .cat-info h3 { font-size: 12.5px; line-height: 1.3; margin-bottom: 3px; }
  .cat-info .cat-link { font-size: 10.5px; gap: 4px; }
  .cat-info .cat-link i { font-size: 9px; }

  /* Header: brand + 4 controls must fit in ~288px (a 320px screen). */
  .navbar { gap: 8px; padding: 10px 0; }
  .brand { font-size: 18px; gap: 7px; }
  .brand img { height: 32px; width: 32px; border-radius: 8px; }
  .nav-actions { gap: 5px; }
  .icon-btn, .mobile-toggle { width: 36px; height: 36px; font-size: 16px; }
  .lang-switch { padding: 3px; }
  .lang-switch button { padding: 5px 9px; font-size: 12px; }
  /* Show only the language you can switch TO (AR page shows "FR" and vice versa). */
  .lang-switch button.active { display: none; }

  /* Long labels (e.g. FR hero CTA) wrap instead of forcing the page wider. */
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .toast { max-width: calc(100vw - 32px); inset-inline-end: 16px; }
}

/* Very narrow phones (<= 340px): keep the logo mark, drop the header wordmark. */
@media (max-width: 340px) {
  .site-header .brand-name { display: none; }
}
