﻿/* =====================================================
   ChesmaTech v2 — Design System
   ===================================================== */

/* ---- Variables — Light mode (défaut) ---- */
:root {
  --bg:        #f8fafc;
  --bg2:       #ffffff;
  --bg3:       #f1f5f9;
  --bg-card:   #ffffff;
  --bg-app:    #f8fafc;
  --border:    #e2e8f0;
  --text:      #0f172a;
  --muted:     #64748b;
  --subtle:    #94a3b8;

  --accent:    #2563eb;
  --accent2:   #1d4ed8;
  --primary:   #2563eb;
  --accent-glow: rgba(37,99,235,.1);

  --success:   #16a34a;
  --warning:   #d97706;
  --danger:    #dc2626;
  --info:      #0891b2;

  --radius:    12px;
  --radius-lg: 18px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);

  --body-grad-1: rgba(37,99,235,.07);
  --body-grad-2: rgba(6,182,212,.04);
  --body-grad-3: rgba(99,102,241,.04);

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --transition: all .2s ease;
}

/* ---- Dark mode — préférence système ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0d1117;
    --bg2:       #161b22;
    --bg3:       #1c2128;
    --bg-card:   #161b22;
    --bg-app:    #0d1117;
    --border:    #30363d;
    --text:      #e6edf3;
    --muted:     #8b949e;
    --subtle:    #484f58;
    --accent-glow: rgba(37,99,235,.18);
    --success:   #22c55e;
    --warning:   #f59e0b;
    --danger:    #ef4444;
    --info:      #06b6d4;
    --shadow:    0 4px 24px rgba(0,0,0,.45);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.6);
    --body-grad-1: rgba(37,99,235,.16);
    --body-grad-2: rgba(6,182,212,.07);
    --body-grad-3: rgba(99,102,241,.08);
  }
}

/* ---- Dark mode — toggle manuel ---- */
[data-theme="dark"] {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #1c2128;
  --bg-card:   #161b22;
  --bg-app:    #0d1117;
  --border:    #30363d;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --subtle:    #484f58;
  --accent-glow: rgba(37,99,235,.18);
  --success:   #22c55e;
  --warning:   #f59e0b;
  --danger:    #ef4444;
  --info:      #06b6d4;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.6);
  --body-grad-1: rgba(37,99,235,.16);
  --body-grad-2: rgba(6,182,212,.07);
  --body-grad-3: rgba(99,102,241,.08);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -2%, var(--body-grad-1) 0%, transparent 65%),
    radial-gradient(ellipse 38% 55% at -4% 42%, var(--body-grad-2) 0%, transparent 58%),
    radial-gradient(ellipse 48% 48% at 104% 88%, var(--body-grad-3) 0%, transparent 58%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(28px, 5vw, 52px); }
h2 { font-size: clamp(22px, 3.5vw, 38px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: 18px; }
p  { color: var(--muted); line-height: 1.7; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.section-title { margin-bottom: 12px; }
.section-desc  { color: var(--muted); max-width: 560px; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .section-desc { margin: 0 auto; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent2); color: #fff; border-color: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent-glow); color: var(--accent); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-wa {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.btn-wa:hover { background: #1ebe5a; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }

.btn-sm  { padding: 7px 14px; font-size: 13px; border-radius: 7px; }
.btn-lg  { padding: 15px 32px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 9px; width: 38px; height: 38px; justify-content: center; }

.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* =====================================================
   FORM CONTROLS
   ===================================================== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-size: 14px;
  transition: var(--transition);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control::placeholder { color: var(--subtle); }
.form-hint { font-size: 12px; color: var(--subtle); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; display: none; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238b949e' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* =====================================================
   NAVBAR
   ===================================================== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.5); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}
.nav-logo-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); line-height: 1; }
.nav-logo-name span { color: var(--accent); }
.nav-logo-tag  { font-size: 10px; color: var(--muted); }

