/* ── TOKENS ───────────────────────────────────────── */
:root {
  /* Legacy tokens — conservés tels quels : utilisés directement par les pages
     statiques produit/catégorie générées (scripts/generate-pages.js), qui
     restent volontairement hors du système jour/nuit pour l'instant. */
  --black:      #111010;
  --linen:      #F2EEE7;
  --forest:     #2B3D33;
  --sand:       #C8A87A;
  --danger:     #c0392b;
  --success:    #5BAA6A;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --mono:  'Space Mono', monospace;
  --hand:  'Amatic SC', cursive;
  --cart-w: 420px;

  /* ── Thème jour/nuit — utilisé par index.html uniquement ──
     --bg / --ink / --surface / --surface-2 changent de valeur selon le thème.
     --accent (bleu du logo) et --on-accent/--on-sand restent fixes dans les 2 thèmes. */
  --bg:          #F2EEE7;
  --bg-rgb:      242,238,231;
  --ink:         #111010;
  --ink-rgb:     17,16,16;
  --surface:   #EDE8DC;
  --surface-2:   #E7E1D3;
  --mist:        rgba(var(--ink-rgb), 0.06);
  --light-mist:  rgba(var(--ink-rgb), 0.08);

  --accent:       #2E4A8C;  /* bleu extrait du logo */
  --accent-hover: #24396D;
  --on-accent:    #F2EEE7;  /* texte clair fixe sur bouton accent, les 2 thèmes */
  --on-sand:      #1A1918;  /* texte foncé fixe sur fond sable, les 2 thèmes */
  --title-color:  var(--accent); /* titres de rubrique — bleu le jour */
}

[data-theme="dark"] {
  --bg:        #111010;
  --bg-rgb:    17,16,16;
  --ink:       #F2EEE7;
  --ink-rgb:   242,238,231;
  --surface: #1a1a18;
  --surface-2: #161514;
  --title-color: var(--ink); /* titres de rubrique — blanc la nuit */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
::selection { background: var(--sand); color: var(--on-sand); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── MIST OVERLAY ──────────────────────────────────── */
#mist-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}
#mist-overlay.active { opacity: 1; pointer-events: all; }
#mist-overlay .overlay-logo {
  font-family: var(--serif); font-size: 28px;
  font-weight: 300; letter-spacing: 0.18em; opacity: 0.85;
}
#mist-overlay .overlay-dots { display: flex; gap: 8px; }
#mist-overlay .overlay-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sand);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
#mist-overlay .overlay-dots span:nth-child(2) { animation-delay: 0.2s; }
#mist-overlay .overlay-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse-dot { 0%,80%,100% { opacity:0.2; } 40% { opacity:1; } }

/* ── LOADER ────────────────────────────────────────── */
#loader {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: none; flex-direction: column;
  align-items: center; gap: 16px; z-index: 999;
}
#loader.active { display: flex; }
.loader-logo { font-family: var(--serif); font-size: 28px; font-weight: 300; letter-spacing: 0.18em; }
.loader-dots { display: flex; gap: 6px; }
.loader-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sand);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

/* ── ERROR BANNER ──────────────────────────────────── */
#error-banner {
  display: none; position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--danger); color: white;
  padding: 12px 28px; font-size: 13px; z-index: 999;
}
#error-banner.active { display: block; }

