/* =============================================
   NEXASHOP — shop_style.css
   Miroir du admin_style.css + composants
   spécifiques à la boutique client.
   Dark: Noir/Or | Light: Blanc/Corail
   Glassmorphism + Animations fluides
   ============================================= */

/* ─── VARIABLES (identiques à l'admin) ──────── */
:root {
  --gold: #f5c842;
  --gold-soft: rgba(245, 200, 66, 0.15);
  --gold-glow: 0 0 20px rgba(245, 200, 66, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  --surface: #131318;
  --surface2: #1a1a22;
  --text: #f0f0f8;
  --text-muted: rgba(240, 240, 248, 0.5);
  --radius: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --modal-bg: #18181f;
  --input-bg: rgba(255,255,255,0.06);
  --input-border: rgba(255,255,255,0.1);
}

/* ─── LIGHT MODE — couverture exhaustive ─────── */
[data-theme="light"] {
  --glass-bg: #ffffff;
  --glass-border: rgba(0, 0, 0, 0.09);
  --surface: #f0f0f8;
  --surface2: #e4e4f0;
  --text: #0d0d1a;
  --text-muted: rgba(13, 13, 26, 0.52);
  --shadow: 0 4px 20px rgba(0,0,0,0.09);
  --modal-bg: #ffffff;
  --input-bg: #ffffff;
  --input-border: rgba(0,0,0,0.14);
  --gold: #d63b06;
  --gold-soft: rgba(214, 59, 6, 0.09);
  --gold-glow: 0 0 16px rgba(214, 59, 6, 0.16);
}

/* ── Base ── */
[data-theme="light"] body { background: #f0f0f8 !important; color: #0d0d1a !important; }
[data-theme="light"] { color: #0d0d1a; }

/* ── Textes généraux ── */
[data-theme="light"] p,
[data-theme="light"] h1, [data-theme="light"] h2,
[data-theme="light"] h3, [data-theme="light"] h4,
[data-theme="light"] label,
[data-theme="light"] a { color: #0d0d1a; }
[data-theme="light"] span:not(.badge-pending):not(.badge-completed):not(.badge-cancelled):not(.badge-low-stock):not(.badge-new):not(.badge-promo):not(.carousel-dot) {
  color: #0d0d1a;
}

/* ── Header ── */
[data-theme="light"] .glass-header {
  background: rgba(244, 244, 251, 0.97) !important;
  border-color: rgba(0,0,0,0.09) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ── Cards ── */
[data-theme="light"] .glass-card {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.08) !important;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

/* ── Navbar bottom ── */
[data-theme="light"] nav.fixed {
  background: rgba(244,244,251,0.97) !important;
  border-top-color: rgba(0,0,0,0.09) !important;
}
[data-theme="light"] .nav-item { color: rgba(13,13,26,0.42); }
[data-theme="light"] .nav-item.active { color: var(--gold); background: var(--gold-soft); }
[data-theme="light"] .nav-item span { color: inherit !important; }

/* ── Séparateurs Tailwind ── */
[data-theme="light"] .border-white\/5  { border-color: rgba(0,0,0,0.08) !important; }
[data-theme="light"] .border-white\/10 { border-color: rgba(0,0,0,0.09) !important; }
[data-theme="light"] .border-t         { border-color: rgba(0,0,0,0.09) !important; }

/* ── Opacités Tailwind → texte sombre lisible ── */
[data-theme="light"] .opacity-40 { opacity: 1 !important; color: rgba(13,13,26,0.40); }
[data-theme="light"] .opacity-50 { opacity: 1 !important; color: rgba(13,13,26,0.52); }
[data-theme="light"] .opacity-60 { opacity: 1 !important; color: rgba(13,13,26,0.60); }
[data-theme="light"] .opacity-70 { opacity: 1 !important; color: rgba(13,13,26,0.70); }

/* ── Filter buttons ── */
[data-theme="light"] .filter-btn { background: #ffffff; border-color: rgba(0,0,0,0.12); color: rgba(13,13,26,0.62); }
[data-theme="light"] .filter-btn.active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }

/* ── Cartes produit ── */
[data-theme="light"] .shop-product-card {
  background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); color: #0d0d1a;
}
[data-theme="light"] .shop-product-card p { color: #0d0d1a; }
[data-theme="light"] .shop-product-img-placeholder,
[data-theme="light"] .shop-product-thumb-placeholder { background: #eeeef8; }

/* ── Rows favoris ── */
[data-theme="light"] .shop-product-row { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; color: #0d0d1a; }
[data-theme="light"] .shop-product-row p { color: #0d0d1a; }

/* ── Bouton favori ── */
[data-theme="light"] .fav-btn { background: rgba(255,255,255,0.97); border-color: rgba(0,0,0,0.10); }

/* ── Chips taille/couleur ── */
[data-theme="light"] .size-chip,
[data-theme="light"] .color-chip { background: #ebebf2; border-color: rgba(0,0,0,0.12); color: rgba(13,13,26,0.68); }
[data-theme="light"] .size-chip.active,
[data-theme="light"] .color-chip.active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }

/* ── Panier ── */
[data-theme="light"] .cart-item { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; color: #0d0d1a; }
[data-theme="light"] .cart-item p { color: #0d0d1a; }
[data-theme="light"] .qty-btn { background: #ebebf2; border-color: rgba(0,0,0,0.12); color: #0d0d1a; }

/* ── Inputs ── */
[data-theme="light"] .glass-input {
  background: #ffffff !important; color: #0d0d1a !important;
  -webkit-text-fill-color: #0d0d1a !important; border-color: rgba(0,0,0,0.14);
}
[data-theme="light"] .glass-input::placeholder { color: rgba(13,13,26,0.36) !important; }
[data-theme="light"] .glass-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); background: #ffffff !important; }

/* ── Labels ── */
[data-theme="light"] .field-label { color: rgba(13,13,26,0.52); }

/* ── Boutons glass ── */
[data-theme="light"] .glass-btn { background: #ffffff; border-color: rgba(0,0,0,0.12); color: #0d0d1a !important; }
[data-theme="light"] .glass-btn:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--gold) !important; }

/* ── Modals ── */
[data-theme="light"] .modal-card { background: #ffffff !important; color: #0d0d1a; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .modal-card p,
[data-theme="light"] .modal-card h3,
[data-theme="light"] .modal-card label { color: #0d0d1a; }
[data-theme="light"] .modal-card span:not(.badge-pending):not(.badge-completed):not(.badge-cancelled):not(.badge-promo) { color: #0d0d1a; }

/* ── Hero & Accueil ── */
[data-theme="light"] .hero-section {
  background: radial-gradient(ellipse at 20% 50%, rgba(214,59,6,0.07) 0%, transparent 60%), #f0f0f8;
  color: #0d0d1a;
}
[data-theme="light"] .hero-welcome {
  background: linear-gradient(90deg, var(--gold-soft), transparent, var(--gold-soft));
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .hero-welcome-text { color: rgba(13,13,26,0.65); }

/* ── Stats ── */
[data-theme="light"] .shop-stat-card { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
[data-theme="light"] .shop-stat-number { color: var(--gold); }
[data-theme="light"] .shop-stat-label  { color: rgba(13,13,26,0.52); }

/* ── Catégories pills ── */
[data-theme="light"] .cat-pill { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
[data-theme="light"] .cat-pill-label { color: rgba(13,13,26,0.58); }

/* ── Trust badges ── */
[data-theme="light"] .trust-badge { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
[data-theme="light"] .trust-badge-text { color: rgba(13,13,26,0.68); }

/* ── Bannière Bénin ── */
[data-theme="light"] .benin-banner {
  background: linear-gradient(135deg, rgba(0,122,61,0.10), rgba(252,209,22,0.12), rgba(230,42,32,0.10));
  border-color: rgba(252,209,22,0.30); color: rgba(13,13,26,0.60);
}

/* ── Titres de section ── */
[data-theme="light"] .section-title { color: #0d0d1a; }
[data-theme="light"] .section-header-sub { color: rgba(13,13,26,0.45); }

/* ── Flash promo : reste sombre même en light (lisibilité sur fond violet) ── */
[data-theme="light"] .flash-promo-card { background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%); border-color: rgba(245,200,66,0.30); }
[data-theme="light"] .flash-promo-card .promo-title { color: #f5c842; }
[data-theme="light"] .flash-promo-card .promo-sub   { color: rgba(255,255,255,0.65); }
[data-theme="light"] .flash-promo-card span,
[data-theme="light"] .flash-promo-card p { color: inherit; }
[data-theme="light"] .flash-promo-card .btn-gold { color: #fff !important; }

/* ── Footer ── */
[data-theme="light"] #appFooter { background: #e4e4f0; color: #0d0d1a; }
[data-theme="light"] .footer-link { color: rgba(13,13,26,0.52); }

/* ── Skeleton ── */
[data-theme="light"] .skeleton {
  background: linear-gradient(90deg, #e4e4f0 25%, #ededf8 50%, #e4e4f0 75%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.4s infinite;
}

/* ── Bouton rupture de stock ── */
[data-theme="light"] .btn-out-of-stock { background: #f0f0f8; border-color: rgba(0,0,0,0.10); color: rgba(13,13,26,0.38); }

/* ── Badges statut ── */
[data-theme="light"] .badge-pending  { background: rgba(251,191,36,0.15); color: #b45309; border-color: rgba(251,191,36,0.3); }
[data-theme="light"] .badge-completed{ background: rgba(34,197,94,0.12);  color: #15803d; border-color: rgba(34,197,94,0.25); }
[data-theme="light"] .badge-cancelled{ background: rgba(239,68,68,0.12);  color: #b91c1c; border-color: rgba(239,68,68,0.25); }
[data-theme="light"] .badge-low-stock{ background: rgba(239,68,68,0.10);  color: #b91c1c; border-color: rgba(239,68,68,0.22); }
[data-theme="light"] .badge-new      { background: rgba(214,59,6,0.10);   color: var(--gold); border-color: rgba(214,59,6,0.22); }

/* ── Prix ── */
[data-theme="light"] .text-gold-400 { color: var(--gold) !important; }
[data-theme="light"] .font-display.text-gold-400 { color: var(--gold) !important; }
[data-theme="light"] .price-old   { color: rgba(13,13,26,0.45); }
[data-theme="light"] .price-promo { color: #c0392b; }

/* ── Carrousel overlay : TOUJOURS blanc (texte sur photo) ── */
[data-theme="light"] .carousel-overlay,
[data-theme="light"] .carousel-overlay h2,
[data-theme="light"] .carousel-overlay p { color: #ffffff !important; }

/* ─── RESET & BASE ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #0d0d0d;
  color: var(--text);
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[data-theme="light"] body {
  background: #f0f0f8;
  color: #0d0d1a;
}

/* Scrollbar fine */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── GLASSMORPHISM ──────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.glass-header {
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: var(--glass-border);
}

[data-theme="light"] .glass-header {
  background: rgba(240, 240, 248, 0.96);
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.glass-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition);
  cursor: pointer;
}
.glass-btn:hover { background: var(--gold-soft); border-color: var(--gold); }

.glass-input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text) !important;   /* Force la couleur même si Tailwind injecte text-white */
  outline: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-text-fill-color: var(--text); /* Fix Safari autofill */
}
.glass-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.glass-input::placeholder { color: var(--text-muted) !important; }

/* Correction contraste dark mode : fond sombre + texte clair explicite */
[data-theme="dark"] .glass-input,
:root .glass-input {
  background: rgba(255,255,255,0.07);
  color: #f0f0f8 !important;
  -webkit-text-fill-color: #f0f0f8;
}

/* Correction contraste light mode : fond clair + texte sombre */
[data-theme="light"] .glass-input {
  background: rgba(255,255,255,0.9) !important;
  color: #0d0d1a !important;
  -webkit-text-fill-color: #0d0d1a;
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .glass-input::placeholder { color: rgba(13,13,26,0.4) !important; }
[data-theme="light"] .glass-input:focus {
  background: #ffffff !important;
  border-color: var(--gold);
}

/* ─── GOLD GRADIENT & BOUTONS ────────────────── */
.gold-gradient { background: linear-gradient(135deg, #f5c842, #c9a200); }
[data-theme="light"] .gold-gradient { background: linear-gradient(135deg, #ff6b35, #e6420a); }

.shadow-gold { box-shadow: var(--gold-glow); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 70%, #000));
  color: #000;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--gold-glow);
  font-family: 'DM Sans', sans-serif;
}
.btn-gold:hover  { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(245,200,66,0.4); }
.btn-gold:active { transform: translateY(0); }
[data-theme="light"] .btn-gold { color: #fff; }

/* ─── NAVIGATION BOTTOM ──────────────────────── */
.nav-item {
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-item.active {
  color: var(--gold);
  background: var(--gold-soft);
}
.nav-item:hover { color: var(--gold); }

/* ─── HEADER ─────────────────────────────────── */
#appHeader {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}

/* ─── HERO SECTION ───────────────────────────── */
.hero-section {
  min-height: 260px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,200,66,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.08) 0%, transparent 60%),
    var(--surface);
  border-radius: 0 0 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 48px;
  position: relative;
  overflow: hidden;
}

/* Ligne décorative dorée en haut du hero */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

[data-theme="light"] .hero-section {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(230,66,10,0.08) 0%, transparent 60%),
    var(--surface);
}

/* ─── CARTES PRODUIT (grille catalogue) ──────── */
.shop-product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition);
  animation: fadeSlideUp 0.4s ease both;
  cursor: pointer;
  position: relative;
}
.shop-product-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Image du produit */
.shop-product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface2);
  display: block;
}

/* Placeholder si pas d'image */
.shop-product-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

/* Bouton cœur favori (coin haut droit) */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(13,13,13,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
  z-index: 2;
}
.fav-btn:hover  { background: rgba(245,200,66,0.2); border-color: var(--gold); }
.fav-btn.active { background: rgba(239,68,68,0.2); border-color: #ef4444; }

/* Badge "Stock Bas" sur la carte */
.badge-low-stock {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 6px;
  font-size: 10px;
  padding: 2px 7px;
  font-weight: 600;
}

/* Badge "Nouveau" */
.badge-new {
  background: rgba(245,200,66,0.15);
  color: var(--gold);
  border: 1px solid rgba(245,200,66,0.3);
  border-radius: 6px;
  font-size: 10px;
  padding: 2px 7px;
  font-weight: 600;
}

/* Bouton "Rupture de stock" grisé */
.btn-out-of-stock {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: not-allowed;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 8px;
  border-radius: 10px;
  width: 100%;
  text-align: center;
}

/* ─── CARTES PRODUIT (liste favoris / horizontal) */
.shop-product-row {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  transition: all var(--transition);
  animation: fadeSlideUp 0.4s ease both;
}
.shop-product-row:hover { border-color: var(--gold); }
.shop-product-thumb {
  width: 72px; height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface2);
  flex-shrink: 0;
}

/* ─── FILTRE CATÉGORIES ──────────────────────── */
.filter-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  border-radius: 999px;
}
.filter-btn.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

/* ─── MODALS ─────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-card {
  background: var(--modal-bg);
  border: 1px solid var(--glass-border);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 520px;
  padding: 24px 20px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 94vh;
  overflow-y: auto;
}

/* ─── MODAL DÉTAIL PRODUIT ───────────────────── */
.product-detail-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 20px;
  background: var(--surface2);
  display: block;
  margin-bottom: 20px;
}

/* Chips taille / couleur */
.size-chip, .color-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.size-chip.active, .color-chip.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
}

/* ─── PANIER ─────────────────────────────────── */
.cart-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeSlideUp 0.35s ease both;
}

/* Contrôle quantité +/- */
.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ─── STATUT COMMANDE ────────────────────────── */
.badge-pending   { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.badge-completed { background: rgba(34,197,94,0.15);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3);  }
.badge-cancelled { background: rgba(239,68,68,0.15);  color: #ef4444; border: 1px solid rgba(239,68,68,0.3);  }

/* ─── THEME BUTTONS ──────────────────────────── */
.theme-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
}
.theme-btn.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}

/* ─── CHAMPS FORMULAIRE ──────────────────────── */
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ─── PAGE SECTION ───────────────────────────── */
.page-section { animation: fadeSlideUp 0.4s ease both; }

/* ─── TOAST ──────────────────────────────────── */
#toast.show { display: flex !important; animation: fadeSlideUp 0.3s ease; }

/* ─── SECTION TITRE ──────────────────────────── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  position: relative;
  padding-left: 14px;
}
/* Barre dorée à gauche du titre */
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 4px;
  background: var(--gold);
  border-radius: 2px;
}

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp     { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes pulse       { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes pwaPulse    { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }

/* Stagger animation pour les listes */
.shop-product-card:nth-child(1), .shop-product-row:nth-child(1), .cart-item:nth-child(1) { animation-delay: 0.05s; }
.shop-product-card:nth-child(2), .shop-product-row:nth-child(2), .cart-item:nth-child(2) { animation-delay: 0.10s; }
.shop-product-card:nth-child(3), .shop-product-row:nth-child(3), .cart-item:nth-child(3) { animation-delay: 0.15s; }
.shop-product-card:nth-child(4), .shop-product-row:nth-child(4), .cart-item:nth-child(4) { animation-delay: 0.20s; }
.shop-product-card:nth-child(5), .shop-product-row:nth-child(5)                          { animation-delay: 0.25s; }
.shop-product-card:nth-child(6)                                                           { animation-delay: 0.30s; }

/* ─── SPINNER ────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: 12px;
}
@keyframes skeleton-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ─── SAFE AREA (iPhone notch) ───────────────── */
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 8px); }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (min-width: 640px) {
  .modal-card { border-radius: 28px; margin: 20px; max-width: 520px; }
  .modal-overlay { align-items: center; }
}

@media (min-width: 768px) {
  /* Grille 3 colonnes sur tablette */
  #productsGrid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (min-width: 1024px) {
  /* Largeur max sur desktop */
  #mainContent { max-width: 720px; margin: 0 auto; }
  #productsGrid { grid-template-columns: repeat(3, 1fr) !important; }
}


/* Fin du fichier — overrides intégrés dans le bloc Light Mode ci-dessus */

/* ═══════════════════════════════════════════════
   PAGE ACCUEIL — Styles "Waouh"
   Inspiré de Zara, ASOS, Shopify premium
   ═══════════════════════════════════════════════ */

/* ─── BANNER BÉNIN ───────────────────────────── */
/* Petite bannière "Made in Bénin" avec drapeau */
.benin-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,122,61,0.15), rgba(252,209,22,0.15), rgba(230,42,32,0.15));
  border: 1px solid rgba(252,209,22,0.25);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  width: fit-content;
  margin: 0 auto;
}
[data-theme="light"] .benin-banner {
  background: linear-gradient(135deg, rgba(0,122,61,0.10), rgba(252,209,22,0.12), rgba(230,42,32,0.10));
  border-color: rgba(252,209,22,0.30);
  color: rgba(13,13,26,0.60);
}

/* ─── HERO WELCOME STRIP ─────────────────────── */
/* Bande de bienvenue animée sous le header */
.hero-welcome {
  background: linear-gradient(90deg, var(--gold-soft), transparent, var(--gold-soft));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
}
.hero-welcome-text {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  letter-spacing: 0.04em;
}

@keyframes marquee {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ─── FLASH PROMO CARD ───────────────────────── */
/* Carte "Offre du moment" avec dégradé accrocheur */
.flash-promo-card {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
  border: 1px solid rgba(245,200,66,0.25);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.flash-promo-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245,200,66,0.15) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="light"] .flash-promo-card {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
  border-color: rgba(245,200,66,0.30);
}
.flash-promo-card .promo-title {
  color: #f5c842;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.flash-promo-card .promo-sub {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  margin-bottom: 14px;
}
.flash-promo-card .promo-badge {
  display: inline-block;
  background: #f5c842;
  color: #0d0d0d;
  font-weight: 800;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ─── STATS BOUTIQUE ─────────────────────────── */
/* Ligne de chiffres clés : produits, clients, livraison */
.shop-stats-row {
  display: flex;
  gap: 10px;
}
.shop-stat-card {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  backdrop-filter: var(--glass-blur);
}
[data-theme="light"] .shop-stat-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.shop-stat-number {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 3px;
}
.shop-stat-label {
  font-size: 10px;
  opacity: 0.55;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
[data-theme="light"] .shop-stat-number { color: var(--gold); }
[data-theme="light"] .shop-stat-label  { color: rgba(13,13,26,0.52); }

/* ─── CATÉGORIES VISUELLES ───────────────────── */
/* Grille de catégories avec icônes grandes */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.cat-pill:hover,
.cat-pill:active {
  background: var(--gold-soft);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.cat-pill-icon { font-size: 24px; line-height: 1; }
.cat-pill-label {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
}
[data-theme="light"] .cat-pill {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
[data-theme="light"] .cat-pill-label { color: rgba(13,13,26,0.58); }

/* ─── TRUST BADGES ───────────────────────────── */
/* Ligne "Livraison rapide · Paiement sûr · Retour facile" */
.trust-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.trust-row::-webkit-scrollbar { display: none; }
.trust-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 9px 13px;
  white-space: nowrap;
}
[data-theme="light"] .trust-badge {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.trust-badge-icon { font-size: 18px; }
.trust-badge-text {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
  line-height: 1.3;
}
[data-theme="light"] .trust-badge-text { color: rgba(13,13,26,0.68); }

/* ─── SECTION TITRE AMÉLIORÉ ─────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.section-header-sub {
  font-size: 11px;
  opacity: 0.45;
  font-weight: 400;
}
[data-theme="light"] .section-header-sub { color: rgba(13,13,26,0.45); }

/* ─── WHATSAPP FLOATING BTN ──────────────────── */
/* Bouton WhatsApp flottant en bas à droite */
.wa-float {
  position: fixed;
  bottom: 90px;
  right: 16px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all var(--transition);
  text-decoration: none;
  animation: waPulseAnim 2.5s ease-in-out infinite;
  border: none;
  cursor: pointer;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulseAnim {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,0.70); }
}

/* ─── DRAPEAU BÉNIN SVG ──────────────────────── */
/* Structure correcte du drapeau béninois :
   Bande verte verticale (1/3 gauche)
   + Rectangle jaune en haut à droite
   + Rectangle rouge en bas à droite */
.benin-flag {
  display: inline-flex;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.30);
  vertical-align: middle;
}
.benin-flag-green {
  width: 38%;
  height: 100%;
  background: #008751;
  flex-shrink: 0;
}
.benin-flag-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.benin-flag-yellow {
  flex: 1;
  background: #fcd116;
}
.benin-flag-red {
  flex: 1;
  background: #e8112d;
}

/* ─── BADGES & PRIX PROMOTION ───────────────── */

/* Badge PROMO — accrocheur, fond rouge avec halo lumineux */
.badge-promo {
  background: linear-gradient(135deg, #ff2d2d, #c0392b);
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(255, 45, 45, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
  display: inline-block;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
}
[data-theme="light"] .badge-promo { box-shadow: 0 2px 10px rgba(192,57,43,0.45); }

/* Ancien prix barré — visible et crédible */
.price-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(239,68,68,0.7);
  text-decoration-thickness: 2px;
  margin-right: 3px;
}
[data-theme="light"] .price-old { color: rgba(13,13,26,0.45); }

/* Nouveau prix promo — rouge vif, plus grand que le normal */
.price-promo {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 15px;
  color: #e8112d;
  letter-spacing: -0.01em;
}
[data-theme="light"] .price-promo { color: #c0392b; }
