.hidden { display: none !important; }

/* ==========================================================================
   THEME STRIP (Top selector)
   ========================================================================== */
.b-theme-strip {
  background: #ffffff;
  border-bottom: 1px solid #e5e5ea;
  padding: 10px 18px;
}
body[data-theme="nuit"] .b-theme-strip {
  background: #0d0e11;
  border-bottom-color: #20232a;
  color: #f4f4f5;
}
body[data-theme="verre"] .b-theme-strip {
  background: #fffdf9;
  border-bottom-color: #e8dfd0;
}
.b-theme-strip-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.b-strip-left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.b-strip-label { font-size: 12px; font-weight: 800; color: var(--muted, #4b5563); }
.b-strip-hint { font-size: 11.5px; color: var(--muted, #4b5563); }
.b-theme-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.b-theme-pill {
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid rgba(128,128,128,0.28); background: transparent; color: inherit;
  display: inline-flex; align-items: center; gap: 7px; transition: all .18s ease;
}
.b-theme-pill:hover { transform: translateY(-1px); }
.b-theme-pill.active { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
body[data-theme="verre"] .b-theme-pill.active { background: #c62828; border-color: #c62828; color: #fff; }
body[data-theme="nuit"] .b-theme-pill.active { background: #d9ff4b; border-color: #d9ff4b; color: #090a0c; }
.b-theme-dot { width: 9px; height: 9px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.2); }

/* ==========================================================================
   THEME 1 : APPLE PREMIUM ("Liquid Glass × Bento Grid × Slide-Over Sheet")
   ========================================================================== */
body[data-theme="apple"] {
  background: #fbfbfd;
  color: #1d1d1f;
  --accent: #005bb5;
  --accent-dark: #1d1d1f;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;
  --border: rgba(0,0,0,0.08);
  --muted: #52525b;
}

.ap-wrap { max-width: 1240px; margin: 0 auto; padding: 24px 24px 120px; display: flex; flex-direction: column; gap: 52px; }

/* Liquid Glass Floating Island Bar */
.ap-island {
  position: sticky; top: 68px; z-index: 40;
  max-width: 960px; width: 100%; margin: 0 auto;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 8px 10px 8px 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.ap-island-brand { display: flex; align-items: center; gap: 10px; }
.ap-live-orb { width: 8px; height: 8px; border-radius: 999px; background: #34c759; box-shadow: 0 0 0 4px rgba(52,199,89,0.18); }
.ap-live-orb.paused { background: #ff3b30; box-shadow: 0 0 0 4px rgba(255,59,48,0.2); }
.ap-island-brand strong { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.ap-island-brand span { font-size: 12px; color: #52525b; white-space: nowrap; }
@media (max-width: 880px) { .ap-island-brand span { display: none; } }

/* Native iOS Segmented Control */
.ap-segmented {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
}
.ap-segmented button {
  border: 0; background: transparent; color: #1d1d1f; font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ap-segmented button.active {
  background: #ffffff; color: #1d1d1f; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
}

.ap-bag-pill {
  border: 0; background: #1d1d1f; color: #ffffff;
  border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), background .15s;
}
.ap-bag-pill:hover { transform: scale(1.03); background: #000; }
.ap-bag-count {
  background: #005bb5; color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
}

/* Monumental Apple Editorial Hero */
.ap-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 8px; }
.ap-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #005bb5;
}
.ap-hero h1 {
  margin: 0; font-size: clamp(38px, 5.4vw, 66px); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1.03; max-width: 16ch;
  background: linear-gradient(180deg, #1d1d1f 0%, #52525b 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.ap-hero p {
  margin: 0; font-size: 18px; color: #52525b; max-width: 48ch; line-height: 1.45; font-weight: 400;
}

/* Signature Full-Bleed Showcase Stage */
.ap-stage {
  position: relative; width: 100%; border-radius: 32px; overflow: hidden;
  aspect-ratio: 21 / 9; min-height: 320px; background: #111;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.14);
}
@media (max-width: 720px) { .ap-stage { aspect-ratio: 4 / 3; min-height: 280px; } }
.ap-stage img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.ap-stage-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.68) 100%); }
.ap-stage-glass {
  position: absolute; left: 24px; right: 24px; bottom: 24px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.ap-glass-card {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff; border-radius: 22px; padding: 16px 20px; max-width: 440px; text-align: left;
}
.ap-glass-card small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,0.8); }
.ap-glass-card strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; margin-top: 2px; }
.ap-glass-card span { font-size: 13px; color: rgba(255,255,255,0.86); }
.ap-stage-cta {
  border: 0; background: #ffffff; color: #1d1d1f;
  padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22); transition: transform .2s ease;
}
.ap-stage-cta:hover { transform: scale(1.04); }

/* Apple Category Rail */
.ap-cat-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.ap-cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-cat-pill {
  border: 0; background: #f5f5f7; color: #1d1d1f; padding: 9px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; transition: all .18s ease;
}
.ap-cat-pill:hover { background: #e8e8ed; }
.ap-cat-pill.active { background: #1d1d1f; color: #ffffff; }
.ap-search {
  border: 1px solid rgba(0,0,0,0.1); background: #f5f5f7; border-radius: 999px;
  padding: 9px 16px; font-size: 13px; min-width: 220px;
}

/* Asymmetric Apple Bento Grid */
.ap-bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px;
}
@media (max-width: 900px) { .ap-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 580px) { .ap-bento { grid-template-columns: 1fr; } }

.ap-tile {
  background: #f5f5f7; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .32s ease;
  grid-column: span 4;
}
@media (max-width: 900px) { .ap-tile { grid-column: span 3; } }
@media (max-width: 580px) { .ap-tile { grid-column: span 1; } }
.ap-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0,0,0,0.08); }
/* P2-2 (Codex WCAG AA): Dim ONLY media on unavailable cards — keep text & badges at full contrast >= 4.5:1! */
.ap-tile.oos { background: #f4f4f5; border-color: #d4d4d8; }
.ap-tile.oos .ap-tile-media img { opacity: .55; filter: grayscale(.75); }

/* Hero Bento Tile (8 cols wide, split horizontal) */
.ap-tile.featured {
  grid-column: span 8; display: grid; grid-template-columns: 1.05fr 0.95fr; background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
}
@media (max-width: 900px) { .ap-tile.featured { grid-column: span 6; } }
@media (max-width: 640px) { .ap-tile.featured { grid-column: span 1; grid-template-columns: 1fr; } }
.ap-tile.featured .ap-tile-media { height: 100%; min-height: 290px; aspect-ratio: auto; }

/* Utility Bento Tile (Uber Direct + Cagnotte Titanium Card, 4 cols) */
.ap-tile.utility {
  grid-column: span 4; background: linear-gradient(155deg, #1d1d1f 0%, #2c2c2e 100%); color: #fff;
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
@media (max-width: 900px) { .ap-tile.utility { grid-column: span 6; } }
@media (max-width: 580px) { .ap-tile.utility { grid-column: span 1; } }
.ap-util-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #34c759; }
.ap-util-title { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; margin: 6px 0; }
.ap-util-sub { font-size: 13px; color: #a1a1a6; margin: 0; }
.ap-progress { height: 5px; border-radius: 999px; background: rgba(255,255,255,0.14); overflow: hidden; margin-top: 12px; }
.ap-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #34c759, #30d158); transition: width .35s ease; }
.ap-wallet-glass {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ap-wallet-glass strong { display: block; font-size: 14px; }
.ap-wallet-glass span { font-size: 12px; color: #a1a1a6; }

.ap-tile-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ececef; }
.ap-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1); }
.ap-tile:hover .ap-tile-media img { transform: scale(1.05); }
.ap-tile-pill {
  position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.84); color: #1d1d1f; backdrop-filter: blur(12px);
}
.ap-tile-pill.oos { background: #b91c1c; color: #fff; }
.ap-tile-body { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; flex: 1; }
.ap-tile-body h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.025em; }
.ap-tile-body p { margin: 4px 0 0; font-size: 13.5px; color: #52525b; line-height: 1.45; }
.ap-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.ap-price { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.ap-btn {
  border: 0; background: #005bb5; color: #fff; padding: 9px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; transition: background .15s, transform .15s;
}
.ap-btn:hover { background: #004994; transform: scale(1.03); }
.ap-btn.dark { background: #1d1d1f; }
.ap-btn.dark:hover { background: #000; }

/* Apple Floating Bottom Checkout Pill (mobile-only — desktop uses the sticky Liquid Glass Island) */
.ap-bottom-dock {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 45;
  background: rgba(29, 29, 31, 0.9); color: #fff;
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 999px;
  padding: 10px 12px 10px 22px; box-shadow: 0 20px 50px rgba(0,0,0,0.28);
  display: none; align-items: center; gap: 18px; white-space: nowrap;
}
body:has(#cart-drawer-backdrop.open, #modal-config.open, #qa-drawer-backdrop.open) #qa-fab {
  display: none;
}

@media (max-width: 560px) {
  .ap-bottom-dock { display: flex; }
  #qa-fab { left: 12px !important; font-size: 12px !important; padding: 8px 12px !important; }
  body:has(.ap-bottom-dock, .nt-dock) #qa-fab { bottom: 84px !important; }
}
.ap-bottom-dock span { font-size: 13.5px; font-weight: 600; }
.ap-bottom-dock button {
  border: 0; background: #ffffff; color: #1d1d1f; padding: 9px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}

/* ==========================================================================
   THEME 2 : VERRE FAMILY'S ("Chaleureux Fast-Casual + Panier Latéral Ancré")
   ========================================================================== */
body[data-theme="verre"] {
  background: #faf6ef;
  color: #1c1613;
  --accent: #c62828;
  --surface: #ffffff;
  --surface-soft: #f5efe4;
  --border: #e8dfd0;
  --muted: #6c6158;
}
.vf-hero { position: relative; overflow: hidden; color: #fff; }
.vf-hero-bg { position: absolute; inset: 0; }
.vf-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.vf-hero-scrim { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(198,40,40,0.9), rgba(234,88,12,0.82)); }
.vf-hero-inner {
  position: relative; max-width: 1280px; margin: 0 auto; padding: 30px 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px;
}
.vf-hero-inner h1 { margin: 6px 0 4px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: -0.03em; }
.vf-hero-inner p { margin: 0; font-size: 14px; opacity: .9; }
.vf-mode-switch {
  display: inline-flex; padding: 5px; border-radius: 14px; gap: 4px;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
}
.vf-mode-switch button {
  border: 0; background: transparent; color: rgba(255,255,255,0.88);
  padding: 10px 15px; border-radius: 10px; font-size: 13px; font-weight: 800;
}
.vf-mode-switch button.active { background: #fff; color: #1c1613; }

.vf-shell {
  max-width: 1280px; margin: 0 auto; padding: 22px 20px 80px;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr); gap: 22px; align-items: start;
}
@media (max-width: 840px) { .vf-shell { grid-template-columns: 1fr; } }

.vf-stories { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.vf-story {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff;
  border: 1.5px solid #e8dfd0; font-size: 12.5px; font-weight: 800; color: #1c1613;
}
.vf-story img { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; }

.vf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 580px) { .vf-grid { grid-template-columns: 1fr; } }
.vf-card {
  background: #fff; border: 1px solid #e8dfd0; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .18s ease;
}
.vf-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(198,40,40,0.08); }
.vf-card.oos { background: #f8f5f0; border-color: #d6ccc0; }
.vf-card.oos .vf-card-img img { opacity: .55; filter: grayscale(.75); }
.vf-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.vf-card-img img { width: 100%; height: 100%; object-fit: cover; }
.vf-badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(20,16,14,0.88); color: #fff; }
.vf-badge.oos { background: #b91c1c; }
.vf-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vf-card-body h3 { margin: 0; font-size: 16px; font-weight: 800; }
.vf-card-body p { margin: 0; font-size: 12.5px; color: #524942; flex: 1; }
.vf-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid #f0e8dc; }
.vf-add { border: 0; background: #c62828; color: #fff; padding: 9px 14px; border-radius: 12px; font-size: 12.5px; font-weight: 800; }

.vf-sidebar { position: sticky; top: 74px; background: #fff; border: 1px solid #e8dfd0; border-radius: 22px; padding: 18px; box-shadow: 0 12px 30px rgba(0,0,0,0.05); }

/* ==========================================================================
   THEME 3 : COMPTOIR DE NUIT ("Magazine Street-Food Numéroté + Spotlight + Dock")
   ========================================================================== */
body[data-theme="nuit"] {
  background: #07080a;
  color: #f4f4f2;
  --accent: #d9ff4b;
  --surface: #121419;
  --surface-soft: #1a1d24;
  --border: #252933;
  --muted: #9ca3af;
}
.nt-masthead {
  border-bottom: 1px solid #222630;
  padding: 26px 24px 20px; max-width: 1320px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.nt-kicker { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #d9ff4b; }
.nt-masthead h1 {
  margin: 6px 0 0; font-size: clamp(32px, 5vw, 58px); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.04em; line-height: .96;
}
.nt-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nt-seg { display: inline-flex; border: 1px solid #2b303c; border-radius: 10px; overflow: hidden; }
.nt-seg button { border: 0; background: #121419; color: #9ca3af; padding: 10px 14px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.nt-seg button.active { background: #d9ff4b; color: #07080a; }

.nt-ticker {
  background: #d9ff4b; color: #07080a; font-size: 11.5px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase; padding: 8px 20px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px;
}

.nt-split {
  max-width: 1320px; margin: 0 auto; padding: 28px 24px 120px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 28px; align-items: start;
}
@media (max-width: 900px) { .nt-split { grid-template-columns: 1fr; } }

/* Numbered Editorial List (01, 02, 03...) */
.nt-list { display: flex; flex-direction: column; border-top: 1px solid #252933; }
.nt-row {
  display: grid; grid-template-columns: 44px 72px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 18px 12px; border-bottom: 1px solid #252933; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
@media (max-width: 580px) { .nt-row { grid-template-columns: 32px 58px minmax(0, 1fr); } }
.nt-row:hover, .nt-row.active { background: #12151c; border-bottom-color: #d9ff4b; }
.nt-row.oos .nt-thumb { opacity: .5; filter: grayscale(.8); }
.nt-num { font-size: 13px; font-weight: 900; color: #d9ff4b; font-family: ui-monospace, monospace; }
.nt-thumb { width: 72px; height: 58px; border-radius: 10px; object-fit: cover; border: 1px solid #2b303c; }
.nt-info h3 { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -0.015em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nt-info p { margin: 4px 0 0; font-size: 12.5px; color: #d1d5db; }
.nt-tag { font-size: 10px; font-weight: 900; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: rgba(217,255,75,0.16); color: #d9ff4b; }
.nt-tag.oos { background: #b91c1c; color: #fff; }
.nt-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.nt-row-price { font-size: 16px; font-weight: 900; }
.nt-row-btn { border: 1px solid #d9ff4b; background: transparent; color: #d9ff4b; padding: 7px 13px; border-radius: 8px; font-size: 11.5px; font-weight: 900; text-transform: uppercase; }
.nt-row-btn:hover { background: #d9ff4b; color: #07080a; }

/* Pinned Spotlight Panel */
.nt-spotlight {
  position: sticky; top: 82px;
  background: #121419; border: 1px solid #262b36; border-radius: 22px; overflow: hidden;
}
.nt-spot-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.nt-spot-img img { width: 100%; height: 100%; object-fit: cover; }
.nt-spot-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.nt-spot-body h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.nt-spot-body p { margin: 0; font-size: 13px; color: #9ca3af; }
.nt-spot-cta { border: 0; background: #d9ff4b; color: #07080a; width: 100%; padding: 13px; border-radius: 12px; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }

/* Night Floating Bottom Dock (mobile/tablet only — desktop has masthead Panier CTA) */
.nt-dock {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 45;
  max-width: 680px; width: calc(100% - 28px);
  background: #14171f; border: 1.5px solid #d9ff4b; border-radius: 16px;
  padding: 12px 16px; display: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.65);
}
@media (max-width: 900px) { .nt-dock { display: flex; } }
.nt-dock-btn { border: 0; background: #d9ff4b; color: #07080a; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 900; text-transform: uppercase; }

/* ==========================================================================
   SHARED CART WIDGET + LIQUID GLASS SLIDE-OVER DRAWER + CONFIGURATOR MODAL
   ========================================================================== */
.b-drawer-backdrop[hidden], .f-modal-backdrop[hidden] { display: none !important; }
.b-drawer-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,0.42); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  display: flex; justify-content: flex-end;
}
.b-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.b-drawer {
  width: min(440px, 100%); height: 100%;
  background: rgba(255,255,255,0.92); color: #1d1d1f;
  backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-left: 1px solid rgba(0,0,0,0.08);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.2);
}
body[data-theme="nuit"] .b-drawer {
  background: rgba(18, 20, 25, 0.96); color: #f4f4f2; border-left-color: #2b303c;
}
.b-drawer-backdrop.open .b-drawer { transform: translateX(0); }
.b-drawer-top {
  padding: 18px 20px; border-bottom: 1px solid rgba(128,128,128,0.18);
  display: flex; justify-content: space-between; align-items: center;
}
.b-drawer-top h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.b-drawer-close {
  width: 32px; height: 32px; border-radius: 999px; border: 0;
  background: rgba(128,128,128,0.16); color: inherit; font-weight: 800;
}
.b-drawer-body { padding: 18px 20px 32px; overflow-y: auto; flex: 1; }

/* Cart Inner Components */
.c-stack { display: flex; flex-direction: column; gap: 14px; }
.c-head { display: flex; justify-content: space-between; align-items: center; }
.c-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.c-link { border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--muted); }
.c-link:hover { color: #dc2626; }
.c-box {
  background: var(--surface-soft); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.c-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.c-grid-addr { display: grid; grid-template-columns: minmax(0, 112px) minmax(0, 1fr); gap: 8px; }
@media (max-width: 420px) {
  .c-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
.c-field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); min-width: 0; }
.c-field input {
  width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: inherit; font-size: 12.5px;
}
.c-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.c-slot {
  padding: 6px 10px; border-radius: 9px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--border); background: var(--surface-soft); color: inherit;
}
.c-slot.active { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
body[data-theme="verre"] .c-slot.active { background: #c62828; border-color: #c62828; }
body[data-theme="nuit"] .c-slot.active { background: #d9ff4b; color: #07080a; border-color: #d9ff4b; }

.c-line { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 14px; padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.c-line-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; }
.c-line-opts { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.c-line-ctrl { display: flex; justify-content: space-between; align-items: center; }
.c-stepper {
  display: inline-flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 9px; padding: 3px 8px; font-size: 13px; font-weight: 800;
}
.c-stepper button { border: 0; background: none; font-weight: 900; padding: 0 3px; }

.c-upsell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c-upsell {
  display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-soft); text-align: left;
}
.c-upsell img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.c-upsell strong { display: block; font-size: 11.5px; line-height: 1.2; }
.c-upsell span { font-size: 11px; font-weight: 800; color: #047857; }

.c-totals { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; }
.c-trow { display: flex; justify-content: space-between; color: var(--muted); }
.c-trow strong { color: inherit; }
.c-trow.grand { font-size: 16px; font-weight: 900; color: inherit; padding-top: 8px; border-top: 1px solid var(--border); }
.c-warn {
  background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.45);
  border-radius: 12px; padding: 10px 12px; font-size: 12px; display: flex; flex-direction: column; gap: 6px;
}

.b-primary-cta {
  width: 100%; padding: 14px 18px; border-radius: 14px; border: 0;
  background: #1d1d1f; color: #fff; font-size: 14px; font-weight: 800;
  transition: transform .15s, opacity .15s;
}
body[data-theme="apple"] .b-primary-cta { border-radius: 999px; background: #005bb5; }
body[data-theme="verre"] .b-primary-cta { background: #c62828; }
body[data-theme="nuit"] .b-primary-cta { background: #d9ff4b; color: #07080a; }
.b-primary-cta.compact { width: auto; padding: 11px 20px; }

.c-tracking {
  border: 2px solid #10b981; border-radius: 16px; padding: 14px; background: var(--surface);
  display: flex; flex-direction: column; gap: 9px;
}
.c-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.c-step-bar { height: 5px; border-radius: 999px; background: var(--border); margin-bottom: 4px; }
.c-step.done .c-step-bar { background: #10b981; }
.c-step span { font-size: 10px; color: var(--muted); display: block; }
.c-step.done span { color: #047857; font-weight: 800; }

/* FORMULA MODAL */
.b-modal {
  background: var(--surface); color: inherit; border: 1px solid var(--border);
  border-radius: 26px; max-width: 540px; width: 100%; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.45);
}
.b-modal-hero { position: relative; height: 185px; background: var(--surface-soft); flex-shrink: 0; }
.b-modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.b-modal-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 999px;
  border: 0; background: rgba(0,0,0,0.68); color: #fff; font-weight: 900; backdrop-filter: blur(8px);
}
.b-modal-head { padding: 14px 20px 10px; border-bottom: 1px solid var(--border); }
.b-modal-head h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.b-modal-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.b-modal-body { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; font-size: 13px; }
.b-opt-group { display: flex; flex-direction: column; gap: 8px; }
.b-opt-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.b-opt-req { font-size: 11px; color: #047857; background: rgba(4,120,87,0.12); padding: 2px 9px; border-radius: 999px; }
.b-opt-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.b-opt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.b-opt-tile {
  border: 1.5px solid var(--border); background: var(--surface-soft); border-radius: 14px;
  padding: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.b-opt-tile.selected { border-color: #047857; background: rgba(4,120,87,0.12); font-weight: 800; }
.b-opt-tile.oos { cursor: not-allowed; background: #f4f4f5; color: #52525b; border-color: #b91c1c; text-decoration: line-through; }
.b-nested { padding-left: 14px; border-left: 3px solid rgba(16,185,129,0.45); display: flex; flex-direction: column; gap: 12px; }
.b-chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.b-rem-chip { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--border); background: var(--surface-soft); }
.b-rem-chip.active { background: #dc2626; border-color: #dc2626; color: #fff; }
.b-modal-foot {
  padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.b-modal-allergens small { display: block; font-size: 10.5px; color: var(--muted); }
.b-modal-allergens strong { font-size: 12px; }
.b-opt-price { color: #047857; font-weight: 700; }
body[data-theme="nuit"] .c-upsell span,
body[data-theme="nuit"] .c-step.done span,
body[data-theme="nuit"] .b-opt-req,
body[data-theme="nuit"] .b-opt-price { color: #34d399; }
body[data-theme="nuit"] .b-opt-req { background: rgba(52, 211, 153, 0.16); }