/* ── HEADER ────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(var(--bg-rgb), 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-mist);
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px; height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.hamburger-btn {
  justify-self: start;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  background: transparent; border: none; color: var(--ink);
  cursor: pointer;
}
.header-logo {
  justify-self: center;
  display: flex; align-items: center;
}
.header-logo-img {
  height: 40px; width: auto; display: none;
}
.header-logo-img.logo-day { display: block; }
[data-theme="dark"] .header-logo-img.logo-day { display: none; }
[data-theme="dark"] .header-logo-img.logo-night { display: block; }
.nav-menu {
  display: none; flex-direction: column;
  position: absolute; top: 64px; left: 40px; right: auto;
  width: auto; min-width: 240px;
  background: rgba(var(--bg-rgb), 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--light-mist);
  border-radius: 4px;
  padding: 16px 24px;
}
.nav-menu.open { display: flex; }
.nav-menu-links { display: flex; flex-direction: column; gap: 2px; }
.nav-menu a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.6); padding: 6px 0;
}
.nav-menu a:hover { color: var(--ink); }
.header-right { justify-self: end; display: flex; align-items: center; gap: 16px; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(var(--ink-rgb), 0.2);
  background: transparent; color: var(--ink);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: rgba(var(--ink-rgb), 0.45); background: var(--mist); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--on-accent);
  padding: 9px 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  border: none; cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.cart-btn:hover { background: var(--accent-hover); }

#cart-count {
  display: none; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--sand); color: var(--on-sand);
  border-radius: 50%; font-size: 9px; font-weight: 700;
}
#cart-count.visible { display: flex; }
#cart-count.pop { animation: pop 0.25s ease; }
@keyframes pop { 0%{transform:scale(1)} 50%{transform:scale(1.4)} 100%{transform:scale(1)} }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}
.hero-text-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 60px 80px 80px;
  border-right: 1px solid var(--light-mist);
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.15em; color: var(--sand);
  text-transform: uppercase; margin-bottom: 24px;
}
.hero-title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.hero-title-row .hero-title { margin-bottom: 0; }
.hero-title-logo { height: 176px; width: auto; display: none; flex-shrink: 0; }
.hero-title-logo.logo-day { display: block; }
[data-theme="dark"] .hero-title-logo.logo-day { display: none; }
[data-theme="dark"] .hero-title-logo.logo-night { display: block; }
.hero-title {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.95; letter-spacing: 0.01em;
  color: var(--title-color);
}
.hero-title em { font-style: normal; color: var(--sand); }
.hero-desc {
  font-size: 15px; line-height: 1.75;
  color: rgba(var(--ink-rgb),0.55);
  max-width: 380px; margin-bottom: 48px;
}
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--on-accent);
  padding: 14px 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  border: none; cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: rgba(var(--ink-rgb),0.4);
  border-bottom: 1px solid rgba(var(--ink-rgb),0.15); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

.stripe-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 32px; padding: 8px 14px;
  border: 1px solid rgba(var(--ink-rgb),0.1);
  background: rgba(var(--ink-rgb),0.03);
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.08em; color: rgba(var(--ink-rgb),0.35);
  width: fit-content;
}
.stripe-badge::before {
  content: ''; display: block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--success); flex-shrink: 0;
}

.hero-image-panel { position: relative; overflow: hidden; min-height: 500px; }
.hero-image-panel img {
  height: 100%; object-fit: cover;
  filter: brightness(0.75) saturate(0.9);
  transition: transform 8s ease;
}
.hero-image-panel:hover img { transform: scale(1.03); }
.hero-image-label {
  position: absolute; bottom: 24px; right: 24px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.12em; color: rgba(var(--ink-rgb),0.4);
  text-transform: uppercase;
}

/* ── SECTION UTILS ─────────────────────────────────── */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 80px 40px 40px;
  max-width: 1400px; margin: 0 auto;
}
.section-title { font-family: var(--hand); font-weight: 700; color: var(--title-color); font-size: clamp(34px,4vw,50px); line-height: 1; }
.section-title em { color: var(--sand); font-style: normal; }
.section-header-shop { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; }
.section-header-shop-logo { height: 112px; width: auto; display: none; flex-shrink: 0; }
.section-header-shop-logo.logo-day { display: block; }
[data-theme="dark"] .section-header-shop-logo.logo-day { display: none; }
[data-theme="dark"] .section-header-shop-logo.logo-night { display: block; }
.section-title-cat {
  font-family: var(--hand); font-weight: 700; color: var(--title-color);
  font-size: clamp(34px, 4.2vw, 54px); line-height: 1; letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.section-title-cat em { color: var(--sand); font-style: normal; }
.section-subtitle-cat {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(18px, 2vw, 26px); color: var(--ink); opacity: 0.75;
}
.section-subtitle-cat:empty { display: none; }
.section-link {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: rgba(var(--ink-rgb),0.4);
  border-bottom: 1px solid rgba(var(--ink-rgb),0.15); padding-bottom: 2px;
  transition: color 0.2s;
}
.section-link:hover { color: var(--ink); }
hr.divider {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
  border: none; border-top: 1px solid var(--light-mist);
}

/* ── CATEGORY NAV ──────────────────────────────────── */
#category-nav {
  max-width: 1400px; margin: 0 auto 36px;
  padding: 0 40px; display: flex; gap: 8px; flex-wrap: wrap;
}
.cat-btn {
  padding: 7px 18px;
  border: 1px solid rgba(var(--ink-rgb),0.12);
  background: transparent;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.08em; color: rgba(var(--ink-rgb),0.45);
  cursor: pointer; transition: all 0.2s;
}
.cat-btn:hover { border-color: rgba(var(--ink-rgb),0.35); color: var(--ink); }
.cat-btn.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ── PRODUCT GRID ──────────────────────────────────── */
#products-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; transition: opacity 0.3s;
}
.no-products {
  grid-column: 1/-1; text-align: center;
  padding: 60px 0; color: rgba(var(--ink-rgb),0.3);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
}

