/* ════════════════════════════════════════════════════════════════════
   STYLE GLOBAL — Plazza Cosmétique (site public)
   Même charte que l'app de gestion : primaire #C62179, police Nunito.
   Inclus tel quel dans <style> par includes/header.php.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --primary: #C62179;
  --primary-dark: #9c1c60;
  --accent: #8a4a3a;      /* bordeaux/brun — dégradés boutons, cohérent avec l'app */
  --bg: #FBF9FE;
  --bg-soft: #F5F2FE;
  --surface: #FFFFFF;
  --border: #E4DEF3;
  --text: #16112B;
  --text-muted: #5B5478;
  --text-dim: #ADA8C8;
  --green: #1FA971;
  --red: #E0393E;
  --orange: #D97706;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 18px rgba(80, 30, 60, 0.08);
  --shadow-lg: 0 12px 40px rgba(80, 30, 60, 0.14);
  --max-width: 1240px;
}

* { box-sizing: border-box; }
/* Filet de sécurité : un enfant qui déborde même légèrement (texte long,
   valeur non prévue...) ne doit jamais faire apparaître une barre de
   défilement horizontale sur toute la page — seuls les conteneurs dédiés
   (.cat-strip, .shelf-scroll, .banner-rail...) défilent, jamais body. */
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { font-weight: 800; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ── Boutons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; border: none; cursor: pointer;
  font-weight: 700; font-size: 14.5px; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 6px 18px rgba(198,33,121,.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(198,33,121,.36); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: var(--bg-soft); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Header / Nav ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251,249,254,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo .logo-img { height: 36px; width: auto; display: block; }
/* Recherche au centre du header — priorité à la découverte de produits,
   plutôt qu'une nav texte classique (voir cat-strip pour la navigation). */
.header-search { display: flex; align-items: center; flex: 1; max-width: 620px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 0 6px 0 16px; transition: border-color .15s; }
.header-search:focus-within { border-color: var(--primary); }
.header-search svg { opacity: .45; flex-shrink: 0; }
.header-search input { flex: 1; border: none; background: transparent; padding: 12px 10px; min-width: 0; }
.header-search input:focus { outline: none; }
.header-search button { background: var(--primary); color: #fff; border: none; padding: 10px 18px; border-radius: 9px; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.header-search button:hover { background: var(--primary-dark); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--text); border: none; cursor: pointer; transition: background .15s;
}
.icon-btn:hover { background: var(--border); }
.cart-badge {
  position: absolute; top: -4px; right: -4px; background: var(--primary); color: #fff;
  font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg);
}
.burger { display: none; }

/* ── Bandeau catégories (sous le header, toujours visible) ──────────── */
.cat-strip-wrap { border-top: 1px solid var(--border); background: var(--surface); }
.cat-strip { display: flex; gap: 4px; overflow-x: auto; padding: 10px 20px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip-item { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.cat-strip-item svg { opacity: .75; }
.cat-strip-item:hover, .cat-strip-item.active { background: var(--bg-soft); color: var(--primary); }

/* ── Bandeau promo (accueil) — compact, jamais un gros pavé marketing ── */
.promo-banner {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg); padding: 32px 36px; margin: 20px 0 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: #fff;
}
.promo-banner h2 { color: #fff; font-size: 22px; margin: 0 0 4px; }
.promo-banner p { color: rgba(255,255,255,.85); margin: 0; font-size: 14px; }
.promo-banner .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.promo-banner .btn-primary:hover { background: #fbe9f1; }

/* ── Sections ────────────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section-head h2 { font-size: 26px; margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 14.5px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.2px; font-size: 12px; font-weight: 800; color: var(--primary); }

/* ── Catégories ──────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 14px; text-align: center; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.cat-card .name { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.cat-card .count { font-size: 11.5px; color: var(--text-dim); }

/* ── Carrousel bannières 16:9 (accueil) — pleine largeur, responsive ─── */
/* Plafonné pour ne pas dominer tout l'écran sur grand affichage — reste
   pleine largeur naturellement sur petit écran (le container est déjà plus
   étroit que ce plafond en dessous de ~900px). */
.banner-carousel { position: relative; max-width: 860px; margin: 0 auto; }
.banner-rail {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius-lg); -ms-overflow-style: none; scrollbar-width: none;
}
.banner-rail::-webkit-scrollbar { display: none; }
.banner-slot {
  flex: 0 0 100%; width: 100%; aspect-ratio: 16/9; scroll-snap-align: start; scroll-snap-stop: always;
  background: var(--bg-soft); color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.banner-slot + .banner-slot { border-left: 1px solid var(--border); }
.banner-slot span { font-size: 14px; font-weight: 700; }
.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.9); color: var(--text); box-shadow: var(--shadow); cursor: pointer;
  display: grid; place-items: center; font-size: 20px; z-index: 2;
}
.banner-nav.prev { left: 14px; }
.banner-nav.next { right: 14px; }
.banner-nav:hover { background: #fff; color: var(--primary); }
.banner-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.banner-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; }
.banner-dots button.active { background: var(--primary); width: 22px; border-radius: 4px; }

/* ── Rail "vedette" 9:16 (accueil) ──────────────────────────────────── */
.feature-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin; }
.feature-rail::-webkit-scrollbar { height: 6px; }
.feature-rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.feature-card {
  flex: 0 0 190px; aspect-ratio: 9/16; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  scroll-snap-align: start; background: var(--bg-soft); box-shadow: var(--shadow); transition: transform .15s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card img { width: 100%; height: 100%; object-fit: cover; }
.feature-card-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-dim); background: linear-gradient(160deg, var(--bg-soft), #f3e0ea); }
.feature-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px 14px;
  background: linear-gradient(0deg, rgba(15,5,15,.82) 10%, transparent 100%); color: #fff;
}
.feature-overlay .name { font-weight: 800; font-size: 13px; line-height: 1.3; margin-bottom: 3px; }
.feature-overlay .price { font-weight: 700; font-size: 12.5px; color: #ffd6ec; }

/* ── Étagères horizontales (accueil, par catégorie) ─────────────────── */
.shelf { padding-top: 12px; padding-bottom: 12px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.shelf-head h2 { font-size: 20px; margin: 0; }
.shelf-nav { display: flex; gap: 6px; }
.shelf-nav button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; display: grid; place-items: center; font-size: 17px; color: var(--text-muted); line-height: 1;
}
.shelf-nav button:hover { border-color: var(--primary); color: var(--primary); }
.shelf-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: thin; }
.shelf-scroll::-webkit-scrollbar { height: 6px; }
.shelf-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.shelf-item { flex: 0 0 210px; scroll-snap-align: start; }
.shelf-item .prod-card { height: 100%; }

/* ── Grille produits ─────────────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.prod-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prod-thumb { position: relative; aspect-ratio: 1/1; background: var(--bg-soft); display: grid; place-items: center; color: var(--text-dim); overflow: hidden; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* ── Promo (voir promo_price(), includes/functions.php) ─────────────── */
.promo-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 20px; letter-spacing: .2px;
}
.prod-price-group { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.prod-price--promo { color: var(--red); }
.prod-price-old { font-size: 12px; color: var(--text-dim); text-decoration: line-through; }
.prod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-cat { font-size: 11px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.prod-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.prod-price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; gap: 8px; }
.prod-price { font-weight: 800; color: var(--primary); font-size: 16px; }
.add-btn {
  width: 38px; height: 38px; border-radius: 10px; border: none; background: var(--bg-soft);
  color: var(--primary); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s;
}
.add-btn:hover { background: var(--primary); color: #fff; }

/* ── Filtres boutique ────────────────────────────────────────────── */
/* Desktop : sidebar classique, toujours visible. Sur mobile (voir media
   queries plus bas), le MÊME élément .filters devient un panneau plein
   écran ouvert par le bouton "Filtres" — pas juste la sidebar rétrécie. */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.filters h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim); margin-bottom: 10px; }
