﻿/* =============================================
   ELECTROSHOP — Design System v3 (Modern Redesign)
   "La Tech à Ton Image"
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&display=swap');

/* ---- Variables ---- */
:root {
  --white:        #ffffff;
  --bg:           #f9fafb;
  --bg-card:      #ffffff;
  --bg-purple:    #f5f0ff;
  --bg-purple-2:  #ede9fe;

  --red-900:   #7F1D1D;
  --red-700:   #B91C1C;
  --red-600:   #DC2626;
  --purple-500:   #8b5cf6;
  --purple-400:   #FCA5A5;
  --purple-100:   #ede9fe;
  --purple-50:    #f5f3ff;

  --gray-900:     #111827;
  --gray-800:     #1f2937;
  --gray-700:     #374151;
  --gray-500:     #6b7280;
  --gray-400:     #9ca3af;
  --gray-200:     #e5e7eb;
  --gray-100:     #f3f4f6;
  --gray-50:      #f9fafb;

  --success:      #059669;
  --error:        #dc2626;
  --warning:      #d97706;
  --orange:       #ea580c;

  /* Semantic aliases */
  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted:     var(--gray-500);
  --text-faint:     var(--gray-400);
  --border-color:   var(--gray-200);
  --border-focus:   var(--purple-500);

  /* Brand gradient */
  --grad:         linear-gradient(135deg, #DC2626 0%, #FCA5A5 100%);
  --grad-h:       linear-gradient(135deg, #B91C1C 0%, #8b5cf6 100%);

  /* Shadows */
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:    0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl:    0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-card:  0 0 0 1px var(--gray-200), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 0 0 1px var(--purple-400), 0 8px 24px rgba(124,58,237,0.12);
  --shadow-btn:   0 4px 14px rgba(124,58,237,0.25);

  /* Spacing */
  --nav-h:        64px;
  --nav-cats-h:   44px;

  /* Radii */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-full: 9999px;

  /* Typography */
  --font: 'Roboto', Arial, Helvetica, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-lg:   1.0625rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.5rem;

  --t: 0.18s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Backward-compat aliases ---- */
  --text-1:       var(--gray-900);
  --text-2:       var(--gray-700);
  --text-3:       var(--gray-500);
  --text-4:       var(--gray-400);
  --border:       var(--gray-200);
  --border-light: var(--gray-300);
  --bg-card:      var(--white);
  --bg-2:         var(--bg-purple);
  --bg-3:         var(--bg-purple-2);
  --bg-footer:    var(--gray-900);
  --glow-xs:      var(--shadow-sm);
  --glow-sm:      var(--shadow-md);
  --glow-md:      var(--shadow-lg);
  --glow-lg:      var(--shadow-xl);
  --font-head:    'Poppins', 'Inter', Arial, Helvetica, sans-serif;
  --font-body:    'Inter', Arial, Helvetica, sans-serif;
  --r-2xl:        var(--r-2xl);
  --purple-300:   var(--purple-400);
  --purple-500:   #8b5cf6;
  --purple-400:   #FCA5A5;
  --grad-brand:   var(--grad);
  --success:      #059669;
  --warning:      #d97706;
  --error:        #dc2626;
  --orange:       #ea580c;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 700; line-height: 1.25; color: var(--gray-900); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; background: none; }
input, select, textarea { font-family: inherit; outline: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--purple-400); border-radius: 3px; }
:focus-visible { outline: 2px solid var(--purple-500); outline-offset: 2px; border-radius: var(--r-xs); }

/* ============================================================
   BARRE DE RECHERCHE — CSS autonome (classes sh-*)
   ============================================================ */
.sh {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid #DC2626;
  box-shadow: 0 2px 10px rgba(124,58,237,0.10);
  font-family: var(--font);
}

.sh-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

/* Logo */
.sh-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: 0 0 auto;
  white-space: nowrap;
}

.sh-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #DC2626, #FCA5A5);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
}

.sh-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
}