/* ── PRODUCT CARD ──────────────────────────────────── */
.product-card { position: relative; cursor: pointer; }
.product-card.out-of-stock { opacity: 0.4; }

.product-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; background: var(--surface);
}
.product-img-wrap img {
  height: 100%; object-fit: cover;
  transition: filter 0.5s ease, transform 0.5s ease;
}
.product-card:hover .product-img-wrap img {
  filter: blur(3px) brightness(0.45);
  transform: scale(1.04);
}

.product-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.35s ease;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-overlay-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  border: none; cursor: pointer;
  transition: background 0.2s;
}
.product-overlay-btn:hover { background: var(--accent-hover); }
.product-overlay-btn:disabled { background: #555; cursor: not-allowed; }

.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--sand); color: var(--on-sand);
  padding: 3px 8px; font-family: var(--mono);
  font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase;
  z-index: 2;
}
.product-badge.sale { background: var(--danger); color: white; }
.product-badge.oos  { background: #444; color: rgba(var(--ink-rgb),0.6); }

.stock-low {
  position: absolute; bottom: 52px; left: 12px;
  background: rgba(192,57,43,0.85); color: white;
  font-family: var(--mono); font-size: 8px;
  letter-spacing: 0.08em; padding: 3px 8px; z-index: 2;
}

.product-info { padding: 14px 0 0; }
.product-name {
  font-family: var(--serif); font-size: 16px;
  font-weight: 400; margin-bottom: 4px;
}
.product-maker {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.08em; color: rgba(var(--ink-rgb),0.3);
  margin-bottom: 8px;
}
.product-price {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.05em; color: var(--sand);
}
.product-price .old-price {
  text-decoration: line-through; color: rgba(var(--ink-rgb),0.25);
  margin-right: 8px;
}

/* ── CART PANEL ────────────────────────────────────── */
#cart-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 299;
  backdrop-filter: blur(3px);
}
#cart-overlay.active { display: block; }

#cart-panel {
  position: fixed; top: 0; right: 0;
  width: var(--cart-w); max-width: 100vw; height: 100vh;
  background: var(--surface-2);
  border-left: 1px solid var(--light-mist);
  z-index: 300; display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
#cart-panel.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-bottom: 1px solid var(--light-mist);
  flex-shrink: 0;
}
.cart-title { font-family: var(--serif); font-size: 22px; font-weight: 300; }
.cart-close {
  background: none; border: none; cursor: pointer;
  color: rgba(var(--ink-rgb),0.4); font-size: 22px;
  transition: color 0.2s; line-height: 1;
}
.cart-close:hover { color: var(--ink); }

#cart-body { flex: 1; overflow-y: auto; padding: 8px 0; }

.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; gap: 10px; padding: 40px;
  text-align: center; color: rgba(var(--ink-rgb),0.25);
}
.cart-empty-icon { font-size: 40px; margin-bottom: 8px; }
.cart-empty p { font-family: var(--serif); font-size: 18px; font-weight: 300; }
.cart-empty small { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; }

.cart-item {
  display: grid; grid-template-columns: 52px 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 14px 28px; border-bottom: 1px solid var(--light-mist);
  transition: background 0.15s;
}
.cart-item:hover { background: rgba(var(--ink-rgb),0.03); }
.cart-item.flash { background: rgba(192,57,43,0.1); }

