/* public/shop/css/shop.css
   Design system boutique Brizprix — densité et hiérarchie inspirées des
   grandes places de marché (Temu / Alibaba / Amazon), sur la palette
   maison (teal #0D4D4A, or #F2C27A) déjà utilisée par le back-office.
   Mobile-first, aucun framework.

   Couleurs, rayons, ombres et animations partagées viennent désormais
   de /css/tokens.css (chargé avant ce fichier sur chaque page boutique)
   — seuls les alias propres à la boutique restent définis ici. */

:root {
  --text-main: #1C2B2A; /* alias local = --charcoal de tokens.css */
  --maxw: 1400px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 14px;
  /* ⚠️ Aucun padding-bottom global ici : la barre d'achat collante
     n'existe que sur la fiche produit en mobile, et c'est CETTE page
     qui réserve la place (.has-buybar plus bas). Un padding global
     créait une bande blanche sous le pied de page sur tout le site. */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* ══════════════ BARRE UTILITAIRE ══════════════ */
.utility-bar {
  background: var(--charcoal);
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 12px; }
.utility-bar a:hover { color: var(--gold); }
.utility-bar i { color: var(--teal-light); }

/* Bandeau de messages défilants — remplace la ligne fixe unique. Un
   seul message visible à la fois, fondu enchaîné vers le suivant, pour
   caser plusieurs arguments de réassurance dans le même espace plutôt
   que d'en sacrifier sur mobile. Cycle géré par JS (voir shop-core.js),
   la classe .show ne fait que l'entrée/sortie visuelle. */
.utility-left { position: relative; flex: 1; min-width: 0; height: 34px; overflow: hidden; }
.utility-msg {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s var(--ease-out, ease), transform 0.35s var(--ease-out, ease);
}
.utility-msg.show { opacity: 1; transform: translateY(0); }
.utility-msg i { flex-shrink: 0; }

.utility-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.utility-right .u-text { display: none; }
@media (min-width: 620px) { .utility-right .u-text { display: inline; } }
.utility-right a { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 4px; transition: background 0.15s; }
.utility-right a:hover { background: rgba(255,255,255,0.08); }

/* ══════════════ EN-TÊTE ══════════════ */
.shop-header { background: var(--teal-deep); position: sticky; top: 0; z-index: 300; }
.shop-header .container {
  display: flex; align-items: center; gap: 14px;
  height: 62px;
}
.brand { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.brand-name { font-size: 21px; font-weight: 900; color: var(--white); letter-spacing: -0.6px; }
.brand-tag { font-size: 8.5px; font-weight: 700; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-top: 3px; }

.search-wrap { flex: 1; display: none; max-width: 720px; position: relative; }
@media (min-width: 860px) { .search-wrap { display: flex; } }
.search-form { display: flex; width: 100%; background: var(--white); border-radius: var(--r-sm); overflow: hidden; height: 40px; }
.search-form select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: none; outline: none; color: var(--text-main);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234A6462' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 12.5px; font-weight: 600; padding: 0 26px 0 14px; max-width: 160px; cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background-color 0.15s;
}
.search-form select:hover, .search-form select:focus { background-color: #E4EDEC; }
.search-form input { flex: 1; border: none; outline: none; padding: 0 14px; font-size: 14px; }
.search-form button { background: var(--gold); color: var(--charcoal); padding: 0 20px; font-size: 15px; }
.search-form button:hover { background: var(--gold-dark); }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hact {
  display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.9);
  padding: 7px 10px; border-radius: var(--r-sm); position: relative;
}
.hact:hover { background: rgba(255,255,255,0.1); }
.hact i { font-size: 17px; }
.hact-text { display: none; line-height: 1.15; }
@media (min-width: 1024px) { .hact-text { display: block; } }
.hact-text small { display: block; font-size: 10.5px; color: rgba(255,255,255,0.55); }
.hact-text strong { font-size: 12.5px; font-weight: 700; }
.cart-badge {
  position: absolute; top: 2px; left: 24px;
  background: var(--gold); color: var(--charcoal);
  font-size: 10px; font-weight: 800; min-width: 17px; height: 17px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.menu-toggle { color: var(--white); font-size: 19px; padding: 8px; display: block; }
@media (min-width: 1000px) { .menu-toggle { display: none; } }

/* Recherche mobile, sous l'en-tête */
.mobile-search { background: var(--teal-deep); padding: 0 16px 18px; position: relative; }
@media (min-width: 860px) { .mobile-search { display: none; } }
.mobile-search .search-form { height: 38px; }
.mobile-search .search-suggest { left: 16px; right: 16px; }

/* Autocomplete de recherche — panneau de suggestions en direct */
.search-suggest {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 220;
  background: var(--white); border-radius: var(--r); box-shadow: var(--sh-3); overflow: hidden;
  max-height: 380px; overflow-y: auto; border: 1px solid var(--border);
}
.search-suggest.show { display: block; }
@media (prefers-reduced-motion: no-preference) { .search-suggest.show { animation: fadeInUp 0.16s var(--ease-out, ease); } }
.ss-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--text-main);
  border-bottom: 1px solid var(--surface);
}
.ss-item:hover, .ss-item.active { background: var(--surface); }
.ss-item img, .ss-ph {
  width: 38px; height: 38px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px;
}
.ss-info { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.ss-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-price { font-size: 12px; font-weight: 700; color: var(--teal-deep); }
.ss-all {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px; font-size: 12.5px; font-weight: 700;
  color: var(--teal-deep); background: var(--surface); border-bottom: none;
}
.ss-all:hover, .ss-all.active { background: var(--surface-2); }
.ss-empty { padding: 16px 14px; font-size: 12.5px; color: var(--text-muted); text-align: center; }

/* ══════════════ BARRE RAPIDE + MÉGA-MENU CATÉGORIES (façon Temu) ══════════════
   Remplace l'ancienne .cat-bar (pastilles texte) : une rangée de liens
   rapides + un déclencheur "Catégories" qui ouvre un panneau à deux
   volets (liste à gauche, grille de produits à droite). Desktop
   uniquement — le mobile garde le tiroir hamburger existant. */
.quick-nav { position: relative; background: var(--white); border-bottom: 1px solid var(--border); display: none; }
@media (min-width: 1000px) { .quick-nav { display: block; } }
.quick-nav > .container { display: flex; align-items: center; gap: 2px; height: 44px; }
.quick-nav a, .cat-trigger {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 700; color: var(--text-main); background: none; border: none; cursor: pointer;
  font-family: inherit;
}
.quick-nav a:hover, .cat-trigger:hover { background: var(--surface); color: var(--teal-deep); }
.cat-trigger.active { background: var(--surface-2); color: var(--teal-deep); }
.cat-trigger i { font-size: 10px; transition: transform 0.18s var(--ease-out, ease); }
.cat-trigger.active i { transform: rotate(180deg); }

.mega-menu {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 302;
  background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--sh-3);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.22s var(--ease-out, ease), opacity 0.18s var(--ease-out, ease);
}
.mega-menu.open { max-height: 540px; opacity: 1; }
.mega-menu-inner { display: grid; grid-template-columns: 250px 1fr; gap: 22px; padding: 16px; max-height: 540px; }
.mega-cat-list { list-style: none; margin: 0; padding-right: 14px; border-right: 1px solid var(--border); overflow-y: auto; max-height: 508px; }
.mega-cat-list li a {
  display: block; padding: 10px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--text-main); border-radius: var(--r-sm);
}
.mega-cat-list li:hover a, .mega-cat-list li.active a { background: var(--surface); color: var(--teal-deep); font-weight: 700; }
.mega-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 12px; overflow-y: auto; align-content: start; max-height: 508px; }
.mega-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.mega-tile .ico {
  width: 68px; height: 68px; border-radius: 50%; background: var(--surface-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 20px;
}
.mega-tile .ico img { width: 100%; height: 100%; object-fit: cover; }
.mega-tile span {
  font-size: 11.5px; font-weight: 600; color: var(--text-main);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mega-tile:hover span { color: var(--teal-deep); }
.mega-empty { grid-column: 1 / -1; text-align: center; color: var(--text-muted); font-size: 13px; padding: 40px 0; }

.mega-menu-backdrop {
  position: fixed; inset: 0; background: rgba(16,33,31,0.45); z-index: 295;
  opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
}
.mega-menu-backdrop.open { opacity: 1; pointer-events: auto; }

.sidebar-list li a {
  display: flex; align-items: center; gap: 10px; padding: 10px 15px;
  font-size: 13.5px; color: var(--text-main); border-bottom: 1px solid var(--surface);
  transition: background 0.12s, padding-left 0.12s;
}
.sidebar-list li:last-child a { border-bottom: none; }
.sidebar-list li a:hover { background: var(--surface); color: var(--teal-deep); padding-left: 19px; }
.sidebar-list li a.active { background: var(--surface-2); color: var(--teal-deep); font-weight: 700; }
.sidebar-list i { color: var(--teal-light); width: 17px; text-align: center; font-size: 13px; }
.sidebar-list .count { margin-left: auto; font-size: 11px; color: var(--text-muted); }

/* Tiroir catégories mobile */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(16,33,31,0.5); z-index: 400;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 282px; max-width: 84vw;
  background: var(--white); z-index: 401; transform: translateX(-100%);
  transition: transform 0.22s ease; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  background: var(--teal-deep); color: var(--white); padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-head .brand-name { font-size: 18px; }
.drawer-head button { color: var(--white); font-size: 19px; }
.drawer .sidebar-list li a { padding: 13px 16px; }

/* ══════════════ CARROUSEL BANNIÈRE ══════════════ */
.hero-carousel {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(120deg, var(--teal-deep), var(--charcoal));
  min-height: 210px;
  display: none; /* masquée sur mobile — trop d'espace pris pour sa valeur, demande explicite */
}
@media (min-width: 700px) { .hero-carousel { display: block; min-height: 300px; } }
@media (min-width: 1000px) { .hero-carousel { min-height: 340px; } }
.hero-slide {
  display: none; position: relative; min-height: inherit;
  padding: 32px 24px; color: var(--white);
}
@media (min-width: 700px) { .hero-slide { padding: 48px 44px; } }
.hero-slide.active { display: flex; flex-direction: column; justify-content: center; }
.hero-slide::before {
  content: ''; position: absolute; top: -90px; right: -70px; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, rgba(242,194,122,0.22), transparent 70%);
  pointer-events: none;
}
.hero-slide img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.34;
}
.hero-content { position: relative; z-index: 2; max-width: 560px; }
.hero-eyebrow {
  display: inline-block; background: var(--gold); color: var(--charcoal);
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.hero-slide h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.7px; line-height: 1.15; margin-bottom: 10px; }
@media (min-width: 700px) { .hero-slide h2 { font-size: 36px; } }
.hero-slide p { color: rgba(255,255,255,0.78); font-size: 14px; margin-bottom: 20px; }
.hero-dots { position: absolute; bottom: 14px; left: 24px; display: flex; gap: 7px; z-index: 3; }
@media (min-width: 700px) { .hero-dots { left: 44px; } }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.2s; }
.hero-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.16);
  color: var(--white); display: none; align-items: center; justify-content: center;
}
@media (min-width: 700px) { .hero-arrow { display: flex; } }
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

