/* ============================================================
   BAZZAAR City — Design System v2 (raffiné)
   Mono-boutique mode & lifestyle — inspiration SSENSE / END
   ============================================================ */

:root {
  --accent: #A0D849;
  --accent-hover: #7CB92E;
  --accent-soft: #F2F9E4;
  --accent-deep: #4A7A12;
  --black: #0A0A0A;
  --bg: #FAFAFA;
  --card: #FFFFFF;
  --text: #111111;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --border: #ECECEC;
  --border-strong: #DDDDDD;
  --danger: #E5484D;
  --danger-soft: #FDEBEC;
  --star: #F2A93B;
  --shadow-xs: 0 1px 2px rgba(17,17,17,.04);
  --shadow-sm: 0 1px 3px rgba(17,17,17,.05), 0 1px 2px rgba(17,17,17,.04);
  --shadow-md: 0 6px 20px rgba(17,17,17,.06);
  --shadow-lg: 0 16px 40px rgba(17,17,17,.10);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --sidebar-w: 240px;
  --cart-w: 320px;
}

[data-theme="dark"] {
  --bg: #0A0A0A;
  --card: #151515;
  --text: #F4F4F4;
  --muted: #9CA3AF;
  --muted-2: #6B7280;
  --border: #242424;
  --border-strong: #333333;
  --accent-soft: #1B2311;
  --danger-soft: #2A1515;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 6px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; font-size: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; flex-shrink: 0; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--black); }

::-webkit-scrollbar { width: 0; height: 0; display: none; }
::-webkit-scrollbar-thumb { display: none; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.serif { font-family: var(--font-serif); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 19px; border-radius: 999px; font-weight: 600; font-size: 13px;
  transition: all .18s ease; white-space: nowrap; border: 1.5px solid transparent;
  letter-spacing: .01em;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: #111; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #262626; transform: translateY(-1px); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent-hover); color: var(--accent-deep); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(0,0,0,.05); }
[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,.06); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; text-align: left; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border-strong);
  border-radius: 10px; padding: 11px 14px; font-size: 13.5px; font-family: inherit;
  color: var(--text); outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(160,216,73,.16); background: var(--card);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field .hint { font-size: 11px; color: var(--muted-2); }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }

.social-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--muted-2); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.social-divider::before, .social-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-btns { display: flex; flex-direction: column; gap: 8px; }
.social-btns .btn:disabled { opacity: .5; cursor: not-allowed; }
.pay-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 500; margin-bottom: 8px; transition: border-color .15s ease, background .15s ease; }
.pay-opt:hover { border-color: var(--muted-2); }
.pay-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-opt input { accent-color: var(--accent); width: 16px; height: 16px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c93a3f; }
.btn-sm { padding: 8px 15px; font-size: 12.5px; }
.btn-lg { padding: 13px 26px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: .01em;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-lime { background: var(--accent-soft); color: var(--accent-deep); }
[data-theme="dark"] .badge-lime { color: var(--accent); }
.badge-pending { background: #FFF4E0; color: #B7791F; }
.badge-shipped { background: #E8F0FB; color: #2B6CB0; }
.badge-paid { background: #E8F5E9; color: #2E7D32; }
.badge-delivered { background: var(--accent-soft); color: var(--accent-deep); }
.badge-cancelled { background: var(--danger-soft); color: var(--danger); }
[data-theme="dark"] .badge-pending { background: #2A2213; color: #F0B429; }
[data-theme="dark"] .badge-shipped { background: #14212F; color: #63B3ED; }
[data-theme="dark"] .badge-paid { background: #14261A; color: #66BB6A; }
[data-theme="dark"] .badge-delivered { background: #1B2311; color: var(--accent); }
[data-theme="dark"] .badge-cancelled { background: #2A1515; color: #F87171; }

/* ---------- Cartes ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  transition: background .25s ease, border-color .25s ease, box-shadow .2s ease;
}

/* ============================================================
   STOREFRONT — 3 colonnes
   ============================================================ */
.store-layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

/* --- Sidebar gauche --- */
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--card); border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 2px;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; }
.logo-mark { height: 40px; width: auto; object-fit: contain; }
.logo-text { line-height: 1.05; }
.logo-text .b { font-family: var(--font-serif); font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.logo-text .c { font-size: 10px; color: var(--muted); letter-spacing: .34em; text-transform: uppercase; }

.side-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border-radius: 10px; font-weight: 500; font-size: 13px; color: var(--muted);
  transition: all .16s ease; position: relative;
}
.side-link:hover { background: rgba(0,0,0,.04); color: var(--text); }
[data-theme="dark"] .side-link:hover { background: rgba(255,255,255,.05); }
.side-link.active { background: var(--accent); color: #111; font-weight: 600; }
.side-link .hot { margin-left: auto; }
.side-sep { height: 1px; background: var(--border); margin: 10px 6px; }
.side-label { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); padding: 8px 12px 4px; }

.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.sale-block {
  background: linear-gradient(135deg, #B9E46A, var(--accent-hover));
  border-radius: var(--radius-lg); padding: 14px; color: #111;
}
.sale-block .t { font-weight: 700; font-size: 13.5px; }
.sale-block .s { font-size: 11.5px; opacity: .8; margin-top: 2px; }
.help-247 { display: flex; align-items: center; gap: 9px; padding: 8px 12px; font-size: 12px; font-weight: 500; color: var(--muted); }
.theme-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 12.5px; font-weight: 500;
}

/* Toggle */
.switch { position: relative; width: 38px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: .22s; }
.switch .slider::before {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: .22s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(16px); }

/* --- Contenu central --- */
.main-col { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  display: flex; align-items: center; gap: 12px; padding: 12px 22px;
  border-bottom: 1px solid var(--border);
}
.search-box {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 16px; max-width: 480px;
}
.desktop-only { display: inline-flex; }
.search-box input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-size: 13px; color: var(--text); }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text); background: transparent;
  border: 1px solid transparent; transition: all .16s ease;
}
.icon-btn:hover { background: var(--card); border-color: var(--border); color: var(--accent-deep); box-shadow: var(--shadow-xs); }
[data-theme="dark"] .icon-btn:hover { color: var(--accent); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--bg);
}
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cart-badge {
  position: absolute; top: -5px; right: -7px; background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
}
.topbar-link { font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; }
.topbar-link:hover { color: var(--accent); }
@media (max-width: 640px) {
  .topbar-actions { gap: 4px; }
  .topbar-actions .btn-sm { padding: 0 12px; }
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; cursor: pointer;
  border: 1.5px solid var(--accent);
}

.content { padding: 22px 26px 56px; max-width: 980px; }

/* Hero */
.hero {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: radial-gradient(1100px 560px at 18% -12%, #223515 0%, #10160C 40%, #080B07 100%);
  color: #fff; padding: 42px 38px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-inner { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-family: var(--font-serif); font-size: 30px; font-weight: 700; max-width: 520px; line-height: 1.12; letter-spacing: -.01em; color: #fff; }
.hero p { margin-top: 12px; font-size: 14px; max-width: 420px; color: rgba(255,255,255,.72); font-weight: 500; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Orbes 3D flottants */
.orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #D6F0A0 0%, #A0D849 42%, #4E7A16 100%);
  box-shadow: 0 18px 50px rgba(160,216,73,.45), inset -10px -14px 34px rgba(0,0,0,.42);
  animation: orbFloat 9s ease-in-out infinite;
}
.orb-1 { width: 210px; height: 210px; top: -70px; right: -50px; animation-duration: 12s; }
.orb-2 { width: 96px; height: 96px; top: 26px; right: 150px; opacity: .9; animation-duration: 7s; animation-delay: .8s; }
.orb-3 { width: 54px; height: 54px; bottom: 26px; right: 48px; opacity: .75; animation-duration: 8s; animation-delay: 1.6s; }
.orb-4 { width: 28px; height: 28px; top: 24px; left: 46%; opacity: .65; animation-duration: 6s; animation-delay: .4s; }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-26px) translateX(12px) scale(1.07); }
}

/* Bouton "Voir les collections" noir + cercle */
.btn-dark-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0B0B0B; color: #fff; border: 1px solid rgba(255,255,255,.16);
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.35); transition: transform .15s ease, background .15s ease;
}
.btn-dark-ghost:hover { background: #161616; transform: translateY(-1px); }
.circle-arrow {
  width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #111; display: grid; place-items: center;
}

/* Réseaux sociaux */
.socials { display: flex; gap: 10px; }
.social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--muted);
  display: grid; place-items: center;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.social:hover { color: #111; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* Champ mot de passe + œil */
.pwd-wrap { position: relative; }
.pwd-wrap input { width: 100%; padding-right: 44px; }
.pwd-toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 8px; border: none; background: transparent;
  color: var(--muted); cursor: pointer; display: grid; place-items: center;
  transition: color .15s ease, background .15s ease;
}
.pwd-toggle:hover { color: var(--text); background: var(--border); }
.pwd-toggle .ico-eye-off { display: none; }
.pwd-toggle.show .ico-eye { display: none; }
.pwd-toggle.show .ico-eye-off { display: block; }
.carousel-dots { position: absolute; bottom: 14px; left: 34px; display: flex; gap: 6px; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.25); cursor: pointer; transition: .2s; }
.carousel-dots span.active { background: #111; width: 18px; border-radius: 999px; }

/* Sections */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 14px; }
.section-head h2 { font-size: 16.5px; font-weight: 700; }
.section-head a { font-size: 12.5px; font-weight: 600; color: var(--accent-deep); transition: .15s; }
.section-head a:hover { color: var(--accent-hover); }
[data-theme="dark"] .section-head a { color: var(--accent); }

