:root {
  --primary: #00c9a7;
  --primary-dark: #00a88b;
  --primary-fade: rgba(0, 201, 167, 0.12);
  --dark: #0b1626;
  --dark-2: #122238;
  --text: #23313f;
  --muted: #6b7a8d;
  --bg: #f4f7fa;
  --card: #ffffff;
  --border: #e2e9f0;
  --danger: #e5484d;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 22, 38, 0.08);
  --shadow-lg: 0 18px 50px rgba(11, 22, 38, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 2px solid transparent;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-glow { background: var(--primary); color: #04201a; box-shadow: 0 6px 18px var(--primary-fade); }
.btn-glow:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-fade); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-no { background: #d63333; color: #fff; border: none; box-shadow: 0 6px 18px rgba(214,51,51,0.35); }
.btn-no:hover { background: #b02a2a; }
.btn-block { width: 100%; }

.icon-btn {
  position: relative; background: transparent; border: none; cursor: pointer;
  color: var(--text); width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; box-shadow: var(--shadow);
}
.icon-btn:hover { color: var(--primary); }
.burger { display: inline-flex; }

/* ---------- Announcement ---------- */
.announce {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #04201a; text-align: center; padding: 8px 16px;
  font-weight: 700; font-size: 14px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { font-size: 30px; }
.brand-name { font-weight: 900; font-size: 22px; letter-spacing: 1px; color: var(--dark); }
.brand-tag { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.search-wrap { flex: 1; position: relative; font-size: 16px; }
.search-wrap input {
  width: 100%; padding: 11px 42px 11px 16px; border-radius: 12px;
  border: 2px solid var(--border); font-size: 16px; outline: none; transition: border-color 0.2s;
  font-family: inherit; background: #fff;
}
.search-wrap input:focus { border-color: var(--primary); }
.search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); opacity: 0.5; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.cart-count {
  position: absolute; top: -6px; right: -6px; background: var(--primary); color: #04201a;
  font-size: 12px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

.nav { background: var(--dark); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; padding-top: 0; padding-bottom: 0; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  color: rgba(255,255,255,0.85); text-decoration: none; padding: 12px 16px;
  font-size: 14px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-link.nav-promo {
  color: #ffd24a; border-bottom-color: transparent;
}
.nav-link.nav-promo:hover { color: #ffb800; }

/* ---------- Hero (carrousel) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: 460px; background: linear-gradient(135deg, var(--dark) 0%, #0056a0 60%, var(--primary) 130%);
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 70px 20px 95px; background-size: cover; background-position: center;
  pointer-events: none;
}
.hero-slide.on { opacity: 1; z-index: 1; pointer-events: auto; }
.hero-slide-inner { position: relative; max-width: 760px; z-index: 2; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.55), rgba(8, 20, 34, 0.65));
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 700; margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.hero-slide h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.15; margin-bottom: 16px; font-weight: 900; }
.hero-slide p { font-size: 17px; color: rgba(255,255,255,0.88); margin-bottom: 28px; }
#products { scroll-margin-top: 90px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.25); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease; padding-bottom: 4px;
}
.hero-arrow:hover { background: rgba(0,0,0,0.5); }
.hero-arrow.left { left: 16px; }
.hero-arrow.right { right: 16px; }
.hero-dots { position: absolute; bottom: 44px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 5; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.4); padding: 0; transition: background 0.2s ease, width 0.2s ease;
}
.hero-dots button.on { background: var(--primary); width: 26px; border-radius: 6px; }
.hero-dots button:hover { background: rgba(255,255,255,0.8); }

/* ---------- Sub-categories chips ---------- */
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  border: 2px solid var(--border); background: #fff; border-radius: 100px; padding: 8px 16px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--primary); }
.chip.on { border-color: var(--primary); background: var(--primary-fade); color: var(--primary-dark); }

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -38px; position: relative; z-index: 2; }
.trust-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-align: center; }
.trust-icon { font-size: 30px; margin-bottom: 8px; }
.trust-title { font-weight: 800; font-size: 15px; }
.trust-text { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- Sections ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 44px 0 22px; flex-wrap: wrap; }
.section-title { font-size: 26px; font-weight: 900; color: var(--dark); }
.section-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sort-select {
  padding: 9px 12px; border-radius: 10px; border: 2px solid var(--border);
  font-size: 14px; font-weight: 600; background: #fff; font-family: inherit; outline: none; cursor: pointer;
}
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
button.filter-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.filter-sep {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--primary-dark); padding: 16px 4px 6px;
}
.filter-sep:first-of-type { padding-top: 6px; }
.filter-group { margin: 2px 0; }
.filter-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; padding: 10px 8px; border: none; background: none;
  border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--dark);
  font-family: inherit; cursor: pointer;
}
.filter-head:hover { background: var(--primary-fade); }
.filter-head.open .chev { transform: rotate(90deg); color: var(--primary-dark); }
.filter-list { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease; }
.filter-list.open { grid-template-rows: 1fr; }
.filter-opt {
  display: block; padding: 9px 8px 9px 24px; font-size: 14px; color: var(--muted);
  border-radius: 8px; text-decoration: none; position: relative;
}
.filter-opt::before { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 2px; background: var(--border); border-radius: 2px; }
.filter-opt:hover { color: var(--primary-dark); }
.filter-opt.active { color: var(--primary-dark); font-weight: 700; background: var(--primary-fade); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; position: relative;
  display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
button, a, input, select, textarea, .card, .chip { touch-action: manipulation; }
.card-img { aspect-ratio: 1; overflow: hidden; background: #eef3f8; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 12px; left: 12px; background: var(--primary); color: #04201a;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.4px;
  z-index: 2;
}
.card-badge.red { background: #ffd166; color: #3a2a00; }
.card-badge.blue { background: #dbeaff; color: #0b3b7a; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.card-cat { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-rating { font-size: 13px; color: #f5a623; font-weight: 700; }
.card-rating .count { color: var(--muted); font-weight: 500; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 900; font-size: 17px; color: var(--dark); }
.old { text-decoration: line-through; color: var(--muted); font-weight: 600; font-size: 12px; margin-right: 6px; }
.price.promo { color: var(--danger); font-size: 18px; }
.price.range { font-size: 13px; white-space: nowrap; font-weight: 800; }
.card-badge .badge-pct {
  display: inline-block; margin-left: 4px; background: #fff; color: var(--danger);
  font-weight: 900; font-size: 10px; padding: 1px 4px; border-radius: 4px;
}
.discount-badge {
  margin-left: 6px; background: var(--danger); color: #fff; font-weight: 800;
  font-size: 11px; padding: 2px 6px; border-radius: 6px; vertical-align: middle;
  white-space: nowrap;
}

/* Mobile (< 600px) : l'ancien prix barré passe AU-DESSUS du prix promo
   (même comportement que pav-mdg.mg) pour éviter toute coupure sur petit écran. */
@media (max-width: 600px) {
  .card-foot { flex-wrap: wrap; row-gap: 4px; }
  .card-foot .old { width: 100%; font-size: 11px; }
  .card-foot .add-btn { margin-left: auto; }
}
.pm-price .old { font-size: 15px; color: var(--muted); font-weight: 600; }
.pm-promo { font-size: 24px; font-weight: 900; color: var(--danger); margin-left: 8px; white-space: nowrap; }
.add-btn {
  background: var(--primary); color: #04201a; border: none; border-radius: 10px;
  padding: 9px 14px; font-size: 13px; font-weight: 800; cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}
.add-btn:hover { background: var(--primary-dark); }
.card.off { opacity: 0.6; }
.card.off .add-btn { pointer-events: none; background: #cfd8e0; color: #fff; }
.card-stock {
  position: absolute; top: 12px; right: 12px; background: #ffe4e6; color: #c21f2e;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 100px; text-transform: uppercase;
  letter-spacing: 0.4px; z-index: 2;
}

.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 16px; }

/* ---------- Pager ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 30px 0 10px; }
.pager-btn { min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid #ddd; border-radius: 8px; background: #fff; color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s; }
.pager-btn:hover:not(:disabled):not(.on) { border-color: var(--accent); color: var(--accent); }
.pager-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-dots { color: var(--muted); padding: 0 2px; font-size: 15px; }

/* ---------- About ---------- */
.about { background: var(--dark); color: #fff; margin-top: 50px; padding: 60px 0; }
.about-inner { max-width: 820px; text-align: center; }
.about h2 { font-size: 26px; margin-bottom: 14px; font-weight: 900; }
.about p { color: rgba(255,255,255,0.82); }

/* ---------- Footer ---------- */
.footer { background: var(--dark-2); color: rgba(255,255,255,0.75); padding: 50px 0 70px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer a { color: rgba(255,255,255,0.75); text-decoration: none; display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--primary); }
.footer-note { text-align: center; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-logo { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.footer-pay { max-width: 1200px; margin: 0 auto; padding: 8px 20px 0; }
.footer-pay h4 { color: #fff; margin-bottom: 12px; font-size: 14px; text-align: center; }
.pay-logos { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pay-logo {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 8px;
  font-weight: 800; font-size: 13px; color: #fff;
  line-height: 1.15; text-align: center; min-width: 90px;
}
.pay-mvola { background: #00a859; color: #ffeb3b; font-style: italic; }
.pay-orange { background: #ff6600; color: #fff; font-size: 11px; white-space: nowrap; }
.pay-airtel { background: #e20613; color: #fff; }
.cash-delivery {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 8px 20px; border-radius: 20px;
  background: transparent; border: 1px solid rgba(255,193,7,0.55);
  color: #ffd54f; font-size: 13px; font-weight: 700;
}
.cash-delivery i { font-size: 15px; }
.footer-pay { text-align: center; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  background: #25d366; color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Overlay / Drawer / Modals ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(8, 16, 28, 0.55); z-index: 70;
  backdrop-filter: blur(2px);
}

.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(420px, 94vw);
  background: #fff; z-index: 80; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: slideIn 0.22s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.drawer-total { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 15px; }
.drawer-total strong { font-size: 19px; color: var(--dark); }
.drawer-hint { font-size: 12px; color: var(--muted); text-align: center; }

.menu-drawer { left: 0; right: auto; animation: slideInL 0.22s ease; }
@keyframes slideInL { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.menu-link {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-radius: 10px;
  font-weight: 800; font-size: 15px; color: var(--dark); text-decoration: none;
}
.menu-link:hover { background: var(--primary-fade); }
.menu-link.active { color: var(--primary-dark); background: var(--primary-fade); }
.menu-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; padding: 13px 16px; border: none; background: none;
  border-radius: 10px; font-weight: 800; font-size: 15px; color: var(--dark);
  font-family: inherit; cursor: pointer;
}
.menu-cat:hover { background: var(--primary-fade); }
.menu-cat.active { color: var(--primary-dark); background: var(--primary-fade); }
.chev { font-size: 12px; color: var(--muted); transition: transform 0.2s ease; }
.menu-cat.open .chev { transform: rotate(90deg); color: var(--primary-dark); }
.menu-subs {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease;
  padding-left: 12px;
}
.menu-subs.open { grid-template-rows: 1fr; }
.ms-inner { overflow: hidden; min-height: 0; }
.menu-sub {
  display: block; padding: 9px 16px 9px 38px; font-size: 14px; color: var(--muted);
  border-radius: 8px; text-decoration: none; position: relative;
}
.menu-sub::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 2px; background: var(--border); border-radius: 2px; }
.menu-sub:hover { color: var(--primary-dark); }
.menu-sub.active { color: var(--primary-dark); font-weight: 700; background: var(--primary-fade); }
.menu-group { margin-bottom: 2px; }

/* ---------- Nested menu groups (Par saveur / Par marque) ---------- */
.chip-label {
  align-self: center; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.4px; color: var(--muted); padding-left: 6px;
}
.menu-subgrp { padding: 2px 0; }
.menu-cat2 {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; padding: 9px 16px 9px 38px; border: none; background: none;
  border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--primary-dark);
  font-family: inherit; cursor: pointer;
}
.menu-cat2:hover { background: var(--primary-fade); }
.menu-cat2.open .chev { transform: rotate(90deg); color: var(--primary-dark); }
.menu-subs2 {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease;
  padding-left: 12px;
}
.menu-subs2.open { grid-template-rows: 1fr; }
.menu-sub2 {
  display: block; padding: 8px 16px 8px 52px; font-size: 13px; color: var(--muted);
  border-radius: 8px; text-decoration: none; position: relative;
}
.menu-sub2::before { content: ""; position: absolute; left: 34px; top: 8px; bottom: 8px; width: 2px; background: var(--border); border-radius: 2px; }
.menu-sub2:hover { color: var(--primary-dark); }
.menu-sub2.active { color: var(--primary-dark); font-weight: 700; background: var(--primary-fade); }

.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.cart-item img { width: 58px; height: 58px; object-fit: contain; background: #eef3f8; border-radius: 10px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.cart-item-opt { font-size: 12px; color: var(--muted); }
.cart-item-price { font-size: 14px; font-weight: 800; margin-top: 4px; }
.cart-item-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--border); border-radius: 9px; overflow: hidden; }
.stepper button {
  width: 30px; height: 30px; border: none; background: var(--bg); cursor: pointer;
  font-size: 16px; font-weight: 800; color: var(--text); font-family: inherit;
}
.stepper button:hover { background: var(--primary-fade); }
.stepper span { min-width: 30px; text-align: center; font-weight: 800; font-size: 14px; }
.cart-remove { background: none; border: none; color: var(--danger); font-size: 12px; cursor: pointer; font-weight: 700; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 0; font-size: 15px; }
.cart-empty .big { font-size: 46px; display: block; margin-bottom: 10px; }

.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: min(860px, 100%); max-height: 90vh; overflow-y: auto; position: relative; padding: 26px;
  animation: popIn 0.18s ease;
}
@keyframes popIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 12px; background: var(--bg); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; z-index: 2; }

.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pm-img { background: #eef3f8; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pm-img img { width: 100%; height: 100%; object-fit: contain; }
.pm-badge { display: inline-block; background: var(--primary-fade); color: var(--primary-dark); font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.4px; }
.pm-info h3 { font-size: 22px; margin: 8px 0; line-height: 1.25; }
.pm-rating { color: #f5a623; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.pm-price { font-size: 24px; font-weight: 900; color: var(--dark); margin-bottom: 10px; }
.pm-price .old, .pm-price .pm-promo { overflow-wrap: anywhere; }
.pm-desc { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.pm-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pm-options .opt-btn {
  border: 2px solid var(--border); background: #fff; border-radius: 10px; padding: 8px 14px;
  font-size: 13px; font-weight: 700; cursor: pointer; color: var(--text); font-family: inherit;
}
.pm-options .opt-btn.on { border-color: var(--primary); background: var(--primary-fade); color: var(--primary-dark); }
.pm-options .opt-btn.off { opacity: 0.55; border-style: dashed; color: var(--muted); cursor: not-allowed; }
.pm-options .opt-btn.off .opt-rupt,
.dl-options .opt-btn.off .opt-rupt { display: inline-block; margin-left: 4px; font-size: 10px; font-weight: 800; color: var(--danger); text-transform: uppercase; letter-spacing: 0.4px; }
.pm-qty { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 700; font-size: 14px; }
.pm-stock { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }
.pm-stock.ok { color: #2e9e4f; font-weight: 700; }
.pm-stock.ko { color: var(--danger); font-weight: 700; }

/* ---------- Detail modal (fiche produit complète) ---------- */
.modal-box-lg { width: min(980px, 100%); }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dl-media { min-width: 0; }
.dl-main {
  background: #eef3f8; border-radius: 12px; overflow: hidden; display: flex;
  align-items: center; justify-content: center; aspect-ratio: 1/1; margin-bottom: 10px;
}
.dl-main img { width: 100%; height: 100%; object-fit: contain; }
.dl-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-thumbs button {
  width: 64px; height: 64px; border: 2px solid var(--border); border-radius: 8px;
  padding: 0; overflow: hidden; cursor: pointer; background: #fff;
}
.dl-thumbs button.on { border-color: var(--primary); }
.dl-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dl-info h3 { font-size: 22px; margin: 8px 0; line-height: 1.25; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.dl-meta span b { color: var(--dark); }
.dl-btns { display: grid; gap: 8px; }
.btn-wa {
  display: inline-block; text-align: center; text-decoration: none;
  background: #25d366; color: #fff; font-weight: 800; border-radius: 10px; padding: 12px;
}
.btn-wa:hover { background: #1eb556; color: #fff; }
.dl-desc { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.dl-desc p { color: var(--text); font-size: 14.5px; line-height: 1.7; margin: 0 0 12px; }
.dl-desc p:last-child { margin-bottom: 0; }
.dl-fig { margin: 16px 0; text-align: center; }
.dl-fig img {
  max-width: 100%; height: auto; border-radius: 10px;
  display: block; margin: 0 auto; width: auto;
}
.dl-fig img.dl-wide { width: 100%; }
@media (max-width: 720px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-main { aspect-ratio: 1/1; }
}

/* ---------- Forms ---------- */
form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
form input, form textarea, form select {
  display: block; width: 100%; margin-top: 5px; padding: 11px 13px;
  border: 2px solid var(--border); border-radius: 10px; font-size: 14px;
  font-family: inherit; outline: none; background: #fff; transition: border-color 0.15s ease;
}
form input:focus, form textarea:focus, form select:focus { border-color: var(--primary); }
form textarea { min-height: 70px; resize: vertical; }
.co-summary { background: var(--bg); border-radius: 10px; padding: 14px; margin-bottom: 14px; font-size: 14px; max-height: 180px; overflow-y: auto; }
.co-summary .line { display: flex; justify-content: space-between; padding: 3px 0; }
.co-summary .total-line { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; font-weight: 900; font-size: 15px; }
.co-summary .co-fees-line { color: var(--primary-dark); font-weight: 600; }
.co-fees {
  background: var(--primary-fade); border: 1px solid var(--primary); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 10px; font-size: 13px; color: var(--primary-dark);
}

/* ---------- Success ---------- */
.success-box { width: min(460px, 94vw); text-align: center; }
.success-icon { font-size: 52px; margin: 6px 0 10px; }
.success-box h3 { font-size: 22px; margin-bottom: 8px; }
.success-box p { color: var(--muted); margin-bottom: 20px; font-size: 14px; }

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 100; background: linear-gradient(135deg, var(--dark), #0056a0 70%, var(--primary));
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.age-box { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 34px; width: min(460px, 94vw); text-align: center; }
.age-logo { font-size: 56px; margin-bottom: 8px; }
.age-box h2 { font-size: 24px; margin-bottom: 10px; color: var(--dark); }
.age-box p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.age-buttons { display: grid; gap: 10px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 10px; width: min(400px, 92vw); }
.toast {
  background: var(--dark); color: #fff; padding: 13px 18px; border-radius: 12px;
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; text-align: center;
  animation: popIn 0.2s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: block; border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-link { padding: 10px 14px; font-size: 13px; }
  .burger { display: inline-flex; order: 1; }
  .brand { flex: 1; justify-content: center; order: 2; text-align: center; }
  .brand-tag { display: none; }
  .header-actions { order: 3; margin-left: 0; }
  .search-wrap { order: 99; flex-basis: 100%; }
  .trust { grid-template-columns: repeat(3, 1fr); margin-top: -30px; gap: 8px; }
  .trust-card { padding: 12px 8px; }
  .trust-icon { font-size: 22px; margin-bottom: 4px; }
  .trust-title { font-size: 12px; line-height: 1.25; }
  .trust-text { font-size: 11px; line-height: 1.3; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .pm-grid { grid-template-columns: 1fr; }
  .hero { min-height: 380px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 20px; }
  .hero-slide { padding: 60px 16px 85px; }
  .brand-name { font-size: 16px; }
  .icon-btn { width: 38px; height: 38px; }
  .section-head { align-items: flex-start; }
  .section-title { font-size: 22px; }
  .toolbar { width: 100%; }
  .sort-select { width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-body { padding: 12px; gap: 6px; }
  .card-name { font-size: 13px; }
  .price { font-size: 15px; }
  .add-btn { padding: 8px 10px; font-size: 12px; }
  .card-badge, .card-stock { font-size: 9px; padding: 3px 8px; }
  .card-img { aspect-ratio: 1; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-name { font-size: 12px; }
  .brand-name { font-size: 16px; }
}