.sh-logo-text b { color: #DC2626; font-weight: 900; }

/* Barre de recherche centrale */
.sh-bar {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 42px;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sh-bar:focus-within {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
  background: #fff;
}

.sh-cat {
  padding: 0 12px;
  height: 100%;
  background: #f3f4f6;
  border: none;
  border-right: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.82rem;
  font-family: var(--font);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  outline: none;
  flex-shrink: 0;
}

.sh-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: var(--font);
  color: #111827;
  outline: none;
}

.sh-input::placeholder { color: #9ca3af; }

.sh-btn { position:relative; }
.sh-btn::after { content:""; display:block; width:16px; height:16px; border:2px solid currentColor; border-radius:50%; position:absolute; top:50%; left:50%; transform:translate(-50%,-54%); }
.sh-btn::before { content:""; display:block; width:6px; height:2px; background:currentColor; position:absolute; top:50%; left:50%; transform:translate(20%,60%) rotate(45deg); border-radius:1px; }
/* hide text in btn */ .sh-btn {
  padding: 0 18px;
  height: 100%;
  background: linear-gradient(135deg, #DC2626, #FCA5A5);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.2s;
}

.sh-btn:hover { filter: brightness(1.1); }

/* Bouton connexion */
.sh-login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 8px 14px;
  background: #fff;
  color: #DC2626;
  border: 1.5px solid #DC2626;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.sh-login-btn:hover {
  background: #DC2626;
  color: #fff;
}

@media (max-width: 768px) {
  .sh-login-btn span { display: none; }
  .sh-login-btn { padding: 8px 10px; border-radius: 50%; }
}

/* Bouton panier */
.sh-cart-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 9px 16px;
  background: linear-gradient(135deg, #DC2626, #FCA5A5);
  color: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  box-shadow: 0 2px 8px rgba(124,58,237,0.25);
}

.sh-cart-btn .cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #fff;
}

.sh-cart-btn .cart-count.hidden { display: none; }

/* Mobile */
@media (max-width: 768px) {
  .sh-logo      { display: none; }
  .sh-cat       { display: none; }
  .sh-login-btn { display: none !important; }
  .sh-cart-btn  { display: none !important; }
  .sh-inner     { padding: 8px 12px; gap: 8px; }
  .sh-bar       { height: 38px; flex: 1 1 100%; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container    { max-width: 1360px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section      { padding: 32px 0 0; }
.section-sm   { padding: 32px 0 0; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.text-xs      { font-size: var(--text-xs); }
.text-sm      { font-size: var(--text-sm); }
.text-muted   { color: var(--text-muted); }
.text-purple  { color: var(--red-600); }
.fw-5         { font-weight: 500; }
.fw-6         { font-weight: 600; }
.fw-7         { font-weight: 700; }
.fw-8         { font-weight: 800; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav-top {
  background: var(--red-600);
  height: 36px;
  display: flex;
  align-items: center;
}

.nav-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.9);
}

.nav-top a { color: rgba(255,255,255,0.9); transition: color var(--t); }
.nav-top a:hover { color: #fff; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-main {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--grad);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  box-shadow: var(--shadow-btn);
  letter-spacing: -0.5px;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--red-600); }

/* Search */
.nav-search {
  flex: 1;
  max-width: 580px;
  display: flex;
  border: 2px solid var(--border-color);
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--gray-50);
  transition: border-color var(--t), box-shadow var(--t);
}

.nav-search:focus-within {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
  background: var(--white);
}

.search-category {
  padding: 0 14px;
  background: none;
  border: none;
  border-right: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
  min-width: 130px;
  flex-shrink: 0;
}

.search-category option { background: #fff; }

.nav-search-input {
  flex: 1;
  padding: 10px 14px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.nav-search-input::placeholder { color: var(--gray-400); }

.nav-search-btn {
  padding: 0 18px;
  background: var(--grad);
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  transition: filter var(--t);
}

.nav-search-btn:hover { filter: brightness(1.1); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.nav-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  transition: background var(--t);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-action:hover { background: var(--gray-100); }
.nav-action small { font-size: 0.68rem; color: var(--text-muted); line-height: 1; }
.nav-action strong { font-size: 0.82rem; font-weight: 700; line-height: 1.4; }

.nav-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--grad);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 700;
  position: relative;
  box-shadow: var(--shadow-btn);
  transition: filter var(--t), transform var(--t);
}

.nav-cart:hover { filter: brightness(1.08); transform: translateY(-1px); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  background: var(--error);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--white);
}

.cart-count.hidden { display: none; }

/* Category strip */
.nav-cats {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--border-color);
  height: var(--nav-cats-h);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-cats::-webkit-scrollbar { display: none; }

.nav-cats-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  white-space: nowrap;
  padding: 0 4px;
}

.nav-cat-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--t);
  white-space: nowrap;
}

.nav-cat-link:hover { background: var(--purple-50); color: var(--red-700); }
.nav-cat-link.active { background: var(--purple-100); color: var(--red-700); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4.5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-color);
  background: none;
}

.hamburger span { display: block; width: 18px; height: 1.8px; background: var(--gray-700); border-radius: 1px; transition: all var(--t); }
.hamburger.open span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--white);
  display: flex; flex-direction: column;
  padding: 80px 32px 32px;
  gap: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t);
}

.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-size: 1.2rem; font-weight: 700; color: var(--gray-800); padding: 12px 0; border-bottom: 1px solid var(--gray-100); transition: color var(--t); }
.mobile-nav a:hover { color: var(--red-600); }
.mobile-nav-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border-color); color: var(--text-muted); font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--t); }
.mobile-nav-close:hover { border-color: var(--purple-500); color: var(--red-600); }