.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  margin: 0 auto;
}
.nav-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
.nav-search input {
  width: 100%;
  padding: 9px 100px 9px 38px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--bg3);
  font-size: 14px;
  transition: var(--transition);
}
.nav-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.nav-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}
.nav-search-btn:hover { background: var(--accent2); }

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 999;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s;
}
.search-result-item:hover { background: var(--bg3); }
.sri-icon { font-size: 22px; }
.sri-name  { font-size: 13.5px; font-weight: 500; }
.sri-price { font-size: 12px; color: var(--accent); }
.search-result-all {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-result-all:hover { background: var(--bg3); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 99px;
  padding: 5px 13px;
  transition: background .15s, color .15s;
}
.nav-phone-link:hover { background: rgba(34,197,94,.18); color: var(--success); }
.nav-theme-btn {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  transition: background .15s, color .15s;
}
.nav-theme-btn:hover { background: var(--bg3); color: var(--text); }

.nav-cart-btn {
  position: relative;
  padding: 8px 10px;
  color: var(--text);
  font-size: 18px;
  border-radius: 8px;
  transition: background .15s;
}
.nav-cart-btn:hover { background: var(--bg3); }
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.nav-avatar {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity .15s;
}
.nav-avatar:hover { opacity: .8; }

/* ---- Menu compte (dropdown avatar) ---- */
.nav-user-dropdown {
  position: relative;
}
.nav-user-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 10px;  /* bridge invisible entre avatar et menu */
  background: transparent;
  z-index: 500;
}
.nav-user-menu-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  min-width: 200px;
  padding: 6px;
}
.nav-user-dropdown:hover .nav-user-menu,
.nav-user-dropdown.open    .nav-user-menu { display: block; }
.nav-user-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.nav-user-menu a:hover { background: var(--bg-section); }
.nav-user-menu a i { width: 16px; text-align: center; color: var(--muted); }
.nav-user-menu-sep { height: 1px; background: var(--border); margin: 4px 0; }
.nav-user-menu .seller-link i { color: var(--primary); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 7px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Nav links bar */
.nav-links-bar {
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.nav-links-bar .nav-container {
  height: 44px;
  justify-content: space-between;
}
.nav-links, .nav-links-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg3); }
.nav-badge-link {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.nav-badge-link.new   { background: rgba(34,197,94,.15); color: var(--success); }
.nav-badge-link.promo { background: rgba(239,68,68,.15);  color: var(--danger); }

/* Mobile menu */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1001;
}
.mobile-overlay.open { display: block; }
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 90vw);
  height: 100dvh;
  background: var(--bg2);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 16px;
}
.mobile-menu-header button { font-size: 20px; color: var(--muted); padding: 4px; }
.mobile-nav-links { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}
.mobile-nav-links a:hover { background: var(--bg3); color: var(--text); }
.mobile-nav-links a i { width: 20px; color: var(--accent); }
.mobile-menu-footer { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); }

