/* ============================================================
   COMBAT.MA — Combat Sports Design
   Font: Inter | Primary: #dc2626 (red) | Clean light/dark theme
   ============================================================ */

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

/* ══════════════════════════════════════════
   DESIGN TOKENS — Light (default)
══════════════════════════════════════════ */
:root {
  --primary:        #dc2626;
  --primary-dark:   #b91c1c;
  --primary-light:  #f87171;
  --primary-bg:     rgba(220,38,38,.06);
  --red:            #dc2626;
  --red-dark:       #b91c1c;
  --success:        #16a34a;
  --warning:        #f59e0b;
  --bg:             #ffffff;
  --surface:        #f8fafc;
  --surface2:       #f1f5f9;
  --text:           #0f172a;
  --text-light:     #64748b;
  --text-lighter:   #94a3b8;
  --border:         #e2e8f0;
  --border-light:   #f1f5f9;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06);
  --shadow:         0 4px 14px rgba(0,0,0,.08);
  --shadow-lg:      0 10px 32px rgba(0,0,0,.10);
  --shadow-xl:      0 20px 52px rgba(0,0,0,.13);
  --radius:         10px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-full:    9999px;
  --transition:     all .2s ease;
  --max-w:          1200px;
  --header-h:       72px;
}

/* ══════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════ */
.dark-mode {
  --bg:           #0f172a;
  --surface:      #1e293b;
  --surface2:     #0f172a;
  --text:         #f1f5f9;
  --text-light:   #cbd5e1;
  --text-lighter: #94a3b8;
  --border:       #334155;
  --border-light: #1e293b;
  --primary-bg:   rgba(220,38,38,.15);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.3);
  --shadow:       0 4px 14px rgba(0,0,0,.4);
  --shadow-lg:    0 10px 32px rgba(0,0,0,.5);
  --shadow-xl:    0 20px 52px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ══════════════════════════════════════════
   BASE RESET
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 16px;
  transition: background .25s, color .25s;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { color: var(--text-light); line-height: 1.65; font-size: 1rem; }

/* ══════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════ */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { max-width: 520px; margin: 0 auto; color: var(--text-light); font-size: .9rem; }
.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

/* Tailwind override: map dark-theme bg classes → light theme surface */
.bg-combat-dark, [class*="bg-gray-9"], .bg-gray-950 { background-color: var(--surface) !important; }
.bg-gray-900 { background-color: var(--surface) !important; }
.bg-gray-800 { background-color: var(--surface2) !important; }
/* Re-colour text */
.text-white { color: var(--text) !important; }
.text-gray-300, .text-gray-400 { color: var(--text-light) !important; }
.text-gray-500, .text-gray-600 { color: var(--text-lighter) !important; }
.border-gray-800 { border-color: var(--border) !important; }
.border-gray-700 { border-color: var(--border) !important; }
/* Restore white text on coloured backgrounds */
.hero .text-white, .promo-banner .text-white,
.newsletter-section .text-white, footer .text-white,
[class*="bg-red-"].text-white, [class*="bg-green-"].text-white,
[class*="bg-blue-"].text-white, [class*="bg-yellow-"].text-white,
.bg-red-600 .text-white, .bg-green-400 .text-white,
.announcement-bar .text-white { color: #fff !important; }

/* ══════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════ */
.announcement-bar {
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 0;
  text-align: center;
}
.announcement-bar marquee { display: inline-block; }

/* ══════════════════════════════════════════
   HEADER / NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.nav-logo img { height: 65px; width: auto; display: block; }
.nav-logo span { color: var(--primary); }

/* Nav links */
.nav-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: .01em;
  transition: color .2s;
  font-family: 'Inter', sans-serif;
  text-transform: none;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--transition);
  z-index: 100;
  box-shadow: var(--shadow-lg);
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-light);
  transition: background .15s, color .15s;
  border-radius: 6px;
  margin: 3px;
}
.dropdown-item:hover { background: var(--primary-bg); color: var(--primary); }

/* Mobile menu */
#mobile-menu {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
#mobile-menu.open { display: block; }
.mobile-nav-link {
  display: block;
  padding: 14px 20px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-light);
  transition: background .15s, color .15s;
}
.mobile-nav-link:hover { color: var(--primary); background: var(--primary-bg); }

