/* ── TOKENS ───────────────────────────────────────── */
:root {
  --black:      #111010;
  --linen:      #F2EEE7;
  --forest:     #2B3D33;
  --sand:       #C8A87A;
  --mist:       rgba(242,238,231,0.06);
  --light-mist: rgba(242,238,231,0.08);
  --danger:     #c0392b;
  --success:    #5BAA6A;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --mono:  'Space Mono', monospace;
  --cart-w: 420px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--linen);
  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(--black); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

/* ── MIST OVERLAY ──────────────────────────────────── */
#mist-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  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(17,16,16,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: flex; align-items: center; justify-content: space-between;
}
.header-logo {
  font-family: var(--serif); font-size: 20px;
  font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase;
}
nav.nav-left {
  display: flex; gap: 32px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: rgba(242,238,231,0.5);
}
nav.nav-left a:hover { color: var(--linen); transition: color 0.2s; }
.header-right { display: flex; align-items: center; gap: 16px; }

.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--forest); color: var(--linen);
  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: #3a5244; }

#cart-count {
  display: none; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--sand); color: var(--black);
  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 {
  font-family: var(--serif);
  font-size: clamp(48px, 5.5vw, 82px);
  font-weight: 300; line-height: 1.05;
  letter-spacing: 0.01em; margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--sand); }
.hero-desc {
  font-size: 15px; line-height: 1.75;
  color: rgba(242,238,231,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(--forest); color: var(--linen);
  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: #3a5244; }
.btn-ghost {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: rgba(242,238,231,0.4);
  border-bottom: 1px solid rgba(242,238,231,0.15); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--linen); border-color: var(--linen); }

.stripe-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 32px; padding: 8px 14px;
  border: 1px solid rgba(242,238,231,0.1);
  background: rgba(242,238,231,0.03);
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.08em; color: rgba(242,238,231,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(242,238,231,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(--serif); font-size: clamp(28px,3vw,44px); font-weight: 300; }
.section-link {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: rgba(242,238,231,0.4);
  border-bottom: 1px solid rgba(242,238,231,0.15); padding-bottom: 2px;
  transition: color 0.2s;
}
.section-link:hover { color: var(--linen); }
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(242,238,231,0.12);
  background: transparent;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.08em; color: rgba(242,238,231,0.45);
  cursor: pointer; transition: all 0.2s;
}
.cat-btn:hover { border-color: rgba(242,238,231,0.35); color: var(--linen); }
.cat-btn.active { background: var(--forest); color: var(--linen); border-color: var(--forest); }

/* ── 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(242,238,231,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: #1a1a1a;
}
.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(--forest); color: var(--linen);
  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: #3a5244; }
.product-overlay-btn:disabled { background: #555; cursor: not-allowed; }

.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--sand); color: var(--black);
  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(242,238,231,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(242,238,231,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(242,238,231,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: #161514;
  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(242,238,231,0.4); font-size: 22px;
  transition: color 0.2s; line-height: 1;
}
.cart-close:hover { color: var(--linen); }

#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(242,238,231,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(242,238,231,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(242,238,231,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(242,238,231,0.12);
  background: transparent; cursor: pointer;
  font-size: 13px; line-height: 1; color: var(--linen);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.qty-btn:hover:not(:disabled) { border-color: rgba(242,238,231,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(242,238,231,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(--forest); color: var(--linen);
  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: #3a5244; }
#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(242,238,231,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(242,238,231,0.3);
  border-top-color: var(--linen); 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(242,238,231,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(242,238,231,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(--serif); font-size: clamp(28px,2.8vw,42px); font-weight: 300; line-height: 1.15; margin-bottom: 20px; }
.editorial-text p { font-size: 14px; line-height: 1.85; color: rgba(242,238,231,0.5); margin-bottom: 32px; }

/* ── 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(242,238,231,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(--serif); font-size: clamp(28px,3vw,44px); font-weight: 300; margin-bottom: 10px; }
.newsletter p { font-size: 13px; color: rgba(242,238,231,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(242,238,231,0.12); border-right: none;
  color: var(--linen); padding: 12px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; outline: none;
}
.newsletter-form input::placeholder { color: rgba(242,238,231,0.25); }
.newsletter-form button {
  background: var(--forest); color: var(--linen);
  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: #3a5244; }

/* ── FOOTER ────────────────────────────────────────── */
footer { background: #0c0c0c; 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(242,238,231,0.3); max-width: 260px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.social-link { font-size: 14px; opacity: 0.4; transition: opacity 0.2s; }
.social-link:hover { opacity: 1; }
.footer-col-title { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; color: rgba(242,238,231,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(242,238,231,0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--linen); }
.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(242,238,231,0.2); letter-spacing: 0.05em; }
.footer-payments { display: flex; gap: 8px; align-items: center; }
.payment-icon { background: rgba(242,238,231,0.06); border: 1px solid rgba(242,238,231,0.1); padding: 4px 8px; font-family: var(--mono); font-size: 9px; color: rgba(242,238,231,0.35); letter-spacing: 0.05em; }
.footer-hiboutik-credit { font-family: var(--mono); font-size: 9px; color: rgba(242,238,231,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(242,238,231,0.3); }
.histoire-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--black); }
.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(--linen);
}
@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: #1a1a18;
  border: 1px solid rgba(242,238,231,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(242,238,231,0.6) !important;
}
.cat-btn-sub:hover { 
  color: var(--linen) !important; 
  background: rgba(242,238,231,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;
  background: #161514;
  border: 1px solid rgba(242,238,231,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: 16px; right: 20px;
  background: none; border: none;
  color: rgba(242,238,231,0.4); font-size: 24px;
  cursor: pointer; z-index: 2; line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--linen); }

.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: #1a1a18;
  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(--linen);
}
.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(242,238,231,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(242,238,231,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: #1a1a18;
  border: 1px solid rgba(242,238,231,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(242,238,231,0.6) !important;
  background: transparent !important;
}
.cat-sub .cat-btn:hover { color: var(--linen) !important; background: rgba(242,238,231,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: 4/3; min-height: 200px; }
  .modal-info { padding: 28px 24px; }
  #product-modal { max-height: 95vh; }
}

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

/* ── DESCRIPTION FORMATTING ────────────────────── */
.modal-desc { font-size: 13.5px; line-height: 1.75; color: rgba(242,238,231,0.55); overflow-y: auto; max-height: 320px; 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(242,238,231,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(242,238,231,0.15); border-radius: 2px; }