/* =====================================================
   CART SIDEBAR
   ===================================================== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100dvh;
  background: var(--bg2);
  z-index: 1101;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.cart-close-btn { font-size: 20px; color: var(--muted); padding: 6px; border-radius: 7px; transition: background .15s; }
.cart-close-btn:hover { background: var(--bg3); color: var(--text); }

.delivery-bar { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.delivery-bar-bg { height: 5px; background: var(--bg3); border-radius: 5px; overflow: hidden; }
.delivery-bar-fill { height: 100%; border-radius: 5px; transition: width .4s ease; }

.cart-items-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.cart-items-list::-webkit-scrollbar { width: 4px; }
.cart-items-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.cart-item:hover { background: var(--bg3); }
.cart-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--bg3);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 26px; height: 26px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text);
}
.qty-btn:hover { background: var(--accent); border-color: var(--accent); }
.qty-val { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-price { font-weight: 700; font-size: 14px; color: var(--accent); }
.btn-icon-sm {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 13px;
  transition: var(--transition);
}
.btn-icon-sm:hover { background: rgba(239,68,68,.15); color: var(--danger); }

.cart-footer { padding: 16px 20px 24px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 600; }
.cart-total-val { font-family: var(--font-display); font-size: 20px; color: var(--accent); }

/* =====================================================
   PRODUCT CARDS
   ===================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(37,99,235,.15); }

.card-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; gap: 5px; }
.prod-badge {
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prod-badge.new   { background: rgba(34,197,94,.18); color: var(--success); border: 1px solid rgba(34,197,94,.3); }
.prod-badge.promo { background: rgba(239,68,68,.18);  color: var(--danger);  border: 1px solid rgba(239,68,68,.3); }
.prod-badge.top   { background: rgba(245,158,11,.18); color: var(--warning); border: 1px solid rgba(245,158,11,.3); }

.card-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--bg3); }
.card-wishlist {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 32px; height: 32px;
  background: var(--bg2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.card-wishlist:hover, .card-wishlist.active { color: #ef4444; border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.1); }

.card-body { padding: 14px 16px 16px; }
.card-category { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; margin-bottom: 5px; }
.card-name { font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars { color: var(--warning); font-size: 12px; }
.rating-count { font-size: 11.5px; color: var(--muted); }

.card-price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.card-price { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text); }
.card-price-old { font-size: 12px; color: var(--subtle); text-decoration: line-through; margin-top: 1px; }
.card-discount { background: rgba(239,68,68,.18); color: var(--danger); padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 800; }

.card-stock { font-size: 11.5px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.card-stock.in-stock  { color: var(--success); }
.card-stock.low-stock { color: var(--warning); }
.card-stock.out-stock { color: var(--danger); }

.card-actions-row { display: flex; gap: 8px; align-items: center; }
.card-actions-row .btn { flex: 1; justify-content: center; }
.card-actions-row .btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ---- Bouton aperçu rapide (glisse depuis le bas au hover) ---- */
.card-quickview {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 12.5px;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform .22s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  letter-spacing: .02em;
}
.product-card:hover .card-quickview { transform: translateY(0); }

/* =====================================================
   QUICK VIEW MODAL
   ===================================================== */
.quickview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.quickview-overlay.open { opacity: 1; visibility: visible; }

.quickview-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,.55);
  animation: qv-in .28s ease;
}
@keyframes qv-in {
  from { opacity:0; transform: scale(.96) translateY(12px); }
  to   { opacity:1; transform: scale(1)  translateY(0);     }
}
.quickview-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.quickview-close:hover { color: var(--text); background: var(--border); }

.quickview-img-col {
  background: var(--bg3);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  min-height: 340px;
}
.quickview-info-col {
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
}
.qv-divider { height: 1px; background: var(--border); margin: 14px 0; }
.qv-badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.qv-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .quickview-box { grid-template-columns: 1fr; }
  .quickview-img-col { min-height: 200px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

/* =====================================================
   FORMATION CARDS
   ===================================================== */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.formation-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.formation-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(37,99,235,.15); }