/* Theme toggle */
#theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
#theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
#theme-toggle .icon-sun  { display: none; }
#theme-toggle .icon-moon { display: block; }
.dark-mode #theme-toggle .icon-sun  { display: block; }
.dark-mode #theme-toggle .icon-moon { display: none; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(220,38,38,.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary span { position: relative; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Buy button */
.product-quick-add {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .88rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: 12px;
  text-align: center;
}
.product-quick-add:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Voir le produit */
.btn-voir-produit {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: .87rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background .2s, color .2s;
  margin-top: 12px;
  text-align: center;
  text-decoration: none;
}
.btn-voir-produit:hover { background: var(--primary); color: #fff; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1a0808 50%, #7f1d1d 100%);
  color: #fff;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; }
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero > .relative { width: 100%; }

/* Force text white inside hero regardless of theme */
.hero h1, .hero .hero-title { color: #fff !important; }
.hero .hero-subtitle { color: rgba(255,255,255,.8) !important; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.4rem) !important;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: #fff !important;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
}
.hero-title span, .line-red { color: var(--warning); }
.line-outline { color: transparent; -webkit-text-stroke: 2px #fff; }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78) !important;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 3px;
}
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.6); font-weight: 500; }

.hero-scroll { display: none; }

/* Hero: fighter image — absolutely positioned, bleeds to right edge */
.hero-fighter-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;          /* starts well into the left half for a wide fade zone */
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-fighter-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero-fighter-veil {
  position: absolute;
  inset: 0;
  background:
    /* left fade — very wide so no hard edge visible */
    linear-gradient(to right,
      rgba(15,23,42,1)   0%,
      rgba(15,23,42,1)   8%,
      rgba(20,8,8,.96)  18%,
      rgba(26,8,8,.85)  28%,
      rgba(30,8,8,.55)  42%,
      rgba(30,8,8,.18)  58%,
      transparent        75%
    ),
    /* bottom fade */
    linear-gradient(to top,
      rgba(8,2,2,.92) 0%,
      transparent 38%
    ),
    /* top fade */
    linear-gradient(to bottom,
      rgba(15,23,42,.5) 0%,
      transparent 20%
    );
}

/* Text column — above the image layer */
.hero-text-col {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

/* ── Mobile: image becomes a faded atmospheric background ── */
@media (max-width: 768px) {
  .hero-fighter-wrap {
    width: 100%;
    opacity: 0.28;
  }
  .hero-fighter-img {
    object-position: 65% top;
  }
  .hero-fighter-veil {
    background:
      linear-gradient(to bottom, rgba(15,23,42,.1) 0%, rgba(15,23,42,.75) 65%, #0f172a 100%),
      linear-gradient(to right, rgba(15,23,42,.6) 0%, transparent 60%);
  }
  .hero { min-height: 580px; }
  .hero-text-col { max-width: 100%; }
}

/* ══════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 48px 0 40px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb span { color: #fff; }
.page-hero .section-title { color: #fff; }
.page-hero .section-title span { color: var(--warning); }
.page-hero .text-gray-400 { color: rgba(255,255,255,.75) !important; }

/* ══════════════════════════════════════════
   SEARCH MODAL
══════════════════════════════════════════ */
#search-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  padding-left: 20px;
  padding-right: 20px;
}
#search-modal > div { width: 100%; max-width: 580px; }
#search-modal > div > div {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}
#search-input { color: var(--text); }
#search-input::placeholder { color: var(--text-lighter); }

/* ══════════════════════════════════════════
   FEATURES / TRUST BAR
══════════════════════════════════════════ */
.features-bar, [aria-label="Avantages"] {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { color: var(--primary); }
.feature-title { font-size: .9rem; font-weight: 700; color: var(--text); }
.feature-text  { font-size: .78rem; color: var(--text-lighter); margin-top: 1px; }

/* ══════════════════════════════════════════
   CATEGORIES
══════════════════════════════════════════ */
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  display: block;
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.category-card:hover img { transform: scale(1.06); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.85) 0%, rgba(15,23,42,.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  transition: background .3s;
}
.category-card:hover .category-card-overlay { background: linear-gradient(to top, rgba(15,23,42,.92) 0%, rgba(15,23,42,.4) 70%, transparent 100%); }
.category-card-title { font-size: 1rem; font-weight: 700; color: #fff; }
.category-card-count { font-size: .75rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.category-card-arrow { margin-top: 6px; color: var(--primary-light); }

/* ══════════════════════════════════════════
   PRODUCT CARDS
══════════════════════════════════════════ */
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }

.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface);
}
.product-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card-img-wrap img { transform: scale(1.05); }

/* Badges */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
}
.product-badge.new  { background: var(--success); }
.product-badge.sale { background: var(--red); }

