@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a12;
  --bg-soft: #12121e;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #f4f2ff;
  --text-dim: #a9a6c4;
  --violet: #7b5cff;
  --pink: #ff3ea5;
  --gold: #ffd166;
  --green: #a3e635;
  --orange: #ff7a1a;
  --grad: linear-gradient(120deg, var(--violet), var(--pink) 55%, var(--gold));
  /* Aura multicolore reprise directement des néons du logo */
  --logo-aura: conic-gradient(from 0deg, #a3e635, #22d3ee, #7b5cff, #ff3ea5, #ff7a1a, #ffd166, #a3e635);
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% -10%, #23163f 0%, transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, #3a1130 0%, transparent 55%), var(--bg);
  color: var(--text);
  font-family: 'Outfit', 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.hidden { display: none !important; }

/* ---------- Layout helpers ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--text-dim); font-size: 16px; line-height: 1.6; margin: 0; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #140a1f; box-shadow: 0 8px 24px rgba(255, 62, 165, 0.28); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(255, 62, 165, 0.4); transform: translateY(-2px); }
.btn-ghost { background: var(--glass); color: var(--text); border: 1px solid var(--glass-border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 100px; }
.btn-danger { background: rgba(255, 70, 90, 0.15); color: #ff7a8a; border: 1px solid rgba(255, 70, 90, 0.35); }
.btn-danger:hover { background: rgba(255, 70, 90, 0.25); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1180px; margin: 0 auto; }
.logo-wrap { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.logo-wrap img.logo-img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-dim); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  font-size: 18px;
}
.badge-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--pink); color: white; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 100px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 60px; text-align: center; position: relative; overflow: hidden; }

/* Logo pièce maîtresse du hero, avec halo néon tournant */
.hero-logo {
  position: relative;
  width: 200px; height: 200px;
  margin: 0 auto 30px;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-glow {
  position: absolute; inset: -22%;
  border-radius: 50%;
  background: var(--logo-aura);
  filter: blur(34px);
  opacity: 0.55;
  animation: logoSpin 14s linear infinite;
  z-index: 0;
}
.hero-logo-img {
  position: relative;
  z-index: 1;
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08), 0 18px 50px rgba(0,0,0,0.55);
  animation: logoFloat 5s ease-in-out infinite;
}
@keyframes logoSpin { to { transform: rotate(360deg); } }
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-glow, .hero-logo-img { animation: none; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--gold);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub { font-size: 18px; color: var(--text-dim); max-width: 560px; margin: 0 auto 34px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 28px; font-weight: 800; }
.hero-stats span { font-size: 13px; color: var(--text-dim); }

/* ---------- Categories ---------- */
.cat-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.cat-card { padding: 28px 24px; position: relative; overflow: hidden; }
.cat-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0.12; background: var(--accent, var(--grad));
}
.cat-card-inner { position: relative; z-index: 1; }
.cat-price { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 100px; display: inline-block; margin-bottom: 14px; }
.cat-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.cat-card p.tagline { color: var(--text-dim); font-size: 13px; margin: 0 0 18px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
  font-size: 12px; padding: 6px 10px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border);
  color: var(--text-dim);
}
.cat-vip { border: 1px solid rgba(255, 209, 102, 0.4); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-chip {
  padding: 9px 18px; border-radius: 100px; font-size: 13px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-dim);
}
.filter-chip.active { background: var(--grad); color: #140a1f; border-color: transparent; }
/* Sous-filtres (niveau 2) : plus discrets, marge réduite */
.filters-sub { margin-top: -24px; margin-bottom: 18px; }
.filter-chip.sub { padding: 7px 14px; font-size: 12px; }
.filter-chip.sub.active { background: rgba(255,255,255,0.14); color: var(--text); border-color: var(--glass-border); }
/* Filtres niveau 3 (thèmes des "Lots à thème") : encore plus discrets, accent cyan */
.filters-theme {
  margin-top: -6px; margin-bottom: 40px; padding: 12px 14px 4px;
  border-left: 2px solid rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.04); border-radius: 12px;
}
.filter-chip.theme { padding: 6px 12px; font-size: 11.5px; }
.filter-chip.theme.active { background: rgba(34, 211, 238, 0.85); color: #06232b; border-color: transparent; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease; }
.product-card:hover { transform: translateY(-4px); }
.product-photo { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-tag {
  position: absolute; top: 10px; left: 10px;
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 100px;
  background: rgba(10, 10, 18, 0.7); backdrop-filter: blur(6px);
}
.product-stock-tag {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 100px;
  background: rgba(10, 10, 18, 0.7);
}
.product-stock-tag.low { color: #ffb347; border: 1px solid rgba(255, 179, 71, 0.4); }

/* ---------- Article épuisé : "Victime de son succès" ---------- */
.product-card.sold-out .product-photo img { filter: grayscale(0.75) brightness(0.55); }
.product-card.sold-out h4 { text-decoration: line-through; text-decoration-color: var(--pink); opacity: 0.75; }
.product-card.sold-out .product-price { text-decoration: line-through; opacity: 0.55; }
.product-card.sold-out:hover { transform: none; }
.product-soldout-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-7deg);
  background: linear-gradient(120deg, var(--pink), var(--violet));
  color: #fff; font-weight: 800; font-size: 12.5px; line-height: 1.2;
  padding: 9px 14px; border-radius: 12px; max-width: 82%; text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55); border: 1px solid rgba(255,255,255,0.25);
}
.soldout-pill {
  font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.06); color: var(--text-dim); border: 1px solid var(--glass-border);
}