.cart-item-img {
  width: 52px; height: 52px; overflow: hidden; flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); }

.cart-item-brand {
  font-family: var(--mono); font-size: 8.5px;
  letter-spacing: 0.1em; color: rgba(var(--ink-rgb),0.3);
  text-transform: uppercase; margin-bottom: 2px;
}
.cart-item-name {
  font-family: var(--serif); font-size: 15px; font-weight: 400;
  line-height: 1.25; margin-bottom: 3px;
}
.cart-item-price {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.05em; color: var(--sand);
}

.cart-item-qty { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 24px; height: 24px;
  border: 1px solid rgba(var(--ink-rgb),0.12);
  background: transparent; cursor: pointer;
  font-size: 13px; line-height: 1; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.qty-btn:hover:not(:disabled) { border-color: rgba(var(--ink-rgb),0.4); background: var(--mist); }
.qty-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.qty-val { font-family: var(--mono); font-size: 12px; min-width: 18px; text-align: center; }

.cart-remove {
  background: none; border: none;
  color: rgba(var(--ink-rgb),0.2); font-size: 17px;
  cursor: pointer; padding: 4px; transition: color 0.2s;
}
.cart-remove:hover { color: var(--danger); }

#cart-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--light-mist); flex-shrink: 0;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.cart-total-label { font-family: var(--serif); font-size: 17px; font-weight: 300; }
#cart-total {
  font-family: var(--mono); font-size: 16px;
  letter-spacing: 0.05em; color: var(--sand);
}
#checkout-btn {
  width: 100%; padding: 14px;
  background: var(--accent); color: var(--on-accent);
  border: none; cursor: pointer;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s;
}
#checkout-btn:hover:not(:disabled) { background: var(--accent-hover); }
#checkout-btn:disabled { background: #333; cursor: not-allowed; }

.cart-reassurance {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; color: rgba(var(--ink-rgb),0.25);
  text-transform: uppercase;
}
.reassurance-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(91,170,106,0.2);
}

/* ── SPINNER ───────────────────────────────────────── */
.spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 1.5px solid rgba(var(--ink-rgb),0.3);
  border-top-color: var(--ink); border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PROMO BANNER ──────────────────────────────────── */
.promo-banner {
  max-width: 1400px; margin: 80px auto;
  padding: 0 40px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.promo-text .eyebrow {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.15em; color: var(--sand);
  text-transform: uppercase; margin-bottom: 16px;
}
.promo-text h2 {
  font-family: var(--serif); font-size: clamp(32px,3.5vw,52px);
  font-weight: 300; line-height: 1.1; margin-bottom: 20px;
}
.promo-text h2 em { font-style: italic; color: var(--sand); }
.promo-text p {
  font-size: 14px; line-height: 1.8;
  color: rgba(var(--ink-rgb),0.5); margin-bottom: 32px; max-width: 400px;
}
.promo-visual { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.promo-visual img { height: 100%; object-fit: cover; filter: brightness(0.7) saturate(0.85); }
.promo-visual-tag {
  position: absolute; bottom: 20px; left: 20px;
  font-family: var(--serif); font-size: 18px; font-style: italic;
}

/* ── STORE STRIP ───────────────────────────────────── */
.store-strip {
  max-width: 1400px; margin: 0 auto; padding: 40px;
  display: flex; align-items: center; justify-content: center; gap: 56px;
  border-top: 1px solid var(--light-mist);
  border-bottom: 1px solid var(--light-mist);
}
.store-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.store-icon { font-size: 20px; margin-bottom: 4px; }
.store-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: rgba(var(--ink-rgb),0.4); text-transform: uppercase; }
.store-value { font-family: var(--serif); font-size: 15px; font-weight: 400; }
.store-divider { width: 1px; height: 40px; background: var(--light-mist); }

/* ── EDITORIAL ─────────────────────────────────────── */
.editorial { border-top: 1px solid var(--light-mist); border-bottom: 1px solid var(--light-mist); padding: 80px 0; }
.editorial-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.editorial-image { aspect-ratio: 5/4; overflow: hidden; }
.editorial-image img { height: 100%; object-fit: cover; filter: brightness(0.75); }
.editorial-text .eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: var(--sand); margin-bottom: 20px; }
.editorial-text h2 { font-family: var(--hand); font-weight: 700; color: var(--title-color); font-size: clamp(34px,4vw,50px); line-height: 1; margin-bottom: 20px; }
.editorial-text h2 em { color: var(--sand); font-style: normal; }
.editorial-text p { font-size: 14px; line-height: 1.85; color: rgba(var(--ink-rgb),0.5); margin-bottom: 32px; }