/* Wishlist */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .2s, color .2s;
  color: var(--text-lighter);
}
.wishlist-btn:hover { background: #fee2e2; color: var(--red); border-color: var(--red); }

/* Quick-add overlay on image hover */
.product-card-img-wrap .product-quick-add {
  display: block;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 14px;
  font-size: .83rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-align: center;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s, transform .22s;
  z-index: 3;
}
.product-card:hover .product-card-img-wrap .product-quick-add {
  opacity: 1;
  transform: translateY(0);
}
.product-card-body .product-quick-add { display: block; }
.product-card-body .btn-voir-produit   { display: block; }

.product-card-body { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-brand { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: 5px; }
.product-card-name { font-size: .9rem; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 6px; }
.product-card-name a { color: var(--text); }
.product-card-name a:hover { color: var(--primary); }
.product-card-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-top: auto; }
.old-price { font-size: .82rem; font-weight: 500; color: var(--text-lighter); text-decoration: line-through; margin-right: 6px; }
.stars { color: var(--warning); font-size: .85rem; }

/* ══════════════════════════════════════════
   PRODUCT DETAIL
══════════════════════════════════════════ */
.product-detail-gallery { position: static; }
@media (min-width: 1024px) { .product-detail-gallery { position: sticky; top: 80px; } }

.thumbnail-wrap {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.thumbnail-wrap::-webkit-scrollbar { display: none; }
.thumbnail {
  width: 68px;
  height: 68px;
  min-width: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color .2s;
}
.thumbnail.active, .thumbnail:hover { border-color: var(--primary); }

/* Size buttons */
.size-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  min-height: 40px;
}
.size-btn:hover { border-color: var(--primary); color: var(--primary); }
.size-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }

/* Qty */
.qty-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.qty-btn:hover { border-color: var(--primary); background: var(--primary-bg); }
.qty-input {
  width: 52px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
}

/* ══════════════════════════════════════════
   TABS (product detail)
══════════════════════════════════════════ */
[data-tab] {
  padding: 10px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-lighter) !important;
  border-bottom: 2px solid transparent !important;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
[data-tab]:hover { color: var(--primary) !important; }
[data-tab].text-white {
  color: var(--primary) !important;
  border-bottom-color: var(--primary) !important;
}
[data-tab].text-gray-500 { color: var(--text-lighter) !important; }
[data-panel] { color: var(--text-light); }
[data-panel] h3, [data-panel] h4 { color: var(--text); }

/* ══════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════ */
.breadcrumb { font-size: .82rem; color: var(--text-lighter); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-lighter); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); font-weight: 500; }

/* ══════════════════════════════════════════
   FORMS
══════════════════════════════════════════ */
.form-control, select.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(220,38,38,.12); outline: none; }
select.form-control option { background: var(--bg); color: var(--text); }

.filter-heading { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 10px; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-light); padding: 4px 0; cursor: pointer; }
.filter-check input { accent-color: var(--primary); }
.price-range input[type="range"] { accent-color: var(--primary); }