/* ══════════════ BANDEAU CONFIANCE ══════════════ */
/* Masqué en mobile — prend de la place utile sans apporter grand-chose
   sur un petit écran (le client vient de voir la banniere+catégories
   juste au-dessus) ; réapparaît dès la tablette, comme .hero-carousel. */
.trust-strip { display: none; }
@media (min-width: 700px) {
  .trust-strip {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--border); border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden; margin-top: 16px;
  }
}
@media (min-width: 760px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
/* min-width:0 casse le piège classique de CSS Grid : sans lui, un
   texte non coupé (ex. "Payez en plusieurs fois") impose sa largeur
   intrinsèque à la piste 1fr qui le contient, élargissant toute la
   grille — et donc la page entière — au-delà du viewport mobile.
   Confirmé en mesurant document.body.scrollWidth (720px) contre
   clientWidth (375px) : débordement horizontal réel, pas un artefact. */
.trust-item { background: var(--white); padding: 14px 12px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.trust-item i { font-size: 19px; color: var(--teal-mid); flex-shrink: 0; }
.trust-item > div { min-width: 0; }
.trust-item strong { display: block; font-size: 12.5px; font-weight: 700; overflow-wrap: break-word; }
.trust-item span { font-size: 11px; color: var(--text-muted); overflow-wrap: break-word; }

/* ══════════════ SECTIONS ══════════════ */
.section { margin-top: 26px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 12px;
}
.section-head h2 { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
.section-head h2 i { color: var(--gold-dark); margin-right: 7px; }
.section-head a { font-size: 12.5px; font-weight: 700; color: var(--teal-mid); white-space: nowrap; }
.section-head a:hover { color: var(--teal-deep); }

.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }

/* Rail de catégories (mobile / accueil) */
.cat-rail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-tile {
  flex-shrink: 0; width: 92px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 8px; text-align: center;
}
.cat-tile:hover { border-color: var(--teal-light); box-shadow: var(--sh-1); }
.cat-tile .ico {
  width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  color: var(--teal-mid); font-size: 17px; overflow: hidden;
}
.cat-tile .ico img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile span { font-size: 11.5px; font-weight: 600; line-height: 1.25; display: block; }

/* ══════════════ GRILLE PRODUITS ══════════════ */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; transition: opacity 0.18s var(--ease-out, ease); }
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

.pcard {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: box-shadow 0.16s, transform 0.16s, border-color 0.16s;
}
.pcard:hover { box-shadow: var(--sh-2); transform: translateY(-3px); border-color: var(--border-strong); }
.pcard-img { aspect-ratio: 1/1; background: var(--surface); position: relative; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s, opacity 0.35s; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
/* Changement d'image au survol : la seconde image (galerie de la
   première variante, si elle diffère de l'image principale) est
   superposée en absolute, invisible au repos, et prend le dessus en
   fondu au survol — gratuit en requêtes (voir shopCatalogService). */
.pcard-img-hover { position: absolute; inset: 0; opacity: 0; }
.pcard:hover .pcard-img-hover { opacity: 1; }
.pcard:hover .pcard-img-main { opacity: 0; }
.pcard-img .ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--border-strong); font-size: 30px;
}
.pcard-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.badge {
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px;
  letter-spacing: 0.3px; text-transform: uppercase;
}
.badge-promo { background: var(--promo); color: var(--white); }
.badge-new { background: var(--teal-mid); color: var(--white); }
.badge-out { background: var(--red); color: var(--white); }
.badge-featured { background: var(--gold); color: var(--charcoal); }
.badge-bestseller { background: var(--charcoal, #1C2B2A); color: var(--white); display: flex; align-items: center; gap: 4px; }
.badge-bestseller i { color: #F97316; }
.badge-flash {
  background: linear-gradient(90deg, #DC2626, #EA580C);
  color: var(--white); display: flex; align-items: center; gap: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .badge-flash { animation: pulseRed 1.6s ease-in-out infinite; }
}

.pcard-body { padding: 10px 11px 12px; display: flex; flex-direction: column; flex: 1; }
.pcard-cat { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.pcard-name {
  font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--text-main);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 35px; margin-bottom: 6px;
}
.pcard-rating { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.pcard-rating .stars { color: var(--gold-dark); letter-spacing: -1px; }
.pcard-price { margin-top: auto; }
.price-now { font-size: 16px; font-weight: 800; color: var(--teal-deep); letter-spacing: -0.3px; }
.price-was { font-size: 11.5px; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.price-hint { font-size: 10.5px; color: var(--green); font-weight: 700; margin-top: 4px; display: block; }

/* Badge incitatif "payez en ligne" — pulse doucement pour attirer
   l'œil sur l'économie réelle, sans jamais changer le chiffre annoncé
   (purement une mise en forme, la remise vient de shopPricingService). */
.price-hint-wave {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(22,163,74,0.12); border-radius: 999px; padding: 3px 9px 3px 7px;
}
@media (prefers-reduced-motion: no-preference) {
  .price-hint-wave { animation: pulseGreen 2.4s ease-in-out infinite; }
}
.tier-hint {
  font-size: 10px; color: var(--text-muted); font-weight: 700; margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}
.tier-hint i { color: var(--gold-dark); font-size: 9px; }

/* ══════════════ VENTES FLASH ══════════════ */
.pcard-flash {
  border-color: #FCA5A5;
  box-shadow: 0 0 0 1px rgba(220,38,38,0.12);
}
.flash-countdown {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 5px;
  font-size: 10.5px; font-weight: 800; color: #DC2626;
  background: rgba(220,38,38,0.08); border-radius: 6px; padding: 2px 7px;
  font-variant-numeric: tabular-nums;
}
.flash-countdown-ended { opacity: 0.5; }
.flash-stock-bar {
  height: 5px; border-radius: 999px; background: #FEE2E2; margin-top: 6px; overflow: hidden;
}
.flash-stock-bar-fill {
  height: 100%; background: linear-gradient(90deg, #DC2626, #F97316);
  border-radius: 999px; transition: width 0.4s var(--ease-spring, ease);
}
.flash-stock-label { font-size: 10px; color: #DC2626; font-weight: 700; margin-top: 3px; }

/* Section mise en avant : fond dégradé + bordure, pour qu'une vente
   flash saute aux yeux avant même les coups de cœur (juste en dessous,
   voir index.html) — jamais un simple bloc parmi d'autres. */
.flash-hero-section { margin-top: 20px; }
.flash-hero-inner {
  background: linear-gradient(135deg, #FEF2F2 0%, #FFF7ED 100%);
  border: 1.5px solid #FECACA;
  border-radius: var(--r-lg, 16px);
  padding: 18px 16px 20px;
  position: relative;
  overflow: hidden;
}
.flash-hero-inner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at top right, rgba(220,38,38,0.10), transparent 60%);
}
.flash-hero-section .section-head { margin-bottom: 14px; position: relative; }
.flash-hero-section .section-head h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 20px; }
.flash-bolt-icon { color: #DC2626; }
@media (prefers-reduced-motion: no-preference) {
  .flash-bolt-icon { animation: bump 1.8s ease-in-out infinite; }
  .flash-hero-inner { animation: pulseRed 2.4s ease-in-out infinite; }
}
.flash-section-countdown {
  font-size: 12px; font-weight: 700; color: #DC2626;
  background: rgba(220,38,38,0.08); border-radius: 999px; padding: 3px 12px;
  font-variant-numeric: tabular-nums;
}

/* ══════════════ CADEAUX OFFERTS ══════════════ */
.gift-banner-row {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 10px;
}
.gift-banner-row i { font-size: 15px; }
.gift-banner-unlocked { background: rgba(22,163,74,0.1); color: var(--green, #16A34A); }
.gift-banner-progress { background: rgba(217,119,6,0.1); color: #B45309; }
@media (prefers-reduced-motion: no-preference) {
  .gift-banner-unlocked { animation: popIn 0.4s var(--ease-spring, ease); }
}
.cart-line-gift, .gift-free-tag {
  font-size: 11px; font-weight: 800; color: var(--green, #16A34A);
  background: rgba(22,163,74,0.1); border-radius: 6px; padding: 2px 8px; display: inline-block;
}
.cart-line-gift { margin-top: 4px; }

/* ══════════════ LIVRAISON GRATUITE ══════════════ */
.shipping-banner {
  background: rgba(15,110,99,0.06); border: 1px solid rgba(15,110,99,0.15);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 10px;
}
.shipping-banner-text { font-size: 12.5px; font-weight: 600; color: var(--teal-deep); margin-bottom: 7px; }
.shipping-bar { height: 6px; border-radius: 999px; background: rgba(15,110,99,0.12); overflow: hidden; }
.shipping-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--teal-mid), var(--teal-deep));
  border-radius: 999px; transition: width 0.5s var(--ease-spring, ease);
}
.shipping-banner-row {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--green, #16A34A); background: rgba(22,163,74,0.1);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 10px;
}

/* ══════════════ BOUTONS ══════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-sm); font-weight: 700; font-size: 14px; padding: 11px 20px;
  transition: filter 0.14s, background 0.14s, border-color 0.14s; text-align: center;
}
.btn-primary { background: var(--gold); color: var(--charcoal); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-dark { background: var(--teal-deep); color: var(--white); }
.btn-dark:hover { background: var(--teal-mid); }
.btn-outline { border: 1.5px solid var(--border-strong); color: var(--text-main); background: var(--white); }
.btn-outline:hover { border-color: var(--teal-mid); color: var(--teal-mid); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: 12.5px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ══════════════ FICHE PRODUIT ══════════════ */
.breadcrumb { font-size: 12px; color: var(--text-muted); padding: 14px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--teal-mid); }
.breadcrumb .sep { color: var(--border-strong); }

.pdp { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 16px 0 32px; }
.pdp > * { min-width: 0; } /* même piège de grille que .layout-sidebar > main, voir plus haut */
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; } }
@media (min-width: 1200px) { .pdp { grid-template-columns: 480px minmax(0, 1fr) 300px; } }

.gallery { position: relative; }
.gallery-main {
  aspect-ratio: 1/1; border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; background: var(--white);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--border-strong); font-size: 54px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs img {
  width: 62px; height: 62px; object-fit: cover; border-radius: var(--r-sm);
  border: 2px solid var(--border); cursor: pointer; flex-shrink: 0; background: var(--white);
}
.gallery-thumbs img:hover { border-color: var(--teal-light); }
.gallery-thumbs img.active { border-color: var(--gold); }

.pdp-title { font-size: 21px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; letter-spacing: -0.3px; }
@media (min-width: 700px) { .pdp-title { font-size: 25px; } }
.pdp-brand { font-size: 12px; font-weight: 700; color: var(--teal-mid); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.pdp-meta { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.pdp-rating { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-muted); }
.pdp-rating .stars { color: var(--gold-dark); }
.pdp-ref { font-size: 12px; color: var(--text-muted); }

.price-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 15px; margin-bottom: 16px; }
.price-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-main .amount { font-size: 30px; font-weight: 900; color: var(--teal-deep); letter-spacing: -1px; }
.price-main .strike { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.price-main .save-pill { background: #DCFCE7; color: var(--green); font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.price-alt { font-size: 12.5px; color: var(--text-muted); margin-top: 7px; }
.price-alt strong { color: var(--text-main); font-weight: 700; }

.opt-group { margin-bottom: 16px; }
.opt-label { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; display: block; }
.opt-label span { font-weight: 400; color: var(--text-muted); }
.variant-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip {
  border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); padding: 8px 14px;
  font-size: 13px; font-weight: 600; background: var(--white); position: relative;
}
.vchip:hover { border-color: var(--teal-mid); }
.vchip.active { border-color: var(--teal-deep); background: var(--surface-2); color: var(--teal-deep); }
.vchip.disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.vchip-with-thumb { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 6px; }
.vchip-thumb { width: 26px; height: 26px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }

.qty-box { display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; }
.qty-box button { width: 38px; height: 38px; font-size: 17px; font-weight: 700; color: var(--teal-deep); }
.qty-box button:hover { background: var(--surface); }
.qty-box input { width: 52px; height: 38px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-weight: 700; outline: none; }

.stock-line { font-size: 13px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; width: fit-content; }
.stock-line.ok { color: var(--green); }
.stock-line.low {
  color: var(--amber); background: #FFFBEB; padding: 6px 12px; border-radius: 999px;
  animation: pulseYellow 1.8s infinite;
}
.stock-line.out { color: var(--red); }

/* ── Urgence (voir urgency.js) — éléments d'affichage, jamais montrés
   sur un produit réellement en rupture ── */
.urgency-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.urgency-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 6px 11px; border-radius: 999px;
}
.urgency-chip.viewers { background: #FFF7ED; color: var(--promo); }
.urgency-chip.timer { background: #FEF2F2; color: var(--red); }
.urgency-chip.timer strong { font-variant-numeric: tabular-nums; }
.urgency-chip i { font-size: 11px; }

/* Encart d'achat (colonne de droite en grand écran) */
.buy-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
@media (min-width: 1200px) { .buy-box { position: sticky; top: 76px; } }
.buy-box .bb-price { font-size: 24px; font-weight: 900; color: var(--teal-deep); letter-spacing: -0.6px; }
.buy-box .bb-alt { font-size: 12px; color: var(--text-muted); margin: 4px 0 12px; }
.buy-box .bb-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-muted); padding: 7px 0; }
.buy-box .bb-row i { color: var(--teal-mid); margin-top: 2px; width: 15px; text-align: center; }
.buy-box .bb-actions { display: flex; flex-direction: column; gap: 9px; margin: 14px 0 12px; }

.pdp-tabs { border-bottom: 1px solid var(--border); display: flex; gap: 3px; margin-bottom: 18px; overflow-x: auto; }
.pdp-tab { padding: 11px 16px; font-size: 13.5px; font-weight: 700; color: var(--text-muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.pdp-tab.active { color: var(--teal-deep); border-bottom-color: var(--teal-deep); }
.pdp-panel { font-size: 14px; line-height: 1.75; color: var(--text-main); }
.pdp-panel p { margin-bottom: 12px; }

/* Barre d'achat collante — mobile uniquement, sur la fiche produit */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 9px 14px; display: flex; gap: 9px; align-items: center;
  box-shadow: 0 -3px 16px rgba(16,33,31,0.10);
}
@media (min-width: 900px) { .buybar { display: none; } }
/* Seules les pages qui affichent réellement la barre réservent la place */
body.has-buybar { padding-bottom: 66px; }
@media (min-width: 900px) { body.has-buybar { padding-bottom: 0; } }

/* ══════════════ PANIER / TUNNEL ══════════════ */
.two-col { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.two-col > * { min-width: 0; } /* même piège de grille que .layout-sidebar > main, voir plus haut */
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0,1fr) 350px; } }
.side-sticky { position: static; }
@media (min-width: 960px) { .side-sticky { position: sticky; top: 76px; } }

.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: none; }
.cart-line img, .cart-line .ph {
  width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm);
  background: var(--surface); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--border-strong);
}
.cart-line-main { flex: 1; min-width: 0; }
.cart-line-name { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.cart-line-price { font-size: 14px; font-weight: 800; color: var(--teal-deep); }
.cart-line-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; gap: 10px; }
.link-danger { color: var(--red); font-size: 12.5px; font-weight: 600; }

.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; color: var(--text-muted); }
.sum-row.strong { color: var(--text-main); font-weight: 700; }
.sum-row.save { color: var(--green); font-weight: 700; }
.sum-row.total { font-size: 18px; font-weight: 900; color: var(--ink); border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }
.sum-row.due { color: var(--teal-deep); font-weight: 800; font-size: 14.5px; }

