:root{
    --red:#E32227;
    --red-dark:#C31A1F;
    --red-deep:#9E1418;
    --ink:#1A1A1A;
    --ink-soft:#6B6B6B;
    --paper:#FFFFFF;
    --bg-hero:#EEF0F2;
    --line:#ECECEC;
    --sand:#F5F5F5;
    --accent:#1E3E8C;
    --accent-light:#DCE6FB;
    --accent-text:#1E3E8C;
    --rating:#F5A623;
    --shadow: 0 14px 34px -16px rgba(20,20,20,0.28);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family:'Manrope', sans-serif;
    background:var(--paper);
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,.display{ font-family:'Sora', sans-serif; letter-spacing:-0.01em; }
  a{ text-decoration:none; color:inherit; }
  ul{ list-style:none; }
  img,svg{ display:block; }
  button{ font-family:inherit; cursor:pointer; border:none; background:none; }
  .wrap{ max-width:1280px; margin:0 auto; padding:0 32px; }

  /* ===== Topbar ===== */
  .topbar{ background:var(--red); color:#fff; font-size:12.5px; }
  .topbar .wrap{ display:flex; align-items:center; justify-content:space-between; height:38px; }
  .topbar-left{ display:flex; align-items:center; gap:8px; }
  .topbar-center{ opacity:.95; font-weight:500; }
  .topbar-right{ display:flex; align-items:center; gap:16px; }
  .lang-switch{ display:flex; align-items:center; gap:6px; font-weight:700; }
  .lang-switch a{ opacity:.65; transition:opacity .15s ease; }
  .lang-switch a:hover{ opacity:1; }
  .lang-switch a.active{ opacity:1; text-decoration:underline; }
  .lang-switch span{ opacity:.5; }
  .topbar-right .socials{ display:flex; gap:8px; }
  .topbar-right .socials a{
    width:22px; height:22px; border-radius:50%;
    background:rgba(255,255,255,.18);
    display:flex; align-items:center; justify-content:center;
  }
  @media (max-width: 900px){ .topbar-center{ display:none; } }

  /* ===== Header ===== */
  header.main{ background:var(--paper); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50; }
  .header-row{ display:flex; align-items:center; gap:40px; height:92px; }
  .logo{ display:flex; flex-direction:row; align-items:center; gap:10px; flex-shrink:0; }
  .logo-icon{ height:46px; width:auto; flex-shrink:0; }
  .logo-text{ display:flex; flex-direction:column; gap:2px; }
  .logo-mark{ font-family:'Baloo 2', sans-serif; font-weight:700; font-size:26px; line-height:1; text-transform:lowercase; }
  .logo-mark .cn{ color:var(--red); }
  .logo-mark .store{ color:var(--accent); }
  .logo-tag{ font-size:11px; color:var(--ink-soft); letter-spacing:.02em; }

  .search{
    flex:1; max-width:560px; display:flex; align-items:center;
    background:var(--sand); border:1.5px solid var(--line); border-radius:6px;
    padding:3px 3px 3px 18px; transition:border-color .15s ease;
  }
  .search:focus-within{ border-color:var(--red); }
  .search input{ flex:1; border:none; background:transparent; outline:none; font-size:14.5px; font-family:inherit; color:var(--ink); padding:11px 0; }
  .search input::placeholder{ color:#A2A2A2; }
  .search button{ background:var(--red); color:#fff; width:44px; height:42px; border-radius:5px; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background .15s ease; }
  .search button:hover{ background:var(--red-dark); }

  .header-actions{ display:flex; align-items:center; gap:30px; flex-shrink:0; }
  .h-action{ display:flex; align-items:center; gap:9px; position:relative; }
  .h-action .icon-wrap{ position:relative; display:flex; align-items:center; justify-content:center; color:var(--ink); }
  .h-action .badge{
    position:absolute; top:-8px; right:-9px; background:var(--red); color:#fff;
    font-size:10px; font-weight:700; width:16px; height:16px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
  }
  .h-action .labels{ display:flex; flex-direction:column; line-height:1.25; }
  .h-action .labels .t1{ font-size:13.5px; font-weight:700; }
  .h-action .labels .t2{ font-size:11.5px; color:var(--ink-soft); }
  @media (max-width: 980px){ .h-action .labels{ display:none; } }

  /* ===== Nav ===== */
  nav.subnav{ background:var(--paper); border-bottom:1px solid var(--line); }
  .subnav-row{ display:flex; align-items:center; gap:38px; height:58px; }
  .cat-trigger{
    display:flex; align-items:center; gap:10px; background:var(--red); color:#fff;
    padding:11px 20px; border-radius:6px; font-weight:700; font-size:14px; flex-shrink:0;
    transition:background .15s ease;
  }
  .cat-trigger:hover{ background:var(--red-dark); }
  .nav-links{ display:flex; align-items:center; gap:30px; flex:1; }
  .nav-links a{ font-size:14.5px; font-weight:700; color:var(--ink); padding:6px 0; }
  .nav-links a.active{ color:var(--red); }
  .nav-links a:hover{ color:var(--red); }
  .hot-tag{
    background:var(--red); color:#fff; font-size:9px; font-weight:800;
    padding:2px 5px; border-radius:4px; margin-left:5px; vertical-align:3px; letter-spacing:.02em;
  }
  .reseller-btn{
    margin-left:auto; flex-shrink:0; background:var(--accent-light); color:var(--accent-text);
    font-weight:700; font-size:13.5px; padding:10px 18px; border-radius:6px;
    transition:filter .15s ease;
  }
  .reseller-btn:hover{ filter:brightness(0.96); }
  @media (max-width: 980px){ .nav-links{ display:none; } .subnav-row{ justify-content:space-between; } }

  /* ===== Hero minimal (titre + accroche uniquement, direct vers le slider) ===== */
  .hero-mini{ background:var(--bg-hero); padding:32px 0 26px; text-align:center; }
  .hero-mini h1{ font-size:32px; line-height:1.15; font-weight:800; text-transform:uppercase; color:var(--ink); }
  .hero-mini h1 .accent{ color:var(--red); display:block; margin-top:2px; }
  .hero-mini p.sub{ font-size:14.5px; line-height:1.55; color:var(--ink-soft); max-width:560px; margin:10px auto 0; }

  .btn-primary{
    background:var(--red); color:#fff; font-weight:700; font-size:15px; padding:15px 26px; border-radius:6px;
    display:inline-flex; align-items:center; gap:10px; transition:background .15s ease, transform .15s ease;
  }
  .btn-primary:hover{ background:var(--red-dark); transform:translateY(-1px); }

  /* ===== Trust strip ===== */
  .trust-strip{ background:var(--red); }
  .trust-row{ display:grid; grid-template-columns:repeat(4,1fr); }
  .trust-item{ display:flex; align-items:center; gap:12px; padding:22px 18px; border-right:1px solid rgba(255,255,255,.22); }
  .trust-item:last-child{ border-right:none; }
  .trust-item .ic{ width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.16); display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0; }
  .trust-item .t1{ color:#fff; font-size:13.5px; font-weight:700; }
  .trust-item .t2{ color:rgba(255,255,255,.8); font-size:11.5px; }
  @media (max-width: 980px){ .trust-row{ grid-template-columns:repeat(2,1fr); } .trust-item{ border-right:none; border-bottom:1px solid rgba(255,255,255,.22); } }

  /* ===== Categories ===== */
  .section{ padding:64px 0; }
  .section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:30px; }
  .section-head h2{ font-size:24px; font-weight:800; letter-spacing:.01em; }
  .section-head .see-all{ font-size:14px; font-weight:700; color:var(--red); display:flex; align-items:center; gap:6px; }
  .cat-grid{ display:grid; grid-template-columns:repeat(8,1fr); gap:16px; }
  .cat-card{ display:flex; flex-direction:column; gap:10px; text-align:center; }
  .cat-thumb{
    aspect-ratio:1/1; border-radius:12px; border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center; color:#fff;
    transition:transform .18s ease, box-shadow .18s ease;
  }
  .cat-card:hover .cat-thumb{ transform:translateY(-4px); box-shadow:var(--shadow); }
  .cat-thumb svg{ width:30px; height:30px; }
  .cat-name{ font-size:12.5px; font-weight:700; }
  .t-electro{ background:linear-gradient(150deg,#3B3F45,#17191C); }
  .t-home{ background:linear-gradient(150deg,#C9B79C,#A08A66); }
  .t-fashion{ background:linear-gradient(150deg,#E8B7C4,#C9718A); }
  .t-beauty{ background:linear-gradient(150deg,#F3D0DB,#D88BA6); }
  .t-toys{ background:linear-gradient(150deg,#8FB4E3,#4C77B8); }
  .t-sport{ background:linear-gradient(150deg,#41474F,#22262B); }
  .t-pro{ background:linear-gradient(150deg,#B9C0C6,#7D858C); }
  .t-other{ background:var(--sand); color:var(--ink-soft); border-color:var(--line); }
  @media (max-width: 1100px){ .cat-grid{ grid-template-columns:repeat(4,1fr); } }
  @media (max-width: 620px){ .cat-grid{ grid-template-columns:repeat(2,1fr); } }

  /* ===== Footer ===== */
  footer{ background:var(--ink); color:#D9D9D9; padding:56px 0 24px; margin-top:10px; }
  .foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; margin-bottom:40px; }
  .foot-logo{ font-family:'Sora',sans-serif; font-weight:800; font-size:21px; color:#fff; margin-bottom:12px; }
  .foot-logo .store{ color:var(--red); }
  .foot-desc{ font-size:13.5px; line-height:1.7; color:#B0B0B0; max-width:280px; }
  .foot-col h4{ color:#fff; font-size:14px; margin-bottom:16px; }
  .foot-col ul li{ margin-bottom:11px; }
  .foot-col ul li a{ font-size:13.5px; color:#B0B0B0; }
  .foot-col ul li a:hover{ color:#fff; }
  .foot-bottom{ border-top:1px solid rgba(255,255,255,.1); padding-top:20px; display:flex; justify-content:space-between; font-size:12.5px; color:#888; }
  @media (max-width:860px){ .foot-grid{ grid-template-columns:1fr 1fr; } }

/* ===== Bottom nav bar — mobile & tablette ===== */
.bottom-nav{
  display:none;
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  background:#fff; border-top:1px solid var(--line);
  box-shadow:0 -6px 20px -12px rgba(0,0,0,.18);
  padding:6px 2px calc(6px + env(safe-area-inset-bottom));
  gap:0;
}
.bn-item{
  flex:1 1 0; min-width:0; max-width:20%; display:flex; flex-direction:column; align-items:center; gap:2px;
  color:var(--ink-soft); font-size:9.5px; font-weight:700; padding:4px 1px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.bn-item svg{ width:19px; height:19px; flex-shrink:0; }
.bn-item.active{ color:var(--red); }
.bn-icon-wrap{ position:relative; display:flex; }
.bn-badge{
  position:absolute; top:-6px; right:-8px; background:var(--red); color:#fff;
  font-size:9px; font-weight:800; width:15px; height:15px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}

@media (max-width: 900px){
  .bottom-nav{ display:flex; }
  body{ padding-bottom:64px; } /* évite que le contenu passe sous la barre */
  .nav-links, .reseller-btn{ display:none; } /* déjà couverts par la bottom nav */
}

@media (max-width: 360px){
  .bn-item{ font-size:8px; padding:4px 0; }
  .bn-item svg{ width:17px; height:17px; }
}

@media (max-width: 320px){
  .bn-item{ font-size:7.2px; }
  .bn-item svg{ width:16px; height:16px; }
}

/* ===== Grille produits (accueil, boutique, fiche produit) — vraie classe responsive ===== */
.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width: 1100px){ .product-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width: 768px){ .product-grid{ grid-template-columns:repeat(2,1fr); gap:12px; } }
@media (max-width: 380px){ .product-grid{ gap:8px; } .pc-body{ padding:10px 10px 12px; } .pc-name{ font-size:12.5px; } }

/* Sur l'accueil (Nouveautés + catégories vedettes) : rangée horizontale qui
   glisse au swipe/scroll, sur toutes les tailles d'écran. Le catalogue complet,
   les favoris et les produits similaires gardent la grille classique. */
.home-row{
  display:flex !important; flex-wrap:nowrap; overflow-x:auto;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  gap:16px; padding-bottom:6px; scrollbar-width:none;
}
.home-row::-webkit-scrollbar{ display:none; }
.home-row > .product-card{ flex:0 0 23%; scroll-snap-align:start; }
@media (max-width: 1100px){ .home-row > .product-card{ flex-basis:31%; } }
@media (max-width: 768px){ .home-row{ gap:12px; } .home-row > .product-card{ flex-basis:66%; } }
@media (max-width: 380px){ .home-row > .product-card{ flex-basis:72%; } }

/* ===== Corrections responsive header/marges ===== */
.search, .search input{ min-width:0; } /* empêche le champ de recherche de bloquer le rétrécissement */

@media (max-width: 900px){
  .header-actions{ display:none; } /* déjà couvert par la bottom nav sur mobile */
  .search{ max-width:none; }
}

@media (max-width: 640px){
  .wrap{ padding:0 16px; }
  .header-row{ gap:16px; }
  .topbar-right span:first-child{ display:none; } /* cache "Service client : ..." sur mobile, garde les icônes */

  /* Hero minimal, déjà compact sur desktop — encore un peu réduit sur mobile */
  .hero-mini{ padding:20px 0 16px; }
  .hero-mini h1{ font-size:22px; }
  .hero-mini p.sub{ font-size:12.5px; margin-top:6px; }

  /* Sections plus resserrées sur mobile (moins d'espace vide entre chaque bloc) */
  .section{ padding:28px 0; }
  .section-head{ margin-bottom:16px; }
  .trust-item{ padding:12px 10px; }
  .trust-item .t2{ display:none; }
}

@media (max-width: 480px){
  .logo-tag{ display:none; } /* cache la baseline sous le logo, trop serré sinon */
  .logo-icon{ height:36px; }
}

/* ===== Rail de catégories horizontal (façon Jumia) ===== */
.cat-rail{
  display:flex; gap:22px; overflow-x:auto; padding:6px 4px 16px;
  scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.cat-rail::-webkit-scrollbar{ display:none; }
.cat-rail-item{
  flex:0 0 auto; width:84px; display:flex; flex-direction:column; align-items:center; gap:9px;
  scroll-snap-align:start; text-align:center;
}
.cat-rail-circle{
  width:72px; height:72px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:#fff; box-shadow:0 10px 20px -10px rgba(0,0,0,.3); overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
  border:3px solid #fff; outline:1px solid var(--line);
}
.cat-rail-item:hover .cat-rail-circle{ transform:translateY(-4px) scale(1.04); box-shadow:0 16px 26px -10px rgba(0,0,0,.35); }
.cat-rail-circle svg{ width:28px; height:28px; }
.cat-rail-circle img{ width:100%; height:100%; object-fit:cover; display:block; }
.cat-rail-name{ font-size:12px; font-weight:700; line-height:1.25; }

@media (max-width: 640px){
  .cat-rail{
    display:grid;
    grid-template-rows:repeat(2, auto);
    grid-auto-flow:column;
    grid-auto-columns:76px;
    gap:14px 16px;
    overflow-x:auto;
  }
  .cat-rail-item{ width:76px; }
  .cat-rail-circle{ width:64px; height:64px; }
  .cat-rail-circle svg{ width:24px; height:24px; }
  .cat-rail-name{ font-size:11px; }
}


/* ===== Bannières promo / espace pub ===== */
.promo-row{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.promo-card{
  border-radius:18px; padding:32px; min-height:180px;
  display:flex; flex-direction:column; justify-content:center; gap:12px;
  position:relative; overflow:hidden; color:#fff;
}
.promo-card.style-dark{ background:linear-gradient(135deg,#1A1A1A,#333); }
.promo-card.style-red{ background:linear-gradient(135deg,var(--red-deep),var(--red)); }
.promo-card.style-gold{ background:linear-gradient(135deg,#4A73D1,#1E3E8C); color:#fff; }
.promo-card .k{ font-size:12px; font-weight:700; letter-spacing:.05em; opacity:.8; text-transform:uppercase; }
.promo-card h3{ font-size:23px; font-weight:800; max-width:300px; font-family:'Sora',sans-serif; }
.promo-card .go{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:14px; margin-top:6px; }
.promo-orb{ position:absolute; width:200px; height:200px; border-radius:50%; right:-60px; top:-60px; background:rgba(255,255,255,.1); }
@media (max-width: 860px){ .promo-row{ grid-template-columns:1fr; } }

/* ===== Product Card — coup de patte perso ===== */
.product-card{
  position:relative; background:#fff; border-radius:20px;
  border:1px solid var(--line);
  transition:transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, border-color .22s ease;
  display:flex; flex-direction:column;
}
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 40px -18px rgba(20,20,20,.28);
  border-color:transparent;
}
.pc-media{ position:relative; aspect-ratio:1/1; overflow:hidden; background:var(--sand); border-radius:20px 20px 0 0; }
.pc-slide{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
  opacity:0; transition:opacity .3s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.pc-slide.active{ opacity:1; z-index:1; }
.product-card:hover .pc-slide.active{ transform:scale(1.09) rotate(-0.5deg); }
.pc-dots{
  position:absolute; left:0; right:0; bottom:9px; z-index:2;
  display:flex; justify-content:center; gap:5px;
}
.pc-dot{
  width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.65);
  box-shadow:0 0 0 1px rgba(0,0,0,.12); transition:width .18s ease, background .18s ease; cursor:pointer;
}
.pc-dot.active{ background:#fff; width:15px; border-radius:4px; }

.pc-badge{
  position:absolute; top:12px; left:12px; z-index:2;
  background:linear-gradient(135deg, var(--red), var(--red-dark));
  color:#fff; font-size:11px; font-weight:800; letter-spacing:.02em;
  padding:5px 10px; border-radius:99px; box-shadow:0 6px 14px -6px rgba(200,30,42,.6);
}
.pc-wishlist{
  position:absolute; top:10px; right:10px; z-index:2;
  width:34px; height:34px; border-radius:50%;
  background:rgba(255,255,255,.92); backdrop-filter:blur(2px);
  display:flex; align-items:center; justify-content:center; color:var(--ink);
  box-shadow:0 6px 14px -8px rgba(0,0,0,.3);
  opacity:0; transform:translateY(-4px);
  transition:opacity .2s ease, transform .2s ease, color .2s ease;
}
.product-card:hover .pc-wishlist{ opacity:1; transform:translateY(0); }
.pc-wishlist:hover{ color:var(--red); }
.pc-wishlist.active{ opacity:1; transform:none; color:var(--red); } /* déjà en favori : toujours visible, cœur plein */

.pc-quick-add{
  position:absolute; right:14px; bottom:-22px; z-index:3;
  width:44px; height:44px; border-radius:50%;
  background:var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 20px -8px rgba(0,0,0,.45);
  opacity:0; transform:translateY(8px) scale(.85);
  transition:opacity .2s ease, transform .2s ease, background .2s ease;
  border:3px solid #fff;
}
.product-card:hover .pc-quick-add{ opacity:1; transform:translateY(0) scale(1); }
.pc-quick-add:hover{ background:var(--red); }

.pc-body{ padding:16px 16px 18px; display:flex; flex-direction:column; gap:6px; flex:1; }
.pc-category{ font-size:10.5px; font-weight:700; color:var(--accent); text-transform:uppercase; letter-spacing:.04em; }
.pc-name{
  font-size:13.5px; font-weight:700; color:var(--ink); line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  min-height:2.7em;
}
.pc-rating{ display:flex; align-items:center; gap:5px; font-size:11.5px; color:var(--ink-soft); }
.pc-rating .stars{ color:var(--rating); font-weight:700; letter-spacing:-1px; }
.pc-price-row{ display:flex; align-items:baseline; gap:8px; margin-top:4px; }
.pc-price{ font-size:16px; font-weight:800; color:var(--red); font-family:'Sora',sans-serif; }
.pc-price-old{ font-size:12px; color:var(--ink-soft); text-decoration:line-through; }

@media (max-width: 640px){
  .pc-quick-add{ width:38px; height:38px; opacity:1; transform:none; bottom:-19px; } /* toujours visible sur tactile, pas de hover */
  .pc-wishlist{ opacity:1; transform:none; }
}

/* ===== Fiche produit — galerie + description façon Alibaba ===== */
.pdp-gallery{ display:flex; flex-direction:column; gap:12px; }
.pdp-main{
  aspect-ratio:1/1; border-radius:20px; overflow:hidden; background:var(--sand);
  border:1px solid var(--line); position:relative; cursor:zoom-in;
}
.pdp-main img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.pdp-main:hover img{ transform:scale(1.15); }
.pdp-thumb-rail{ display:flex; gap:10px; overflow-x:auto; padding-bottom:2px; }
.pdp-thumb{
  width:68px; height:68px; border-radius:10px; overflow:hidden; flex-shrink:0;
  border:2px solid transparent; padding:0; cursor:pointer; background:var(--sand);
  transition:border-color .15s ease, transform .15s ease;
}
.pdp-thumb.active{ border-color:var(--red); }
.pdp-thumb:hover{ transform:translateY(-2px); }
.pdp-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.pdp-price-block{
  display:flex; align-items:baseline; gap:12px; margin-bottom:6px; flex-wrap:wrap;
}
.pdp-price{ font-size:30px; font-weight:800; color:var(--red); font-family:'Sora',sans-serif; }
.pdp-price-old{ font-size:16px; color:var(--ink-soft); text-decoration:line-through; }
.pdp-discount{
  background:#FCEFEA; color:var(--red); font-size:12px; font-weight:800;
  padding:4px 10px; border-radius:99px;
}

.pdp-qty{ display:flex; align-items:center; border:1.5px solid var(--line); border-radius:8px; overflow:hidden; }
.pdp-qty button{ width:42px; height:48px; font-size:18px; font-weight:700; color:var(--ink); background:var(--sand); }
.pdp-qty button:hover{ background:#eee; }
.pdp-qty input{
  width:52px; height:48px; text-align:center; border:none; border-left:1.5px solid var(--line);
  border-right:1.5px solid var(--line); font-family:inherit; font-weight:700; font-size:14px;
}

.pdp-description{
  background:var(--sand); border-radius:16px; padding:28px 30px; max-width:820px;
}
.pdp-description h2{
  font-size:18px; font-weight:800; margin-bottom:14px; display:flex; align-items:center; gap:10px;
}
.pdp-description h2 .ic{
  width:32px; height:32px; border-radius:9px; background:var(--red); color:#fff;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.pdp-description p{ color:var(--ink-soft); line-height:1.8; font-size:14.5px; white-space:pre-line; }

@media (max-width: 860px){
  .pdp-price{ font-size:24px; }
}

/* ===== Menu déroulant "Toutes les catégories" ===== */
.cat-menu{ position:relative; flex-shrink:0; }
.cat-trigger{ border:none; }
.cat-trigger svg{ transition:transform .2s ease; }
.cat-trigger.open svg{ transform:rotate(90deg); }

.cat-dropdown{
  position:absolute; top:calc(100% + 10px); left:0; z-index:70;
  background:#fff; border:1px solid var(--line); border-radius:14px;
  box-shadow:0 20px 40px -16px rgba(0,0,0,.28);
  width:560px; max-width:90vw; max-height:70vh; overflow-y:auto;
  padding:14px; display:none; grid-template-columns:1fr 1fr;
  gap:4px 24px;
}
.cat-dropdown.open{ display:grid; }
.cat-dropdown-group{ padding:8px 0; border-bottom:1px solid var(--line); }
.cat-dropdown-group:last-child, .cat-dropdown-group:nth-last-child(2){ border-bottom:none; }
.cat-dropdown-parent{
  display:flex; align-items:center; gap:10px; font-size:14px; font-weight:800; color:var(--ink); padding:4px 8px;
  border-radius:6px; transition:background .15s ease, color .15s ease;
}
.cat-dropdown-parent:hover{ background:var(--sand); color:var(--red); }
.cat-dropdown-children{ display:flex; flex-direction:column; padding-left:8px; margin-top:2px; }
.cat-dropdown-children a{
  display:flex; align-items:center; gap:9px; font-size:12.5px; color:var(--ink-soft); padding:5px 8px; border-radius:6px;
  transition:background .15s ease, color .15s ease;
}
.cat-dropdown-children a:hover{ background:var(--sand); color:var(--red); }
.cat-dropdown-ic{
  width:24px; height:24px; border-radius:50%; background:var(--sand); flex-shrink:0; overflow:hidden;
  display:flex; align-items:center; justify-content:center; color:var(--ink-soft);
}
.cat-dropdown-ic svg{ width:14px; height:14px; }
.cat-dropdown-ic.small{ width:18px; height:18px; }
.cat-dropdown-ic.small svg{ width:11px; height:11px; }
.cat-dropdown-ic img{ width:100%; height:100%; object-fit:cover; display:block; }

@media (max-width: 640px){
  .cat-dropdown{ grid-template-columns:1fr; width:88vw; }
}

/* ===== Écrans d'authentification (login/register/mot de passe oublié) ===== */
.auth-page{ min-height:100vh; display:grid; grid-template-columns:1fr 1fr; }

.auth-brand{
  position:relative; overflow:hidden;
  background:linear-gradient(160deg, var(--red) 0%, var(--red-deep) 42%, var(--accent) 100%);
  color:#fff; display:flex; flex-direction:column; justify-content:space-between;
  padding:48px 56px;
}
.auth-brand-orb{ position:absolute; border-radius:50%; background:rgba(255,255,255,.08); }
.auth-brand-orb.o1{ width:420px; height:420px; top:-140px; right:-140px; }
.auth-brand-orb.o2{ width:280px; height:280px; bottom:-100px; left:-80px; background:rgba(255,255,255,.06); }

.auth-brand-logo{ display:flex; align-items:center; gap:12px; position:relative; z-index:1; }
.auth-brand-logo img{ height:48px; width:auto; filter:brightness(0) invert(1); } /* icône en blanc sur le fond coloré */
.auth-brand-logo .wordmark{ font-family:'Baloo 2', sans-serif; font-weight:700; font-size:24px; text-transform:lowercase; color:#fff; }

.auth-brand-mid{ position:relative; z-index:1; max-width:440px; }
.auth-brand-mid h1{ font-family:'Sora', sans-serif; font-size:34px; font-weight:800; line-height:1.25; margin-bottom:16px; }
.auth-brand-mid p{ font-size:15px; line-height:1.7; color:rgba(255,255,255,.85); }

.auth-brand-points{ position:relative; z-index:1; display:flex; flex-direction:column; gap:16px; }
.auth-brand-point{ display:flex; align-items:center; gap:14px; }
.auth-brand-point .ic{
  width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.15);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.auth-brand-point span{ font-size:13.5px; font-weight:600; color:rgba(255,255,255,.92); }

.auth-form-side{ display:flex; align-items:center; justify-content:center; padding:40px; background:#fff; }
.auth-form-card{ width:100%; max-width:400px; }
.auth-form-card .mobile-logo{ display:none; margin-bottom:28px; text-align:center; }
.auth-form-card h2{ font-family:'Sora', sans-serif; font-size:26px; font-weight:800; margin-bottom:8px; }
.auth-form-card .sub{ color:var(--ink-soft); font-size:14px; margin-bottom:32px; }

.auth-field{ margin-bottom:18px; }
.auth-field label{ display:block; font-size:13px; font-weight:700; color:var(--ink); margin-bottom:6px; }
.auth-field input{
  width:100%; padding:13px 14px; border:1.5px solid var(--line); border-radius:9px;
  font-family:inherit; font-size:14px; transition:border-color .15s ease;
}
.auth-field input:focus{ outline:none; border-color:var(--red); }
.auth-field .error{ color:var(--red); font-size:12px; margin-top:6px; }

.auth-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:26px; font-size:13px; }
.auth-row label{ display:flex; align-items:center; gap:8px; color:var(--ink-soft); cursor:pointer; }
.auth-row a{ color:var(--red); font-weight:700; }

.auth-submit{
  width:100%; background:var(--red); color:#fff; font-weight:700; font-size:15px;
  padding:15px; border-radius:9px; text-align:center; transition:background .15s ease;
}
.auth-submit:hover{ background:var(--red-dark); }

.auth-status{ background:#E9F7EC; color:#1E7A32; padding:12px 14px; border-radius:8px; font-size:13px; margin-bottom:20px; }
.auth-footer-link{ text-align:center; margin-top:26px; font-size:13.5px; color:var(--ink-soft); }
.auth-footer-link a{ color:var(--red); font-weight:700; }

@media (max-width: 900px){
  .auth-page{ grid-template-columns:1fr; }
  .auth-brand{ display:none; }
  .auth-form-card .mobile-logo{ display:block; }
}

/* ===== Timeline de suivi de commande ===== */
.tracking-timeline{ display:flex; align-items:flex-start; margin:36px 0 44px; }
.tt-step{ flex:1; text-align:center; position:relative; }
.tt-step .dot{
  width:34px; height:34px; border-radius:50%; background:#fff; border:3px solid var(--line);
  display:flex; align-items:center; justify-content:center; margin:0 auto 10px; position:relative; z-index:2;
  color:var(--ink-soft); font-weight:800; font-size:13px; transition:all .2s ease;
}
.tt-step.done .dot{ background:var(--red); border-color:var(--red); color:#fff; }
.tt-step.current .dot{ background:#fff; border-color:var(--red); color:var(--red); box-shadow:0 0 0 4px #FCEFEA; }
.tt-step .line{
  position:absolute; top:17px; left:-50%; width:100%; height:3px; background:var(--line); z-index:1;
}
.tt-step:first-child .line{ display:none; }
.tt-step.done .line, .tt-step.current .line{ background:var(--red); }
.tt-step .label{ font-size:12px; font-weight:700; color:var(--ink-soft); }
.tt-step.done .label, .tt-step.current .label{ color:var(--ink); }

.tracking-cancelled{
  background:#FDECEC; border:1px solid #F4C7C5; color:#B3261E;
  padding:16px 20px; border-radius:10px; font-weight:700; font-size:14px; margin:24px 0;
}

@media (max-width: 640px){
  .tt-step .label{ font-size:10px; }
}

/* ===== Carrousel promotionnel (slider) ===== */
.slider{ position:relative; border-radius:20px; overflow:hidden; aspect-ratio:21/7; background:var(--sand); }
.slider-track{ display:flex; height:100%; transition:transform .5s cubic-bezier(.4,0,.2,1); }
.slider-slide{ min-width:100%; height:100%; position:relative; }
.slider-slide img{ width:100%; height:100%; object-fit:cover; display:block; }
.slider-scrim{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%);
}
.slider-content{
  position:absolute; left:0; top:0; bottom:0; display:flex; flex-direction:column; justify-content:center;
  padding:0 5%; max-width:52%; color:#fff;
}
.slider-content .st{ font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; opacity:.85; margin-bottom:8px; }
.slider-content h3{ font-family:'Sora',sans-serif; font-size:26px; font-weight:800; line-height:1.25; margin-bottom:18px; }
.slider-buy-btn{
  align-self:flex-start; background:var(--red); color:#fff; font-weight:700; font-size:14px;
  padding:12px 22px; border-radius:9px; display:inline-flex; align-items:center; gap:8px;
  transition:background .15s ease, transform .15s ease;
}
.slider-buy-btn:hover{ background:var(--red-dark); transform:translateY(-2px); }

.slider-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.9);
  display:flex; align-items:center; justify-content:center; color:var(--ink);
  box-shadow:0 6px 16px -6px rgba(0,0,0,.3); transition:background .15s ease;
}
.slider-arrow:hover{ background:#fff; }
.slider-arrow.prev{ left:14px; } .slider-arrow.next{ right:14px; }

.slider-dots{ position:absolute; bottom:14px; left:0; right:0; display:flex; justify-content:center; gap:7px; z-index:3; }
.slider-dot{ width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.55); cursor:pointer; transition:background .2s ease, width .2s ease; }
.slider-dot.active{ background:#fff; width:22px; border-radius:5px; }

@media (max-width: 768px){
  .slider{ aspect-ratio:4/3; }
  .slider-content{ max-width:90%; padding:0 6%; }
  .slider-content h3{ font-size:19px; }
}

/* ===== Menu déroulant "Mon compte" ===== */
.account-menu{ position:relative; }
.account-menu > button{ background:none; border:none; }
.account-dropdown{
  position:absolute; top:calc(100% + 12px); right:0; z-index:70;
  background:#fff; border:1px solid var(--line); border-radius:12px;
  box-shadow:0 20px 40px -16px rgba(0,0,0,.28);
  width:200px; padding:8px; display:none; flex-direction:column;
}
.account-dropdown.open{ display:flex; }
.account-dropdown a{
  padding:10px 12px; border-radius:7px; font-size:13.5px; font-weight:600; color:var(--ink);
  transition:background .15s ease, color .15s ease;
}
.account-dropdown a:hover{ background:var(--sand); color:var(--red); }
.account-dropdown form{ margin-top:4px; padding-top:8px; border-top:1px solid var(--line); }
.account-dropdown form button{
  width:100%; text-align:left; padding:10px 12px; border-radius:7px; font-size:13.5px; font-weight:600;
  color:var(--red); background:none; border:none; cursor:pointer;
}
.account-dropdown form button:hover{ background:#FDECEC; }

/* ===== Page panier ===== */
.cart-items-list{ display:flex; flex-direction:column; gap:14px; margin-bottom:28px; }
.cart-item{
  display:grid; grid-template-columns:76px 1fr auto auto auto; align-items:center; gap:16px;
  padding:14px; border:1px solid var(--line); border-radius:12px;
}
.cart-item-img{ width:76px; height:76px; border-radius:10px; overflow:hidden; background:var(--sand); flex-shrink:0; }
.cart-item-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.cart-item-info{ min-width:0; }
.cart-item-name{ font-size:14px; font-weight:700; color:var(--ink); margin-bottom:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cart-item-unit{ font-size:12.5px; color:var(--ink-soft); }
.cart-item-qty{ display:flex; align-items:center; border:1.5px solid var(--line); border-radius:8px; overflow:hidden; }
.cart-item-qty button{ width:32px; height:38px; font-size:16px; font-weight:700; color:var(--ink); background:var(--sand); }
.cart-item-qty input{ width:40px; height:38px; text-align:center; border:none; border-left:1.5px solid var(--line); border-right:1.5px solid var(--line); font-family:inherit; font-weight:700; font-size:13.5px; }
.cart-item-subtotal{ font-size:14.5px; font-weight:800; color:var(--ink); white-space:nowrap; }
.cart-item-remove button{ width:32px; height:32px; border-radius:50%; color:var(--ink-soft); font-size:15px; transition:background .15s ease, color .15s ease; }
.cart-item-remove button:hover{ background:#FDECEC; color:var(--red); }
.cart-totals{ display:flex; align-items:center; justify-content:space-between; padding:20px; background:var(--sand); border-radius:12px; flex-wrap:wrap; gap:14px; }
.cart-totals-amount{ font-size:17px; font-weight:800; color:var(--ink); }

/* Panneau repliable générique (ex: formulaire SAV) */
.toggle-panel{ display:none; }
.toggle-panel.open{ display:block; }

.wa-trigger-btn{
  background:#25D366; color:#fff; border:none; padding:14px 22px; border-radius:8px;
  font-weight:700; font-size:14.5px; cursor:pointer; display:inline-flex; align-items:center; gap:9px;
  transition:background .15s ease, transform .15s ease; box-shadow:0 8px 20px -10px rgba(37,211,102,.55);
}
.wa-trigger-btn:hover{ background:#1EBE5A; transform:translateY(-1px); }

/* ===== Modale "Commander via WhatsApp" ===== */
.wa-modal-overlay{
  display:none; position:fixed; inset:0; z-index:100; background:rgba(15,20,15,.55);
  align-items:center; justify-content:center; padding:20px; backdrop-filter:blur(2px);
}
.wa-modal-overlay.open{ display:flex; animation:wa-fade .18s ease; }
@keyframes wa-fade{ from{ opacity:0; } to{ opacity:1; } }
.wa-modal{
  background:#fff; border-radius:16px; width:100%; max-width:480px; max-height:90vh; overflow-y:auto;
  padding:28px; position:relative; box-shadow:0 30px 60px -20px rgba(0,0,0,.4);
  animation:wa-pop .2s cubic-bezier(.2,.8,.2,1);
}
@keyframes wa-pop{ from{ opacity:0; transform:translateY(10px) scale(.97); } to{ opacity:1; transform:none; } }
.wa-modal-close{
  position:absolute; top:16px; right:16px; width:32px; height:32px; border-radius:50%;
  background:var(--sand); border:none; color:var(--ink-soft); font-size:14px; cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.wa-modal-close:hover{ background:#FDECEC; color:var(--red); }
.wa-modal-header{ display:flex; align-items:flex-start; gap:14px; margin-bottom:22px; padding-right:24px; }
.wa-modal-icon{
  width:46px; height:46px; border-radius:50%; background:#25D366; color:#fff; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.wa-modal-header h3{ font-size:16.5px; font-weight:800; margin-bottom:4px; }
.wa-modal-header p{ font-size:12.5px; color:var(--ink-soft); line-height:1.5; }
.wa-modal-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.wa-modal-grid label, .wa-modal-field label{ display:block; font-size:12.5px; font-weight:700; margin-bottom:5px; color:var(--ink); }
.wa-modal-grid input, .wa-modal-field input, .wa-modal-field textarea{
  width:100%; padding:11px 13px; border:1.5px solid var(--line); border-radius:8px; font-family:inherit; font-size:13.5px;
  transition:border-color .15s ease;
}
.wa-modal-grid input:focus, .wa-modal-field textarea:focus{ outline:none; border-color:#25D366; }
.wa-modal-grid select{
  width:100%; padding:11px 36px 11px 13px; border:1.5px solid var(--line); border-radius:8px;
  font-family:inherit; font-size:13.5px; color:var(--ink); background:#fff;
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center;
  cursor:pointer; transition:border-color .15s ease;
}
.wa-modal-grid select:focus{ outline:none; border-color:#25D366; }
.wa-modal-grid select:invalid{ color:var(--ink-soft); }
.wa-modal-notice{
  display:flex; align-items:flex-start; gap:8px; background:#FFF8E8; border:1px solid #F3E2B3;
  color:#8A6D1E; font-size:12px; line-height:1.6; padding:12px 14px; border-radius:8px; margin-bottom:16px;
}
.wa-modal-notice strong{ color:#6B5314; font-size:12.5px; }
.wa-modal-notice svg{ flex-shrink:0; margin-top:2px; }
.wa-modal-field{ margin-bottom:18px; }
.wa-modal-field textarea{ resize:vertical; }
.wa-modal-submit{
  width:100%; background:#25D366; color:#fff; border:none; padding:14px; border-radius:9px;
  font-weight:700; font-size:14.5px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px;
  transition:background .15s ease;
}
.wa-modal-submit:hover{ background:#1EBE5A; }

@media (max-width: 480px){
  .wa-modal{ padding:22px; }
  .wa-modal-grid{ grid-template-columns:1fr; gap:10px; }
}

@media (max-width: 640px){
  .cart-item{ grid-template-columns:60px 1fr auto; grid-template-areas:"img info remove" "img qty subtotal"; row-gap:8px; }
  .cart-item-img{ width:60px; height:60px; grid-area:img; }
  .cart-item-info{ grid-area:info; }
  .cart-item-remove{ grid-area:remove; }
  .cart-item-qty{ grid-area:qty; }
  .cart-item-subtotal{ grid-area:subtotal; text-align:right; }
  .cart-totals{ flex-direction:column; gap:14px; align-items:stretch; text-align:center; }
}

/* ===== Bouton WhatsApp flottant ===== */
.whatsapp-float{
  position:fixed; right:20px; bottom:20px; z-index:80;
  width:58px; height:58px; border-radius:50%; background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px -8px rgba(37,211,102,.6);
  transition:transform .18s ease, box-shadow .18s ease;
  animation:wa-pulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover{ transform:scale(1.08); box-shadow:0 14px 28px -8px rgba(37,211,102,.7); }
@keyframes wa-pulse{
  0%, 100%{ box-shadow:0 10px 24px -8px rgba(37,211,102,.6); }
  50%{ box-shadow:0 10px 24px -8px rgba(37,211,102,.6), 0 0 0 8px rgba(37,211,102,.15); }
}
@media (max-width: 900px){
  .whatsapp-float{ right:14px; bottom:82px; width:52px; height:52px; } /* au-dessus de la bottom-nav mobile */
}

/* ===== Recherche en direct (suggestions) ===== */
.search-wrap{ position:relative; flex:1; max-width:560px; }
.search-suggestions{
  display:none; position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:70;
  background:#fff; border:1px solid var(--line); border-radius:12px;
  box-shadow:0 20px 40px -16px rgba(0,0,0,.28); overflow:hidden;
}
.search-suggestions.open{ display:block; }
.search-suggestion-item{
  display:flex; align-items:center; gap:12px; padding:10px 14px;
  border-bottom:1px solid var(--line); transition:background .15s ease;
}
.search-suggestion-item:last-child{ border-bottom:none; }
.search-suggestion-item:hover{ background:var(--sand); }
.search-suggestion-item img, .ss-noimg{
  width:40px; height:40px; border-radius:8px; object-fit:cover; background:var(--sand); flex-shrink:0;
}
.ss-info{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.ss-name{ font-size:13px; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ss-price{ font-size:12px; font-weight:700; color:var(--red); }