/* Catégories */
.cats { display: flex; gap: 18px; flex-wrap: wrap; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--muted); }
.cat-circle {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  transition: all .2s ease; color: var(--accent-deep);
}
[data-theme="dark"] .cat-circle { color: var(--accent); }
.cat:hover .cat-circle { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat:hover { color: var(--text); }

/* Promo cards */
.promo-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.promo-card { border-radius: var(--radius-lg); padding: 18px; position: relative; overflow: hidden; min-height: 128px; transition: transform .18s ease; }
.promo-card:hover { transform: translateY(-2px); }
.promo-flash { background: linear-gradient(135deg, #111, #262626); color: #fff; }
.promo-free { background: var(--accent-soft); color: var(--accent-deep); }
.promo-new { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); color: #8A5A00; }
[data-theme="dark"] .promo-free { background: #1B2311; color: var(--accent); }
[data-theme="dark"] .promo-new { background: #2A2013; color: #F0B429; }
.promo-card h3 { font-size: 15px; font-weight: 700; }
.promo-card p { font-size: 12px; opacity: .78; margin-top: 4px; }
.countdown { display: flex; gap: 5px; margin-top: 12px; }
.countdown div {
  background: rgba(255,255,255,.14); border-radius: 7px; padding: 5px 8px;
  text-align: center; min-width: 38px;
}
.countdown b { display: block; font-size: 15px; font-weight: 700; }
.countdown span { font-size: 9px; opacity: .65; text-transform: uppercase; }

/* Product cards */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 16px; }
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; position: relative; transition: all .2s ease; display: block;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-img { position: relative; display: block; aspect-ratio: 1/1; background: var(--accent-soft); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-img .discount {
  position: absolute; top: 9px; left: 9px; background: var(--danger); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.wish {
  position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: all .18s ease; color: #6B7280;
}
.wish:hover { color: var(--danger); transform: scale(1.08); }
.wish.active { color: var(--danger); }
[data-theme="dark"] .wish { background: rgba(21,21,21,.94); color: #9CA3AF; }
[data-theme="dark"] .wish.active { color: var(--danger); }
.fav-btn { position: absolute; top: 9px; right: 9px; margin: 0; }
.product-body { padding: 10px 12px 12px; }
.product-body .name {
  font-weight: 600; font-size: 12px; line-height: 1.3;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rating { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 10px; color: var(--muted); }
.rating .stars { color: var(--star); letter-spacing: 1px; font-size: 10px; }
.card-meta { display: flex; align-items: center; gap: 7px; margin-top: 6px; min-height: 16px; }
.price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 7px; }
.price { font-weight: 700; font-size: 12.5px; }
.price-old { font-size: 10px; color: var(--muted-2); text-decoration: line-through; }

/* Color selectors */
.color-dots { display: flex; gap: 5px; }
.color-dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; transition: .15s; }
.color-dot:hover { transform: scale(1.15); }
.add-cart {
  margin-top: 9px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--accent); color: #111; font-weight: 600; font-size: 12.5px;
  padding: 8px; border-radius: 9px; transition: all .18s ease;
}
.add-cart:hover { background: var(--accent-hover); color: #fff; }
.add-cart.added { background: var(--accent-hover); color: #fff; }
.card-sizes { display: flex; flex-wrap: nowrap; gap: 3px; overflow: hidden; }
.size-tag { font-size: 10px; font-weight: 600; padding: 1px 4px; border: 1px solid var(--border-strong); border-radius: 5px; color: var(--muted); white-space: nowrap; }

/* --- Barre de navigation bas (mobile) — calquée sur l'app client --- */
.bottom-nav {
  display: none;
  position: fixed; bottom: 10px; left: 12px; right: 12px; z-index: 50;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 10px 32px rgba(0,0,0,.18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10px; font-weight: 500; color: var(--muted);
  padding: 6px 2px; border-radius: 16px; text-decoration: none;
  transition: color .15s ease;
}
.bn-ico {
  position: relative; display: grid; place-items: center; width: 22px; height: 22px;
}
.bn-dot {
  width: 4px; height: 4px; border-radius: 50%; background: transparent;
  margin-top: 1px; transition: background .15s ease;
}
.bn-item.active { color: var(--accent); font-weight: 700; }
.bn-item.active .bn-dot { background: var(--accent); }
.bn-badge {
  position: absolute; top: -6px; right: -11px; background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px;
}

@media (max-width: 1080px) {
  .bottom-nav { display: grid; }
  body { padding-bottom: 74px; }
}

/* Reassurance */
.reassurance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.reassurance .item { display: flex; align-items: center; gap: 11px; }
.reassurance .ic {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent-deep);
}
[data-theme="dark"] .reassurance .ic { color: var(--accent); }
.reassurance b { font-size: 12.5px; display: block; font-weight: 600; }
.reassurance span { font-size: 11px; color: var(--muted); }

/* --- Panier latéral --- */
.cart-panel {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--card); border-left: 1px solid var(--border);
  padding: 20px 16px; display: flex; flex-direction: column; gap: 14px;
}
.cart-panel h3 { font-size: 15px; }
.cart-item { display: flex; gap: 11px; align-items: center; }
.cart-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .nm { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.cart-item .pr { font-size: 12.5px; color: var(--accent-deep); font-weight: 700; }
[data-theme="dark"] .cart-item .pr { color: var(--accent); }
.qty { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 7px; font-size: 12px; font-weight: 600; }
.qty button { font-size: 14px; color: var(--muted); padding: 0 2px; }
.qty button:hover { color: var(--accent-deep); }
.remove { color: var(--muted-2); }
.remove:hover { color: var(--danger); }
.promo-row { display: flex; gap: 7px; }
.promo-row input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; font-size: 12.5px; background: var(--bg); color: var(--text); outline: none; }
.cart-summary { display: flex; flex-direction: column; gap: 8px; padding: 13px; background: var(--bg); border-radius: var(--radius); font-size: 12.5px; }
.cart-summary .row { display: flex; justify-content: space-between; color: var(--muted); }
.cart-summary .total { display: flex; justify-content: space-between; font-weight: 700; font-size: 14.5px; color: var(--text); border-top: 1px dashed var(--border-strong); padding-top: 9px; margin-top: 1px; }
.pay-logos { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.pay-logos span { font-size: 9.5px; font-weight: 700; padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); }
.mini-block { display: flex; flex-direction: column; gap: 9px; }
.mini-block h4 { font-size: 13px; }
.mini-product { display: flex; gap: 9px; align-items: center; }
.mini-product img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.mini-product .nm { font-size: 12px; font-weight: 500; line-height: 1.3; }
.mini-product .pr { font-size: 11.5px; color: var(--accent-deep); font-weight: 600; }

/* ============================================================
   PAGE PRODUIT
   ============================================================ */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; padding: 26px 26px 60px; max-width: 1060px; margin: 0 auto; }
.pdp-gallery { display: flex; flex-direction: column; gap: 10px; }
.pdp-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; background: var(--accent-soft); }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; transition: background .15s ease; z-index: 2;
}
.pdp-nav:hover { background: rgba(0,0,0,.65); }
.pdp-prev { left: 12px; }
.pdp-next { right: 12px; }
.pdp-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; z-index: 2;
}
.pdp-thumbs { display: flex; gap: 9px; }
.pdp-thumbs img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; cursor: pointer; border: 1.5px solid transparent; transition: .15s; }
.pdp-thumbs img.active, .pdp-thumbs img:hover { border-color: var(--accent); }
.pdp-info h1 { font-size: 23px; font-weight: 700; }
.pdp-info .sku { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.pdp-price .now { font-size: 24px; font-weight: 700; }
.pdp-price .old { font-size: 15px; color: var(--muted-2); text-decoration: line-through; }
.pdp-price .off { font-size: 12px; font-weight: 700; color: var(--danger); }
.pdp-desc { margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.65; max-width: 480px; }
.pdp-option { margin-top: 18px; }
.pdp-option label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 8px; }
.pdp-swatches { display: flex; gap: 8px; }
.pdp-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; transition: .15s; }
.pdp-swatch.active, .pdp-swatch:hover { box-shadow: 0 0 0 2px var(--accent-hover); }
.pdp-sizes { display: flex; gap: 7px; flex-wrap: wrap; }
.pdp-size { min-width: 40px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 9px; font-size: 12.5px; font-weight: 600; text-align: center; transition: .15s; }
.pdp-size:hover { border-color: var(--accent-hover); }
.pdp-size.active { background: #111; color: #fff; border-color: #111; }
.pdp-swatch, .pdp-size { position: relative; }
.pdp-swatch input, .pdp-size input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pdp-swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--accent-hover); }
.pdp-size:has(input:checked) { background: #111; color: #fff; border-color: #111; }
.pdp-size { cursor: pointer; }
.pdp-qty { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 7px 14px; font-weight: 600; }
.pdp-actions { display: flex; gap: 10px; margin-top: 22px; }
.pdp-meta { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; color: var(--muted); }
.pdp-meta .row { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   PAGES LISTE (catégorie / wishlist / commandes)
   ============================================================ */
.page-wrap { padding: 24px 26px 60px; max-width: 1060px; margin: 0 auto; }
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 21px; }
.page-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-pill { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: .15s; }
.filter-pill:hover { border-color: var(--accent-hover); color: var(--text); }
.filter-pill.active { background: #111; color: #fff; border-color: #111; }

/* ============================================================
   PANIER PAGE
   ============================================================ */
.cart-page { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; }
.cart-lines { display: flex; flex-direction: column; gap: 12px; }
.cart-line { display: flex; gap: 14px; align-items: center; padding: 13px; border-radius: var(--radius-lg); }
.cart-line img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.cart-line .info { flex: 1; }
.cart-line .nm { font-weight: 600; font-size: 13.5px; }
.cart-line .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-checkout { padding: 20px; position: sticky; top: 80px; height: fit-content; }

/* ============================================================
   ADMIN — Back-office
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; background: var(--bg); }
.card, .kpi-card, .chart-card, .admin-main { min-width: 0; }
.admin-side {
  background: #0A0A0A; color: #fff; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; padding: 18px 13px; display: flex; flex-direction: column; gap: 2px;
}
.admin-side .logo { color: #fff; }
.admin-side .logo .c { color: #7a7a7a; }
.admin-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: #9ca3af; transition: all .16s ease;
}
.admin-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-link.active { background: var(--accent); color: #111; font-weight: 600; }
.admin-link.logout { color: #f87171; }
.admin-link.logout:hover { background: rgba(240,82,82,.12); color: #f87171; }
.admin-link .badge { margin-left: auto; }
.admin-link .badge-lime { background: rgba(160,216,73,.18); color: var(--accent); }

.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky; top: 0; z-index: 20; background: var(--card);
  border-bottom: 1px solid var(--border); display: flex; align-items: center;
  gap: 12px; padding: 11px 24px;
}
.admin-topbar .search-box { background: var(--bg); max-width: none; }
.topbar .search-box { max-width: none; }
.period-select {
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
  font-size: 12.5px; font-weight: 500; background: var(--card); color: var(--text); outline: none;
}
.admin-content { padding: 22px 24px; max-width: 1240px; }
.page-title { font-size: 20px; font-weight: 700; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.kpi-card { padding: 17px; position: relative; }
.kpi-card .lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi-card .val { font-size: 24px; font-weight: 700; margin-top: 5px; letter-spacing: -0.01em; }
.kpi-card .delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; margin-top: 7px; }
.delta.up { color: var(--accent-deep); }
.delta.down { color: var(--danger); }
[data-theme="dark"] .delta.up { color: var(--accent); }
.kpi-card .spark { position: absolute; right: 14px; top: 15px; width: 84px; height: 36px; }
.kpi-link { display: block; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; cursor: pointer; }
.kpi-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.kpi-link:hover .val { color: var(--accent); }

/* Charts */
.chart-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 16px; margin-top: 16px; }
.chart-card { padding: 18px; }
.chart-card h3 { font-size: 14.5px; }
.chart-card .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.chart-box { position: relative; height: 250px; margin-top: 12px; }
.chart-box-sm { position: relative; height: 200px; margin-top: 12px; }

/* Paramètres */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.settings-card { padding: 0; overflow: hidden; }
.settings-head { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.settings-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.settings-head h3 { font-size: 15px; }
.settings-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.settings-card form { padding: 18px 20px; display: grid; gap: 14px; }
.settings-card .field { margin: 0; }
.settings-card .alert { margin: 16px 20px 0; }
.settings-card .status-list, .settings-card .settings-note { padding: 18px 20px; }
.settings-note { margin: 0; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }
.settings-note code { background: var(--bg); padding: 1px 6px; border-radius: 5px; font-size: 11px; }
.status-list { display: grid; gap: 0; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: none; }
.status-label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 5px; vertical-align: 1px; }
.brand-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--bg); color: var(--muted); }
.alert { padding: 10px 13px; border-radius: 9px; font-size: 13px; display: flex; align-items: center; gap: 7px; }
.alert-ok { background: var(--accent-soft); color: var(--accent-deep); }
.alert-err { background: var(--danger-soft); color: var(--danger); }