/* ── GOOGLE REVIEWS ────────────────────────────────── */
.reviews-section { padding: 80px 40px; max-width: 900px; margin: 0 auto; }
.reviews-header { text-align: center; margin-bottom: 48px; }
.reviews-header .eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: var(--sand); margin-bottom: 20px; display: block; }
.reviews-header h2 { font-family: var(--hand); font-weight: 700; color: var(--title-color); font-size: clamp(34px,4vw,50px); line-height: 1; margin-bottom: 20px; }
.reviews-header h2 em { color: var(--sand); font-style: normal; }
.reviews-summary { display: flex; align-items: center; justify-content: center; gap: 12px; }
.reviews-stars { color: var(--sand); font-size: 18px; letter-spacing: 2px; }
.reviews-count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: rgba(var(--ink-rgb),0.45); }

.reviews-carousel { position: relative; margin-bottom: 32px; }
.reviews-viewport { overflow: hidden; }
.reviews-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65,0,0.35,1);
}
.review-card {
  flex: 0 0 100%;
  box-sizing: border-box;
  border: 1px solid var(--light-mist); background: rgba(var(--ink-rgb),0.02);
  padding: 40px 56px; display: flex; flex-direction: column; gap: 18px;
  min-height: 220px; justify-content: center;
}
.review-card-stars { color: var(--sand); font-size: 14px; letter-spacing: 1px; }
.review-card-text { font-family: var(--serif); font-size: 19px; font-weight: 300; line-height: 1.6; color: rgba(var(--ink-rgb),0.8); }
.review-card-author { display: flex; align-items: center; gap: 10px; }
.review-card-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-card-photo-placeholder {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 13px;
}
.review-card-name { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; color: rgba(var(--ink-rgb),0.5); }

.reviews-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--light-mist);
  color: var(--ink); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
  z-index: 2;
}
.reviews-nav:hover { border-color: var(--sand); color: var(--sand); }
.reviews-nav-prev { left: -20px; }
.reviews-nav-next { right: -20px; }

.reviews-dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.reviews-dot {
  width: 6px; height: 6px; border-radius: 50%; padding: 0;
  background: rgba(var(--ink-rgb),0.2); border: none; cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.reviews-dot.active { background: var(--sand); width: 18px; border-radius: 3px; }

.reviews-cta { text-align: center; }
.section-logo-mark { display: flex; justify-content: center; padding: 32px 0; }
.section-logo-mark-img { height: 160px; width: auto; display: none; }
.section-logo-mark-img.logo-day { display: block; }
[data-theme="dark"] .section-logo-mark-img.logo-day { display: none; }
[data-theme="dark"] .section-logo-mark-img.logo-night { display: block; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--ink);
  border: 1px solid rgba(var(--ink-rgb),0.25);
  padding: 14px 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--sand); color: var(--sand); }

@media (max-width: 640px) {
  .reviews-section { padding: 56px 20px; }
  .review-card { padding: 32px 24px; min-height: 260px; }
  .review-card-text { font-size: 16px; }
  .reviews-nav { width: 34px; height: 34px; font-size: 17px; }
  .reviews-nav-prev { left: -8px; }
  .reviews-nav-next { right: -8px; }
}

/* ── TRUST BAR ─────────────────────────────────────── */
.trust-bar { padding: 56px 0; border-bottom: 1px solid var(--light-mist); }
.trust-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; text-align: center;
}
.trust-item .trust-icon { font-size: 22px; margin-bottom: 12px; }
.trust-item h4 { font-family: var(--serif); font-size: 16px; font-weight: 400; margin-bottom: 6px; }
.trust-item p { font-size: 12px; line-height: 1.6; color: rgba(var(--ink-rgb),0.35); font-family: var(--mono); letter-spacing: 0.03em; }