.product-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h4 { margin: 0; font-size: 15px; font-weight: 700; }
.product-cat { font-size: 12px; color: var(--text-dim); }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-size: 17px; font-weight: 800; color: var(--gold); }
.product-price small { font-size: 11px; font-weight: 600; color: var(--text-dim); }
.add-btn {
  width: 38px; height: 38px; border-radius: 10px; border: none;
  background: var(--grad); color: #140a1f; font-size: 18px; font-weight: 800;
}
.add-btn:disabled { background: rgba(255, 255, 255, 0.08); color: var(--text-dim); }
.compose-btn { flex-shrink: 0; }
/* Badge "Lot de N" en bas de la photo produit */
.product-lot-tag {
  position: absolute; bottom: 10px; left: 10px;
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 100px;
  background: rgba(34, 211, 238, 0.85); color: #06232b;
}

/* ---------- Modale détail du lot ---------- */
.lot-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lot-modal-head h3 { margin: 0; }
.lot-pieces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.lot-piece {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
}
.lot-piece img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; }
.lot-piece strong { font-size: 13px; font-weight: 700; }
.lot-piece-price { font-size: 12px; font-weight: 700; color: var(--gold); }
.lot-piece .add-piece-btn { width: 100%; justify-content: center; padding: 8px 10px; }

/* ---------- Bloc "détail du lot" dans l'admin ---------- */
.lot-fields {
  margin-top: 6px; padding: 16px; border-radius: 14px;
  background: rgba(34, 211, 238, 0.06); border: 1px solid rgba(34, 211, 238, 0.25);
}
.lot-fields-title { font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.pieces-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.piece-row {
  display: grid; grid-template-columns: 40px 1fr 90px auto; align-items: center; gap: 10px;
  padding: 8px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
}
.piece-row .piece-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; cursor: pointer; }
.piece-row .piece-thumb:hover { outline: 2px solid var(--violet); outline-offset: 1px; }
.piece-row .piece-name { min-width: 0; }
.piece-row .piece-stock { width: 100%; }
.piece-row .piece-remove {
  background: none; border: none; color: var(--danger, #ff6b6b); cursor: pointer; font-size: 16px; padding: 4px 6px;
}
.lot-computed-stock { font-size: 12px; font-weight: 700; color: var(--gold); margin: 6px 0 4px; }

.order-items-row td { background: rgba(255,255,255,0.03); padding: 14px 16px; }
.order-items-panel { display: flex; flex-direction: column; gap: 8px; }
.order-status-select {
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text);
  border-radius: 100px; padding: 6px 10px; font-size: 12px; font-weight: 600; font-family: inherit;
}