/* Palette de couleurs (admin produits) */
.color-palette { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.swatch {
  width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--border-strong);
  cursor: pointer; position: relative; padding: 0; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.swatch.on::after {
  content: '✓'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px; text-shadow: 0 0 2px rgba(0,0,0,.9), 0 1px 2px rgba(0,0,0,.9);
}
.swatch-add {
  background: var(--bg); display: grid; place-items: center; color: var(--muted);
  border-style: dashed; overflow: hidden;
}
.swatch-add input[type="color"] { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.swatch-add:hover { color: var(--accent); border-color: var(--accent); }

/* Cloche notifications (admin) */
.bell-wrap { position: relative; }
.bell-count {
  position: absolute; top: -5px; right: -5px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px; pointer-events: none;
}
.bell-dropdown {
  position: absolute; top: 46px; right: 0; width: 340px; max-width: 90vw;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; display: none;
}
.bell-dropdown.open { display: block; }
.bell-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.bell-readall { background: none; border: none; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.bell-readall:hover { text-decoration: underline; }
.bell-list { max-height: 380px; overflow-y: auto; }
.bell-item {
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 16px;
  text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); transition: background .12s ease;
}
.bell-item:last-child { border-bottom: none; }
.bell-item:hover { background: var(--accent-soft); }
.bell-item.unread { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.bell-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--bg); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.bell-body { flex: 1; min-width: 0; }
.bell-msg { font-size: 13px; line-height: 1.35; }
.bell-time { font-size: 11px; color: var(--muted); margin-top: 3px; }
@media (max-width: 640px) {
  .settings-grid { grid-template-columns: 1fr; }
}

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 11px 13px; border-bottom: 1px solid var(--border); }
td { padding: 12px 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:nth-child(even) { background: var(--bg); }
tbody tr:hover { background: var(--accent-soft); }
[data-theme="dark"] tbody tr:hover { background: #1B2311; }
.cell-customer { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13px; }
.cell-customer .av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--accent-deep); }
.table-actions { display: flex; gap: 5px; }

/* Widgets */
.widgets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.widgets-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 16px; }
.top-product { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.top-product:last-child { border-bottom: none; }
.top-product img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.top-product .nm { font-weight: 600; font-size: 12.5px; }
.top-product .meta { font-size: 11px; color: var(--muted); }
.rank { font-weight: 700; color: var(--muted-2); width: 18px; font-size: 13px; }
.low-stock-item { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.low-stock-item:last-child { border-bottom: none; }
.stock-num { font-weight: 700; color: var(--danger); font-size: 12px; }
.gauge-wrap { display: flex; align-items: center; gap: 18px; }
.gauge { position: relative; width: 110px; height: 110px; }
.activity-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.activity-item:last-child { border-bottom: none; }
.activity-item .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-deep); flex-shrink: 0; }
[data-theme="dark"] .activity-item .ic { color: var(--accent); }
.activity-item .t { font-weight: 600; }
.activity-item .time { color: var(--muted); font-size: 11.5px; }