/* Search toggle (mobile) */
.nav-search-toggle { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--r-full);
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--t) var(--ease);
  cursor: pointer;
  border: none;
  font-family: var(--font);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.35); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: var(--white);
  color: var(--red-700);
  border: 1.5px solid var(--purple-400);
}

.btn-secondary:hover { background: var(--purple-50); }

.btn-orange { background: linear-gradient(135deg, #ea580c, #f97316); color: #fff; box-shadow: 0 4px 14px rgba(234,88,12,0.3); }
.btn-orange:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text-muted); border: 1.5px solid var(--border-color); }
.btn-ghost:hover { border-color: var(--gray-400); color: var(--text-secondary); background: var(--gray-50); }

.btn-white { background: #fff; color: var(--red-700); font-weight: 700; box-shadow: var(--shadow-md); }
.btn-white:hover { background: var(--purple-50); }

.btn-sm  { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg  { padding: 13px 30px; font-size: 0.95rem; }
.btn-xl  { padding: 15px 40px; font-size: 1rem; }
.btn-sq  { border-radius: var(--r-md); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-new  { background: #ede9fe; color: #5b21b6; border: 1px solid #FCA5A5; }
.badge-promo{ background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.badge-hot  { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge-free { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
/* Variable couleur bandeau — modifiable depuis le backoffice */
:root { --section-header-bg: #1a1f6e; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 0;
  background: var(--section-header-bg);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  padding: 11px 18px;
  overflow: hidden;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--purple-100);
  color: var(--red-700);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.section-title-group h2 {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0;
}

.section-title-group h2 span { color: rgba(255,255,255,0.85); }

.section-viewall {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 0;
  border: none;
  border-radius: 0;
  transition: opacity var(--t);
}

.section-viewall:hover { color: #fff; opacity: 0.8; background: transparent; border-color: transparent; }

/* ============================================================
   STARS
   ============================================================ */
.stars { display: inline-flex; gap: 1px; }
.star  { font-size: 0.8rem; color: #f59e0b; }
.star.empty { color: var(--gray-200); }

/* ============================================================
   PRODUCT CARD — Modern
   ============================================================ */
.product-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t) var(--ease);
  box-shadow: var(--shadow-xs);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--purple-300);
}

/* Image */
.product-img-wrap {
  position: relative;
  background: #fff;
  padding-top: 68%;
  overflow: hidden;
  flex-shrink: 0;
}

a.product-img-wrap { display: block; }

.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 10px;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; font-size: 3rem;
  background: #ffffff;
}

.product-img-placeholder small { font-size: 0.72rem; color: var(--text-muted); }

.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }

.product-wish {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-muted);
  cursor: pointer; transition: all var(--t);
  box-shadow: var(--shadow-xs);
}

.product-wish:hover { color: var(--error); border-color: var(--error); background: #fff5f5; }

.discount-tag {
  position: absolute; bottom: 10px; right: 10px; z-index: 1;
  background: var(--error); color: #fff;
  font-size: 0.7rem; font-weight: 800;
  padding: 2px 8px; border-radius: var(--r-full);
}

/* Body */
.product-body {
  padding: 14px 14px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-cat { display: none; }

.product-name {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-900);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-name a { color: inherit; }
.product-name a:hover { color: var(--red-700); }

.product-rating-row { display: none; } /* masqué sur le front */
.rating-score { font-size: 0.75rem; font-weight: 700; color: var(--warning); }
.rating-count { font-size: 0.72rem; color: var(--text-muted); }

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.price-current { font-size: 1rem; font-weight: 500; color: var(--red-700); }
.price-old     { font-size: 0.78rem; color: var(--text-muted); text-decoration: line-through; }

.product-shipping { display: none; } /* masqué sur le front */
.product-stock    { display: none; }
.product-stock.low { display: none; }
.stock-pill       { display: none; }
.in-stock         { display: none; }
.low-stock        { display: none; }

/* CTA */
.product-cta { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 6px; }

.btn-add-cart {
  width: 100%;
  padding: 9px;
  background: var(--grad);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font);
  box-shadow: 0 2px 8px rgba(124,58,237,0.2);
}

.btn-add-cart:hover { filter: brightness(1.08); box-shadow: var(--shadow-btn); transform: translateY(-1px); }
.btn-add-cart:active { transform: scale(0.97); }
.btn-add-cart.added { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 2px 8px rgba(5,150,105,0.25); }

.btn-view-product {
  display: block;
  text-align: center;
  padding: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--red-600);
  border: 1.5px solid var(--purple-200);
  border-radius: var(--r-full);
  transition: all var(--t);
}

.btn-view-product:hover { background: var(--purple-50); border-color: var(--purple-400); }

/* ============================================================
   TOASTS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  min-width: 260px; max-width: 340px;
  animation: toastIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: auto;
  font-size: 0.84rem;
}

.toast.hide { animation: toastOut 0.25s ease forwards; }

@keyframes toastIn  { from { opacity:0; transform:translateX(50px) scale(0.9); } to { opacity:1; transform:none; } }
@keyframes toastOut { to   { opacity:0; transform:translateX(50px); } }

.toast-success { border-left: 4px solid var(--success); }
.toast-success .t-icon { color: var(--success); }
.toast-error   { border-left: 4px solid var(--error); }
.toast-error .t-icon   { color: var(--error); }
.toast-info    { border-left: 4px solid var(--purple-500); }
.toast-info .t-icon    { color: var(--purple-500); }

.t-icon { font-size: 1rem; flex-shrink: 0; }
.t-msg  { color: var(--text-primary); flex: 1; line-height: 1.4; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  margin-top: 80px;
}

.footer-top {
  padding: 56px 0 44px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p { color: var(--gray-400); font-size: 0.85rem; line-height: 1.7; margin-top: 14px; }

.footer .logo-text { color: var(--white); }
.footer .logo-text span { color: var(--purple-400); }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer-col li { margin-bottom: 9px; }
.footer-col a  { font-size: 0.85rem; color: var(--gray-400); transition: color var(--t); }
.footer-col a:hover { color: var(--white); }

.footer-socials { display: flex; gap: 8px; margin-top: 20px; }

.footer-social {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 0.9rem;
  transition: all var(--t);
}

.footer-social:hover { background: var(--red-600); border-color: var(--red-600); color: #fff; }

/* ============================================================
   NEWSLETTER (dans footer)
   ============================================================ */
.footer-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 36px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-newsletter-text p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}
.footer-newsletter-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.footer-newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(123,47,190,0.35);
  border: 1px solid rgba(155,89,212,0.4);
  color: #FCA5A5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.footer-newsletter-form {
  display: flex;
  gap: 8px;
}
.footer-newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter-input:focus {
  border-color: rgba(155,89,212,0.6);
  background: rgba(255,255,255,0.09);
}
.footer-newsletter-btn {
  background: var(--red-600, #DC2626);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}
.footer-newsletter-btn:hover   { background: #B91C1C; transform: translateY(-1px); }
.footer-newsletter-btn:active  { transform: translateY(0); }
.footer-newsletter-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.footer-newsletter-legal {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
}
@media (max-width: 768px) {
  .footer-newsletter { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   POPUP
   ============================================================ */
#site-popup { position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; }
.popup-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.55); backdrop-filter:blur(3px); }
.popup-box {
  position:relative; background:#fff; border-radius:20px; overflow:hidden;
  max-width:480px; width:calc(100% - 32px); box-shadow:0 24px 60px rgba(0,0,0,0.3);
  animation: popupIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popupIn { from { opacity:0; transform:scale(0.85) translateY(20px); } to { opacity:1; transform:none; } }
.popup-close {
  position:absolute; top:12px; right:12px; width:32px; height:32px; border-radius:50%;
  background:rgba(0,0,0,0.15); border:none; cursor:pointer; font-size:0.9rem;
  color:#fff; display:flex; align-items:center; justify-content:center; z-index:1;
  transition:background 0.2s;
}
.popup-close:hover { background:rgba(0,0,0,0.35); }
#popup-img { width:100%; max-height:240px; object-fit:cover; display:block; }
.popup-body { padding:24px 28px 28px; }
.popup-body h3 { font-size:1.25rem; font-weight:900; color:var(--gray-900); margin:0 0 10px; }
.popup-body p  { font-size:0.92rem; color:var(--gray-600); line-height:1.6; margin:0 0 20px; }
.popup-btn { display:inline-block; width:100%; text-align:center; }
@media(max-width:480px) { .popup-box { border-radius:16px; } .popup-body { padding:20px; } }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--gray-500);
}

/* Divider */
.divider-glow {
  display: none;
  height: 1px;
  background: var(--gray-200);
  margin: 0;
}

/* ============================================================
   PRODUCT GRIDS
   ============================================================ */
.products-grid-4 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; background:#fff; border-radius:0 0 var(--r-sm) var(--r-sm); padding:12px; }
.products-grid-5 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.products-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Rangée scrollable horizontale (modèle marketplace) */
.products-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.products-row > * {
  width: 100%;
  scroll-snap-align: start;
}

/* ============================================================
   MISC
   ============================================================ */
.d-flex      { display: flex; }
.align-center { align-items: center; }
.gap-8       { gap: 8px; }
.ml-auto     { margin-left: auto; }
.mt-auto     { margin-top: auto; }