.fc-header {
  padding: 22px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fc-icon { font-size: 38px; }
.fc-badges { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.fc-type-badge, .fc-cert-badge {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.fc-type-badge { background: var(--bg3); color: var(--muted); }
.fc-cert-badge { background: rgba(245,158,11,.15); color: var(--warning); }

.fc-body { padding: 0 20px 20px; flex: 1; display: flex; flex-direction: column; }
.fc-level { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.fc-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); line-height: 1.3; }
.fc-desc  { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.fc-features { margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.fc-features li { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.fc-features li i { flex-shrink: 0; }

.fc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fc-meta span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; background: var(--bg3); padding: 3px 8px; border-radius: 5px; }
.fc-meta i { color: var(--accent); }

.fc-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.fc-price-val  { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--text); }
.fc-price-free { font-size: 14px; font-weight: 700; color: var(--success); }
.fc-price-old  { font-size: 12px; color: var(--subtle); text-decoration: line-through; margin-left: 5px; }

/* =====================================================
   REVIEWS
   ===================================================== */
.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 20px;
  background: var(--bg3);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.rev-avg-block { text-align: center; }
.rev-avg-num { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: var(--text); line-height: 1; }
.rev-avg-stars { margin: 6px 0 4px; }
.rev-avg-count { font-size: 12.5px; color: var(--muted); }

.rev-dist-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rev-dist-label { font-size: 12px; color: var(--muted); width: 28px; flex-shrink: 0; }
.rev-dist-bar-bg { flex: 1; height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; }
.rev-dist-bar { height: 100%; background: var(--warning); border-radius: 6px; transition: width .6s ease; }
.rev-dist-pct { font-size: 12px; color: var(--muted); width: 32px; text-align: right; flex-shrink: 0; }

.review-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.rev-avatar {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.rev-content { flex: 1; }
.rev-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.rev-author  { font-weight: 600; font-size: 14px; }
.rev-date    { font-size: 12px; color: var(--muted); }
.rev-stars   { margin-bottom: 6px; }
.rev-comment { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.review-form-wrap { background: var(--bg3); padding: 20px; border-radius: var(--radius); }
.review-form-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.star-picker { display: flex; gap: 6px; margin-bottom: 14px; font-size: 26px; }
.star-pick { cursor: pointer; color: var(--subtle); transition: color .15s, transform .15s; }
.star-pick:hover { transform: scale(1.2); }

/* =====================================================
   FOOTER
   ===================================================== */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding-top: 64px;
  padding-bottom: 0;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-col-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13.5px; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); }

.footer-contact-list { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); }
.footer-contact-list i { color: var(--accent); width: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { color: var(--muted); }
.footer-contact-list a:hover { color: var(--text); }
.hours-badge { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.hours-badge.open   { background: rgba(34,197,94,.15);  color: var(--success); }
.hours-badge.closed { background: rgba(239,68,68,.12);  color: var(--danger); }

.footer-newsletter {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 24px;
}
.fn-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.fn-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.fn-desc  { font-size: 13px; color: var(--muted); }
.fn-form  { display: flex; gap: 8px; flex: 1; min-width: 260px; max-width: 460px; }
.fn-input { flex: 1; }
.fn-btn   { white-space: nowrap; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 12.5px;
  color: var(--subtle);
  gap: 16px;
}
.footer-pay-icons { display: flex; align-items: center; gap: 10px; }
.footer-pay-icons img { height: 24px; }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  min-height: calc(100vh - 108px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 44px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(37,99,235,.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(139,92,246,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-container { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.hero-label { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: var(--accent-glow); border: 1px solid rgba(37,99,235,.3); border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.hero-title { font-size: clamp(26px, 3.2vw, 44px); font-weight: 800; line-height: 1.12; margin-bottom: 16px; }
.hero-title span { color: var(--accent); }
.hero-desc { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 24px; max-width: 460px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-stat-num { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); }
.hero-stat-label { font-size: 11px; color: var(--muted); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform .3s;
}
.hero-card-main { padding: 28px; box-shadow: var(--shadow-lg); }
.hero-card-float {
  position: absolute;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}
.hero-card-float:nth-child(2) { top: -16px; right: -16px; animation-delay: .5s; }
.hero-card-float:nth-child(3) { bottom: -16px; left: -16px; animation-delay: 1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* =====================================================
   HERO SLIDER CAROUSEL
   ===================================================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 108px);
}
/* Chaque slide est empilée en absolute, seule l'active est visible */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
  pointer-events: none;
  will-change: opacity;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
/* Le .hero à l'intérieur prend toute la hauteur du slider */
.hero-slide .hero { min-height: 100%; height: 100%; }

/* ---- Flèches ---- */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.slider-arrow:hover { background: rgba(255,255,255,.2); color: #fff; }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* ---- Dots ---- */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, width .3s ease;
}
.slider-dot.active { width: 28px; background: #fff; }

/* ---- Barre de progression ---- */
.slider-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.1);
  z-index: 20;
  overflow: hidden;
}
.slider-progress-bar { height: 100%; background: var(--accent); width: 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-slider { min-height: auto; }
  .slider-arrow { display: none; }
  .slider-dots  { bottom: 16px; }
}

/* =====================================================
   SECTIONS GÉNÉRIQUES
   ===================================================== */
.section-with-bg { background: var(--bg2); }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  background: var(--bg2);
  padding: 28px 20px;
  text-align: center;
  transition: background .2s;
}
.stat-item:hover { background: var(--bg3); }
.stat-num { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.stat-num span { color: var(--accent); }
.stat-label { font-size: 13px; color: var(--muted); }

/* =====================================================
   CATALOGUE PAGE
   ===================================================== */
.catalogue-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.catalogue-sidebar {
  position: sticky;
  top: 120px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.filter-section { margin-bottom: 22px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--muted);
  transition: var(--transition);
}
.filter-item:hover, .filter-item.active { background: var(--bg3); color: var(--text); }
.filter-item.active { color: var(--accent); font-weight: 600; }
.filter-count { font-size: 11px; background: var(--bg3); padding: 2px 7px; border-radius: 5px; }
.filter-item.active .filter-count { background: var(--accent-glow); color: var(--accent); }

.catalogue-main .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.results-count { font-size: 14px; color: var(--muted); }
.sort-select {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  min-width: 160px;
}

/* =====================================================
   PRODUCT PAGE
   ===================================================== */
.product-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-gallery { position: sticky; top: 120px; }
.product-main-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumbnails { display: flex; gap: 8px; flex-wrap: wrap; }
.product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color .15s;
}
.product-thumb.active { border-color: var(--accent); }

.product-info { padding-top: 8px; }
.product-info .card-category { font-size: 12px; margin-bottom: 8px; display: block; }
.product-info h1 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.product-rating-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.product-price-block { margin-bottom: 22px; }
.product-price { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--text); }
.product-price-old { font-size: 16px; color: var(--subtle); text-decoration: line-through; margin-left: 8px; }
.product-saving { font-size: 13px; color: var(--success); margin-top: 4px; font-weight: 600; }

.product-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 12px; border-radius: 6px; margin-bottom: 20px; font-weight: 600; }
.product-stock.in-stock  { background: rgba(34,197,94,.12); color: var(--success); }
.product-stock.low-stock { background: rgba(245,158,11,.12); color: var(--warning); }
.product-stock.out-stock { background: rgba(239,68,68,.12);  color: var(--danger); }

.prod-trust-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.prod-trust-chip { display: flex; align-items: center; gap: 7px; font-size: 12.5px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; }

.product-actions { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.product-actions .btn { flex: 1; min-width: 140px; justify-content: center; }

.product-features { margin-bottom: 22px; }
.product-feature-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.product-feature-item:last-child { border: none; }
.product-feature-item i { color: var(--accent); width: 16px; flex-shrink: 0; }

/* Product tabs */
.product-tabs { margin-top: 48px; }
.tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 28px; overflow-x: auto; }
.tab-btn {
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =====================================================
   CHECKOUT PAGE
   ===================================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}
.checkout-steps { display: flex; gap: 0; margin-bottom: 32px; }
.checkout-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
}
.checkout-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  top: 16px;
  z-index: 0;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: var(--transition);
}
.checkout-step.active .step-num  { border-color: var(--accent); background: var(--accent); color: #fff; }
.checkout-step.done .step-num    { border-color: var(--success); background: var(--success); color: #fff; }
.step-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.checkout-step.active .step-label, .checkout-step.done .step-label { color: var(--text); }

.checkout-section { margin-bottom: 28px; }
.checkout-section-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.checkout-section-title i { color: var(--accent); }

.checkout-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }

.payment-method-list { display: flex; flex-direction: column; gap: 10px; }
.payment-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.payment-method:hover  { border-color: var(--subtle); }
.payment-method.active { border-color: var(--accent); background: var(--accent-glow); }
.payment-method-icon { font-size: 24px; }
.payment-method-name { font-weight: 600; font-size: 14px; }
.payment-method-desc { font-size: 12px; color: var(--muted); }

/* Order summary sidebar */
.order-summary {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 120px;
}
.order-summary-title { font-weight: 700; font-size: 16px; margin-bottom: 18px; }
.order-items-mini { margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.order-item-mini { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.order-item-mini-img { width: 40px; height: 40px; border-radius: 7px; background: var(--bg3); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.order-item-mini-name { flex: 1; font-weight: 500; }
.order-item-mini-price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.order-totals { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.order-total-row { display: flex; justify-content: space-between; font-size: 13.5px; }
.order-total-row.grand { font-weight: 800; font-size: 17px; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 4px; }
.order-total-row.grand .val { color: var(--accent); font-family: var(--font-display); }

/* =====================================================
   AUTH PAGE
   ===================================================== */
.auth-container {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }

.auth-tabs { display: flex; gap: 0; background: var(--bg3); border-radius: 9px; padding: 3px; margin-bottom: 24px; }
.auth-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 7px;
  transition: var(--transition);
}
.auth-tab.active { background: var(--bg2); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--subtle); font-size: 12px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* =====================================================
   COMPTE PAGE (Dashboard)
   ===================================================== */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  padding: 40px 0;
}
.account-sidebar {
  position: sticky;
  top: 120px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.account-profile-header { padding: 20px; border-bottom: 1px solid var(--border); text-align: center; }
.account-avatar-lg {
  width: 64px; height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin: 0 auto 10px;
}
.account-name  { font-weight: 700; font-size: 15px; }
.account-email { font-size: 12px; color: var(--muted); }

.account-nav-links { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.account-nav-link:hover, .account-nav-link.active { background: var(--bg3); color: var(--text); }
.account-nav-link.active { color: var(--accent); }
.account-nav-link i { width: 18px; color: var(--accent); }

.account-content { }
.account-panel { display: none; }
.account-panel.active { display: block; }

.order-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.order-card:hover { border-color: var(--subtle); }
.order-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.order-id     { font-family: monospace; font-size: 13px; color: var(--muted); }
.order-date   { font-size: 12.5px; color: var(--muted); }
.order-status {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.order-status.pending    { background: rgba(245,158,11,.15); color: var(--warning); }
.order-status.processing { background: rgba(6,182,212,.15);  color: var(--info); }
.order-status.shipped    { background: rgba(139,92,246,.15); color: #a78bfa; }
.order-status.delivered  { background: rgba(34,197,94,.15);  color: var(--success); }
.order-status.cancelled  { background: rgba(239,68,68,.15);  color: var(--danger); }
.order-total-display { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text); }

/* ── Stepper suivi commande ──────────────────────────── */
.order-stepper { display: flex; align-items: center; margin: 14px 0 4px; }
.order-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.step-circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted);
  transition: background .2s, border-color .2s, color .2s;
}
.step-label { font-size: 10.5px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.order-step.done  .step-circle { background: rgba(34,197,94,.15); border-color: var(--success); color: var(--success); }
.order-step.done  .step-label  { color: var(--success); }
.order-step.current .step-circle { background: rgba(37,99,235,.15); border-color: var(--accent); color: var(--accent); }
.order-step.current .step-label  { color: var(--accent); font-weight: 700; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; margin-bottom: 20px; min-width: 12px; transition: background .2s; }
.step-line.done { background: var(--success); }
.order-cancelled-bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(239,68,68,.1); color: var(--danger);
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; margin: 10px 0;
}
@media (max-width: 480px) {
  .step-label { display: none; }
  .step-circle { width: 28px; height: 28px; font-size: 11px; }
}

/* =====================================================
   ADMIN
   ===================================================== */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.admin-stat-num   { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.admin-stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: var(--bg3); }
.data-table tr:last-child td { border: none; }

/* =====================================================
   WHATSAPP FLOAT
   ===================================================== */
.wa-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.wa-float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.wa-float-tooltip {
  position: absolute;
  right: 64px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  box-shadow: var(--shadow);
}
.wa-float-btn:hover .wa-float-tooltip { opacity: 1; }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); transform: scale(1); }
  50%      { box-shadow: 0 4px 36px rgba(37,211,102,.7); transform: scale(1.08); }
}
.wa-float-btn.wa-pulse { animation: wa-pulse .6s ease 2; }

/* =====================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================== */
.fade-in   { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.slide-up  { opacity: 0; transform: translateY(40px); transition: opacity .55s ease, transform .55s ease; }
.slide-left  { opacity: 0; transform: translateX(-30px); transition: opacity .55s ease, transform .55s ease; }
.slide-right { opacity: 0; transform: translateX(30px);  transition: opacity .55s ease, transform .55s ease; }
.scale-in  { opacity: 0; transform: scale(.92); transition: opacity .5s ease, transform .5s ease; }

.fade-in.visible, .slide-up.visible, .slide-left.visible, .slide-right.visible, .scale-in.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* =====================================================
   MODAL
   ===================================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  position: relative;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 18px;
  color: var(--muted);
  padding: 6px;
  border-radius: 7px;
  transition: var(--transition);
}
.modal-close:hover { background: var(--bg3); color: var(--text); }

/* =====================================================
   CHIP / BADGE
   ===================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid var(--border);
}
.chip.accent  { background: var(--accent-glow); color: var(--accent); border-color: rgba(37,99,235,.3); }
.chip.success { background: rgba(34,197,94,.12);  color: var(--success); border-color: rgba(34,197,94,.3); }
.chip.warning { background: rgba(245,158,11,.12); color: var(--warning); border-color: rgba(245,158,11,.3); }
.chip.danger  { background: rgba(239,68,68,.12);  color: var(--danger);  border-color: rgba(239,68,68,.3); }

/* =====================================================
   SKELETON LOADERS
   ===================================================== */
@keyframes skeleton-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.skeleton {
  background: var(--bg3);
  border-radius: 6px;
  animation: skeleton-pulse 1.4s ease infinite;
}
.skeleton-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
}
.sk-img  { width: 100%; aspect-ratio: 4/3; border-radius: 8px; }
.sk-line { height: 12px; margin-top: 10px; }
.sk-line.w-3-4 { width: 75%; }
.sk-line.w-1-2 { width: 50%; }
.sk-line.w-1-3 { width: 33%; }

/* =====================================================
   BLOG / POSTS
   ===================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  text-decoration: none;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(37,99,235,.12);
}
.post-card-img {
  aspect-ratio: 16/9;
  background: var(--bg3);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.post-card-img img { width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-img-placeholder {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:52px;
}
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.65;
  flex: 1; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--subtle);
  padding-top: 12px; border-top: 1px solid var(--border);
  margin-top: auto;
}
/* Badges catégorie */
.post-cat {
  display: inline-block;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.post-cat-reseau     { background: rgba(37,99,235,.12);  color: var(--accent); }
.post-cat-securite   { background: rgba(239,68,68,.12);  color: var(--danger); }
.post-cat-formation  { background: rgba(139,92,246,.12); color: #8b5cf6; }
.post-cat-conseils   { background: rgba(234,179,8,.12);  color: var(--warning); }
.post-cat-actualites { background: rgba(34,197,94,.12);  color: var(--success); }

/* Article page */
.article-content {
  font-size: 16px; line-height: 1.8; color: var(--text); max-width: 780px; margin: 0 auto;
}
.article-content h2 { font-size: 20px; font-weight: 800; margin: 32px 0 12px; }
.article-content h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.article-content p  { margin: 0 0 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content strong { font-weight: 700; }
.article-content a  { color: var(--accent); text-decoration: underline; }
.article-content blockquote {
  border-left: 4px solid var(--accent); margin: 20px 0;
  padding: 12px 20px; background: var(--bg2); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--muted);
}

/* Bandeau Telegram */
.telegram-strip {
  background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
  padding: 16px 0;
}
.telegram-strip-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.telegram-strip-icon { font-size: 28px; color: #fff; flex-shrink: 0; }
.telegram-strip-text { color: rgba(255,255,255,.9); font-size: 14px; font-weight: 500; }
.telegram-strip-text strong { color: #fff; }
.btn-telegram {
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4);
  color: #fff; white-space: nowrap;
  transition: background .2s;
}
.btn-telegram:hover { background: rgba(255,255,255,.3); color: #fff; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .telegram-strip-inner { flex-direction: column; text-align: center; gap: 10px; }
}

/* =====================================================
   EMPTY STATES
   ===================================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state i { font-size: 48px; color: var(--subtle); display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; max-width: 300px; margin: 0 auto 20px; }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.page-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: var(--transition);
}
.page-btn:hover { color: var(--text); border-color: var(--subtle); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--subtle); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .catalogue-layout { grid-template-columns: 1fr; }
  .catalogue-sidebar { position: static; }
  .filter-list { flex-direction: row; flex-wrap: wrap; }
  .filter-item { padding: 6px 12px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-nav-links { flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-phone-link { display: none; }
  .nav-logo-tag   { display: none; }
  .nav-avatar     { display: none; }
  .nav-search { max-width: none; }
  .nav-burger { display: flex; }
  .nav-links-bar { display: none; }
  /* Bouton auth : icône seule sur mobile pour libérer de la place */
  [data-auth="connexion"] { font-size: 0; padding: 8px 10px; }
  [data-auth="connexion"] i { font-size: 14px; }
  /* Bouton "Chercher" masqué sur mobile (Enter suffit) */
  .nav-search-btn { display: none; }
  .nav-search input { padding-right: 14px; }
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
  .hero { min-height: auto; padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { display: none; }
  /* Fix : slider en position:relative sans enfants dans le flux → collapse sans min-height explicite */
  /* min() : jamais plus grand que le viewport disponible (navbar ~65px) */
  .hero-slider { min-height: min(520px, calc(100dvh - 65px)); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-page-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
  .reviews-summary { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .formations-grid { grid-template-columns: 1fr; }
  .checkout-steps .step-label { display: none; }
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-container { padding: 0 16px; gap: 8px; }
  .nav-logo-name { display: none; }
  /* Bouton WhatsApp plus petit et mieux ancré sur petit écran */
  .wa-float-btn { right: 16px; bottom: 16px; width: 48px; height: 48px; font-size: 22px; }
  .nav-search input { font-size: 13px; }
  .hero-slider { min-height: min(420px, calc(100dvh - 65px)); }
  .hero-btns { gap: 8px; }
  .hero-btns .btn-lg { padding: 13px 22px; font-size: 14px; }
  .hero-stats { gap: 14px; }
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 20px; }
  .auth-card { padding: 28px 20px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 12px 12px; }
  .card-name { font-size: 13px; }
  .card-price { font-size: 14px; }
  .formations-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .quickview-box { margin: 0; border-radius: var(--radius); }
  .quickview-info-col { padding: 20px 16px 16px; }
}

/* ── Bannière promo ─────────────────────────────────── */
#promo-banner {
  background: linear-gradient(90deg, var(--accent), #06B6D4);
  color: #fff;
  text-align: center;
  padding: 8px 44px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1100;
}
.promo-banner-text { color: inherit; }
.promo-banner-text[href]:hover { text-decoration: underline; }
.promo-banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-banner-close:hover { background: rgba(255,255,255,.35); }

/* ── Trust Bar ──────────────────────────────────────── */
#trust-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
#trust-bar::-webkit-scrollbar { display: none; }
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  max-width: 960px;
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 22px;
}
.trust-item i { color: var(--primary); font-size: 14px; }
.trust-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .trust-bar-inner { justify-content: flex-start; }
  .trust-item { padding: 0 14px; font-size: 12px; }
}

/* ── Mobile Bottom Nav ──────────────────────────────── */
#mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 600;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -4px 20px rgba(0,0,0,.14);
}
@media (max-width: 768px) {
  #mobile-bottom-nav { display: flex; align-items: stretch; }
  body { padding-bottom: 60px; }
}
.mbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  transition: color .15s;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.mbn-item:active { background: var(--bg-app); }
.mbn-item.active { color: var(--primary); }
.mbn-item > i { font-size: 20px; }
.mbn-cart-wrap { position: relative; display: inline-flex; }
.mbn-cart-badge {
  position: absolute;
  top: -5px; right: -8px;
  min-width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