/* Étapes du tunnel */
.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 22px 0 24px; }
.step { display: flex; align-items: center; gap: 9px; }
.step .num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--white);
  border: 2px solid var(--border-strong); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
  flex-shrink: 0;
}
.step.active .num { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.step.done .num { background: var(--green); border-color: var(--green); color: var(--white); }
.step .lbl { font-size: 12.5px; font-weight: 700; color: var(--text-muted); display: none; }
@media (min-width: 620px) { .step .lbl { display: block; } }
.step.active .lbl { color: var(--ink); }
.step-line { width: 30px; height: 2px; background: var(--border-strong); margin: 0 8px; }
@media (min-width: 620px) { .step-line { width: 56px; } }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 11px 13px; outline: none; background: var(--white); transition: border-color 0.14s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-mid); }
.field .hint { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }
.field .err { font-size: 11.5px; color: var(--red); margin-top: 5px; font-weight: 600; }

.ac-wrap { position: relative; }
.ac-wrap input:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  background: var(--white); border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  max-height: 230px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.14); display: none;
}
.ac-list.open { display: block; }
.ac-item { padding: 10px 13px; font-size: 13.5px; cursor: pointer; }
.ac-item:hover, .ac-item.active { background: var(--surface); }
.ac-item.empty { color: var(--text-muted); cursor: default; }
.ac-item.empty:hover { background: none; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.check-row input { width: auto; }

.option-card {
  border: 1.5px solid var(--border-strong); border-radius: var(--r); padding: 14px;
  margin-bottom: 10px; cursor: pointer; background: var(--white); transition: border-color 0.14s, background 0.14s;
}
.option-card:hover { border-color: var(--teal-light); }
.option-card.selected { border-color: var(--teal-deep); background: var(--surface); }
.option-card .oc-head { display: flex; align-items: flex-start; gap: 11px; }
.option-card .radio {
  width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--border-strong);
  flex-shrink: 0; margin-top: 1px; transition: all 0.14s;
}
.option-card.selected .radio { border-color: var(--teal-deep); border-width: 6px; }
.option-card .oc-title { font-size: 14px; font-weight: 700; }
.option-card .oc-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.option-card .oc-amount { margin-left: auto; font-size: 16px; font-weight: 800; color: var(--teal-deep); white-space: nowrap; }
.option-card .oc-extra { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.pill-tag { display: inline-block; background: var(--green); color: var(--white); font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; margin-left: 7px; text-transform: uppercase; letter-spacing: 0.4px; }

/* ══════════════ ÉTATS ══════════════ */
.state { text-align: center; padding: 56px 20px; }
.state i.big { font-size: 46px; color: var(--border-strong); margin-bottom: 14px; display: block; }
.state h2 { font-size: 19px; margin-bottom: 8px; }
.state p { color: var(--text-muted); margin-bottom: 18px; }
.spinner {
  width: 38px; height: 38px; border: 3.5px solid var(--surface-2); border-top-color: var(--teal-deep);
  border-radius: 50%; animation: spin 0.75s linear infinite; margin: 0 auto 14px;
}
/* ══════════════ ANIMATIONS ══════════════
   Les @keyframes (fadeInUp, bump, popIn, checkPop, shimmer, spin)
   viennent de /css/tokens.css, chargé avant ce fichier — ne restent ici
   que les règles qui les APPLIQUENT à des sélecteurs propres à la
   boutique. */
@media (prefers-reduced-motion: no-preference) {
  .product-grid .pcard { animation: fadeInUp 0.36s var(--ease-out) backwards; }
  .product-grid .pcard:nth-child(1) { animation-delay: 0.02s; } .product-grid .pcard:nth-child(2) { animation-delay: 0.06s; }
  .product-grid .pcard:nth-child(3) { animation-delay: 0.10s; } .product-grid .pcard:nth-child(4) { animation-delay: 0.14s; }
  .product-grid .pcard:nth-child(5) { animation-delay: 0.18s; } .product-grid .pcard:nth-child(6) { animation-delay: 0.22s; }
  .product-grid .pcard:nth-child(n+7) { animation-delay: 0.26s; }

  .cat-tile, .trust-item, .cart-line, .option-card { animation: fadeInUp 0.3s var(--ease-out) backwards; }

  .cart-badge.bump { animation: bump 0.45s var(--ease-spring); }
  .toast.show { animation: popIn 0.22s var(--ease-out); }
  .state i.big.fa-circle-check { animation: checkPop 0.45s var(--ease-spring); }

  body { animation: fadeInUp 0.25s var(--ease-out); }
}

.btn { transition: filter 0.14s, background 0.14s, border-color 0.14s, transform 0.1s; }
.btn:active { transform: scale(0.97); }
.pcard-img img { will-change: transform; }
.gallery-thumbs img { transition: border-color 0.15s, transform 0.15s; }
.gallery-thumbs img:hover { transform: translateY(-2px); }
.vchip { transition: border-color 0.14s, background 0.14s, transform 0.1s; }
.vchip:active:not(.disabled) { transform: scale(0.96); }
.qty-box button { transition: background 0.12s; }
.cat-tile, .trust-item { transition: transform 0.16s, box-shadow 0.16s; }
.cat-tile:hover { transform: translateY(-3px); }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-sm); }