/* ── NEWSLETTER ────────────────────────────────────── */
.newsletter { max-width: 1400px; margin: 0 auto; padding: 80px 40px; text-align: center; }
.newsletter h2 { font-family: var(--hand); font-weight: 700; color: var(--title-color); font-size: clamp(34px,4vw,50px); line-height: 1; margin-bottom: 10px; }
.newsletter h2 em { color: var(--sand); font-style: normal; }
.newsletter p { font-size: 13px; color: rgba(var(--ink-rgb),0.4); margin-bottom: 32px; font-family: var(--mono); letter-spacing: 0.06em; }
.newsletter-form { display: flex; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; background: var(--mist);
  border: 1px solid rgba(var(--ink-rgb),0.12); border-right: none;
  color: var(--ink); padding: 12px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; outline: none;
}
.newsletter-form input::placeholder { color: rgba(var(--ink-rgb),0.25); }
.newsletter-form button {
  background: var(--accent); color: var(--on-accent);
  border: none; cursor: pointer; padding: 12px 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--accent-hover); }

/* ── FOOTER ────────────────────────────────────────── */
footer { background: var(--bg); border-top: 1px solid var(--light-mist); padding: 64px 40px 32px; }
.footer-top { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .brand-name { font-family: var(--serif); font-size: 20px; letter-spacing: 0.2em; margin-bottom: 14px; }
.footer-brand p { font-size: 12px; line-height: 1.7; color: rgba(var(--ink-rgb),0.3); max-width: 260px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); opacity: 0.4; transition: opacity 0.2s; }

.social-link-tripadvisor { display: flex; align-items: center; }
.tripadvisor-icon { max-height: 20px; width: auto; display: block; }

.social-link:hover { opacity: 1; }
.footer-col-title { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; color: rgba(var(--ink-rgb),0.3); text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(var(--ink-rgb),0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--light-mist); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 11px; font-family: var(--mono); color: rgba(var(--ink-rgb),0.2); letter-spacing: 0.05em; }
.footer-payments { display: flex; gap: 8px; align-items: center; }
.payment-icon { background: rgba(var(--ink-rgb),0.06); border: 1px solid rgba(var(--ink-rgb),0.1); padding: 4px 8px; font-family: var(--mono); font-size: 9px; color: rgba(var(--ink-rgb),0.35); letter-spacing: 0.05em; }
.footer-hiboutik-credit { font-family: var(--mono); font-size: 9px; color: rgba(var(--ink-rgb),0.15); letter-spacing: 0.06em; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) { #products-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px) {
  .header-inner { padding: 0 20px; }
  .hide-mobile { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text-panel { padding: 48px 24px; border-right: none; border-bottom: 1px solid var(--light-mist); }
  .hero-image-panel { min-height: 300px; }
  #products-grid { grid-template-columns: 1fr 1fr; padding: 0 20px; gap: 14px; }
  #category-nav { padding: 0 20px; }
  .section-header { padding: 60px 20px 32px; }
  .promo-banner { grid-template-columns: 1fr; padding: 0 20px; }
  .promo-visual { display: none; }
  .editorial-inner { grid-template-columns: 1fr; padding: 0 20px; }
  .trust-inner { grid-template-columns: 1fr 1fr; padding: 0 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .store-strip { flex-wrap: wrap; gap: 32px; padding: 32px 20px; }
  .store-divider { display: none; }
  .newsletter { padding: 60px 20px; }
  footer { padding: 48px 20px 28px; }
  #cart-panel { width: 100vw; }
  .histoires-grid { grid-template-columns: 1fr 1fr; padding: 0 20px; gap: 14px; }
}
@media (max-width: 480px) {
  #products-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
  .histoires-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
  .product-info { padding: 10px 4px 4px; }
  .product-name { font-size: 12px; }
  .histoire-card-body { padding: 12px 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ── HISTOIRES PREVIEW (homepage) ─────────────────── */
.histoires-preview { padding-bottom: 20px; }
.histoires-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px;
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.histoire-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--light-mist);
  transition: border-color .25s;
}
.histoire-card:hover { border-color: rgba(var(--ink-rgb),0.3); }
.histoire-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg); }
.histoire-card-img img {
  width: 100%; height: 100%; object-fit: cover; opacity: .82;
  transition: opacity .4s, transform .5s;
}
.histoire-card:hover .histoire-card-img img { opacity: 1; transform: scale(1.04); }
.histoire-card-body { padding: 18px 20px 22px; }
.histoire-card-tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sand); display: block; margin-bottom: 10px;
}
.histoire-card-title {
  font-family: var(--serif); font-weight: 400; font-size: 1.1rem; line-height: 1.3;
  color: var(--ink);
}
@media (max-width: 900px) {
  .histoires-grid { grid-template-columns: 1fr 1fr; }
}