/* ============================================================
   Responsive
   ============================================================ */
.hamburger { display: none; }
.overlay { display: none; }

@media (max-width: 1280px) {
  .store-layout { grid-template-columns: 220px 1fr; }
  :root { --sidebar-w: 220px; }
}
@media (max-width: 1080px) {
  .store-layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .28s ease; z-index: 60; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .cart-panel { position: fixed; right: 0; top: 0; width: 330px; transform: translateX(100%); transition: transform .28s ease; z-index: 60; box-shadow: var(--shadow-lg); }
  .cart-panel.open { transform: translateX(0); }
  .hamburger { display: grid; }
  .overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; opacity: 0; pointer-events: none; transition: .25s; }
  .overlay.show { opacity: 1; pointer-events: auto; }
  .promo-grid { grid-template-columns: 1fr; }
  .reassurance { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; width: 250px; transform: translateX(-100%); transition: transform .28s ease; z-index: 60; }
  .admin-side.open { transform: translateX(0); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .widgets-grid, .widgets-grid3 { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .cart-page { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .content { padding: 14px 14px 44px; }
  .hero { padding: 24px 20px; min-height: 210px; }
  .hero h1 { font-size: 22px; }
  .hero-art { width: 180px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .reassurance { grid-template-columns: 1fr; }
  .cats { gap: 12px; }
  .admin-content { padding: 14px 14px; }
  .admin-topbar { padding: 10px 12px; gap: 7px; }
  .desktop-only { display: none; }
  .topbar { gap: 8px; padding: 10px 12px; }
  .search-box { padding: 8px 12px; }
  .admin-topbar .btn-outline { display: none; }
  .admin-user-name, .admin-bell { display: none; }
  .chart-box canvas, .chart-box-sm canvas { max-width: 100% !important; height: auto !important; }
  .admin-content .table-wrap { max-width: 100%; }
  .admin-content table { min-width: 560px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-head-actions { width: 100%; flex-wrap: wrap; }
  .page-head-actions .search-box { flex: 1 1 100%; max-width: none !important; }
}

/* ---------- Gestion des stocks ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 15px; border-radius: 10px 10px 0 0;
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; border: 1px solid transparent; border-bottom: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent-deep); border-color: var(--border); background: var(--card); }
[data-theme="dark"] .tab.active { color: var(--accent); }
.tab-badge { background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }

.num { text-align: right; white-space: nowrap; }
.pos { color: #2E7D32; font-weight: 600; }
.neg { color: var(--danger); font-weight: 600; }
[data-theme="dark"] .pos { color: #66BB6A; }
.mini { font-size: 10.5px; color: var(--muted); font-weight: 500; }

.stock-badge { display: inline-block; min-width: 30px; text-align: center; padding: 3px 8px; border-radius: 8px; font-weight: 700; font-size: 12.5px; }
.stock-badge.ok { background: var(--accent-soft); color: var(--accent-deep); }
.stock-badge.warn { background: #FFF4E0; color: #B7791F; }
.stock-badge.danger { background: var(--danger-soft); color: var(--danger); }
[data-theme="dark"] .stock-badge.ok { background: #1B2311; color: var(--accent); }
[data-theme="dark"] .stock-badge.warn { background: #2A2213; color: #F0B429; }
[data-theme="dark"] .stock-badge.danger { background: #2A1515; color: #F87171; }

.stock-btn { width: 26px; height: 26px; border-radius: 7px; border: none; cursor: pointer; font-size: 15px; font-weight: 700; line-height: 1; display: inline-grid; place-items: center; }
.stock-btn.in { background: rgba(46,125,50,.15); color: #2E7D32; }
.stock-btn.out { background: rgba(220,38,38,.14); color: var(--danger); }
.stock-btn:hover { filter: brightness(1.15); }

.cost-form { display: inline-flex; align-items: center; gap: 5px; justify-content: flex-end; }
.cost-form input[type="number"] { width: 80px; background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 8px; padding: 5px 8px; font-size: 12.5px; color: var(--text); text-align: right; -moz-appearance: textfield; }
.cost-form input[type="number"]::-webkit-outer-spin-button, .cost-form input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cost-form input[type="number"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(160,216,73,.16); }
.cost-form button { width: 26px; height: 26px; border-radius: 7px; border: none; cursor: pointer; display: grid; place-items: center; background: rgba(46,125,50,.15); color: #2E7D32; }
.cost-form button:hover { background: rgba(46,125,50,.28); }

.arrival-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.arrival-form .btn { grid-column: 1 / -1; justify-self: start; }

.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 90; }
.modal-backdrop.open { display: block; }
.modal { display: none; position: fixed; inset: 0; z-index: 91; place-items: center; padding: 18px; }
.modal.open { display: grid; }
.modal-box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; width: 100%; max-width: 420px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

@media (max-width: 640px) {
  .arrival-form { grid-template-columns: 1fr; }
}

/* ---------- Masquer la barre de défilement (scrollbar) ---------- */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---------- Avis clients ---------- */
.reviews-sec { max-width: 1060px; margin: 30px auto 0; padding: 0 26px 40px; }
.reviews-sec h2 { font-size: 20px; margin: 0 0 16px; }
.review-alert { padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; font-weight: 600; }
.review-alert.ok { background: rgba(46,125,50,.15); color: #2E7D32; }
.review-alert.err { background: rgba(220,38,38,.12); color: var(--danger); }
.review-form { border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 18px; background: var(--card); }
.review-form h3 { margin: 0 0 12px; font-size: 15px; }
.star-picker { direction: rtl; display: inline-flex; gap: 2px; margin-bottom: 12px; }
.star-picker input { display: none; }
.star-picker label { font-size: 30px; color: #555; cursor: pointer; line-height: 1; transition: color .1s; }
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label { color: var(--star); }
.review-form textarea { width: 100%; background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 10px; padding: 12px; color: var(--text); font-size: 13.5px; font-family: inherit; resize: vertical; margin-bottom: 12px; box-sizing: border-box; }
.review-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(160,216,73,.16); outline: none; }
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--card); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; flex-wrap: wrap; }
.review-head .stars { font-size: 14px; letter-spacing: 1px; }
.review-head b { font-size: 13.5px; }
.review-head .muted { font-size: 11.5px; margin-left: auto; }
.review-item p { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.55; }