.filters-panel-head { display: none; }
.filter-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.filter-list a { padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); display: flex; justify-content: space-between; }
.filter-list a:hover { background: var(--bg-soft); }
.filter-list a.active { background: var(--primary); color: #fff; }
.filter-list a.active span { color: rgba(255,255,255,.8); }
.filters-backdrop { display: none; }
.mobile-filter-btn { display: none; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.toolbar-row2 { display: flex; align-items: center; gap: 10px; }
.search-box { position: relative; flex: 1; max-width: 360px; }
.search-box input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .5; }
.sort-form { flex-shrink: 0; }
select.sort-select { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; }

/* ── Pagination ──────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-weight: 700; font-size: 13.5px; border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Fiche produit ───────────────────────────────────────────────── */
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pdp-gallery-main { aspect-ratio: 1/1; border-radius: var(--radius-lg); background: var(--bg-soft); display: grid; place-items: center; color: var(--text-dim); overflow: hidden; margin-bottom: 12px; }
.pdp-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 10px; }
.pdp-thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.pdp-thumbs img.active { border-color: var(--primary); }
.pdp-title { font-size: 28px; }
.pdp-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 10px 0 18px; }
.pdp-price { font-size: 28px; font-weight: 800; color: var(--primary); margin: 0; }
.pdp-price-old { font-size: 16px; color: var(--text-dim); text-decoration: line-through; }
.pdp-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 20px; }
.pdp-stock.out { color: var(--red); }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-stepper button { width: 40px; height: 40px; border: none; background: var(--bg-soft); font-size: 18px; cursor: pointer; }
.qty-stepper input { width: 50px; text-align: center; border: none; height: 40px; -moz-appearance: textfield; }
.variant-select { margin-bottom: 20px; }
.variant-select label { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 8px; }
.variant-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip { padding: 8px 16px; border-radius: 20px; border: 1.5px solid var(--border); font-weight: 700; font-size: 13px; cursor: pointer; background: var(--surface); }
.variant-chip.active { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ── Panier ──────────────────────────────────────────────────────── */
/* Structure en deux blocs empilables (top: image+infos / bottom: qté+total)
   — flex plutôt que grid-template-areas, pour rester fiable quel que soit
   l'écran sans avoir à faire correspondre un nombre fixe de zones nommées. */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-line { padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-line-top { display: flex; gap: 14px; align-items: flex-start; }
.cart-line-media { width: 72px; height: 72px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.cart-line-media.ph { display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 700; }
.cart-line-name a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-unit { font-size: 12px; color: var(--primary); font-weight: 700; margin-top: 2px; }
.cart-line-price { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.cart-line-bottom { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 10px; }
.cart-line-qty { width: 64px; text-align: center; padding: 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.cart-line-total { font-weight: 800; min-width: 90px; text-align: right; }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 132px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; }
.summary-row.total { font-weight: 800; font-size: 18px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }
.remove-link { color: var(--red); font-size: 12.5px; font-weight: 700; cursor: pointer; background: none; border: none; padding: 0; margin-top: 6px; }

/* ── Formulaires ─────────────────────────────────────────────────── */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 460px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft);
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.alert-error { background: #fdecec; color: var(--red); border: 1px solid #f6c9c9; }
.alert-success { background: #e8f8f1; color: var(--green); border: 1px solid #b7e8d1; }
.pay-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; }
.pay-option.active { border-color: var(--primary); background: #fdf1f7; }
.pay-option input { margin: 0; }

/* ── Badges statut commande ──────────────────────────────────────── */
.badge { display: inline-flex; padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 800; }
.badge-orange { background: #fef3e2; color: var(--orange); }
.badge-green { background: #e8f8f1; color: var(--green); }
.badge-red { background: #fdecec; color: var(--red); }
.badge-muted { background: var(--bg-soft); color: var(--text-muted); }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { background: #1c1027; color: #d9cee3; padding: 56px 0 28px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.site-footer a, .site-footer p { color: #b8abc4; font-size: 13.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; text-align: center; font-size: 12.5px; color: #8a7c96; }

/* ── Empty state ─────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .emoji { display: flex; justify-content: center; color: var(--text-dim); margin-bottom: 14px; }
.thumb-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--text-dim); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .promo-banner { text-align: center; justify-content: center; }
  .shop-layout { grid-template-columns: 1fr; }
  .pdp-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }

  /* La sidebar catégories devient un panneau plein écran (comme le menu
     mobile), ouvert par le bouton "Filtres" — jamais un bloc empilé
     au-dessus de la grille, illisible et encombrant sur téléphone. */
  .filters {
    position: fixed; top: 0; right: 0; bottom: 0; width: 84%; max-width: 340px;
    border-radius: 0; border: none; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 150;
  }
  .filters.open { transform: translateX(0); }
  .filters-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .filters-panel-head h4 { margin: 0; }
  .filters-backdrop { position: fixed; inset: 0; background: rgba(20,10,25,.5); z-index: 140; }
  .filters-backdrop.open { display: block; }
  .mobile-filter-btn { display: inline-flex; }

  /* Toolbar : recherche pleine largeur, puis Filtres + Tri côte à côte,
     plutôt que tout serré sur une seule ligne. */
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .toolbar-row2 { width: 100%; }
  .toolbar-row2 .sort-form, .toolbar-row2 .mobile-filter-btn { flex: 1; }
  .toolbar-row2 select.sort-select { width: 100%; }
}
@media (max-width: 720px) {
  .header-search { display: none; }
  .burger { display: grid; }
  .cart-line-media { width: 56px; height: 56px; }
  .cart-line-bottom { justify-content: space-between; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .site-footer ul { align-items: center; }
}
@media (max-width: 480px) {
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .section { padding: 32px 0; }
  .logo .logo-img { height: 28px; }
  .promo-banner { padding: 28px 20px; }
  .feature-card { flex-basis: 148px; }
  .shelf-item { flex-basis: 168px; }
  .shelf-nav { display: none; }
  .banner-nav { width: 34px; height: 34px; font-size: 16px; }
  .cart-line-top { gap: 10px; }
  .cart-line-name a { white-space: normal; }
}

/* ── Popup "Ajouter au panier" (Nombre + Unité, façon Caisse Boutique) ── */
.atc-modal { position: fixed; inset: 0; background: rgba(20,10,25,.5); z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.atc-modal.open { display: flex; }
.atc-modal-panel { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 340px; padding: 20px; box-shadow: var(--shadow-lg); }
.atc-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.atc-modal-title { font-weight: 800; font-size: 15px; line-height: 1.3; }
.atc-modal-price { color: var(--primary); font-weight: 700; font-size: 13.5px; margin-top: 2px; }
.atc-modal-total { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.atc-modal-foot { display: flex; gap: 8px; margin-top: 18px; }
.atc-modal-foot .btn { flex: 1; }

/* ── Menu mobile ─────────────────────────────────────────────────── */
.mobile-menu { position: fixed; inset: 0; background: rgba(20,10,25,.5); z-index: 100; display: none; }
.mobile-menu.open { display: block; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; width: 78%; max-width: 320px; height: 100%; background: var(--surface);
  padding: 24px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-lg);
}
.mobile-menu-panel a { padding: 14px 10px; font-weight: 700; border-bottom: 1px solid var(--border); }