.faq-row {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px;
  padding: 12px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
}
.faq-row textarea { resize: vertical; }
.faq-row-actions { display: flex; justify-content: flex-end; }
.slicer-box { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--glass-border); }
.slice-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; margin-top: 14px; }
.slice-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--glass-border); }
.dropzone .preview { width: 100%; max-height: 180px; object-fit: contain; border-radius: 10px; margin-bottom: 8px; }
.slice-actions {
  margin-top: 16px; padding: 14px; border-radius: 12px;
  background: rgba(163, 230, 53, 0.06); border: 1px solid rgba(163, 230, 53, 0.28);
}
/* Menu déroulant de catégorie inline dans le tableau produits */
.inline-cat-select {
  max-width: 210px; padding: 7px 10px; border-radius: 9px; font-size: 12.5px;
  background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid var(--glass-border);
  font-family: inherit; cursor: pointer;
}
.inline-cat-select:hover { background: rgba(255,255,255,0.09); }

/* ---------- Create your own pack ---------- */
.creation-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px; }
.creation-block h2 { font-size: 30px; margin: 0 0 14px; font-weight: 800; }
.creation-block p { color: var(--text-dim); line-height: 1.7; margin: 0 0 14px; }
.creation-steps { display: flex; flex-direction: column; gap: 14px; margin: 22px 0; }
.creation-step { display: flex; gap: 12px; align-items: flex-start; }
.creation-step .num {
  width: 30px; height: 30px; border-radius: 100px; background: var(--grad); color: #140a1f;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.creation-visual {
  aspect-ratio: 1; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 40%, rgba(163,230,53,0.18), transparent 60%), var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); overflow: hidden; padding: 30px;
}
.creation-visual img {
  width: 82%; height: 82%; object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.5));
  animation: logoFloat 6s ease-in-out infinite;
}

/* ---------- About / Story ---------- */
.about-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
/* Filigrane décoratif du logo en fond de section */
.about-wrap::after {
  content: ''; position: absolute; right: -60px; bottom: -70px;
  width: 320px; height: 320px;
  background: url('../assets/logo.png') center/contain no-repeat;
  opacity: 0.05; pointer-events: none; z-index: 0;
}
.about-wrap > div { position: relative; z-index: 1; }
.about-logo {
  width: 132px; height: 132px; margin-bottom: 16px;
  border-radius: 50%;
  padding: 4px;
  background: var(--logo-aura);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.about-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.about-wrap p { color: var(--text-dim); line-height: 1.75; font-size: 15px; }

/* ---------- Delivery / info cards ---------- */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card { padding: 26px; text-align: center; }
.info-card .ic { font-size: 32px; margin-bottom: 12px; }
.info-card h4 { margin: 0 0 8px; font-size: 16px; }
.info-card p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text); text-align: left;
  padding: 20px 4px; font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center;
}
.faq-q .arrow { transition: transform 0.2s ease; color: var(--gold); }
.faq-item.open .faq-q .arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p { margin: 0 0 20px; color: var(--text-dim); font-size: 14px; line-height: 1.7; padding: 0 4px; }

/* ---------- Legal (CGV / Mentions) ---------- */
.legal-content { max-height: 420px; overflow-y: auto; padding-right: 10px; }
.legal-content h4 { color: var(--gold); margin: 20px 0 8px; font-size: 15px; }
.legal-content h4:first-child { margin-top: 0; }
.legal-content p { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin: 0 0 4px; }
.legal-content::-webkit-scrollbar { width: 6px; }
.legal-content::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; padding: 30px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-dim); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04); color: var(--text); font-family: inherit; font-size: 14px;
}
.field textarea { resize: vertical; min-height: 100px; }
.contact-info { padding: 30px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.contact-info .row { display: flex; gap: 12px; align-items: flex-start; }
.contact-info .row .ic { font-size: 20px; }
.contact-info .row div strong { display: block; font-size: 14px; }
.contact-info .row div span { font-size: 13px; color: var(--text-dim); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--glass-border); padding: 50px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul a { font-size: 14px; color: var(--text-dim); }
.footer-grid ul a:hover { color: var(--text); }
.footer-brand p { color: var(--text-dim); font-size: 14px; line-height: 1.6; max-width: 260px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--glass-border); font-size: 13px; color: var(--text-dim); flex-wrap: wrap; gap: 10px; }
.admin-link { font-size: 12px; color: var(--text-dim); opacity: 0.6; }
.admin-link:hover { opacity: 1; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw;
  background: #12121e; border-left: 1px solid var(--glass-border);
  z-index: 91; transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--glass-border); }