.status-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status-chip.ok { background: #DCFCE7; color: #15803D; }
.status-chip.wait { background: #FEF3C7; color: #92400E; }
.status-chip.bad { background: #FEE2E2; color: #B91C1C; }
.status-chip.info { background: #DBEAFE; color: #1D4ED8; }

/* ══════════════ PIED DE PAGE ══════════════ */
.shop-footer { background: var(--charcoal); color: rgba(255,255,255,0.66); margin-top: 40px; }

/* Bandeau de confiance — arguments réels (rien de fabriqué, à la
   différence du module d'urgence) : ce que la boutique fait vraiment.
   Cliquable : chaque argument renvoie vers la page qui le prouve. */
.footer-trust {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
}
@media (min-width: 760px) { .footer-trust { grid-template-columns: repeat(4, 1fr); } }
.footer-trust-item {
  display: flex; align-items: center; gap: 11px; padding: 18px 20px; min-width: 0;
  border-right: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06);
  color: inherit; text-decoration: none; transition: background 0.15s;
}
.footer-trust-item:hover { background: rgba(255,255,255,0.04); }
@media (min-width: 760px) { .footer-trust-item:nth-child(4) { border-right: none; } .footer-trust-item { border-bottom: none; } }
.footer-trust-item i {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(242,194,122,0.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.footer-trust-item > div { min-width: 0; }
.footer-trust-item strong { display: block; font-size: 12.5px; color: var(--white); font-weight: 700; overflow-wrap: break-word; }
.footer-trust-item span { font-size: 11.5px; color: rgba(255,255,255,0.5); overflow-wrap: break-word; }

/* padding-top/bottom seulement : .footer-top porte aussi la classe
   .container, dont le padding horizontal (16px) ne doit surtout pas
   être écrasé — un shorthand "30px 0 24px" mettait le padding gauche/
   droite à 0 et collait tout le contenu du pied de page aux bords sur
   mobile (BRIZPRIX, Acheter, Aide, badges de paiement). */
.footer-top { padding-top: 30px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; margin-bottom: 22px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; } }
.footer-grid h4 { color: var(--white); font-size: 12px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.footer-grid a { display: block; padding: 4px 0; font-size: 13px; color: rgba(255,255,255,0.62); }
.footer-grid a:hover { color: var(--gold); }
.footer-about p { font-size: 13px; line-height: 1.65; margin: 10px 0 14px; }

/* "Acheter" / "Aide & garanties" — menus déroulants sur mobile (façon
   Temu : le pied de page mobile est fait de sections repliables plutôt
   que tout étalé verticalement), toujours dépliés sur desktop. */
.footer-col-head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; padding: 14px 0; margin: 0; cursor: pointer; text-align: left;
  color: var(--white); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800;
  font-family: inherit; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col-head i { font-size: 11px; color: rgba(255,255,255,0.45); transition: transform 0.2s var(--ease-out, ease); }
.footer-col-head[aria-expanded="true"] i { transform: rotate(180deg); }
.footer-col-body { display: none; padding: 4px 0 6px; }
.footer-col-body.open { display: block; }
@media (min-width: 760px) {
  .footer-col-head { cursor: default; padding: 0 0 12px; border-bottom: none; pointer-events: none; }
  .footer-col-head i { display: none; }
  .footer-col-body { display: block !important; padding: 0; }
}

/* "Nos engagements" (bandeau de confiance) — même mécanique, mais son
   bouton n'a pas de rôle de titre de colonne sur desktop : la grille de
   4 cartes s'affiche telle quelle, sans intitulé au-dessus. */
.footer-trust-wrap .footer-trust-toggle { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-trust-wrap .footer-col-body { padding: 0; }
@media (min-width: 760px) {
  .footer-trust-toggle { display: none; }
}
.footer-social { display: flex; gap: 9px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 15px; padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.footer-social a:hover { background: var(--gold); color: var(--charcoal); transform: translateY(-2px); }

/* Moyens de paiement — badges façon logo (couleur + typo de marque)
   plutôt qu'un simple carré de couleur, dans l'esprit de la ligne
   "Nous acceptons" de Temu, avec les moyens réellement acceptés. */
.footer-pay-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: rgba(255,255,255,0.45); margin-bottom: 10px; }
.footer-pay { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }

/* Moyens de paiement — même gabarit pour les trois badges (vrais logos
   MTN/Orange fournis + badge "à la livraison"), pour qu'aucun ne
   paraisse plus important qu'un autre. mtn.png a été repivoté à plat
   (le fichier source était un badge vertical) avant d'être déposé dans
   public/shop/img/payments/. */
.pay-badge {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 108px; height: 42px; padding: 6px 10px; border-radius: 8px;
  background: var(--white); box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--sh-1);
}
.pay-badge img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.pay-badge-cash {
  background: var(--white); gap: 6px; font-size: 11px; font-weight: 800; color: var(--charcoal);
}
.pay-badge-cash i { font-size: 14px; color: var(--teal-deep); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09); padding-top: 15px; padding-bottom: 15px;
  font-size: 12px; color: rgba(255,255,255,0.58);
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center;
}

/* ══════════════ FLOTTANT WHATSAPP ══════════════ */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 260;
  width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 27px;
  box-shadow: var(--sh-3);
}
.wa-float:hover { transform: scale(1.06); }
body.has-buybar .wa-float { bottom: 78px; }
@media (min-width: 900px) { body.has-buybar .wa-float { bottom: 16px; } }

/* ══════════════ TOAST ══════════════ */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(14px);
  background: var(--charcoal); color: var(--white); padding: 12px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 600; z-index: 500; box-shadow: var(--sh-3);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.has-buybar .toast { bottom: 80px; }

/* ══════════════ TOAST "ACHAT RÉCENT" (voir urgency.js) ══════════════ */
.fomo-toast {
  position: fixed; left: 16px; bottom: 16px; z-index: 240;
  display: flex; align-items: center; gap: 10px; max-width: 300px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 14px; box-shadow: var(--sh-3); color: var(--text-main); text-decoration: none;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.25s var(--ease-out, ease), transform 0.25s var(--ease-out, ease);
}
.fomo-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fomo-toast i { color: var(--green); font-size: 16px; flex-shrink: 0; }
.fomo-toast strong { display: block; font-size: 12px; font-weight: 800; color: var(--ink); }
.fomo-toast span { font-size: 11.5px; color: var(--text-muted); line-height: 1.35; }
/* Mobile : carte compacte à gauche plutôt qu'une bannière pleine
   largeur — une seule ligne tronquée, pas le paragraphe complet. */
@media (max-width: 600px) {
  .fomo-toast {
    left: 8px; right: auto; bottom: 70px; max-width: 240px;
    padding: 7px 10px; border-radius: 10px; gap: 7px;
  }
  .fomo-toast i { font-size: 13px; }
  .fomo-toast strong { font-size: 10.5px; }
  .fomo-toast span { font-size: 10px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 175px; }
}

/* ══════════════ DIVERS ══════════════ */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px; position: sticky; top: 62px; z-index: 40;
  background: var(--surface); padding: 10px 0; transition: box-shadow 0.2s, padding 0.2s;
}
@media (min-width: 1000px) { .toolbar { top: 76px; } }
.toolbar.condensed { padding: 7px 14px; margin: 0 -14px 14px; box-shadow: var(--sh-2); border-radius: 0 0 var(--r) var(--r); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { padding: 6px 13px; border-radius: 999px; border: 1.5px solid var(--border-strong); font-size: 12.5px; font-weight: 600; background: var(--white); }
.chip:hover { border-color: var(--teal-light); }
.chip.active { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
select.sort { border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); padding: 8px 12px; font-size: 13px; background: var(--white); }
.auth-wrap { max-width: 430px; margin: 34px auto; padding: 0 16px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; }
.card h1 { font-size: 20px; font-weight: 800; color: var(--teal-deep); margin-bottom: 5px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
