:root { --bg:#fffaf8; --ink:#2b2226; --brand:#b0305f; --muted:#7a6b72; --line:#eadde2; --card:#fff; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background:var(--bg); color:var(--ink); line-height:1.5; }
a { color:var(--brand); }
.banner { background:#fff3cd; color:#664d03; padding:8px 16px; font-size:.85rem; text-align:center; }
.top { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); background:#fff; position:sticky; top:0; z-index:5; flex-wrap:wrap; }
.brand { font-weight:800; letter-spacing:.06em; text-decoration:none; color:var(--brand); }
.top nav { display:flex; gap:14px; align-items:center; }
button, .btn { background:var(--brand); color:#fff; border:0; border-radius:8px; padding:10px 16px; font-size:1rem; cursor:pointer; text-decoration:none; display:inline-block; }
button.ghost, #lang-btn { background:transparent; color:var(--brand); border:1px solid var(--brand); padding:6px 10px; font-size:.9rem; }
main { max-width:960px; margin:0 auto; padding:16px; min-height:70vh; }
input, textarea { width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; font:inherit; background:#fff; }
input.err { border-color:#c00; }
label { display:block; margin:12px 0 4px; font-weight:600; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; margin-top:16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px; display:flex; flex-direction:column; gap:6px; text-decoration:none; color:inherit; }
.ph { background:linear-gradient(135deg,#f8d7e3,#f3e6ff); border-radius:8px; aspect-ratio:1/1; display:grid; place-items:center; font-size:2rem; }
.price { font-weight:700; }
.tag { font-size:.75rem; background:#ffe8a3; border-radius:6px; padding:2px 6px; align-self:flex-start; }
.row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.qty { display:flex; align-items:center; gap:6px; } .qty button { padding:4px 10px; }
.msg { background:#e7f6ec; border:1px solid #b6e2c3; padding:10px; border-radius:8px; margin:10px 0; }
.warn { background:#fff3cd; border:1px solid #ffe69c; padding:10px; border-radius:8px; margin:10px 0; }
pre { white-space:pre-wrap; background:#fff; border:1px solid var(--line); padding:10px; border-radius:8px; }
footer { text-align:center; color:var(--muted); font-size:.85rem; padding:20px 16px; }

/* ===== Étape A : boutique publique (identité FABRILEMSTORE) ===== */
.top { box-shadow:0 1px 8px rgba(176,48,95,.06); }
.top nav a { padding:8px 4px; font-weight:600; text-decoration:none; }
.soon { font-size:.75rem; color:var(--muted); border:1px dashed var(--line); border-radius:999px; padding:4px 10px; }
button, .btn { min-height:44px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline:3px solid #f0a8c3; outline-offset:2px; }
.hero { background:linear-gradient(135deg,#fde6ef,#efe3ff); border-radius:16px; padding:22px 16px; margin-bottom:14px; }
.hero h1 { margin:0 0 6px; font-size:1.5rem; line-height:1.2; }
.hero p { margin:0 0 14px; color:var(--muted); }
.hero input { max-width:520px; min-height:46px; font-size:1rem; }
.chips { display:flex; gap:8px; overflow-x:auto; padding:2px 0 8px; -webkit-overflow-scrolling:touch; }
.chip { background:#fff; color:var(--brand); border:1px solid var(--brand); border-radius:999px; padding:8px 14px; font-size:.9rem; white-space:nowrap; min-height:40px; }
.chip.on { background:var(--brand); color:#fff; }
.toolbar { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:6px; }
.muted { color:var(--muted); font-size:.9rem; }
.sort { display:flex; align-items:center; gap:8px; margin:0; font-weight:600; font-size:.9rem; }
.sort select { padding:8px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; min-height:40px; }
.grid { grid-template-columns:repeat(2,1fr); gap:12px; }
@media (min-width:640px) { .grid { grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:16px; } .hero h1 { font-size:2rem; } main { padding:24px 16px; } }
.card { transition:box-shadow .15s, transform .15s; }
.card:hover { box-shadow:0 6px 18px rgba(176,48,95,.14); transform:translateY(-2px); }
.pname { font-weight:600; line-height:1.3; }
.seller { color:var(--muted); font-size:.85rem; margin:0; }
.ph-wrap { position:relative; border-radius:8px; overflow:hidden; aspect-ratio:1/1; }
.ph-wrap .ph { position:absolute; inset:0; }
.pimg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#fff; }
.ph span { font-size:2.6rem; }
.ph-cheveux { background:linear-gradient(135deg,#fbd5e4,#f4e1ff); }
.ph-maquillage { background:linear-gradient(135deg,#ffd9d0,#ffe9bf); }
.ph-accessoires { background:linear-gradient(135deg,#dff0ff,#e8e0ff); }
.state { text-align:center; padding:36px 12px; color:var(--muted); grid-column:1/-1; }
.err-box { background:#fff3cd; border:1px solid #ffe69c; border-radius:12px; color:#664d03; }
.detail { display:grid; gap:18px; margin-top:12px; }
@media (min-width:720px) { .detail { grid-template-columns:minmax(260px,420px) 1fr; gap:32px; } }
.detail-img { max-width:420px; width:100%; }
.detail-info h1 { margin:0 0 6px; }
.price.big { font-size:1.6rem; margin:8px 0; }
.top nav a, .soon, #lang-btn { white-space:nowrap; }
.top nav { gap:10px; flex-wrap:wrap; }
@media (max-width:420px) { .soon { font-size:.7rem; padding:3px 8px; } .top { padding:10px 12px; } }
.top { flex-wrap:wrap; }
.top nav { flex-wrap:nowrap; gap:8px; }
@media (max-width:420px) { .top nav a { font-size:.9rem; } #lang-btn { padding:6px 8px; font-size:.8rem; min-height:36px; } .soon { font-size:.66rem; padding:3px 6px; } }

/* ===== Comptes, formulaires, espaces (étape B) ===== */
.authbox { max-width:420px; margin:0 auto; }
.authbox label, .pform label { display:block; margin:12px 0 4px; font-weight:600; }
.pw { display:flex; gap:8px; align-items:stretch; } .pw input { flex:1; } .pw .ghost { flex:none; }
.ghost { background:#fff; color:var(--brand); border:1px solid var(--brand); }
.panel { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px; margin:12px 0; }
.actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:10px 0; }
.list { background:#fff; border:1px solid var(--line); border-radius:12px; padding:0 12px; }
.list .row:last-child { border-bottom:0; }
select, textarea { width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; font:inherit; background:#fff; }
select.err, textarea.err { border-color:#c00; }
#nav-account { white-space:nowrap; }
.tone-grey { background:#e8e8ee; } .tone-amber { background:#ffe8a3; } .tone-green { background:#cdeed7; } .tone-red { background:#f9cfd2; }
.thumbs { display:flex; flex-wrap:wrap; gap:10px; margin:8px 0; }
.thumb { position:relative; width:96px; } .thumb img { width:96px; height:96px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }
.thumb .rm { position:absolute; top:2px; right:2px; min-height:28px; padding:0 8px; }
.thumb .mk { min-height:30px; padding:2px 4px; font-size:.7rem; width:100%; margin-top:4px; }
.inline { display:inline-block; margin:0; padding:2px 8px; }
.stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin:12px 0; }
.stat { background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px; }
.stat-l { color:var(--muted); font-size:.85rem; } .stat-v { font-size:1.4rem; font-weight:700; } .stat-h { color:var(--muted); font-size:.75rem; }
.stat-soon { opacity:.65; border-style:dashed; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin:8px 0 14px; border-bottom:1px solid var(--line); }
.tabs a { padding:10px 12px; text-decoration:none; color:var(--muted); border-bottom:3px solid transparent; font-weight:600; }
.tabs a[aria-current="page"] { color:var(--brand); border-bottom-color:var(--brand); }
.badge { background:var(--brand); color:#fff; border-radius:999px; padding:1px 7px; font-size:.75rem; }
.reject-box, .rate { flex-basis:100%; display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }
.reject-box label, .rate label { flex:1; min-width:180px; font-size:.85rem; }
.prow .actions, .srow .actions { margin:0; }
a.chip { text-decoration:none; }
.gthumbs { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.gthumb { padding:0; min-height:0; width:64px; height:64px; border:2px solid var(--line); background:#fff; border-radius:8px; overflow:hidden; }
.gthumb.on { border-color:var(--brand); } .gthumb img { width:100%; height:100%; object-fit:cover; display:block; }
.gvideo { margin-top:14px; } .gvideo video { width:100%; max-width:420px; border-radius:10px; background:#000; display:block; }

/* Couverture de vidéo */
.cover-prev { width:100%; max-width:420px; aspect-ratio:16/9; background:#f3f0ee; border:1px dashed var(--line); border-radius:10px; display:flex; align-items:center; justify-content:center; overflow:hidden; margin:6px 0; }
.cover-prev img { width:100%; height:100%; object-fit:cover; } .cover-prev p { padding:8px; text-align:center; }
.cover-actions { justify-content:flex-start; flex-wrap:wrap; gap:8px; }
.vprev { width:100%; max-width:420px; border-radius:10px; background:#000; display:block; margin:6px 0; }
.vbig { width:100%; max-width:640px; border-radius:10px; background:#000; display:block; aspect-ratio:16/9; }
.card { position:relative; } .vbadge { position:absolute; top:8px; right:8px; background:rgba(0,0,0,.6); color:#fff; border-radius:999px; width:26px; height:26px; display:flex; align-items:center; justify-content:center; font-size:.75rem; }
.crop-ov { position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:100; display:flex; align-items:center; justify-content:center; padding:12px; overflow:auto; }
.crop-box { background:#fff; border-radius:12px; padding:14px; width:100%; max-width:480px; max-height:96vh; overflow:auto; }
.crop-c { width:100%; aspect-ratio:16/9; background:#000; border-radius:8px; display:block; margin-bottom:8px; }
.crop-box label { display:block; margin-top:6px; } .crop-box input[type=range] { width:100%; }
.mini { width:40px; height:40px; object-fit:cover; border-radius:6px; vertical-align:middle; margin-right:6px; }
.cjdesc { white-space:pre-wrap; max-height:360px; overflow:auto; font:inherit; }
.pdesc { white-space:pre-line; }
.bar { height:8px; border-radius:4px; background:var(--accent, #b0305f); min-width:2px; margin-top:4px; }
.trow { display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:8px; padding:4px 0; font-size:.9rem; }
.trow .bar { margin-top:0; }
#st-top, #st-top .panel { min-width:0; max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; }

/* Variantes : les options passent à la ligne (beaucoup de tailles/couleurs) au lieu de faire défiler la page en largeur. */
#variants .chips { flex-wrap:wrap; overflow-x:visible; }
.detail-info, .detail-img { min-width:0; }

/* CJ19 : l'en-tête ne doit pas dépasser de l'écran sur petit téléphone (360 px) */
@media (max-width:480px) { .top nav { flex-wrap:wrap; row-gap:4px; } .top { min-width:0; } .warn, .panel { max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; } }

/* ===== F1 : identité Fago (bleu nuit + ambre), en-tête riche, navigation du bas ===== */
:root { --navy:#0f1b3d; --navy2:#1b2d5e; --amber:#ff9f1c; --brand:#c2570c; --bg:#f4f6fb; --line:#e0e5ef; --muted:#5d6785; --ink:#17203a; }
a { color:#1d4ed8; }
.top { display:block; padding:0; background:var(--navy); color:#fff; border-bottom:0; box-shadow:0 2px 10px rgba(15,27,61,.25); }
.top-main { display:flex; align-items:center; gap:12px; padding:10px 12px; flex-wrap:wrap; }
.top .brand { display:flex; align-items:center; gap:8px; color:#fff; letter-spacing:0; flex:none; }
.top .logo { width:34px; height:34px; }
.brand-text { display:flex; flex-direction:column; line-height:1.05; }
.brand-text b { font-size:1.6rem; font-weight:800; letter-spacing:.01em; }
.brand-text small { font-size:.62rem; color:#c9d3f0; font-weight:500; white-space:nowrap; }
.deliver { display:none; align-items:center; gap:6px; color:#fff; font-weight:400; margin:0; flex:none; }
.deliver svg { width:22px; height:22px; flex:none; }
.deliver small { display:block; font-size:.68rem; color:#c9d3f0; }
.deliver select { background:transparent; color:#fff; border:0; font:inherit; font-weight:700; font-size:.88rem; padding:0; width:auto; max-width:150px; min-height:0; cursor:pointer; }
.deliver select option { color:#111; }
.hsearch { display:flex; flex:1 1 100%; order:5; min-width:0; background:#fff; border-radius:10px; overflow:hidden; border:2px solid var(--amber); }
.hsearch input { border:0; border-radius:0; min-height:44px; flex:1; min-width:0; background:#fff; }
.hsearch input:focus-visible { outline:0; }
.hsearch select { display:none; border:0; border-left:1px solid var(--line); border-radius:0; background:#f2f4fa; width:auto; max-width:170px; font-size:.85rem; min-height:44px; }
.hsearch button { background:var(--amber); color:var(--navy); border-radius:0; min-width:50px; padding:0 12px; display:grid; place-items:center; }
.hsearch button svg { width:22px; height:22px; }
.hnav { display:flex; align-items:center; gap:10px; margin-left:auto; }
.top .hnav a { color:#fff; font-weight:600; text-decoration:none; padding:6px 4px; display:flex; align-items:center; gap:6px; position:relative; white-space:nowrap; }
.top .hnav svg { width:26px; height:26px; flex:none; }
.top #lang-btn { color:#fff; border-color:#6f82b8; background:transparent; min-height:36px; padding:4px 10px; font-size:.8rem; }
.cur { display:none; color:#c9d3f0; font-size:.8rem; border:1px solid #3a4c82; border-radius:8px; padding:6px 8px; }
.h-acc, .h-fav, .h-cart span { font-size:.9rem; }
.h-acc, .h-fav { display:none !important; }
.badge-n { position:absolute; top:-4px; left:16px; background:var(--amber); color:var(--navy); border-radius:999px; font-size:.68rem; min-width:18px; height:18px; display:grid; place-items:center; padding:0 4px; font-weight:800; }
.top-sub { display:flex; align-items:center; background:var(--navy2); overflow-x:auto; -webkit-overflow-scrolling:touch; white-space:nowrap; scrollbar-width:none; }
.top-sub::-webkit-scrollbar { display:none; }
.menu-btn { background:transparent; color:#fff; border-radius:0; display:flex; align-items:center; gap:8px; padding:0 14px; min-height:42px; font-weight:700; font-size:.9rem; flex:none; }
.menu-btn svg { width:22px; height:22px; }
.sub-links { display:flex; }
.sub-links a { color:#e6ecff; text-decoration:none; padding:11px 12px; font-size:.88rem; font-weight:600; border-bottom:3px solid transparent; }
.sub-links a[aria-current="page"] { border-bottom-color:var(--amber); color:#fff; }
.catmenu { position:fixed; inset:0; background:rgba(10,16,36,.55); z-index:60; display:flex; }
.catmenu[hidden] { display:none; }
.cm-panel { background:#fff; width:min(88vw,360px); height:100%; overflow:auto; padding:14px; box-shadow:4px 0 20px rgba(0,0,0,.25); }
.cm-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-size:1.1rem; }
.cm-item { display:block; padding:14px 8px; border-bottom:1px solid var(--line); color:var(--ink); text-decoration:none; font-weight:600; }
.bnav { position:fixed; left:0; right:0; bottom:0; z-index:40; background:#fff; border-top:1px solid var(--line); display:flex; box-shadow:0 -2px 12px rgba(15,27,61,.1); padding-bottom:env(safe-area-inset-bottom); }
.bnav a, .bnav .bn-btn { flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; padding:7px 2px 6px; font-size:.7rem; color:var(--muted); text-decoration:none; font-weight:600; position:relative; background:transparent; border-radius:0; min-height:56px; justify-content:center; }
.bnav svg { width:24px; height:24px; }
.bnav [aria-current="page"] { color:var(--navy); }
.bnav [aria-current="page"] svg { stroke:var(--amber); }
.bnav .badge-n { left:calc(50% + 4px); top:3px; }
body { padding-bottom:64px; }
.soon-page { max-width:640px; }
.hero { background:linear-gradient(135deg,#dfe8ff,#fff1dc); }
@media (min-width:900px) {
  .top-main { flex-wrap:nowrap; padding:10px 20px; gap:18px; }
  .deliver { display:flex; }
  .hsearch { flex:1 1 auto; order:0; }
  .hsearch select { display:block; }
  .hnav { gap:16px; }
  .cur { display:block; }
  .h-acc, .h-fav { display:flex !important; }
  .h-acc { font-size:.85rem; }
  .top .hnav svg { width:28px; height:28px; }
  .badge-n { left:18px; }
  .top-sub { padding:0 8px; }
  .bnav { display:none; }
  body { padding-bottom:0; }
  main { max-width:1200px; }
}
.top .hnav a.h-cart { min-width:44px; min-height:44px; justify-content:center; }
.h-cart span { display:none; }
@media (min-width:900px) { .h-cart span { display:inline; } .top .hnav a.h-cart { min-width:0; } }
.badge-n[hidden] { display:none; }
.deliver select { max-width:200px; }

/* ===== F2 : accueil Fago (bannière, confiance, catégories) ===== */
#homeblocks[hidden], .filterbar[hidden] { display:none; }
.car { position:relative; margin:0 0 14px; }
.car-track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; border-radius:16px; }
.car-track::-webkit-scrollbar { display:none; }
.slide { flex:0 0 100%; scroll-snap-align:start; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 16px; min-height:210px; color:var(--ink); overflow:hidden; }
.slide h2 { margin:8px 0 6px; font-size:1.35rem; line-height:1.15; overflow-wrap:anywhere; }
.slide p { margin:0 0 14px; font-size:.95rem; }
.slide-txt { flex:1 1 55%; min-width:0; }
.pill { display:inline-block; background:var(--amber); color:var(--navy); font-size:.72rem; font-weight:800; padding:3px 10px; border-radius:999px; }
.btn.amber { background:var(--amber); color:var(--navy); font-weight:800; }
.s-brand { background:linear-gradient(120deg,#0f1b3d,#23408f); color:#fff; }
.s-brand p { color:#d6defa; }
.slide-art { width:42%; max-width:200px; flex:none; }
.slide-pic { flex:0 0 40%; max-width:260px; }
.hm-img { display:block; width:100%; aspect-ratio:1/1; border-radius:14px; background:rgba(255,255,255,.55); }
.t0 { background:#ffe8cf; } .t1 { background:#dfe8ff; } .t2 { background:#dff3e6; } .t3 { background:#f6e2ef; } .t4 { background:#fff3c8; } .t5 { background:#e4e0fb; }
.car-arrow { display:none; position:absolute; top:50%; transform:translateY(-50%); width:42px; height:60px; background:rgba(255,255,255,.9); color:var(--navy); border-radius:10px; font-size:1.8rem; padding:0; box-shadow:0 2px 8px rgba(0,0,0,.2); }
.car-arrow.prev { left:8px; } .car-arrow.next { right:8px; }
.car-dots { position:absolute; left:0; right:0; bottom:8px; display:flex; justify-content:center; gap:4px; }
.car-dot { width:22px; height:22px; min-height:0; padding:0; background:transparent; border-radius:50%; position:relative; }
.car-dot::after { content:""; position:absolute; inset:7px; border-radius:50%; background:rgba(120,130,160,.55); }
.car-dot.on::after { background:var(--amber); inset:6px; }
.trust { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-bottom:16px; }
.trust-i { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px; min-width:0; }
.trust-i svg { width:30px; height:30px; flex:none; color:var(--navy); }
.trust-i strong { display:block; font-size:.82rem; line-height:1.2; }
.trust-i span { display:block; font-size:.72rem; color:var(--muted); line-height:1.25; }
.hm-sec { margin-bottom:16px; }
.hm-head { display:flex; justify-content:space-between; align-items:baseline; }
.hm-head h2, .hm-all { font-size:1.2rem; margin:8px 0; }
.catpills { display:flex; gap:12px; overflow-x:auto; padding:4px 2px 10px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.catpills::-webkit-scrollbar { display:none; }
.catpill { flex:none; width:76px; text-align:center; text-decoration:none; color:var(--ink); font-size:.78rem; font-weight:600; }
.catpill .hm-img { width:68px; height:68px; margin:0 auto 4px; border-radius:50%; border:2px solid var(--line); background:#fff; }
.catpill span:last-child { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.catgrid { display:none; }
.catcard { display:flex; flex-direction:column; gap:8px; border-radius:14px; padding:12px; text-decoration:none; color:var(--ink); border:1px solid var(--line); min-width:0; }
.catcard strong { font-size:1rem; overflow-wrap:anywhere; }
.catcard small { color:var(--muted); font-size:.75rem; }
.mosaic { display:grid; gap:6px; grid-template-columns:repeat(2,1fr); }
.mosaic.m1 { grid-template-columns:1fr; } .mosaic .hm-img { border-radius:8px; }
.filterbar { display:flex; align-items:center; gap:12px; margin:4px 0 8px; font-size:1.05rem; flex-wrap:wrap; }
@media (min-width:640px) {
  .catpills { display:none; }
  .catgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px; }
  .trust { grid-template-columns:repeat(4,1fr); }
  .slide { min-height:300px; padding:28px 40px; } .slide h2 { font-size:2rem; } .slide p { font-size:1.05rem; }
  .car-arrow { display:block; }
}
.slide { padding-bottom:34px; }
.trust { display:flex; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.trust::-webkit-scrollbar { display:none; }
.trust-i { flex:0 0 236px; }
@media (min-width:640px) { .slide { padding:28px 76px 38px; } .trust { display:grid; overflow:visible; } .trust-i { flex:none; } }

/* ===== F3 : cartes produit (cœur, ajout rapide), rangées, boutiques ===== */
.cardw { position:relative; display:flex; flex-direction:column; gap:6px; min-width:0; }
.cardw .card { flex:1; position:relative; }
.heart { position:absolute; top:8px; right:8px; width:40px; height:40px; min-height:0; padding:0; border-radius:50%; background:rgba(255,255,255,.95); color:#6b7592; display:grid; place-items:center; box-shadow:0 1px 6px rgba(15,27,61,.25); z-index:2; }
.heart svg { width:22px; height:22px; fill:none; }
.heart.on { color:#e11d48; } .heart.on svg { fill:currentColor; }
.card-act .btn.sm { width:100%; text-align:center; min-height:42px; padding:8px; font-size:.88rem; font-weight:700; background:var(--amber); color:var(--navy); }
.card-act .btn.sm.ghost { background:#fff; border:1px solid var(--navy); color:var(--navy); }
.card-act .btn.sm.done { background:#cdeed7; color:#14532d; }
.tag.new { position:absolute; top:16px; left:16px; background:var(--amber); color:var(--navy); font-weight:800; z-index:1; }
.hrow-wrap { position:relative; }
.hrow { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x proximity; padding:4px 2px 10px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.hrow::-webkit-scrollbar { display:none; }
.hrow .cardw { flex:0 0 160px; scroll-snap-align:start; }
.row-arrow { display:none; position:absolute; top:38%; transform:translateY(-50%); width:40px; height:64px; background:rgba(255,255,255,.95); color:var(--navy); border-radius:10px; font-size:1.8rem; padding:0; box-shadow:0 2px 8px rgba(0,0,0,.25); z-index:3; }
.row-arrow.prev { left:-6px; } .row-arrow.next { right:-6px; }
.shoprow { display:flex; gap:10px; overflow-x:auto; padding:4px 2px 10px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.shoprow::-webkit-scrollbar { display:none; }
.shopcard { flex:0 0 150px; display:flex; flex-direction:column; align-items:center; gap:4px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 10px; text-decoration:none; color:var(--ink); text-align:center; min-width:0; }
.shopcard strong { overflow-wrap:anywhere; font-size:.92rem; }
.shopcard small { color:var(--muted); font-size:.75rem; }
.shop-ini { width:52px; height:52px; border-radius:50%; background:var(--navy); color:var(--amber); font-weight:800; font-size:1.4rem; display:grid; place-items:center; }
#fav-page .grid { margin-top:12px; }
@media (min-width:640px) { .hrow .cardw { flex-basis:200px; } .row-arrow { display:block; } }
.hm-head { gap:12px; } .hm-head h2 { min-width:0; overflow-wrap:anywhere; } .hm-head a { white-space:nowrap; flex:none; }

/* ===== F4a : résultats, tri, filtre de prix ===== */
.filters { margin:0 0 10px; background:#fff; border:1px solid var(--line); border-radius:12px; }
.filters summary { cursor:pointer; padding:12px 14px; font-weight:700; min-height:44px; display:flex; align-items:center; gap:8px; list-style:none; }
.filters summary::-webkit-details-marker { display:none; }
.filters summary::after { content:"▾"; margin-left:auto; color:var(--muted); }
.filters[open] summary::after { content:"▴"; }
.flt-n { background:var(--amber); color:var(--navy); border-radius:999px; min-width:20px; height:20px; display:inline-grid; place-items:center; font-size:.72rem; padding:0 6px; }
.flt-n[hidden] { display:none; }
.flt-body { padding:0 14px 14px; display:grid; gap:10px; }
.flt-body fieldset { border:0; margin:0; padding:0; display:flex; gap:10px; flex-wrap:wrap; }
.flt-body legend { font-weight:600; margin-bottom:6px; padding:0; }
.flt-body label { display:flex; flex-direction:column; gap:4px; font-size:.85rem; flex:1 1 120px; min-width:0; }
.flt-body input { min-height:44px; }
.flt-body .warn[hidden] { display:none; }
#no-result { text-align:left; grid-column:1/-1; }
#no-result strong { font-size:1.1rem; }
.none-cats { display:flex; flex-wrap:wrap; gap:8px; }
.sort select option[hidden] { display:none; }

/* ===== F4b : suggestions de recherche, filtres supplémentaires ===== */
.hsearch { overflow:visible; position:relative; }
.hsearch input { border-radius:8px 0 0 8px; }
.hsearch button { border-radius:0 8px 8px 0; }
.sugg { position:absolute; left:-2px; right:-2px; top:calc(100% + 4px); margin:0; padding:4px 0; list-style:none; background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 28px rgba(15,27,61,.3); max-height:min(60vh,380px); overflow:auto; z-index:80; }
.sugg[hidden] { display:none; }
.sg-item { display:flex; align-items:center; gap:10px; padding:10px 14px; min-height:46px; cursor:pointer; }
.sg-item.on, .sg-item:hover { background:#fff3dc; }
.sg-ic { flex:none; width:22px; text-align:center; }
.sg-label { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.sg-item small { color:var(--muted); font-size:.72rem; flex:none; }
.sg-head { display:flex; justify-content:space-between; align-items:center; padding:4px 14px; color:var(--muted); font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.sg-clear { background:transparent; color:#1d4ed8; min-height:40px; padding:0 6px; font-size:.82rem; text-transform:none; font-weight:600; }
.flt-body label.check { flex-direction:row; align-items:center; gap:10px; min-height:44px; flex:0 0 auto; font-size:.92rem; }
.flt-body label.check input { width:22px; height:22px; min-height:0; flex:none; }
.flt-body select { min-height:44px; max-width:100%; }

/* ===== F5a : finitions très petits écrans et accessibilité ===== */
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.pdesc, .detail-info, .pname, .seller, .state, .soon-page, .cm-item, .cartrow, #app .muted { overflow-wrap:anywhere; }
.detail-info .chip { max-width:100%; white-space:normal; text-align:left; }
.top #lang-btn { min-height:40px; min-width:44px; }
.car-dot { width:28px; height:28px; }
.car-dot::after { inset:10px; } .car-dot.on::after { inset:9px; }
.qty button { min-width:40px; min-height:40px; }
:where(a, button, input, select, summary, [tabindex]):focus-visible { outline:3px solid #1d4ed8; outline-offset:2px; }
.top :where(a, button, input, select):focus-visible { outline-color:var(--amber); }
.skip { position:absolute; left:8px; top:-60px; background:#fff; color:var(--navy); padding:10px 14px; border-radius:8px; z-index:100; font-weight:700; }
.skip:focus { top:8px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }

/* ===== F5a : finitions petit écran (zones tactiles ≥ 40 px, champs ≥ 16 px) ===== */
.top .brand { min-height:44px; }
.hm-head a, #fb-home { display:inline-flex; align-items:center; min-height:44px; }
.slide { padding-bottom:50px; }
.car-dots { bottom:4px; gap:0; }
.car-dot { width:40px; height:40px; }
.car-dot::after { inset:16px; }
.car-dot.on::after { inset:15px; }
.toolbar select, .filters input, .filters select, #sort { font-size:16px; }
@media (min-width:640px) { .slide { padding-bottom:50px; } }
/* Téléphone : en défilant, la ligne du logo disparaît ; la recherche et la 2e barre restent collées en haut (plus de place pour les produits). */
@media (max-width:899px) { .top { top:-62px; } }

/* ===== Correctif : en-tête entre 900 et 1279 px (tablettes, petits portables, « Site pour ordinateur » sur téléphone) ===== */
@media (min-width:900px) and (max-width:1279px) {
  .top-main { flex-wrap:wrap; }
  .hsearch { flex:1 1 100%; order:5; }
}
@media (min-width:1280px) { .hsearch { min-width:340px; } }
/* Noms très longs (titres fournisseurs) : limités à 3 lignes en bannière, 2 lignes sur les cartes. */
.slide h2 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.card .pname { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.desk-banner { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:10px 14px; background:#fff3dc; color:var(--ink); border-bottom:2px solid var(--amber); font-size:.95rem; }
.desk-banner button { flex:none; min-height:44px; background:var(--navy); color:#fff; }

/* ===== F5b : boutique hors ligne ===== */
.cat-banner { padding:10px 14px; background:#fff3dc; color:var(--ink); border-bottom:2px solid var(--amber); font-size:.9rem; }
.cat-banner[hidden], #co-offline[hidden], #co-stale[hidden] { display:none; }
#submit:disabled { opacity:.55; cursor:not-allowed; }

/* Fiche produit : « Commander maintenant » à côté de « Ajouter au panier » ; bandeau hors ligne plus compact */
.buy-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:10px 0; }
.buy-row button, .buy-row .btn { min-height:48px; flex:1 1 150px; text-align:center; }
.buy-row .amber { background:var(--amber); color:var(--navy); font-weight:800; }
.buy-row[hidden] { display:none; }
.cat-banner { padding:8px 12px; font-size:.85rem; line-height:1.35; }

.mpesa{border:2px solid #0f1b3d;border-radius:12px;padding:12px 14px;margin:14px 0;background:#f7f9ff}.mpesa h2{margin:0 0 6px;font-size:1.1rem}.mpesa .btn{min-height:40px}

/* B2 : score des résultats CJ */
.score { font-size:.85rem; margin:4px 0; padding:4px 8px; border-radius:8px; border-left:4px solid #94a3b8; background:#f1f5f9; }
.score.sc-first { border-left-color:#15803d; background:#ecfdf3; }
.score.sc-check { border-left-color:#b45309; background:#fffbeb; }
.score.sc-careful { border-left-color:#b91c1c; background:#fef2f2; }
.cj-sortrow { display:flex; flex-direction:row; align-items:center; gap:10px; font-weight:500; min-height:44px; }
.cj-sortrow input { width:22px; height:22px; min-height:0; flex:none; margin:0; }

/* Logo officiel Fago (image fournie, non redessinée) */
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.top .brand-pill { display:flex; align-items:center; background:#fff; border-radius:10px; padding:4px 8px; }
.top .brand-img { display:block; height:30px; width:auto; }
@media (min-width:900px) { .top .brand-img { height:36px; } }
.cm-brand { display:flex; align-items:center; gap:10px; }
.cm-brand img { height:28px; width:auto; }
.logo-card { background:#fff; border-radius:16px; padding:10px; width:42%; max-width:190px; height:auto; flex:none; display:flex; box-shadow:0 4px 14px rgba(0,0,0,.25); }
.logo-card img { width:100%; height:auto; display:block; }
.auth-logo, .page-logo { margin:4px 0 8px; }
.auth-logo img { height:52px; width:auto; }
.page-logo img { height:32px; width:auto; }
.auth-logo { text-align:center; }
.foot-logo { height:30px; width:auto; margin-bottom:6px; }

/* Consentement au suivi (Pixel Meta) */
#consent { position:fixed; left:8px; right:8px; bottom:calc(64px + env(safe-area-inset-bottom)); z-index:60; background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:12px; box-shadow:0 6px 24px rgba(15,27,61,.28); padding:12px 14px; max-width:560px; margin:0 auto; }
#consent[hidden] { display:none; }
#consent .cs-text { margin:0 0 10px; font-size:.85rem; line-height:1.4; }
#consent .cs-row { display:flex; gap:10px; }
#consent .cs-btn { flex:1; min-height:44px; background:var(--navy); color:#fff; border:2px solid var(--navy); border-radius:8px; font-weight:700; }
#consent .cs-btn#cs-no { background:#fff; color:var(--navy); }
body.consent-open main { padding-bottom: calc(var(--cs-h, 120px) + 80px); }   /* le bandeau ne cache jamais le bas de la page */