.drawer-head h3 { margin: 0; font-size: 18px; }
.close-btn { width: 34px; height: 34px; border-radius: 10px; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { text-align: center; color: var(--text-dim); padding: 60px 20px; font-size: 14px; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-info strong { display: block; font-size: 14px; }
.cart-item .ci-info span { font-size: 12px; color: var(--text-dim); }
.qty-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-ctrl button { width: 24px; height: 24px; border-radius: 6px; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); font-size: 13px; }
.remove-btn { color: #ff7a8a; font-size: 12px; background: none; border: none; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 12px; }
.min-order-note { font-size: 12px; color: var(--text-dim); text-align: center; }
.min-order-note.warn { color: #ffb347; }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; }

/* ---------- Toast / confirm ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #16162a; border: 1px solid var(--glass-border); padding: 16px 22px; border-radius: 14px;
  z-index: 200; opacity: 0; transition: all 0.25s ease; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= ADMIN ================= */
.admin-shell { display: none; min-height: 100vh; }
.admin-shell.show { display: flex; }
.admin-sidebar {
  width: 240px; flex-shrink: 0; background: #0d0d17; border-right: 1px solid var(--glass-border);
  padding: 24px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh;
}
.admin-sidebar .logo-wrap { padding: 0 8px 24px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--text-dim);
}
.admin-nav-item.active, .admin-nav-item:hover { background: var(--glass); color: var(--text); }
.admin-sidebar .back-to-shop { margin-top: auto; }
.admin-main { flex: 1; padding: 32px 40px; max-width: 1180px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 14px; }
.admin-header h2 { margin: 0; font-size: 24px; font-weight: 800; }
.admin-header p { margin: 4px 0 0; color: var(--text-dim); font-size: 14px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 34px; }
.kpi-card { padding: 22px; }
.kpi-card .kpi-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.kpi-card .kpi-value { font-size: 26px; font-weight: 800; }
.kpi-card.warn .kpi-value { color: #ffb347; }

.admin-view { display: none; }
.admin-view.active { display: block; }

.admin-table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); padding: 12px 14px; border-bottom: 1px solid var(--glass-border); }
table.admin-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px; vertical-align: middle; }
table.admin-table img.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.stock-pill { padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.06); }
.stock-pill.low { background: rgba(255, 179, 71, 0.15); color: #ffb347; }
.stock-pill.out { background: rgba(255, 70, 90, 0.15); color: #ff7a8a; }
.row-actions { display: flex; gap: 8px; }
.icon-mini { width: 30px; height: 30px; border-radius: 8px; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.stock-adjust { display: flex; align-items: center; gap: 6px; }
.stock-adjust button { width: 24px; height: 24px; border-radius: 6px; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty-state .ic { font-size: 40px; margin-bottom: 12px; }

/* Modal (add/edit product) */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 120; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal-box { width: 520px; max-width: 100%; max-height: 88vh; overflow-y: auto; padding: 28px; }
.modal-box h3 { margin: 0 0 18px; font-size: 19px; }
.dropzone {
  border: 2px dashed var(--glass-border); border-radius: 14px; padding: 24px; text-align: center;
  color: var(--text-dim); font-size: 13px; cursor: pointer; margin-bottom: 16px; position: relative; overflow: hidden;
}
.dropzone.drag { border-color: var(--pink); background: rgba(255, 62, 165, 0.06); }
.dropzone img.preview { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.field-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* ---------- Liste des points relais (choix de livraison) ---------- */
.relay-points-list { max-height: 320px; overflow-y: auto; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.relay-point-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); cursor: pointer; text-align: left;
  width: 100%; color: var(--text); font-family: inherit;
}
.relay-point-item:hover { background: rgba(255,255,255,0.08); }
.relay-point-item.selected { border-color: var(--pink); background: rgba(255, 62, 165, 0.1); }
.relay-point-item .rp-icon { font-size: 20px; flex-shrink: 0; }
.relay-point-item strong { display: block; font-size: 13.5px; }
.relay-point-item span { display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .cat-groups, .info-cards, .footer-grid { grid-template-columns: 1fr; }
  .creation-block, .about-wrap, .contact-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-main { padding: 24px 18px; }
  .admin-sidebar { position: fixed; z-index: 80; transform: translateX(-100%); transition: transform 0.2s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .form-row { grid-template-columns: 1fr; }
}