/* ── CATEGORY TREE ─────────────────────────────── */
.cat-wrapper {
  position: relative;
  display: inline-block;
}
.cat-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  background: var(--surface);
  border: 1px solid rgba(var(--ink-rgb),0.1);
  min-width: 180px;
  padding: 6px 0;
  margin-top: 4px;
  flex-direction: column;
}
.cat-sub.open { display: flex; }
.cat-btn-sub {
  width: 100%;
  text-align: left;
  padding: 8px 16px !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  color: rgba(var(--ink-rgb),0.6) !important;
}
.cat-btn-sub:hover { 
  color: var(--ink) !important; 
  background: rgba(var(--ink-rgb),0.05) !important;
}
.cat-btn-sub.active {
  color: var(--sand) !important;
  background: transparent !important;
}

/* ── PRODUCT MODAL ─────────────────────────────── */
#modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 399;
  backdrop-filter: blur(4px);
}
#modal-overlay.active { display: block; }

#product-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(900px, 94vw);
  max-height: 90vh;
  max-height: 90dvh;
  background: var(--surface-2);
  border: 1px solid rgba(var(--ink-rgb),0.1);
  z-index: 400;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}
#product-modal.open {
  display: flex;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.65);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer; z-index: 10; padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.9); border-color: #fff; }

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  overflow-y: auto;
}

.modal-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
  min-height: 300px;
}
.modal-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  overflow-y: auto;
}

.modal-brand {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.14em; color: var(--mist);
  text-transform: uppercase;
}
.modal-name {
  font-family: var(--serif); font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 300; line-height: 1.2; color: var(--ink);
}
.modal-price {
  font-family: var(--mono); font-size: 16px;
  letter-spacing: 0.05em; color: var(--sand);
}
.modal-desc {
  font-size: 13.5px; line-height: 1.75;
  color: rgba(var(--ink-rgb),0.55);
  flex: 1;
}
.modal-add {
  width: 100%; padding: 15px;
  font-size: 12px; letter-spacing: 0.12em;
  justify-content: center;
}
.modal-add:disabled {
  background: #444; cursor: not-allowed;
}
.modal-reassurance {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; color: rgba(var(--ink-rgb),0.25);
  text-transform: uppercase;
}

/* ── CATEGORY TREE ─────────────────────────────── */
.cat-wrapper {
  position: relative;
  display: inline-block;
}
.cat-sub {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  z-index: 50;
  background: var(--surface);
  border: 1px solid rgba(var(--ink-rgb),0.1);
  min-width: 200px;
  padding: 6px 0;
  margin-top: 4px;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.cat-sub.open { display: flex; }
.cat-sub .cat-wrapper { display: block; }
.cat-sub .cat-btn {
  width: 100%; text-align: left;
  padding: 9px 16px !important;
  border: none !important; border-radius: 0 !important;
  font-size: 11px !important;
  color: rgba(var(--ink-rgb),0.6) !important;
  background: transparent !important;
}
.cat-sub .cat-btn:hover { color: var(--ink) !important; background: rgba(var(--ink-rgb),0.05) !important; }
.cat-sub .cat-btn.active { color: var(--sand) !important; }
.cat-sub .cat-sub {
  position: static;
  border: none;
  padding-left: 12px;
  margin-top: 0;
  background: transparent;
  box-shadow: none;
}
.cat-arrow { font-size: 9px; opacity: 0.5; }

/* Mobile modal */
@media (max-width: 700px) {
  .modal-inner { grid-template-columns: 1fr; }
  .modal-img-wrap { aspect-ratio: 16/10; min-height: 140px; max-height: 28vh; max-height: 28dvh; }
  .modal-info { padding: 18px 20px 22px; gap: 10px; }
  #product-modal {
    width: 92vw;
    max-height: 80vh;
    max-height: 80dvh;
  }
  .modal-name { font-size: 18px; }
  .modal-add { padding: 12px; }
  .modal-reassurance { display: none; }
  .modal-close {
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    background: rgba(0,0,0,0.7);
    border: 1.5px solid rgba(255,255,255,0.6);
  }
}

