/* ============================================================
   NASOMBA — Feuille de styles
   ============================================================ */
:root {
  /* Charte alignée sur le logo : jaune #fdce01 + bleu #016dfd, fonds bleu nuit */
  --ink: #01296b;
  --ink-2: #003ca5;
  --accent: #fdce01;
  --accent-2: #ffdb3a;
  --accent-ink: #1a1400;
  --brand: #016dfd;
  --bg: #eef1f4;
  --card: #ffffff;
  --line: #d9dee5;
  --txt: #0f1111;
  --muted: #5b6573;
  --link: #0158d1;
  --ok: #067d3e;
  --warn: #b45309;
  --ko: #c0262d;
  --info: #016dfd;
  --price: #b12704;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(15, 27, 45, .08), 0 1px 2px rgba(15, 27, 45, .05);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--txt); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; color: #c45500; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; }
small, .muted { color: var(--muted); }
.wrap { max-width: 1500px; margin: 0 auto; padding: 16px; min-height: 60vh; }

/* ---------- En-tête ---------- */
.hdr { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.hdr a { color: #fff; }
.hdr a:hover { text-decoration: none; }
.hdr-top { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.hdr-top > a, .hdr-ship, .hdr-acc > a { border: 1px solid transparent; border-radius: 4px; padding: 6px 8px; }
.hdr-top > a:hover, .hdr-acc:hover > a { border-color: #fff; }
.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; color: #fff; }
.logo b { color: var(--accent); }
.logo-sm { font-size: 1.1rem; }
.hdr-ship { display: flex; flex-direction: column; line-height: 1.1; font-size: .8rem; white-space: nowrap; }
.hdr-ship small, .hdr-acc small { color: #c7ccd4; font-size: .75rem; }
.hdr-ship strong, .hdr-acc strong { font-size: .88rem; }
.search { flex: 1; display: flex; min-width: 0; height: 42px; border-radius: 6px; overflow: hidden; background: #fff; }
.search:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.search select { border: 0; background: #e6e8eb; padding: 0 8px; font-size: .82rem; max-width: 130px; color: #333; border-right: 1px solid #cdd2d9; }
.search input { flex: 1; border: 0; padding: 0 12px; font-size: 1rem; min-width: 0; outline: 0; }
.search button { border: 0; background: var(--accent); width: 50px; font-size: 1.15rem; cursor: pointer; }
.search button:hover { background: var(--accent-2); }
.hdr-acc { position: relative; }
.acc-ico { display: none; }
.hdr-acc > a { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.hdr-menu { display: none; position: absolute; right: 0; top: 100%; background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.25); min-width: 210px; padding: 8px 0; z-index: 60; }
.hdr-menu a { display: block; color: var(--txt) !important; padding: 8px 16px; font-size: .9rem; }
.hdr-menu a:hover { background: var(--bg); color: #c45500 !important; }
.hdr-acc:hover .hdr-menu, .hdr-acc:focus-within .hdr-menu { display: block; }
.hdr-cart { display: flex; align-items: flex-end; gap: 4px; white-space: nowrap; }
.cart-ico { position: relative; font-size: 1.8rem; line-height: 1; }
.cart-n { position: absolute; top: -6px; left: 50%; transform: translateX(-30%); color: var(--accent); font-weight: 800; font-size: 1rem; }
.hdr-burger { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px 6px; }
.hdr-nav { background: var(--ink-2); display: flex; gap: 2px; padding: 4px 10px; overflow-x: auto; scrollbar-width: none; font-size: .88rem; }
.hdr-nav::-webkit-scrollbar { display: none; }
.hdr-nav a { padding: 6px 10px; border: 1px solid transparent; border-radius: 3px; white-space: nowrap; }
.hdr-nav a:hover, .hdr-nav a.on { border-color: #fff; }
.hdr-nav a.on { background: rgba(255,255,255,.08); }
.hdr-nav-sell, .hdr-nav-back { margin-left: auto; font-weight: 700; color: var(--accent-2) !important; }
.hdr-nav-zone { padding: 6px 12px 6px 4px; font-weight: 800; color: var(--accent); white-space: nowrap; }

/* ---------- Boutons / formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #b6bcc5; background: #fff; color: var(--txt); padding: 8px 16px; border-radius: 20px; font: inherit; font-size: .92rem; cursor: pointer; text-decoration: none !important; line-height: 1.2; }
.btn:hover { background: #f5f6f8; color: var(--txt); }
.btn-accent { background: var(--accent); border-color: #e0b400; color: var(--accent-ink); font-weight: 600; }
.btn-accent:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-danger { color: var(--ko); border-color: #f0b4b7; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #05692f; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: .84rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--link); padding: 0; cursor: pointer; font: inherit; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search]:not(.search input),
select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #a6adb7; border-radius: 6px; font: inherit; background: #fff; color: var(--txt);
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(1, 109, 253, .22); }
textarea { min-height: 110px; resize: vertical; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; }
.inline-form { display: inline; }

/* ---------- Cartes / panneaux ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2, .card-head h1 { margin: 0; }
.narrow { max-width: 460px; margin: 20px auto; }
.mid { margin: 0 auto; }   /* même largeur que le reste du site (.wrap, 1500 px) */
.alert { padding: 11px 15px; border-radius: 6px; margin-bottom: 14px; border: 1px solid; background: #fff; }
.alert-ok { border-color: #8fd3a8; background: #ecf9f0; color: #0b5a2c; }
.alert-warn { border-color: #f6c77a; background: #fff8eb; color: #7a4a00; }
.alert-ko { border-color: #f1a7ab; background: #fdecee; color: #8f1b21; }
.alert-info { border-color: #a8c3f0; background: #eef4fe; color: #1e3a8a; }
.vide { color: var(--muted); padding: 30px; text-align: center; background: #fff; border-radius: var(--radius); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge-ok { background: #dcf5e5; color: var(--ok); }
.badge-warn { background: #fff0d6; color: var(--warn); }
.badge-ko { background: #fde2e3; color: var(--ko); }
.badge-info { background: #e0eaff; color: var(--info); }
.badge-muted { background: #eceff3; color: var(--muted); }

/* ---------- Accueil ---------- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin: -4px 0 18px; color: #fff;
  background: radial-gradient(1200px 400px at 85% -20%, rgba(253,206,1,.45), transparent 60%),
              linear-gradient(120deg, #01296b 0%, #003ca5 60%, #016dfd 100%);
  padding: 46px 40px 90px; }
.hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); max-width: 640px; margin-bottom: 10px; }
.hero p { font-size: 1.1rem; max-width: 560px; color: #dfe7ee; margin: 0 0 20px; }
.hero-pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.hero-pay span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 4px 12px; font-size: .84rem; }
.hero-art { position: absolute; right: 4%; top: 50%; transform: translateY(-58%); font-size: 9rem; opacity: .9; filter: drop-shadow(0 8px 20px rgba(0,0,0,.3)); }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: -80px; position: relative; margin-bottom: 18px; }
.tile { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tile h3 { font-size: 1.12rem; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.tile-grid a { color: var(--txt); font-size: .8rem; }
.tile-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; margin-bottom: 4px; background: #f3f4f6; }
.tile-more { margin-top: 10px; font-size: .86rem; }
.cat-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1; border-radius: 8px; font-size: 2.6rem; }
.cat-chip span { font-size: .78rem; color: var(--txt); text-align: center; }
.shelf { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 18px; }
.shelf-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.shelf-head h2 { margin: 0; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 210px); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shelf-row .pcard { scroll-snap-align: start; box-shadow: none; border: 1px solid #eceff3; }
.sell-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(90deg, #fff3e3, #fff); border: 1px solid #ffd8a8; border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.sell-band h2 { margin: 0 0 4px; }

/* ---------- Cartes produit ---------- */
.grid-prod { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 4px 16px rgba(15,27,45,.14); }
.pcard-img { position: relative; display: block; background: #f7f8fa; }
.pcard-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.tag-promo { position: absolute; top: 8px; left: 8px; background: var(--ko); color: #fff; font-weight: 700; font-size: .78rem; padding: 3px 8px; border-radius: 4px; }
.pcard-body { padding: 10px 12px 4px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pcard-nom { color: var(--txt); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-vendeur { font-size: .78rem; color: var(--muted); }
.pcard-add { padding: 6px 12px 12px; }
.prix strong { font-size: 1.15rem; }
.prix s { color: var(--muted); font-size: .82rem; margin-left: 6px; }
.stock { font-size: .8rem; font-weight: 600; }
.stock.ok { color: var(--ok); } .stock.warn { color: var(--warn); } .stock.ko { color: var(--ko); }
.stars { display: inline-block; position: relative; width: 80px; height: 15px; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4L8 12.4 3.2 14.9l.9-5.4L.2 5.7l5.4-.8z' fill='%23d5d9de'/%3E%3C/svg%3E") repeat-x; background-size: 16px 15px; }
.stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 0l2.4 4.9 5.4.8-3.9 3.8.9 5.4L8 12.4 3.2 14.9l.9-5.4L.2 5.7l5.4-.8z' fill='%23ffa41c'/%3E%3C/svg%3E") repeat-x; background-size: 16px 15px; }
.stars-n { font-size: .8rem; color: var(--link); }

/* ---------- Recherche ---------- */
.search-layout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
/* Catégorie et recherche : sur grand écran, la page prend presque toute la largeur (marges latérales réduites) */
@media (min-width: 1200px) { .wrap:has(> .search-layout) { max-width: none; padding-left: 14px; padding-right: 14px; } }
.filters { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: sticky; top: 120px; }
.filters h4 { margin: 14px 0 6px; font-size: .92rem; }
.filters h4:first-child { margin-top: 0; }
.filters a { display: block; color: var(--txt); font-size: .88rem; padding: 2px 0; }
.filters a.on { font-weight: 700; color: #c45500; }
.filters .sub { padding-left: 12px; }
.filters .prix-range { display: flex; gap: 6px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; background: #fff; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.results-bar select { width: auto; padding: 6px 10px; }
.pager { display: flex; gap: 4px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.pager a { padding: 7px 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--txt); }
.pager a.on { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------- Fiche produit ---------- */
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 300px; gap: 26px; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.gallery { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery-thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; overflow: hidden; }
.gallery-thumbs button.on { border-color: var(--accent); }
.gallery-thumbs img { aspect-ratio: 1; object-fit: cover; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: #f7f8fa; }
.pdp-info h1 { font-size: 1.5rem; font-weight: 500; }
.pdp-brand { font-size: .88rem; }
.pdp-price { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 12px 0; }
.pdp-price .big { font-size: 1.9rem; font-weight: 500; }
.pdp-price .pct { color: var(--ko); font-size: 1.4rem; margin-right: 8px; font-weight: 300; }
.pdp-desc { white-space: pre-line; }
.pdp-desc.texte-riche { white-space: normal; }
.buybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-self: start; position: sticky; top: 120px; }
.buybox .big { font-size: 1.6rem; font-weight: 600; }
.buybox select { width: auto; }
.buybox form > * { margin-bottom: 10px; }
.buybox dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: .84rem; margin: 12px 0 0; }
.buybox dt { color: var(--muted); }
.buybox dd { margin: 0; }
.reviews { display: grid; grid-template-columns: 300px 1fr; gap: 28px; }
.rv-bar { display: grid; grid-template-columns: 54px 1fr 40px; align-items: center; gap: 8px; font-size: .86rem; margin: 6px 0; }
.rv-bar div { height: 18px; border-radius: 4px; background: #eceff3; overflow: hidden; border: 1px solid #dfe3e8; }
.rv-bar div span { display: block; height: 100%; background: #ffa41c; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-who { display: flex; align-items: center; gap: 8px; font-size: .88rem; margin-bottom: 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #dfe3e8; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; color: var(--muted); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { display: none; }
.star-input label { font-size: 1.8rem; color: #d5d9de; cursor: pointer; margin: 0; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #ffa41c; }

/* ---------- Boutique vendeur ---------- */
.shop-head { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.shop-logo { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--bg); flex: none; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: var(--brand); }

/* ---------- Panier / commande ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.cart-group { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.cart-group:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.cart-group-head { font-size: .86rem; color: var(--muted); margin-bottom: 6px; }
.cart-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.cart-line img { width: 110px; aspect-ratio: 1; object-fit: contain; background: #f7f8fa; border-radius: 6px; }
.cart-line .actions { display: flex; align-items: center; gap: 12px; font-size: .86rem; margin-top: 8px; flex-wrap: wrap; }
.cart-line .actions select { width: auto; padding: 4px 8px; }
.cart-line .prix-ligne { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.summary { position: sticky; top: 120px; }
.summary .line { display: flex; justify-content: space-between; margin: 6px 0; font-size: .92rem; }
.summary .total { font-size: 1.2rem; font-weight: 700; color: var(--price); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.free-ship { font-size: .84rem; color: var(--ok); margin: 8px 0; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; font-weight: 500; margin: 0; }
.pay-opt:has(input:checked) { border-color: var(--accent); background: #fffbe6; box-shadow: 0 0 0 1px var(--accent); }
.pay-opt input { width: auto; }
.pay-logo { width: 44px; height: 30px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .72rem; flex: none; }
.pay-logo.mtn { background: #ffcc00; color: #003; }
.pay-logo.airtel { background: #e40000; color: #fff; }
.pay-logo.cod { background: #e6f0ff; color: var(--brand); font-size: 1.2rem; }
.momo-field { display: none; margin-top: 10px; }
.momo-field.show { display: block; }
.pay-wait { text-align: center; padding: 30px 20px; }
.spinner { width: 56px; height: 56px; border: 5px solid #ffefa6; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 10px auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.sim-box { border: 2px dashed #f6c77a; background: #fffaf0; border-radius: 8px; padding: 14px; margin-top: 18px; }

/* ---------- Suivi ---------- */
.track { display: flex; margin: 14px 0 6px; }
.track div { flex: 1; text-align: center; position: relative; font-size: .78rem; color: var(--muted); padding-top: 26px; }
.track div::before { content: ""; position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #d5d9de; z-index: 1; }
.track div::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 4px; background: #d5d9de; }
.track div:first-child::after { display: none; }
.track div.done { color: var(--ok); font-weight: 600; }
.track div.done::before, .track div.done::after { background: var(--ok); }
.order-head { display: flex; flex-wrap: wrap; gap: 8px 28px; background: #f3f5f7; border-radius: 8px 8px 0 0; padding: 12px 16px; font-size: .82rem; color: var(--muted); margin: -18px -18px 14px; border-bottom: 1px solid var(--line); }
.order-head b { display: block; color: var(--txt); font-size: .9rem; }
.order-head .ref { margin-left: auto; text-align: right; }

/* ---------- Tableaux / back-office ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 9px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid #edf0f3; vertical-align: middle; }
.tbl tr:hover td { background: #fafbfc; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl img.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #f3f4f6; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 18px; }
.stat { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.stat small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.stat strong { font-size: 1.5rem; display: block; margin-top: 4px; }
.stat.ok { border-left-color: var(--ok); } .stat.info { border-left-color: var(--info); } .stat.warn { border-left-color: var(--warn); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input, .toolbar select { width: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--txt); border-color: var(--accent); font-weight: 600; }
.img-preview { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; background: #f3f4f6; border: 1px solid var(--line); }
.img-list { display: flex; gap: 10px; flex-wrap: wrap; }
.img-list figure { margin: 0; text-align: center; font-size: .8rem; }
.img-list img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

/* ---------- Pied de page ---------- */
.ftr { background: var(--ink-2); color: #dde3ea; margin-top: 30px; font-size: .88rem; }
.ftr-top { display: block; text-align: center; background: #2a3a52; color: #fff; padding: 14px; }
.ftr-top:hover { background: #33455f; color: #fff; text-decoration: none; }
.ftr-cols { max-width: 1000px; margin: 0 auto; padding: 34px 16px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ftr h4 { color: #fff; margin: 0 0 10px; }
.ftr-cols a, .ftr-cols span { display: block; color: #dde3ea; padding: 3px 0; }
.ftr-bottom { background: var(--ink); padding: 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .8rem; color: #aab3bf; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pdp { grid-template-columns: 1fr 1fr; }
  .buybox { grid-column: 1 / -1; position: static; }
}
@media (max-width: 860px) {
  .search-layout, .cart-layout, .reviews { grid-template-columns: minmax(0, 1fr); }   /* minmax : un contenu large ne fait plus déborder la page */
  .filters, .summary { position: static; }
  .pdp { grid-template-columns: 1fr; padding: 16px; }
  .hero { padding: 30px 22px 90px; }
  .hero-art { display: none; }
}
@media (max-width: 760px) {
  .hdr-top { flex-wrap: wrap; padding: 8px 10px; gap: 6px; }
  .hdr-burger { display: block; }
  .hdr-ship { display: none; }
  .logo { font-size: 1.3rem; margin-right: auto; }
  .hdr-acc small, .hdr-acc strong { display: none; }
  .acc-ico { display: block !important; font-size: 1.5rem; line-height: 1; }

  .hdr-cart strong { display: none; }
  .search { order: 10; flex-basis: 100%; height: 40px; }
  .search select { display: none; }
  .hdr-nav { display: none; flex-direction: column; padding: 8px; }
  .hdr-nav.open { display: flex; }
  .hdr-nav-sell, .hdr-nav-back { margin-left: 0; }
  .wrap { padding: 12px; }
  .grid-prod { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cart-line { grid-template-columns: 80px 1fr; }
  .cart-line img { width: 80px; }
  .cart-line .prix-ligne { grid-column: 2; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; }
  .gallery-thumbs button { width: 60px; }
  .order-head .ref { margin-left: 0; text-align: left; }
  .tiles { grid-template-columns: 1fr; }
  .shop-head { flex-direction: column; text-align: center; }
}

/* ---------- Rayons compacts (historique de navigation) ---------- */
.mini-row { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.mini-card { display: flex; flex-direction: column; gap: 4px; color: var(--txt); scroll-snap-align: start; text-decoration: none !important; }
.mini-card img { width: 128px; height: 100px; object-fit: contain; background: #f7f8fa; border-radius: 6px; border: 1px solid #eceff3; }
.mini-card:hover .mini-nom { color: #c45500; text-decoration: underline; }
.mini-nom { font-size: .8rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-prix { font-size: .86rem; }

/* ---------- Texte riche (description produit) ---------- */
.editeur-riche { min-height: 380px; background: #fff; font-size: 1rem; }
.editeur-riche .ql-editor { min-height: 380px; font-family: var(--font); font-size: 1rem; line-height: 1.55; }
.ql-toolbar.ql-snow { border-radius: 6px 6px 0 0; background: #f7f8fa; }
.ql-container.ql-snow { border-radius: 0 0 6px 6px; }
.texte-riche { white-space: normal; line-height: 1.6; }
.texte-riche p { margin: 0 0 .6em; }
.texte-riche h2, .texte-riche h3, .texte-riche h4 { margin: .9em 0 .4em; }
.texte-riche ul, .texte-riche ol { margin: .3em 0 .8em; padding-left: 1.5em; }
.texte-riche li { margin: .15em 0; }
.texte-riche blockquote { margin: .6em 0; padding: .4em 1em; border-left: 4px solid var(--accent); background: #fffbe6; }
.texte-riche a { text-decoration: underline; }
.texte-riche .ql-align-center { text-align: center; }
.texte-riche .ql-align-right { text-align: right; }
.texte-riche .ql-align-justify { text-align: justify; }
.texte-riche .ql-font-serif { font-family: Georgia, "Times New Roman", serif; }
.texte-riche .ql-font-monospace { font-family: Consolas, Monaco, monospace; }
.texte-riche .ql-size-small { font-size: .8em; }
.texte-riche .ql-size-large { font-size: 1.4em; }
.texte-riche .ql-size-huge { font-size: 2em; }
.texte-riche .ql-indent-1 { padding-left: 2em; }
.texte-riche .ql-indent-2 { padding-left: 4em; }
.texte-riche .ql-indent-3 { padding-left: 6em; }
.texte-riche .ql-indent-4 { padding-left: 8em; }
.texte-riche .ql-indent-5 { padding-left: 10em; }
.texte-riche .ql-indent-6 { padding-left: 12em; }
.texte-riche .ql-indent-7 { padding-left: 14em; }
.texte-riche .ql-indent-8 { padding-left: 16em; }

/* ---------- Carrousel à boutons (rayons d'historique, façon Amazon) ---------- */
.carrousel { position: relative; }
.carrousel .mini-row, .carrousel .shelf-row { scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 0; }
.carrousel .mini-row::-webkit-scrollbar, .carrousel .shelf-row::-webkit-scrollbar { display: none; }
.car-btn { position: absolute; top: 28px; width: 40px; height: 64px; border: 1px solid #d5d9de; background: rgba(255,255,255,.96);
  box-shadow: 0 2px 6px rgba(15,27,45,.18); border-radius: 6px; font-size: 2rem; line-height: 1; color: var(--txt); cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.car-btn:hover { background: #fff; border-color: #a6adb7; box-shadow: 0 3px 10px rgba(15,27,45,.25); }
.car-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.car-btn[hidden] { display: none; }
.car-prec { left: -6px; }
.car-suiv { right: -6px; }
@media (max-width: 760px) { .car-btn { width: 32px; height: 52px; font-size: 1.6rem; top: 24px; } }
.carrousel-grand .car-btn { top: 50%; transform: translateY(-50%); height: 80px; }
@media (max-width: 760px) { .carrousel-grand .car-btn { top: 50%; height: 60px; } }

/* Fiche produit : Description du produit, pleine largeur sous le résumé et le bloc de prix */
.pdp-details { padding: 22px 26px; margin-bottom: 18px; scroll-margin-top: 90px; }
.pdp-details > h2 { font-size: 1.3rem; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.pdp-details .texte-riche { max-width: 980px; line-height: 1.6; }
.editeur-riche.editeur-court, .editeur-riche.editeur-court .ql-editor { min-height: 160px; }

/* Fiche technique : tableau sans lignes verticales */
.fiche-tech { width: 100%; max-width: 760px; border-collapse: collapse; font-size: .95rem; }
.fiche-tech th, .fiche-tech td { padding: 9px 14px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fiche-tech tr:first-child th, .fiche-tech tr:first-child td { border-top: 1px solid var(--line); }
.fiche-tech th { width: 38%; font-weight: 600; background: #f6f7f9; }
.fiche-lignes { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.fiche-lignes td { padding: 4px 6px 4px 0; vertical-align: middle; }
.fiche-lignes td:first-child { width: 38%; }
.fiche-lignes td:last-child { width: 1%; white-space: nowrap; }
.fiche-lignes select, .fiche-lignes input { width: 100%; }
@media (max-width: 640px) { .fiche-tech th { width: 45%; } }

/* Logo officiel (image : icône + « nasomba ») */
.logo-img { display: block; height: 40px; width: auto; }
.logo-sm .logo-img { height: 28px; }
@media (max-width: 640px) { .logo .logo-img { height: 32px; } }

/* Déclinaisons (fiche produit) */
.decl-bloc { margin: 4px 0 14px; }
.decl-titre { margin-bottom: 8px; }
.decl-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.decl-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 84px; max-width: 140px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; font-size: .86rem; line-height: 1.2; }
.decl-btn img { width: 48px; height: 48px; object-fit: contain; }
.decl-btn:hover { border-color: #9aa5b4; }
.decl-btn.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.decl-btn-nom { font-weight: 600; text-align: center; }
.decl-btn-prix { color: var(--price); font-size: .8rem; }
.decl-btn.epuise { opacity: .55; border-style: dashed; }
.decl-btn.epuise .decl-btn-prix { color: var(--muted); }
.decl-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

/* Déclinaisons (saisie vendeur) */
.decl-table input[type=text] { min-width: 150px; }
.decl-table input[type=number] { width: 110px; }
.decl-imgs { display: grid; grid-template-columns: repeat(3, 118px); gap: 8px; }
.decl-img { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px dashed var(--line); border-radius: 6px; font-size: .76rem; min-width: 0; }
.decl-img-n { font-weight: 600; color: var(--muted); }
.decl-img img { width: 100%; height: 70px; object-fit: contain; border-radius: 4px; background: #f7f8fa; }
.decl-img .check { font-size: .76rem; }
.decl-img input[type=file] { width: 100%; font-size: .72rem; }

/* Onglets de la fiche produit (espace vendeur) */
.onglets { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 6px 0 16px; overflow-x: auto; scrollbar-width: thin; }
.onglet { flex: none; padding: 9px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted);
  font: inherit; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.onglet:hover { color: var(--txt); background: #f6f8fb; }
.onglet.on { color: var(--txt); border-bottom-color: var(--brand); font-weight: 600; }
.onglet:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.onglet-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: .72rem; text-align: center; }
.onglet-volet { min-height: 220px; }
.onglets-pied { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; position: sticky; bottom: 0; background: var(--card); z-index: 2; }
.onglets-pied p { margin: 8px 0 0; }


/* Bouton « Partager sur Facebook » (fiche produit) */
.btn-facebook { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; background: #1877f2; border-color: #1877f2; color: #fff !important; font-weight: 600; }
.btn-facebook:hover { background: #0f65d6; border-color: #0f65d6; }

/* Fiche produit : « Présentation du produit » (blocs Avancé : slides et cartes) */
.aplus-bloc + .aplus-bloc { margin-top: 28px; }
.aplus-titre { font-size: 1.15rem; margin: 0 0 12px; }
.aplus-slides { position: relative; }
.aplus-piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 8px; }
.aplus-piste::-webkit-scrollbar { display: none; }
.aplus-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; background: #f6f7f9; }
.aplus-slide img { width: 100%; aspect-ratio: 1464 / 600; object-fit: cover; display: block; }
.aplus-slide figcaption { padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); }
.aplus-slide figcaption strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.aplus-slides .car-btn { top: 40%; transform: translateY(-50%); }
.aplus-slides .car-prec { left: 8px; } .aplus-slides .car-suiv { right: 8px; }
.aplus-points { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.aplus-points button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #cbd5e1; padding: 0; cursor: pointer; }
.aplus-points button.on { background: var(--brand); }
.aplus-cartes { display: grid; gap: 28px 32px; }
.aplus-cartes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aplus-cartes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aplus-cartes-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .aplus-cartes-3, .aplus-cartes-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aplus-slide img { aspect-ratio: 4 / 3; } }
.aplus-carte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f6f7f9; display: block; margin-bottom: 18px; }   /* image paysage, sans cadre (modèle Amazon) */
.aplus-carte h4 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 700; color: #0f1111; line-height: 1.3; }
.aplus-carte p { margin: 0; color: #565959; line-height: 1.55; font-size: .95rem; }

/* Filtre catégories : 3e niveau (ex. Mode › Mode Femme › Robes & Pagnes) */
.filters a.sub2 { padding-left: 26px; font-size: .86rem; }

/* ---- Résultats de recherche en liste (pleine largeur, comme Amazon / Cdiscount) ---- */
.liste-prod { display: flex; flex-direction: column; gap: 10px; }
.pligne { display: grid; grid-template-columns: 200px minmax(0, 1fr) 190px; gap: 18px; align-items: start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; transition: box-shadow .15s; }
.pligne:hover { box-shadow: 0 4px 16px rgba(15,27,45,.14); }
.pligne-img { position: relative; display: block; background: #f7f8fa; border-radius: 6px; overflow: hidden; }
.pligne-img img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.pligne-corps { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pligne-nom { color: var(--txt); font-size: 1.08rem; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pligne-nom:hover { color: var(--accent-fonce, #c45500); }
.pligne-marque { font-size: .82rem; color: var(--muted); }
.pligne .prix strong { font-size: 1.4rem; }
.pligne-livraison { font-size: .86rem; color: #1f2937; }
.pligne-action { align-self: center; }
@media (max-width: 760px) {
  .pligne { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .pligne-nom { font-size: .95rem; }
  .pligne .prix strong { font-size: 1.15rem; }
  .pligne-livraison { font-size: .8rem; }
  .pligne-action { grid-column: 2; align-self: start; }
}

/* Choix lignes / grille (barre de résultats) */
.vue-choix { display: inline-flex; border: 1px solid #d5dbe3; border-radius: 6px; overflow: hidden; }
.vue-choix a { display: flex; align-items: center; justify-content: center; width: 36px; height: 32px; color: #64748b; background: #fff; }
.vue-choix a + a { border-left: 1px solid #d5dbe3; }
.vue-choix a svg { fill: currentColor; }
.vue-choix a:hover { color: #003ca5; background: #f1f5fb; }
.vue-choix a.on { color: #fff; background: #003ca5; }

/* « Votre compte » : options en cartes */
.compte-cartes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); margin-top: 10px; }
.compte-carte { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #e3e8ef; border-radius: var(--radius); padding: 16px; color: var(--txt); transition: box-shadow .15s, border-color .15s; }
.compte-carte:hover { border-color: #b6c3d6; box-shadow: 0 4px 16px rgba(15,27,45,.10); text-decoration: none; }
.compte-carte-ico { flex: 0 0 52px; height: 52px; border-radius: 50%; background: #eef4fe; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.compte-carte b { display: block; font-size: 1.02rem; margin-bottom: 3px; }
.compte-carte small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }

/* Carnet d'adresses (Mes adresses) et choix de l'adresse à la commande */
.adresses { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.adresse-carte, .adresse-ajout { background: #fff; border: 1px solid #d5dbe3; border-radius: var(--radius); padding: 14px 16px; min-height: 200px; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.adresse-carte.defaut { border: 2px solid #003ca5; }
.adresse-ajout { align-items: center; justify-content: center; border: 2px dashed #b6c3d6; color: var(--muted); font-weight: 600; font-size: 1.05rem; }
.adresse-ajout span { font-size: 2.4rem; line-height: 1; color: #94a3b8; }
.adresse-ajout:hover { background: #f8fafc; text-decoration: none; }
.adresse-defaut { display: inline-block; align-self: flex-start; background: #003ca5; color: #fff; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 10px; margin-bottom: 4px; }
.adresse-libelle { display: inline-block; align-self: flex-start; background: #eef4fe; color: #003ca5; font-size: .76rem; font-weight: 600; padding: 1px 8px; border-radius: 10px; margin: 0 4px 4px 0; }
.adresse-actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .86rem; }
.adresse-actions form { display: contents; }
button.lien { background: none; border: 0; padding: 0; color: var(--link, #016dfd); cursor: pointer; font: inherit; }
button.lien:hover { text-decoration: underline; }
.adr-choix { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.adr-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #d5dbe3; border-radius: 8px; padding: 12px; cursor: pointer; font-weight: 400; font-size: .9rem; line-height: 1.45; background: #fff; }
.adr-opt input { width: auto; margin-top: 3px; }
.adr-opt:has(input:checked) { border: 2px solid #003ca5; background: #f5f8fe; }
.adr-nouvelle { border-style: dashed; }
.adr-form { margin-top: 12px; padding: 12px; border: 1px solid #e3e8ef; border-radius: 8px; background: #fafbfd; }
.adr-form[hidden] { display: none; }
.results-outils { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; }
.results-outils form { min-width: 0; }
@media (max-width: 760px) { .results-outils { gap: 6px; } .results-outils .check { gap: 5px; font-size: .85rem; white-space: nowrap; } .results-outils select { max-width: 112px; padding: 5px 4px; } }

/* FAQ */
.faq-tete { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.faq-tete h1 { margin: 0; }
.faq-filtre { max-width: 420px; flex: 1 1 260px; }
.faq-rubriques { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.faq-rubriques a { background: #fff; border: 1px solid #d5dbe3; border-radius: 16px; padding: 4px 12px; font-size: .88rem; color: var(--txt); }
.faq-rubriques a:hover { border-color: #003ca5; color: #003ca5; text-decoration: none; }
.faq-bloc h2 { margin-top: 0; }
.faq-bloc[hidden], .faq-q[hidden] { display: none; }
.faq-q { border-top: 1px solid var(--line); }
.faq-q summary { cursor: pointer; padding: 12px 28px 12px 0; font-weight: 600; list-style: none; position: relative; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: '+'; position: absolute; right: 4px; top: 8px; font-size: 1.4rem; color: #003ca5; font-weight: 400; }
.faq-q[open] summary::after { content: '−'; }
.faq-r { padding: 0 0 14px; color: #374151; line-height: 1.6; }
.faq-contact { display: flex; flex-direction: column; gap: 4px; background: #eef4fe; }

/* Pages légales (protection des données) */
.legal { line-height: 1.65; }
.legal h2 { margin-top: 26px; scroll-margin-top: 90px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal-sommaire { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 4px 16px; background: #f8fafc; border-radius: 8px; padding: 12px 16px; margin: 14px 0; font-size: .9rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 8px 0 12px; }
.legal-table th, .legal-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: #f1f5fb; }
@media (max-width: 640px) { .legal-table { display: block; overflow-x: auto; } }

/* Commande : lots de livraison (même boutique + mêmes dates) */
#lots { transition: opacity .15s; }
.lot { border: 1px solid #e3e8ef; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.lot-tete { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 2px; }
.lot-n { background: #003ca5; color: #fff; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 10px; }
.lot-dates { color: #067647; font-size: .95rem; }
.lot-info { font-size: .85rem; color: #374151; margin-bottom: 6px; }
.lot-ligne { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid #f1f4f8; font-size: .9rem; }
.lot-ligne img { width: 44px; height: 44px; object-fit: contain; background: #f7f8fa; border-radius: 4px; flex: 0 0 44px; }
.lot-ligne span { flex: 1; min-width: 0; }
.lot-ligne b { white-space: nowrap; }
.lot-noki { background: #fff4cc; color: #8a5a00; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.lot-ligne small.d-block { display: block; font-size: .78rem; }
@media (max-width: 480px) { .lot-ligne { flex-wrap: wrap; row-gap: 2px; } .lot-ligne span { flex: 1 1 calc(100% - 54px); } .lot-ligne b { margin-left: 54px; } }
/* Badge Nasomba Noki (expédié et certifié par Nasomba) */
.noki-badge { display: inline-flex; align-items: center; gap: 3px; background: #fdce01; color: #01296b; font-size: .74rem; font-weight: 800; padding: 1px 8px; border-radius: 10px; white-space: nowrap; letter-spacing: .1px; }
.noki-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }
/* Fiche produit : bloc d'achat (prix, livraison, stock) */
.buy-prix-bloc { margin-bottom: 10px; }
.buy-remise { color: var(--ko); font-weight: 700; }
.buy-livraison { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: .9rem; line-height: 1.45; background: #fafbfd; }
.buy-livraison.noki { border-color: #f5d04a; background: #fffbea; }
.buy-livraison-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8rem; color: #01296b; font-weight: 600; margin-bottom: 6px; }
.buy-livraison-prix { font-size: .98rem; }
.buy-gratuit { color: #067647; letter-spacing: .2px; }
.buy-manque { font-size: .84rem; color: #7a4a00; margin-top: 4px; }
.buy-jauge { height: 6px; background: #f1e3a8; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.buy-jauge span { display: block; height: 100%; background: #067647; border-radius: 3px; transition: width .2s; }
.buy-livraison-dates { margin-top: 6px; }
.buy-livraison-note { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.buy-noki { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: .8rem; color: #01296b; font-weight: 600; }
.pdp-noki { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.js-rebours[hidden] { display: none !important; }
.js-rebours b { color: #067647; }
.lot-rebours { font-size: .82rem; color: #374151; margin: -2px 0 6px; }
/* Barre de sous-menu d'un rayon (sous le menu principal, comme Amazon) */
.sous-menu { background: #fff; border-bottom: 1px solid #e3e6ea; display: flex; gap: 4px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; font-size: .86rem; }
.sous-menu::-webkit-scrollbar { display: none; }
.hdr .sous-menu a { color: #1f2937; padding: 9px 10px; white-space: nowrap; border-bottom: 2px solid transparent; }
.hdr .sous-menu a:hover { color: #016dfd; border-bottom-color: #016dfd; }
.hdr .sous-menu a.on { color: #01296b; border-bottom-color: #fdce01; }
.hdr .sous-menu .sous-menu-racine { font-weight: 700; color: #01296b; }
/* Flèches de défilement des barres de menu */
.defile-cadre { position: relative; }
.defile-btn { position: absolute; top: 0; bottom: 0; width: 34px; border: 0; cursor: pointer; font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center; z-index: 2; padding: 0; }
.defile-btn[hidden] { display: none; }
.defile-prec { left: 0; }
.defile-suiv { right: 0; }
.defile-sombre .defile-btn { color: #fff; }
.defile-sombre .defile-prec { background: linear-gradient(to right, var(--ink-2) 60%, transparent); }
.defile-sombre .defile-suiv { background: linear-gradient(to left, var(--ink-2) 60%, transparent); }
.defile-clair .defile-btn { color: #01296b; }
.defile-clair .defile-prec { background: linear-gradient(to right, #fff 60%, rgba(255,255,255,0)); }
.defile-clair .defile-suiv { background: linear-gradient(to left, #fff 60%, rgba(255,255,255,0)); }
.defile-btn:hover { color: #fdce01; }
.defile-clair .defile-btn:hover { color: #016dfd; }
.defile-btn:focus-visible { outline: 2px solid #fdce01; outline-offset: -2px; }

/* Cartes des sous-catégories d'une catégorie parente (page catégorie) */
.sous-cats { background: #fff; border-radius: var(--radius); padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.sous-cats-titre { font-size: 1.05rem; margin: 0 0 10px; color: #01296b; }
.sous-cats-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.sous-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 8px; border: 1px solid #e3e6ea; border-radius: 10px; color: var(--txt); transition: box-shadow .15s, border-color .15s; min-width: 0; }
.sous-cat:hover { border-color: #016dfd; box-shadow: 0 4px 14px rgba(1,109,253,.15); text-decoration: none; }
.sous-cat-img { width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #f6f7f9; display: flex; align-items: center; justify-content: center; }
.sous-cat-img img { width: 100%; height: 100%; object-fit: contain; }
.sous-cat-img.genere img { object-fit: cover; }
.sous-cat-nom { font-weight: 700; font-size: .88rem; line-height: 1.25; overflow-wrap: anywhere; }
.sous-cat:hover .sous-cat-nom { color: #016dfd; }
.sous-cat-nb { font-size: .76rem; color: var(--muted); }
@media (max-width: 760px) {   /* mobile : bande défilante horizontale */
  .sous-cats { padding: 10px; }
  .sous-cats-grille { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .sous-cats-grille::-webkit-scrollbar { display: none; }
  .sous-cat { flex: 0 0 104px; scroll-snap-align: start; padding: 6px; }
  .sous-cat-nom { font-size: .8rem; }
}

/* Page marque (Admin › Marques) : bannière, logo, description, blocs */
.marque-tete { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.marque-banniere { display: block; width: 100%; aspect-ratio: 3 / 1; max-height: 360px; object-fit: cover; }
.marque-identite { display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.marque-tete.avec-banniere .marque-identite { padding-top: 14px; }
.marque-logo { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; flex: none; overflow: hidden; box-shadow: 0 1px 4px rgba(15,27,45,.18); }   /* le logo remplit tout le cadre arrondi, sans bordure */
.marque-logo-texte { display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; color: #01296b; background: #fdce01; border: 0; }
.marque-identite h1 { margin: 0 0 2px; }
.marque-sur { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #016dfd; }
.marque-desc { margin: 0; padding: 0 22px 20px; color: #374151; max-width: 900px; }
.marque-bloc { margin-bottom: 18px; }
.pdp-brand-voir { margin-left: 8px; font-size: .86rem; }
@media (max-width: 640px) { .marque-identite { gap: 12px; padding: 14px; } .marque-logo { width: 64px; height: 64px; } .marque-desc { padding: 0 14px 16px; } }

/* État du produit (inc/etats.php) : badge sur les cartes (hors neuf) et ligne « État » de la fiche */
.etat-badge { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.etat-neuf { background: #e7f6ec; color: #146c2e; }
.etat-reconditionne { background: #e6f0ff; color: #0b4fb3; }
.etat-occasion { background: #fff1e0; color: #9a4b00; }
.buy-non-livre { margin: 6px 0; padding: 8px 10px; border-radius: 6px; background: #fdecee; color: var(--ko); font-size: .9rem; }
.buy-restriction { margin-top: 4px; font-size: .82rem; color: #8a5a00; }
.pdp-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 4px; font-size: .9rem; }