/* Newsletter section text — override Tailwind grays inside the blue bg */
.newsletter-section .text-gray-400,
.newsletter-section .text-gray-500,
.newsletter-section .text-gray-600 { color: rgba(255,255,255,.75) !important; }
.newsletter-section strong.text-white { color: #fff !important; }

/* Newsletter */
.newsletter-input {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .9rem;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-btn {
  padding: 13px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: background .2s;
}
.newsletter-btn:hover { background: var(--primary-dark); }

/* Contact form */
#contact-form .form-control {
  background: var(--surface);
  border-color: var(--border);
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════
   COUNTDOWN
══════════════════════════════════════════ */
.countdown { display: flex; gap: 12px; align-items: center; }
.countdown-item {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 10px 14px;
  text-align: center;
  min-width: 58px;
}
.countdown-num { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.countdown-label { font-size: .6rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

/* ══════════════════════════════════════════
   PROMO BANNER
══════════════════════════════════════════ */
.promo-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.promo-banner h1,.promo-banner h2,.promo-banner h3,.promo-banner p { color: #fff; }
.newsletter-section h1,.newsletter-section h2,.newsletter-section h3 { color: #fff; }
.page-hero h1,.page-hero h2,.page-hero h3 { color: #fff; }

/* ══════════════════════════════════════════
   SECTION ELEMENTS
══════════════════════════════════════════ */
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.025em;
  line-height: 1.2;
}
.section-title span { color: var(--primary); }
.section-line { width: 40px; height: 3px; background: var(--primary); border-radius: 2px; margin-top: 10px; }
.section-line.center { margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.testimonial-card:hover { box-shadow: var(--shadow); }
.testimonial-text { color: var(--text-light); font-size: .9rem; line-height: 1.65; }
.testimonial-name { font-weight: 700; color: var(--text); font-size: .9rem; }
.testimonial-role { color: var(--text-lighter); font-size: .78rem; }

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════ */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: #0f172a;
  border-top: none;
  color: #94a3b8;
}
.dark-mode footer { background: #020617; }
.footer-logo { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.footer-logo img { height: 32px; width: auto; display: block; }
.footer-logo span { color: var(--primary-light); }
.footer-heading {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #334155;
}
.footer-link { display: block; font-size: .85rem; color: #94a3b8; padding: 4px 0; transition: color .2s; }
.footer-link:hover { color: var(--primary-light); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #1e293b;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-bottom { border-top: 1px solid #1e293b; }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
#cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 13px 22px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
#cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#cart-toast .toast-icon { color: var(--success); margin-right: 8px; }

/* ══════════════════════════════════════════
   WHATSAPP / BACK TO TOP
══════════════════════════════════════════ */
#whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 900;
  transition: transform .2s, box-shadow .2s;
  color: #fff;
}
#whatsapp-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
#whatsapp-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.5); }

/* Tooltip label — hidden by default, slides in on hover */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #1a1a1a;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1a1a1a;
}
#whatsapp-btn:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

#back-to-top {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, background .2s, transform .2s;
  z-index: 800;
}
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   CART BADGE
══════════════════════════════════════════ */
#cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════
   CHECKOUT POPUP MODAL
══════════════════════════════════════════ */
#checkout-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: flex-end;
  justify-content: center;
  overflow-y: auto;
}
#checkout-modal-overlay.open { display: flex; }

#checkout-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  animation: modalSlideUp .25s ease;
}
#checkout-modal::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
}
@keyframes modalSlideUp { from { transform: translateY(36px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 520px) {
  #checkout-modal-overlay { align-items: center; padding: 20px; }
  #checkout-modal { border-radius: var(--radius-lg); max-width: 480px; animation: modalIn .22s ease; }
  #checkout-modal::before { display: none; }
  @keyframes modalIn { from { transform: translateY(16px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
}

.co-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-lighter);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  line-height: 1;
}
.co-close:hover { background: #fee2e2; color: var(--red); border-color: var(--red); }

.co-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
  margin-top: 4px;
}
.co-header-img {
  width: 62px;
  height: 62px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}
.co-header-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}
.co-header-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
}

.co-body { padding: 18px 20px 4px; }
.co-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 5px;
  font-family: 'Inter', sans-serif;
  letter-spacing: .02em;
}
.co-label .req { color: var(--red); }

.co-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: .92rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  margin-bottom: 12px;
  -webkit-appearance: none;
}
.co-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.co-input::placeholder { color: var(--text-lighter); }
textarea.co-input { resize: none; height: 74px; }

.co-summary {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.co-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .87rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-lighter);
  padding: 4px 0;
}
.co-summary-row .val-green { color: var(--success); font-weight: 600; }
.co-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}
.co-summary-row.total .val { color: var(--primary); font-size: 1.05rem; font-weight: 800; }

.co-confirm-btn {
  width: 100%;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 15px;
  font-size: .95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.co-confirm-btn:hover { background: var(--success-dark, #15803d); transform: translateY(-1px); }

.co-trust {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.co-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .73rem;
  color: var(--text-lighter);
  font-family: 'Inter', sans-serif;
}
.co-trust-item svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--primary); }

/* Success */
.co-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 40px 24px 32px; }
.co-success.show { display: flex; }
.co-success-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-full);
  background: #dcfce7;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  animation: popIn .35s ease;
}
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.co-success-icon svg { width: 36px; height: 36px; color: var(--success); }
.co-success-title { font-size: 1.1rem; font-weight: 700; color: var(--text); font-family: 'Inter', sans-serif; margin-bottom: 6px; }
.co-success-sub  { font-size: .85rem; color: var(--text-light); font-family: 'Inter', sans-serif; margin-bottom: 6px; line-height: 1.5; }
.co-success-ref  { font-size: .78rem; color: var(--text-lighter); font-family: 'Inter', sans-serif; margin-bottom: 20px; }
.co-success-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.co-success-wa {
  display: flex; align-items: center; gap: 6px;
  background: #25d366; color: #fff; border: none;
  border-radius: var(--radius); padding: 11px 18px;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif; text-decoration: none;
  transition: background .2s;
}
.co-success-wa:hover { background: #1ebe5d; }
.co-success-home {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); color: var(--text-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 11px 18px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif; text-decoration: none;
  transition: background .2s, color .2s;
}
.co-success-home:hover { background: var(--surface2); color: var(--text); }

/* ══════════════════════════════════════════
   MOBILE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 60px 0 48px; }
  .hero-title { font-size: clamp(1.75rem, 8vw, 2.4rem) !important; }
  .hero-subtitle { font-size: .92rem; }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 1.3rem; }

  .feature-item { flex-direction: column; gap: 6px; text-align: center; align-items: center; }
  .feature-title { font-size: .85rem; }

  .section { padding: 44px 0; }
  .section-title { font-size: clamp(1.4rem, 6vw, 1.9rem); }

  .newsletter-input { border-radius: var(--radius) var(--radius) 0 0; }
  .newsletter-btn   { border-radius: 0 0 var(--radius) var(--radius); width: 100%; }

  .testimonial-card { padding: 18px; }
  .countdown-item   { min-width: 52px; padding: 8px 10px; }
  .countdown-num    { font-size: 1.4rem; }

  .size-btn  { min-height: 44px; }
  .qty-btn   { width: 44px; height: 44px; }

  #whatsapp-btn { bottom: 16px; right: 16px; width: 48px; height: 48px; }
  #back-to-top  { bottom: 72px; right: 16px; }

  /* Detail page */
  .product-detail-gallery { position: static !important; }
  .absolute.bottom-3.right-3 { display: none !important; }
}

