/* ═══════════ Mimimsn — design marketplace ═══════════ */
:root {
  --brand: #f25c05;
  --brand-dark: #d14f04;
  --brand-soft: #fff1e8;
  --navy: #102a43;
  --navy-2: #243b53;
  --ink: #1f2933;
  --muted: #627d98;
  --bg: #faf8f5;
  --card: #ffffff;
  --line: #e8e2da;
  --success: #0c8b51;
  --success-dark: #0a7444;
  --danger: #d64545;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 42, 67, 0.07), 0 6px 18px rgba(16, 42, 67, 0.06);
  --shadow-lg: 0 8px 30px rgba(16, 42, 67, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 860px; }

/* ─── Header ─── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 0.7rem; padding-bottom: 0.7rem;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 0.45rem; font-weight: 800; font-size: 1.35rem; }
.logo-mark {
  width: 2.1rem; height: 2.1rem; border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--brand), #ff8c42);
  color: #fff; display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 800;
}
.logo-text { color: var(--navy); letter-spacing: -0.5px; }

.search {
  flex: 1; min-width: 200px; display: flex;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px;
  overflow: hidden; transition: border-color 0.15s;
}
.search:focus-within { border-color: var(--brand); }
.search input {
  flex: 1; border: 0; background: transparent; padding: 0.6rem 1.1rem;
  font: inherit; font-size: 0.95rem; outline: none; min-width: 0;
}
.search button {
  border: 0; background: var(--brand); color: #fff;
  padding: 0 1.1rem; cursor: pointer; display: grid; place-items: center;
}
.header-nav { display: flex; align-items: center; gap: 0.4rem; }
.nav-link {
  padding: 0.45rem 0.8rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  color: var(--navy-2);
}
.nav-link:hover { background: var(--bg); }
.nav-link-sell { color: var(--brand); }
.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 999px;
  background: var(--navy); color: #fff;
}
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--brand); color: #fff; font-size: 0.7rem; font-weight: 800;
  min-width: 1.15rem; height: 1.15rem; border-radius: 999px;
  display: grid; place-items: center; padding: 0 0.25rem;
  border: 2px solid #fff;
}

/* ─── Boutons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 0; cursor: pointer; font: inherit; font-weight: 700;
  padding: 0.6rem 1.2rem; border-radius: 999px; font-size: 0.95rem;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(242, 92, 5, 0.35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-success { background: var(--success); color: #fff; box-shadow: 0 4px 14px rgba(12, 139, 81, 0.3); }
.btn-success:hover { background: var(--success-dark); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-light { background: rgba(255,255,255,0.14); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-add {
  width: 100%; background: var(--brand-soft); color: var(--brand-dark);
  font-size: 0.88rem; padding: 0.55rem;
}
.btn-add:hover:not(:disabled) { background: var(--brand); color: #fff; }
.btn-add:disabled { opacity: 0.55; cursor: not-allowed; }

/* ─── Héros ─── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #33536f 100%);
  color: #fff; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center;
  padding-top: 3.5rem; padding-bottom: 3.5rem;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1rem;
}
/* Icônes de l'interface (voir views/_icons.html et public/js/icons.js).
   Elles remplacent les anciens emoji : taille proportionnelle au texte,
   alignées sur la ligne de base, jamais compressées dans un bouton. */
.ico {
  width: 1.15em; height: 1.15em; flex: none;
  vertical-align: -0.22em; display: inline-block;
}
.ico-xl { width: 3.5rem; height: 3.5rem; vertical-align: middle; }
.section-title .ico, h2 .ico, h3 .ico { vertical-align: -0.14em; opacity: 0.85; }
.btn .ico { margin-right: 0.15rem; }
.card-noimg .ico, .sp-img .ico, .cart-row-img .ico { width: 42%; height: 42%; opacity: 0.45; vertical-align: middle; }
.boost-ico .ico { width: 1.9rem; height: 1.9rem; }
.thanks-icon .ico, .track-cancelled-icon .ico, .fav-empty-heart .ico { width: 1em; height: 1em; vertical-align: middle; }
.offline-ico { margin-bottom: 8px; }

/* Drapeau du Sénégal en CSS (pas d'emoji dans l'interface). */
.flag-sn {
  display: inline-block; width: 1.05rem; height: 0.72rem; border-radius: 2px;
  background: linear-gradient(to right, #00853f 0 33.33%, #fdef42 33.33% 66.66%, #e31b23 66.66% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25) inset;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -1px; }
.hero p { font-size: 1.1rem; color: #d9e2ec; max-width: 34rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.5rem 0 1.2rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero-trust { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.88rem; color: #bcccdc; font-weight: 600; }
.hero-art { position: relative; height: 280px; }
.hero-bubble {
  position: absolute; display: grid; place-items: center;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 28%; font-size: 2.6rem;
  animation: float 5s ease-in-out infinite;
  color: rgba(255,255,255,0.9);
}
.hero-bubble svg { width: 46%; height: 46%; }
.hb1 { width: 110px; height: 110px; top: 8%; left: 12%; }
.hb2 { width: 84px; height: 84px; top: 56%; left: 0; animation-delay: 1.2s; }
.hb3 { width: 130px; height: 130px; top: 30%; right: 8%; animation-delay: 0.6s; }
.hb4 { width: 76px; height: 76px; bottom: 0; right: 30%; animation-delay: 1.8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ─── Sections ─── */
.section { padding: 2.6rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: -0.4px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-more { color: var(--brand); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }

/* ─── Chips catégories ─── */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1rem; scrollbar-width: thin; }
.chip {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0.45rem 1rem; font-weight: 600; font-size: 0.92rem; white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip small { color: var(--muted); font-weight: 500; }
.chip-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-active small { color: #bcccdc; }

/* ─── Grille produits ─── */
.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 0.6rem; transition: transform 0.2s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-noimg { font-size: 3rem; opacity: 0.45; }
.card-noimg-lg { font-size: 6rem; }
.badge {
  position: absolute; top: 0.6rem; left: 0.6rem;
  font-size: 0.72rem; font-weight: 800; padding: 0.22rem 0.6rem; border-radius: 999px;
  color: #fff; text-transform: uppercase; letter-spacing: 0.4px;
}
.badge-promo { background: var(--brand); }
.badge-out { background: var(--muted); }
.badge-low { background: #b7791f; }
.card-body { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.card-title {
  font-weight: 700; font-size: 0.92rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.4em;
}
.card-title:hover { color: var(--brand-dark); }
.card-seller { font-size: 0.78rem; color: var(--muted); }
.card-seller:hover { color: var(--brand-dark); }
.card-price { display: flex; align-items: baseline; gap: 0.45rem; margin-top: auto; padding-top: 0.3rem; }
.price { color: var(--success-dark); font-weight: 800; }
.price-lg { font-size: 1.6rem; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 0.85em; }
.price-save {
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 800; font-size: 0.8rem; padding: 0.15rem 0.5rem; border-radius: 999px;
}

/* ─── Étapes / arguments ─── */
.steps, .perks { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1.4rem; }
.step, .perk {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem;
  background: var(--brand); color: #fff; border-radius: 999px;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 0.8rem;
}
.step h3, .perk h3 { font-size: 1.05rem; }
.step p, .perk p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ─── Vendeurs ─── */
.seller-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.seller-card {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--card); border-radius: var(--radius); padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s;
}
.seller-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.seller-card strong { display: block; color: var(--navy); }
.seller-card small, .seller-card p { color: var(--muted); font-size: 0.83rem; margin: 0; }
.seller-card-big { align-items: flex-start; padding: 1.2rem; }
.seller-logo { width: 3rem; height: 3rem; border-radius: 0.8rem; object-fit: cover; flex-shrink: 0; }
.seller-initial {
  width: 3rem; height: 3rem; border-radius: 0.8rem; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem;
  background: var(--brand-soft); color: var(--brand-dark); text-transform: uppercase;
}
.seller-initial-lg { width: 4.2rem; height: 4.2rem; font-size: 2rem; }
.seller-card-inline { margin-top: 1.4rem; }
.seller-card-arrow { margin-left: auto; color: var(--brand); font-weight: 800; }

/* ─── CTA vendeur ─── */
.cta-sell {
  margin: 2.5rem 0 0;
  background: linear-gradient(120deg, var(--brand), #ff8c42);
  color: #fff;
}
.cta-sell-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; padding-top: 2.6rem; padding-bottom: 2.6rem;
}
.cta-sell h2 { font-size: 1.7rem; }
.cta-sell p { margin: 0; max-width: 36rem; opacity: 0.95; }

/* ─── Pages ─── */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.9rem; }
.breadcrumb a:hover { color: var(--brand-dark); }
.page-title { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.page-count { color: var(--muted); font-weight: 600; font-size: 0.95rem; margin-left: 0.5rem; }
.page-sub { color: var(--muted); margin-top: -0.4rem; margin-bottom: 1.4rem; }
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-link {
  min-width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--line); border-radius: 0.7rem; font-weight: 700;
}
.page-link:hover { border-color: var(--brand); }
.page-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); font-size: 1.05rem; }
.empty .btn { margin-top: 0.8rem; }
.err-code { font-size: 4.5rem; font-weight: 800; color: var(--line); margin: 0; line-height: 1; }

/* ─── Fiche produit ─── */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; margin-top: 1rem; align-items: start; }
.product-gallery { position: sticky; top: 1.2rem; }
.gallery-main {
  position: relative; aspect-ratio: 1; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: grid; place-items: center;
  border: 1px solid var(--line);
}
.gallery-stage { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.gallery-main img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  padding: 1.2rem; transform: scale(1); transform-origin: center;
  transition: transform 0.18s ease; user-select: none; -webkit-user-drag: none;
}
.gallery-main.can-zoom { cursor: zoom-in; }
.gallery-main.is-zoomed { cursor: grab; }
.gallery-main.is-panning { cursor: grabbing; }
.gallery-zoom {
  position: absolute; bottom: 0.7rem; right: 0.7rem; display: flex; gap: 0.2rem; z-index: 3;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(4px); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.2rem; box-shadow: var(--shadow);
}
.gallery-zoom button {
  width: 2.1rem; height: 2.1rem; border: 0; background: transparent; border-radius: 999px;
  font-size: 1.1rem; font-weight: 800; color: var(--navy); cursor: pointer; line-height: 1;
  display: grid; place-items: center;
}
.gallery-zoom button:hover { background: var(--bg); color: var(--brand-dark); }
.gallery-zoom button:disabled { opacity: 0.35; cursor: default; }
.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.7rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 4.2rem; height: 4.2rem; border-radius: 0.7rem; overflow: hidden;
  border: 2px solid var(--line); background: #fff; cursor: pointer; padding: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 0.2rem; }
.thumb-active { border-color: var(--brand); }
.gallery-hint { color: var(--muted); font-size: 0.78rem; margin: 0.55rem 0 0; text-align: center; }

.product-brand { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.6px; }
.product-name { font-size: 1.7rem; font-weight: 800; color: var(--navy); margin: 0.2rem 0 0.55rem; line-height: 1.25; letter-spacing: -0.4px; }
.product-meta { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.95rem; padding-bottom: 0.95rem; border-bottom: 1px solid var(--line); }
.product-rating { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--navy-2); font-weight: 600; }
.product-meta-cat a { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.product-meta-cat a:hover { color: var(--brand-dark); }

.buy-box {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow); margin-bottom: 1.2rem;
}
.product-price { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.product-stock { font-weight: 700; font-size: 0.92rem; margin: 0.55rem 0 0; }
.stock-ok { color: var(--success-dark); }
.stock-out { color: var(--danger); }
.product-buy { display: flex; gap: 0.7rem; margin: 1rem 0 0.7rem; flex-wrap: wrap; }
.btn-buy { flex: 1; min-width: 190px; }
.product-quote { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.qty-picker {
  display: flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 999px; overflow: hidden; background: #fff;
}
.qty-picker button {
  border: 0; background: transparent; width: 2.6rem; height: 2.9rem;
  font-size: 1.2rem; cursor: pointer; font-weight: 700; color: var(--navy);
}
.qty-picker button:hover { background: var(--bg); }
.qty-picker input {
  width: 3rem; border: 0; text-align: center; font: inherit; font-weight: 700; outline: none;
  -moz-appearance: textfield;
}
.qty-picker input::-webkit-outer-spin-button, .qty-picker input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-picker-sm span { min-width: 2rem; text-align: center; font-weight: 700; }
.qty-picker-sm button { height: 2.2rem; width: 2.2rem; font-size: 1rem; }
.product-trust { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; font-weight: 600; margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px dashed var(--line); }
.product-highlights { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: 0.35rem; }
.product-highlights li { position: relative; padding-left: 1.5rem; font-weight: 600; color: var(--navy-2); font-size: 0.92rem; line-height: 1.4; }
.product-highlights li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 800; }
.product-desc { margin-top: 0.4rem; }
.product-desc h2 { font-size: 1.1rem; margin: 0 0 0.4rem; color: var(--navy); }
.product-desc p { color: var(--navy-2); white-space: pre-line; margin: 0; }

/* Badge "Service" sur la fiche/les cartes (l'image n'a pas de fond coloré) */
.badge-service { background: var(--navy); }

/* ─── Page vendeur ─── */
.seller-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  background-size: cover; background-position: center;
  color: #fff;
}
/* Accent personnalisé du vendeur : liseré coloré + teinte de fond quand pas d'image */
.seller-hero.has-accent { border-bottom: 4px solid var(--shop-accent); }
.seller-hero.has-accent:not([style*="url("]) {
  background: linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--shop-accent) 38%, var(--navy-2)));
}
.seller-hero-inner { display: flex; gap: 1.4rem; align-items: flex-start; padding: 2.6rem 1rem; }
.seller-hero h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 0.2rem; }
.seller-hero-logo { width: 4.2rem; height: 4.2rem; border-radius: 1rem; object-fit: cover; background: #fff; }
.seller-hero.has-accent .seller-hero-logo { box-shadow: 0 0 0 3px var(--shop-accent); }
.seller-hero-title { font-weight: 700; color: #ffd9bd; margin: 0 0 0.2rem; }
.seller-hero.has-accent .seller-hero-title { color: color-mix(in srgb, var(--shop-accent) 70%, #fff); }
.seller-hero-subtitle { color: #e2e8f0; font-size: 1.02rem; margin: 0 0 0.3rem; max-width: 42rem; }
.seller-hero-desc { color: #d9e2ec; max-width: 40rem; margin: 0.2rem 0 0.6rem; }
.seller-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: #bcccdc; font-weight: 600; margin-bottom: 0.9rem; }
.seller-contact { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* ─── Panier / commande ─── */
.cart-list { display: flex; flex-direction: column; gap: 0.8rem; }
.cart-row {
  display: flex; gap: 0.9rem; align-items: center;
  background: var(--card); border-radius: var(--radius); padding: 0.8rem;
  box-shadow: var(--shadow);
}
.cart-row-img {
  width: 4.4rem; height: 4.4rem; border-radius: 0.7rem; overflow: hidden;
  background: #f1ede7; display: grid; place-items: center; font-size: 1.8rem; flex-shrink: 0;
}
.cart-row-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.cart-row-name { font-weight: 700; font-size: 0.95rem; }
.cart-row-info small { color: var(--muted); }
.cart-row-actions { display: flex; align-items: center; gap: 0.6rem; }
.cart-remove { border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; opacity: 0.6; }
.cart-remove:hover { opacity: 1; }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin: 1.2rem 0 0.4rem; padding: 1rem 1.2rem;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  font-weight: 700;
}
.cart-loading { color: var(--muted); padding: 2rem 0; text-align: center; }

.checkout-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.6rem; align-items: start; }
.checkout-form, .checkout-summary {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow);
}
.checkout-form h2, .checkout-summary h2 { font-size: 1.15rem; }
.checkout-form label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem; }
.checkout-form input, .checkout-form textarea {
  width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: 0.7rem;
  font: inherit; font-weight: 500; outline: none; transition: border-color 0.15s;
  background: var(--bg);
}
.checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--brand); }
.phone-row { display: flex; gap: 0.5rem; margin-top: 0.35rem; }
.phone-row input { margin-top: 0; flex: 1; min-width: 0; }
.phone-dial {
  flex-shrink: 0; padding: 0.7rem 0.5rem; border: 1.5px solid var(--line);
  border-radius: 0.7rem; background: var(--bg); font: inherit; font-weight: 600;
  outline: none; cursor: pointer;
}
.phone-dial:focus { border-color: var(--brand); }
.checkout-error { color: var(--danger); font-weight: 700; }
.checkout-reassure { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 0.8rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; font-size: 0.93rem; border-bottom: 1px dashed var(--line); }
.summary-total { border-bottom: 0; margin-top: 0.4rem; font-size: 1.05rem; }
.summary-note { color: var(--muted); font-size: 0.83rem; }

/* ─── Merci ─── */
.thanks-card { text-align: center; padding: 2.5rem 1rem; }
.thanks-icon { font-size: 3.6rem; }
.thanks-card h1 { font-size: 1.8rem; color: var(--navy); }
.thanks-order {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--card); border-radius: var(--radius); padding: 1rem 1.3rem;
  box-shadow: var(--shadow); margin: 0.8rem auto; max-width: 560px; text-align: left;
  flex-wrap: wrap;
}
.thanks-order small { display: block; color: var(--muted); }
.thanks-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ─── Toast ─── */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 150%);
  background: var(--navy); color: #fff; padding: 0.8rem 1.3rem; border-radius: 999px;
  font-size: 0.92rem; box-shadow: var(--shadow-lg); z-index: 100;
  transition: transform 0.25s ease; max-width: calc(100vw - 2rem); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.toast a { color: #ffb27d; font-weight: 700; }
.toast-show { transform: translate(-50%, 0); }

/* ─── Footer ─── */
.footer { background: var(--navy); color: #d9e2ec; margin-top: 3rem; }
.footer-grid {
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 2.6rem 1rem 1.6rem;
}
.footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #829ab1; }
.footer a { display: block; padding: 0.18rem 0; font-size: 0.93rem; }
.footer a:hover { color: #fff; }
.footer-logo .logo-text { color: #fff; }
.footer-tagline { font-size: 0.9rem; color: #9fb3c8; }
.footer-trust { font-size: 0.9rem; line-height: 1.9; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.1rem 1rem; font-size: 0.82rem; color: #829ab1;
}
.footer-bottom a { display: inline; color: #bcccdc; }

/* ─── Suivi de commande ─── */
.track-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.track-date { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0; }
.track-badge { padding: 0.4rem 0.95rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem; white-space: nowrap; background: var(--brand-soft); color: var(--brand-dark); }
.track-badge.status-livree { background: #e3f5ec; color: var(--success-dark); }
.track-badge.status-annulee { background: #fdeaea; color: var(--danger); }
.track-badge.status-expediee { background: #e6f0fb; color: #0b6bcb; }

.track-timeline { list-style: none; margin: 1.6rem 0 0.4rem; padding: 0; }
.track-step { position: relative; padding: 0 0 1.5rem 2.7rem; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before { content: ""; position: absolute; left: 13px; top: 1.9rem; bottom: -0.1rem; width: 2px; background: var(--line); }
.track-step:last-child::before { display: none; }
.track-step.done::before { background: var(--success); }
.track-dot {
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
  background: var(--bg); border: 2px solid var(--line); color: var(--muted);
}
.track-step.done .track-dot { background: var(--success); border-color: var(--success); color: #fff; }
.track-step.current .track-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.track-step-body strong { color: var(--muted); font-weight: 600; }
.track-step.done .track-step-body strong { color: var(--navy); }
.track-step.current .track-step-body strong { color: var(--brand-dark); }
.track-step-body p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--muted); }

.track-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.4rem; margin-top: 1.1rem; }
.track-card h2 { font-size: 1.05rem; color: var(--navy); margin: 0 0 0.8rem; }
.track-items { display: flex; flex-direction: column; }
.track-item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px dashed var(--line); font-size: 0.94rem; }
.track-item small { color: var(--muted); }
.track-total { display: flex; justify-content: space-between; align-items: center; padding-top: 0.9rem; }
.track-seller { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.track-seller small { display: block; color: var(--muted); font-size: 0.82rem; }
.track-seller strong { font-size: 1.05rem; color: var(--navy); }
.track-seller-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.track-seller-actions .btn { padding: 0.5rem 0.9rem; font-size: 0.88rem; }
.track-delivery { line-height: 1.7; margin: 0; }
.track-note { margin: 0.8rem 0 0; color: var(--muted); font-style: italic; }
.track-cancelled { display: flex; gap: 1rem; align-items: center; background: #fdeaea; border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.3rem 0; }
.track-cancelled-icon { font-size: 1.6rem; color: var(--danger); }
.track-cancelled strong { color: var(--danger); }
.track-cancelled p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--navy-2); }
.track-bookmark { margin-top: 1.5rem; text-align: center; font-size: 0.85rem; color: var(--muted); word-break: break-all; }
.track-other { font-weight: 600; }
.track-form { max-width: 480px; }
.thanks-order-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ─── Partage produit ─── */
.product-share { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 1.2rem 0; font-size: 0.9rem; color: var(--muted); }
.share-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 0.85rem; cursor: pointer; background: var(--card); color: var(--navy); }
.share-btn:hover { border-color: var(--navy); }
.share-wa { color: var(--success-dark); border-color: rgba(12,139,81,0.3); }
.share-wa:hover { border-color: var(--success); background: #e3f5ec; }

/* ─── Barre d'outils catalogue (tri + filtre prix) ─── */
.catalog-tools { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0.2rem 0 1.4rem; }
.catalog-tools label { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.catalog-tools select { padding: 0.5rem 0.7rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); color: var(--ink); cursor: pointer; }
.tool-price { display: inline-flex; align-items: center; gap: 0.4rem; }
.tool-price input { width: 100px; padding: 0.5rem 0.6rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.tool-price span { color: var(--muted); }
.catalog-tools .btn-ghost { padding: 0.5rem 0.9rem; }

/* ─── Services ─── */
.badge-service { background: #6b46c1; }
.price-quote { color: var(--navy-2); font-style: italic; }
.btn-quote { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; }
.btn-quote:hover { background: var(--navy-2) !important; }
.product-quote { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.6rem 0 1rem; }
.type-toggle { display: inline-flex; gap: 0.3rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem; margin-bottom: 1rem; flex-wrap: wrap; }
.type-tab { padding: 0.4rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.type-tab:hover { color: var(--navy); }
.type-active { background: var(--brand); color: #fff; }
.type-active:hover { color: #fff; }

/* ─── Notes & avis ─── */
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; color: #dcdcdc; letter-spacing: 2px; white-space: nowrap; }
.stars::before { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct, 0%); overflow: hidden; color: #f5a623; }
.stars-sm { font-size: 0.9rem; letter-spacing: 1px; }
.rating { display: inline-flex; align-items: center; gap: 0.4rem; }
.rating-meta { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.rating-meta small { font-weight: 400; }
.card-rating { display: flex; align-items: center; gap: 0.35rem; margin: 0.15rem 0 0.3rem; }
.card-rating small { color: var(--muted); font-size: 0.78rem; }
.seller-card-rating { display: inline-flex; align-items: center; gap: 0.3rem; margin: 0.15rem 0; }
.seller-card-rating small { color: var(--muted); }
.seller-meta-rating { display: inline-flex; align-items: center; gap: 0.35rem; }

.product-rating { display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 0.7rem; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.product-rating:hover { color: var(--brand-dark); }

.reviews-section { margin-top: 3rem; }
.reviews-summary { display: flex; align-items: center; gap: 1rem; margin: 0.6rem 0 1.4rem; }
.reviews-score { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.reviews-summary small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.reviews-list { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.review-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.review-head strong { color: var(--navy); }
.review-verified { font-size: 0.72rem; font-weight: 700; color: var(--success-dark); background: #e3f5ec; padding: 0.12rem 0.5rem; border-radius: 999px; }
.review-comment { margin: 0.5rem 0 0.4rem; color: var(--ink); font-size: 0.93rem; line-height: 1.55; }
.review-reply { margin: 0.6rem 0 0.3rem; padding: 0.6rem 0.85rem; background: var(--brand-soft); border-radius: 10px; }
.review-reply strong { font-size: 0.82rem; color: var(--brand-dark); }
.review-reply p { margin: 0.2rem 0 0; font-size: 0.88rem; color: var(--navy-2); }
.review-date { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.78rem; }
.reviews-empty { color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.2rem; }

/* Saisie d'un avis : étoiles cliquables sans JS (radios + flex-reverse) */
.review-block-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.review-form { border-top: 1px dashed var(--line); padding-top: 1rem; margin-top: 1rem; }
.review-form:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.review-form-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.2rem; }
.review-form-head strong { color: var(--navy); }
.review-edit-tag { font-size: 0.72rem; color: var(--muted); background: var(--bg); padding: 0.1rem 0.5rem; border-radius: 999px; }
.star-input { border: 0; padding: 0; margin: 0.25rem 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-input label { font-size: 2rem; line-height: 1; color: #dcdcdc; cursor: pointer; padding: 0 2px; transition: color 0.12s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a623; }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.review-form textarea { width: 100%; margin: 0.5rem 0; padding: 0.6rem 0.8rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; resize: vertical; }
.review-form .btn { width: auto; }
.track-success { color: var(--success-dark); font-weight: 700; background: #e3f5ec; padding: 0.6rem 0.9rem; border-radius: 10px; }

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 2.4rem; padding-bottom: 2.4rem; }
  .hero-art { display: none; }
  .product-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .product-gallery { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { order: -1; }
  .seller-hero-inner { flex-direction: column; }
}
@media (max-width: 560px) {
  .header-inner { gap: 0.6rem; }
  .search { order: 3; flex-basis: 100%; }
  .nav-link { display: none; }
  .nav-link-sell { display: inline-flex; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .section { padding: 1.8rem 0; }
  .cart-row { flex-wrap: wrap; }
  .cart-row-actions { width: 100%; justify-content: flex-end; }
}

/* ═══════════════════════════════════════════════════════════════════
   MARKETING : bandeau promo, preuve sociale, témoignages, boost StockFinity
   ═══════════════════════════════════════════════════════════════════ */

/* Bandeau promo StockFinity (haut de page, masquable) */
.promo-bar {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; font-size: 0.86rem;
  overflow: hidden; transition: max-height .3s ease, opacity .3s ease;
  max-height: 60px;
}
.promo-bar-hide { max-height: 0; opacity: 0; }
.promo-bar-inner { display: flex; align-items: center; gap: 0.9rem; padding: 0.55rem 1rem; }
.promo-bar-text { flex: 1; min-width: 0; }
.promo-bar-text strong { color: #ffd9bd; }
.promo-bar-cta {
  white-space: nowrap; font-weight: 700; color: var(--navy);
  background: #fff; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.82rem;
}
.promo-bar-cta:hover { background: var(--brand-soft); }
.promo-bar-close {
  background: none; border: 0; color: #cbd5e1; font-size: 1.4rem; line-height: 1;
  cursor: pointer; padding: 0 0.2rem;
}
.promo-bar-close:hover { color: #fff; }

/* Pop-ups de preuve sociale (bas-gauche) */
.social-proof { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.sp-toast {
  pointer-events: auto; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16,42,67,.16); width: 310px; max-width: calc(100vw - 32px);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .35s ease, transform .35s ease;
}
.sp-toast.sp-show { opacity: 1; transform: translateY(0) scale(1); }
.sp-link { display: flex; gap: 10px; padding: 10px 12px; align-items: center; }
.sp-img { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.sp-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-body { display: flex; flex-direction: column; min-width: 0; }
.sp-line { font-size: 0.8rem; color: var(--ink); }
.sp-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-ago { font-size: 0.72rem; color: #16a34a; font-weight: 600; }
.sp-close { position: absolute; top: 4px; right: 6px; background: none; border: 0; color: #94a3b8; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.sp-close:hover { color: var(--ink); }

/* Témoignages */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.testi-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.6rem; box-shadow: 0 4px 14px rgba(16,42,67,.05);
}
.testi-stars { line-height: 1; }
.testi-card blockquote { margin: 0; color: var(--ink); font-size: 0.95rem; line-height: 1.5; flex: 1; }
.testi-card figcaption { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.2rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), #ff8c42);
}
.testi-avatar-seller { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.testi-who { display: flex; flex-direction: column; line-height: 1.2; }
.testi-who strong { font-size: 0.92rem; color: var(--navy); }
.testi-who small { font-size: 0.78rem; color: #64748b; }

/* Section boost / promotion StockFinity */
.boost-section { background: var(--brand-soft); border-radius: 0; }
.boost-head { text-align: center; max-width: 48rem; margin: 0 auto 1.6rem; }
.boost-eyebrow { display: inline-block; font-weight: 700; color: var(--brand-dark); font-size: 0.82rem; background: #fff; padding: 0.25rem 0.8rem; border-radius: 999px; margin-bottom: 0.6rem; }
.boost-head p { color: var(--ink); margin-top: 0.5rem; font-size: 1.02rem; line-height: 1.6; }
.boost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.boost-card { background: #fff; border-radius: 14px; padding: 1.3rem; text-align: center; border: 1px solid #f4d9c6; }
.boost-ico { font-size: 1.8rem; display: block; margin-bottom: 0.4rem; }
.boost-card h3 { color: var(--navy); font-size: 1.02rem; margin-bottom: 0.3rem; }
.boost-card p { color: #64748b; font-size: 0.9rem; line-height: 1.5; }
.boost-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 600px) {
  .social-proof { left: 8px; bottom: 8px; }
  .sp-toast { width: 270px; }
  .promo-bar-text { font-size: 0.78rem; }
  .promo-bar-cta { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   PWA — invite d'installation + bandeau cookies
   ═══════════════════════════════════════════════════════════════════ */
.pwa-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(16, 42, 67, .55);
  opacity: 0; transition: opacity .28s ease;
  padding: 0;
}
.pwa-overlay.pwa-show { opacity: 1; }
@media (min-width: 560px) { .pwa-overlay { align-items: center; padding: 20px; } }

.pwa-card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.pwa-overlay.pwa-show .pwa-card { transform: translateY(0); }
@media (min-width: 560px) { .pwa-card { border-radius: 22px; } }

.pwa-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  border: 0; background: transparent; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--muted);
  width: 36px; height: 36px; border-radius: 50%;
}
.pwa-close:hover { background: rgba(0,0,0,.05); color: var(--ink); }

.pwa-head {
  text-align: center; padding: 30px 24px 14px;
  background: linear-gradient(180deg, var(--brand-soft), transparent);
}
.pwa-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, #f25c05, #ff8c42);
  color: #fff; font-weight: 800; font-size: 38px; line-height: 1;
  box-shadow: 0 8px 20px rgba(242, 92, 5, .35);
  margin-bottom: 12px;
}
.pwa-head h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.pwa-head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.pwa-body { padding: 6px 24px 26px; }
.pwa-list { list-style: none; margin: 0 0 18px; padding: 0; }
.pwa-list li { font-size: 14px; color: var(--muted); padding: 5px 0; }

.pwa-steps { list-style: none; margin: 4px 0 0; padding: 0; }
.pwa-steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; padding: 9px 0; color: var(--ink); }
.pwa-step-n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px;
}
.pwa-ic { display: inline-flex; vertical-align: middle; color: var(--brand); }
.pwa-ic svg { width: 20px; height: 20px; }
.pwa-note {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 10px; padding: 9px 12px; font-size: 13.5px; margin-bottom: 14px;
}
.pwa-later, .pwa-got-it { margin-top: 14px; }
.pwa-later {
  display: block; width: 100%; border: 0; background: transparent;
  color: var(--muted); font-size: 14px; cursor: pointer; padding: 6px;
}
.pwa-later:hover { color: var(--ink); }
.pwa-got-it { background: var(--brand-soft); color: var(--brand-dark); }

.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(16, 42, 67, .12);
  padding: 14px 16px; padding-bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  justify-content: center;
  transform: translateY(110%); transition: transform .3s ease;
}
.cookie-bar.cookie-show { transform: translateY(0); }
.cookie-bar p { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1 1 280px; max-width: 640px; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie-actions .btn { padding: 9px 18px; }

/* ─────────────────────────────────────────────────────────────────────────
   ICÔNES — trait fin & géométrique (façon Figma), cohérent avec l'app StockFinity.
   Les icônes (SVG au trait, stroke=currentColor) du marketplace utilisaient un
   trait épais (2 à 2.5). On uniformise à 1.5 : la propriété CSS `stroke-width`
   l'emporte sur l'attribut SVG → toutes les icônes deviennent fines et nettes.
   ───────────────────────────────────────────────────────────────────────── */
svg[stroke="currentColor"] {
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════════════════════
   FAVORIS : bouton entête, cœur sur les cartes/fiche, page /favoris
   ═══════════════════════════════════════════════════════════════════ */

/* Bouton Favoris dans l'entête (contour, se remplit au survol) */
.fav-nav-btn {
  position: relative; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 999px;
  background: #fff; color: var(--navy);
  border: 1.5px solid var(--line);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.fav-nav-btn:hover { color: #e11d48; border-color: #f4b8c4; background: #fff5f7; }
/* Bulle « Nouveau » (disparaît 24 h après la 1re visite ou dès l'ouverture) */
.fav-hint {
  position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
  background: #e11d48; color: #fff; font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.3px; text-transform: uppercase;
  padding: 0.12rem 0.42rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
  animation: fav-hint-pulse 1.8s ease-in-out infinite;
}
@keyframes fav-hint-pulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.08); } }

/* Cœur en surimpression sur les cartes produit */
.card { position: relative; }
.fav-btn {
  position: absolute; top: 0.55rem; right: 0.55rem; z-index: 2;
  width: 2.15rem; height: 2.15rem; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(16, 42, 67, 0.12);
  backdrop-filter: blur(2px);
  transition: transform 0.12s, color 0.15s, background 0.15s;
}
.fav-btn:hover { color: #e11d48; transform: scale(1.1); }
.fav-btn:active { transform: scale(0.94); }
.fav-btn svg { transition: transform 0.12s; }
.fav-btn.is-fav { color: #e11d48; background: #fff; border-color: #f4b8c4; }
.fav-btn.is-fav svg { fill: #e11d48; }
.fav-btn.is-fav { animation: fav-pop 0.28s ease; }
@keyframes fav-pop { 0% { transform: scale(0.8); } 55% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* Bouton « Ajouter aux favoris » sur la fiche produit */
.btn-fav {
  background: #fff; color: var(--navy-2);
  border: 1.5px solid var(--line);
  margin-top: 0.6rem;
}
.btn-fav:hover { color: #e11d48; border-color: #f4b8c4; background: #fff5f7; }
.btn-fav.is-fav { color: #e11d48; border-color: #f4b8c4; background: #fff5f7; }
.btn-fav.is-fav svg { fill: #e11d48; }

/* Page /favoris */
.fav-head { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.fav-head-count { color: var(--muted); font-weight: 700; font-size: 0.95rem; }
.fav-intro { color: var(--muted); margin: -0.2rem 0 1.4rem; max-width: 640px; }
.fav-empty {
  text-align: center; padding: 3rem 1rem; max-width: 480px; margin: 1rem auto;
}
.fav-empty-heart { font-size: 3.4rem; margin-bottom: 0.6rem; }
.fav-empty h2 { font-size: 1.3rem; }
.fav-empty p { color: var(--muted); margin: 0.4rem 0 1.4rem; }

@media (max-width: 560px) {
  .fav-nav-btn { width: 2.4rem; height: 2.4rem; }
  .fav-btn { width: 2rem; height: 2rem; top: 0.4rem; right: 0.4rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   COMPTES ACHETEURS : bouton entête, page /compte (auth + tableau de bord)
   ═══════════════════════════════════════════════════════════════════ */
.btn-sm { padding: 0.42rem 0.85rem; font-size: 0.85rem; }

.account-nav-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  background: #fff; color: var(--navy); border: 1.5px solid var(--line);
  transition: border-color .15s, background .15s;
}
.account-nav-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.account-nav-label { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.account-intro { color: var(--muted); margin: -0.3rem 0 1.2rem; }
.account-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; max-width: 460px; }
.account-tabs { display: flex; gap: 0.25rem; padding: 0.4rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.account-tabs-nav { border: 1px solid var(--line); border-radius: 999px; background: var(--bg); margin-bottom: 1rem; overflow-x: auto; }
.account-tab {
  flex: 1; min-width: max-content; border: 0; background: transparent; cursor: pointer;
  padding: 0.55rem 0.8rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.9rem;
  color: var(--muted); white-space: nowrap;
}
.account-tab.is-active { background: var(--brand); color: #fff; }

.account-form { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.1rem; }
.account-form h3 { margin: 0.2rem 0 0; font-size: 1rem; }
.account-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--navy-2); }
.account-form input:not([type="checkbox"]) {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem;
  font: inherit; font-size: 0.95rem; outline: none; background: #fff;
}
.account-form input:focus { border-color: var(--brand); }
.account-check { flex-direction: row !important; align-items: center; gap: 0.5rem; font-weight: 500 !important; }
.account-check input { width: auto; }

.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.account-sub { color: var(--muted); font-size: 0.9rem; }
.account-addr-form { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 1rem; padding: 0.3rem; }

.account-list { display: flex; flex-direction: column; gap: 0.7rem; }
.account-order, .account-address {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem; box-shadow: var(--shadow);
}
.account-order-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.account-order-meta { color: var(--navy-2); font-size: 0.9rem; margin-top: 0.2rem; }
.account-order-date { color: var(--muted); font-size: 0.8rem; margin: 0.15rem 0 0.6rem; }
.order-status { font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.3px; background: var(--bg); color: var(--navy-2); }
.order-status-livree { background: #e3f6ec; color: var(--success-dark); }
.order-status-annulee { background: #fde8e8; color: var(--danger); }
.order-status-expediee, .order-status-confirmee { background: #e6f0fb; color: #1c64b4; }

.account-address { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.account-address-actions { display: flex; flex-direction: column; gap: 0.35rem; flex-shrink: 0; }
.badge-default { display: inline-block; margin-left: 0.4rem; font-size: 0.68rem; font-weight: 800; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); text-transform: uppercase; }
.account-empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.account-empty p { margin-bottom: 1rem; }

/* Sélecteur d'adresses enregistrées sur le checkout */
.addr-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--muted); }
.addr-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 0.3rem 0.7rem; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.addr-chip:hover { border-color: var(--brand); color: var(--brand-dark); }

@media (max-width: 560px) {
  .account-nav-label { display: none; }
  .account-nav-btn { width: 2.4rem; height: 2.4rem; justify-content: center; padding: 0; }
}

/* ── Pages d'information (CMS éditées dans StockFinity /super-admin/mp-pages) ── */
.cms-page { padding-top: 32px; padding-bottom: 48px; }
.cms-container { max-width: 760px; }
.cms-breadcrumb { font-size: 13px; color: var(--muted, #6b7280); margin-bottom: 12px; }
.cms-breadcrumb a { color: inherit; text-decoration: none; }
.cms-breadcrumb a:hover { text-decoration: underline; }
.cms-breadcrumb span { margin: 0 4px; }
.cms-title { font-size: clamp(26px, 5vw, 38px); line-height: 1.15; margin: 0 0 20px; }
.cms-body { font-size: 16px; line-height: 1.75; color: var(--text, #1f2937); }
.cms-body p { margin: 0 0 16px; }
.cms-empty { color: var(--muted, #6b7280); }
.cms-back { margin-top: 28px; }