/* ── MODAL DESCRIPTION ─────────────────────────── */
.modal-desc p {
  margin-bottom: 10px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(var(--ink-rgb),0.55);
}
.modal-desc p:last-child { margin-bottom: 0; }
.modal-desc ul, .modal-desc ol {
  padding-left: 18px;
  margin-bottom: 10px;
  color: rgba(var(--ink-rgb),0.55);
  font-size: 13.5px;
  line-height: 1.75;
}

/* ── DESCRIPTION FORMATTING ────────────────────── */
.modal-desc { font-size: 13.5px; line-height: 1.75; color: rgba(var(--ink-rgb),0.55); overflow-y: auto; max-height: 240px; padding-right: 4px; }
.modal-desc p { margin-bottom: 10px; }
.modal-desc p:last-child { margin-bottom: 0; }

/* Section headers inside description */
.modal-desc .desc-section {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 18px;
  margin-bottom: 6px !important;
}
.modal-desc .desc-section:first-child { margin-top: 0; }

/* Bullet lists */
.modal-desc ul {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}
.modal-desc ul li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
  color: rgba(var(--ink-rgb),0.55);
}
.modal-desc ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--sand);
  font-size: 16px;
  line-height: 1.4;
}

/* Empty state */
.modal-desc .desc-empty {
  font-style: italic;
  opacity: 0.3;
}

/* Scrollbar */
.modal-desc::-webkit-scrollbar { width: 3px; }
.modal-desc::-webkit-scrollbar-track { background: transparent; }
.modal-desc::-webkit-scrollbar-thumb { background: rgba(var(--ink-rgb),0.15); border-radius: 2px; }

/* ── HOURS MODAL ─────────────────────────────────── */
#hours-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 399;
  backdrop-filter: blur(4px);
}
#hours-modal-overlay.active { display: block; }

#hours-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(420px, 92vw);
  max-height: 86vh;
  max-height: 86dvh;
  background: var(--surface-2);
  border: 1px solid rgba(var(--ink-rgb),0.1);
  z-index: 400;
  display: none;
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}
#hours-modal.open {
  display: block;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.hours-modal-inner {
  padding: 44px 36px 32px;
  overflow-y: auto;
  max-height: 86vh;
  max-height: 86dvh;
}

.hours-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 8px;
}

.hours-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 22px;
}
#hours-title-month {
  color: var(--sand);
  font-style: italic;
}

.hours-list {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--ink-rgb),0.1);
}

.hours-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(var(--ink-rgb),0.06);
}
.hours-row:last-child { border-bottom: none; }
.hours-row.is-today {
  background: rgba(200,168,122,0.08);
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 -6px;
}

.hours-day {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}
.hours-day em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand);
}

.hours-time {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(var(--ink-rgb),0.7);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.hours-time.is-closed {
  color: rgba(var(--ink-rgb),0.35);
  font-style: italic;
}
.hours-slot { white-space: nowrap; }

.hours-loading, .hours-empty {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(var(--ink-rgb),0.5);
  padding: 24px 4px;
  text-align: center;
}
.hours-empty a { color: var(--sand); }

.hours-note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(var(--ink-rgb),0.4);
  text-align: center;
}
.hours-fallback-note {
  display: block;
  color: var(--sand);
  opacity: 0.8;
  margin-bottom: 6px;
  font-style: italic;
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  #hours-modal { width: 94vw; }
  .hours-modal-inner { padding: 36px 22px 26px; }
  .hours-title { font-size: 22px; }
}