@media (max-width: 480px) {
  .hero-stats > div { min-width: 42%; }
  .product-card-body { padding: 10px 10px 12px; }
  .product-card-name { font-size: .82rem; }
  .product-card-price { font-size: 1rem; }
  .product-quick-add, .btn-voir-produit { font-size: .82rem; padding: 10px; }
  .nav-logo img { height: 50px; }
  .section-title { font-size: clamp(1.25rem, 7vw, 1.7rem); }
  .countdown-item { min-width: 44px; padding: 6px 8px; }
  .countdown-num  { font-size: 1.2rem; }

  .co-header { padding: 14px 14px 10px; gap: 10px; }
  .co-header-img { width: 50px; height: 50px; }
  .co-body { padding: 12px 14px 4px; }
}

/* ══════════════════════════════════════════
   BLOG CARDS
══════════════════════════════════════════ */
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 18px 18px 20px; }
.blog-cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}
.blog-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}
.blog-title a { color: var(--text); }
.blog-title a:hover { color: var(--primary); }
.blog-meta { font-size: .75rem; color: var(--text-lighter); }

/* ══════════════════════════════════════════
   NEWSLETTER SECTION
══════════════════════════════════════════ */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.newsletter-section .section-tag {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.15);
}
.newsletter-section .section-title { color: #fff; }
.newsletter-section .section-title span { color: var(--warning); }
.newsletter-section p { color: rgba(255,255,255,.8); }

/* ══════════════════════════════════════════
   TESTIMONIALS — AUTHOR
══════════════════════════════════════════ */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

/* ══════════════════════════════════════════
   FOOTER SOCIAL ICONS
══════════════════════════════════════════ */
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #1e293b;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
}
.social-icon:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ══════════════════════════════════════════
   PRINT
══════════════════════════════════════════ */
@media print {
  #whatsapp-btn, .navbar, footer, .announcement-bar { display: none; }
}
