/* ==========================================================================
   BAMBOOWLS — shared stylesheet
   Every page loads this. Page-specific rules stay inline in that page.
   ========================================================================== */

:root {
  --cream: #faf8f5;
  --warm-white: #f7f4ef;
  --paper: #ffffff;
  --charcoal: #1a1a1a;
  --soft-black: #0d0d0d;
  --hairline: rgba(26, 26, 26, 0.10);
  --sage: #677F5F;
  --sage-soft: rgba(103, 127, 95, 0.65);
  --sage-faint: rgba(103, 127, 95, 0.18);
  --gold: rgba(212, 175, 55, 0.9);
  --baskerville: 'Libre Baskerville', Baskerville, 'Times New Roman', serif;
  --inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 72px;
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--paper); }
body {
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--inter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
}

::selection { background: var(--sage); color: white; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sage-faint); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sage-soft); }

/* ===== HEADER (3-zone, dual-state) =====
   Pages with a dark hero start transparent and get .is-scrolled added by JS.
   Pages without one carry .header-solid on <body> to render opaque from load. */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  z-index: 100;
  background: transparent;
  transition: background 0.35s var(--ease-lux), border-color 0.35s var(--ease-lux);
  border-bottom: 1px solid transparent;
}
#site-header.is-scrolled,
body.header-solid #site-header {
  background: var(--paper);
  border-bottom-color: var(--hairline);
}
.header-zone { display: flex; align-items: center; gap: 28px; }
.header-zone.left { justify-self: start; }
.header-zone.right { justify-self: end; gap: 24px; }

.header-brand {
  justify-self: center;
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.20em;
  color: white;
  text-decoration: none;
  transition: color 0.35s var(--ease-lux);
}
#site-header.is-scrolled .header-brand,
body.header-solid .header-brand { color: var(--charcoal); }

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-family: var(--inter);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.35s var(--ease-lux), opacity 0.25s ease;
}
#site-header.is-scrolled .header-link,
body.header-solid .header-link { color: var(--charcoal); }
.header-link:hover { opacity: 0.65; }
.header-link svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.4; fill: none; }

.header-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.35s var(--ease-lux), opacity 0.25s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
}
#site-header.is-scrolled .header-icon,
body.header-solid .header-icon { color: var(--charcoal); }
.header-icon:hover { opacity: 0.65; }
.header-icon svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.4; fill: none; }

.header-cart .cart-count {
  position: absolute;
  top: -4px; right: -8px;
  background: var(--charcoal);
  color: white;
  font-family: var(--inter);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 999px;
  min-width: 16px;
  text-align: center;
  transition: transform 0.3s var(--ease-lux), opacity 0.25s ease;
}
/* Hidden while the cart is empty — no fake "0" badge. */
.header-cart .cart-count[hidden] { display: none; }
.header-cart .cart-count.is-bumped { transform: scale(1.35); }

/* ===== DRAWERS (shared shell for menu + cart + search) ===== */
.drawer { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.55);
  opacity: 0;
  transition: opacity 0.4s var(--ease-lux);
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; bottom: 0;
  width: min(420px, 86vw);
  background: var(--paper);
  transition: transform 0.5s var(--ease-lux);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer-panel.from-left { left: 0; transform: translateX(-100%); padding: 28px 36px 32px; }
.drawer-panel.from-right { right: 0; transform: translateX(100%); }
.drawer.is-open .drawer-panel { transform: translateX(0); }

.drawer-close {
  align-self: flex-start;
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-family: var(--inter);
  font-size: 13px;
  color: var(--charcoal);
}
.drawer-close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.drawer-close:hover { opacity: 0.65; }

/* ===== MENU DRAWER ===== */
.menu-panel .drawer-close { margin-bottom: 28px; }
.menu-nav { flex: 1; }
.menu-nav ul { list-style: none; }
.menu-nav li { padding: 14px 0; }
.menu-nav a {
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.25s ease;
  display: inline-block;
  position: relative;
}
.menu-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: var(--charcoal);
  transition: right 0.4s var(--ease-lux);
}
.menu-nav a:hover::after, .menu-nav a.is-active::after { right: 0; }
.menu-help { border-top: 1px solid var(--hairline); margin-top: 24px; padding: 24px 0 20px; }
.menu-help p { font-family: var(--inter); font-size: 12px; color: rgba(26, 26, 26, 0.55); margin-bottom: 6px; }
.menu-help a { font-family: var(--inter); font-size: 14px; color: var(--charcoal); text-decoration: none; }
.menu-help a:hover { text-decoration: underline; text-underline-offset: 3px; }
.menu-meta { border-top: 1px solid var(--hairline); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.menu-meta a, .menu-meta span { font-family: var(--inter); font-size: 12px; color: rgba(26, 26, 26, 0.65); text-decoration: none; }
.menu-meta a:hover { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }

/* ===== CART DRAWER ===== */
.cart-panel { padding: 0; }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 30px 20px;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.cart-head h2 {
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.005em;
}
.cart-head .cart-qty-note {
  font-family: var(--inter);
  font-size: 11px;
  color: rgba(26, 26, 26, 0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}
.cart-body { flex: 1; overflow-y: auto; padding: 8px 30px; }

.cart-empty { padding: 60px 0; text-align: center; }
.cart-empty p {
  font-family: var(--baskerville);
  font-style: italic;
  font-size: 19px;
  color: rgba(26, 26, 26, 0.55);
  margin-bottom: 22px;
}
.cart-empty a {
  font-family: var(--inter);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 4px;
}
.cart-empty a:hover { opacity: 0.6; }

.cart-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-media {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border-radius: 2px;
  overflow: hidden;
}
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-name {
  font-family: var(--baskerville);
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.cart-item-variant {
  font-family: var(--inter);
  font-size: 11px;
  color: rgba(26, 26, 26, 0.5);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cart-item-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline);
}
.qty-control button {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px; height: 28px;
  font-family: var(--inter);
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1;
}
.qty-control button:hover { background: var(--cream); }
.qty-control button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-control .qty-value {
  font-family: var(--inter);
  font-size: 13px;
  min-width: 30px;
  text-align: center;
}
.cart-item-price { font-family: var(--baskerville); font-size: 17px; }
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  font-family: var(--inter);
  font-size: 11px;
  color: rgba(26, 26, 26, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 0 0;
  text-align: left;
}
.cart-item-remove:hover { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }

.cart-foot {
  border-top: 1px solid var(--hairline);
  padding: 22px 30px 28px;
  flex-shrink: 0;
  background: var(--paper);
}
.cart-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cart-subtotal .label {
  font-family: var(--inter);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.6);
}
.cart-subtotal .value { font-family: var(--baskerville); font-size: 28px; }
.cart-note {
  font-family: var(--inter);
  font-size: 11px;
  color: rgba(26, 26, 26, 0.45);
  margin-bottom: 18px;
}
.cart-checkout {
  width: 100%;
  background: var(--charcoal);
  color: white;
  border: 1px solid var(--charcoal);
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--inter);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease-lux), color 0.25s var(--ease-lux);
}
.cart-checkout:hover { background: transparent; color: var(--charcoal); }
.cart-checkout:disabled { opacity: 0.35; cursor: not-allowed; }

/* ===== SEARCH DRAWER ===== */
.search-panel { padding: 28px 36px 32px; }
.search-panel .drawer-close { margin-bottom: 26px; }
.search-form { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--charcoal); padding-bottom: 12px; margin-bottom: 28px; }
.search-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--baskerville);
  font-size: 22px;
  color: var(--charcoal);
}
.search-form input::placeholder { color: rgba(26, 26, 26, 0.3); }
.search-hint {
  font-family: var(--inter);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.45);
  margin-bottom: 16px;
}
.search-results { list-style: none; }
.search-results li { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.search-results a {
  font-family: var(--baskerville);
  font-size: 18px;
  color: var(--charcoal);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.search-results a:hover { opacity: 0.6; }
.search-results .r-meta { font-family: var(--inter); font-size: 12px; color: rgba(26, 26, 26, 0.45); }
.search-empty { font-family: var(--inter); font-size: 13px; color: rgba(26, 26, 26, 0.5); padding: 14px 0; }

/* ===== PAGE HERO (title bar for inner pages) ===== */
.page-hero {
  padding: calc(var(--header-h) + 90px) 32px 80px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.page-hero .eyebrow,
.eyebrow {
  font-family: var(--inter);
  font-size: 11px;
  font-weight: 500;
  color: var(--sage);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-hero h1 {
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 88px;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  line-height: 1.05;
  margin-bottom: 26px;
}
.page-hero .lead {
  font-family: var(--baskerville);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  color: rgba(26, 26, 26, 0.7);
  line-height: 1.5;
  max-width: 620px;
  margin: 0 auto;
}

/* ===== SECTION HEADING ===== */
.section-h2 {
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 52px;
  letter-spacing: -0.005em;
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 56px;
}

/* ===== CATEGORY GRID (homepage) ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.category-card { text-decoration: none; color: var(--charcoal); display: block; }
.card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
  border-radius: 2px;
  position: relative;
}
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--ease-lux), opacity 0.7s var(--ease-lux);
}
.card-media .card-hover { opacity: 0; }
.category-card:hover .card-media img { transform: scale(1.04); }
.category-card:hover .card-media .card-default { opacity: 0; }
.category-card:hover .card-media .card-hover { opacity: 1; }
.card-label {
  margin-top: 18px;
  text-align: center;
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  position: relative;
}
.card-label::after {
  content: '';
  display: block;
  margin: 6px auto 0;
  width: 0;
  height: 1px;
  background: var(--charcoal);
  transition: width 0.5s var(--ease-lux);
}
.category-card:hover .card-label::after { width: 32px; }

.card-label .card-sub {
  display: inline-block;
  margin-top: 5px;
  font-family: var(--inter);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ===== PRODUCT SECTIONS (towels, hand towels, bundles) ===== */
.product-section {
  padding: 80px 40px 100px;
  border-top: 1px solid var(--hairline);
}
.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 90px;
  max-width: 1340px;
  margin: 0 auto;
  align-items: center;
}
.product-layout.reverse .product-media { order: 2; }

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  overflow: hidden;
  border-radius: 4px;
}
.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.7s var(--ease-lux), transform 1.2s var(--ease-lux);
}
.product-media .img-hover { opacity: 0; }

/* The crossfade only applies where a SECOND image exists — the .has-hover class
   marks those. Without this scoping, a lone .img-default would fade to nothing
   on hover and the product would appear to vanish.
   TODO: shoot a second (unfolded / in-situ) image for The Waffle, The Companion,
   The Ritual Set and The Sanctuary, then add .has-hover to their .product-media. */
.product-media.has-hover:hover .img-default { opacity: 0; transform: scale(1.02); }
.product-media.has-hover:hover .img-hover { opacity: 1; transform: scale(1.02); }

/* Single-image products still get a gentle zoom so hover feels responsive. */
.product-media:not(.has-hover):hover .img-default { transform: scale(1.02); }

.product-info { padding: 24px 0; }
.product-info h2 {
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 64px;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 22px;
}
.product-info .tagline {
  font-family: var(--baskerville);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: rgba(26, 26, 26, 0.72);
  line-height: 1.4;
  margin-bottom: 26px;
  max-width: 480px;
}
.product-info .desc {
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 300;
  color: rgba(26, 26, 26, 0.68);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.product-info .meta {
  font-family: var(--inter);
  font-size: 11px;
  font-weight: 400;
  color: rgba(26, 26, 26, 0.45);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.product-info .price {
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 36px;
  color: var(--charcoal);
  margin-bottom: 30px;
}
.product-info .price .was {
  font-size: 20px;
  color: rgba(26, 26, 26, 0.4);
  text-decoration: line-through;
  margin-left: 12px;
}
.product-info .price .save {
  font-family: var(--inter);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-left: 12px;
  vertical-align: middle;
}

/* ===== COLOR PICKER ===== */
.color-picker { margin-bottom: 36px; }
.color-picker .picker-label {
  font-family: var(--inter);
  font-size: 11px;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.55);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.color-picker .color-name {
  color: var(--charcoal);
  font-weight: 400;
  margin-left: 8px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
}
.swatches { display: flex; gap: 18px; }
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(26, 26, 26, 0.15);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.3s var(--ease-lux);
}
.swatch:hover { transform: scale(1.1); }
.swatch::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1px solid var(--charcoal);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.swatch.is-active::before { opacity: 1; }
.swatch:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }

/* ===== BUTTONS ===== */
.add-to-cart {
  background: var(--charcoal);
  color: white;
  border: 1px solid var(--charcoal);
  cursor: pointer;
  padding: 16px 38px;
  font-family: var(--inter);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease-lux), color 0.25s var(--ease-lux), opacity 0.25s ease;
}
.add-to-cart:hover { background: transparent; color: var(--charcoal); }
.add-to-cart.is-waitlist { background: transparent; color: var(--charcoal); }
.add-to-cart.is-waitlist:hover { background: var(--charcoal); color: white; }

.btn-ghost {
  display: inline-block;
  font-family: var(--inter);
  font-size: 13px;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 4px;
  transition: opacity 0.25s ease;
  background: none;
  cursor: pointer;
}
.btn-ghost:hover { opacity: 0.6; }

/* ===== EDITORIAL / PROSE (story, sustainability) ===== */
.editorial-strip {
  background: var(--cream);
  padding: 130px 40px;
  text-align: center;
}
.editorial-strip h3 {
  font-family: var(--baskerville);
  font-weight: 400;
  font-style: italic;
  font-size: 48px;
  line-height: 1.25;
  max-width: 760px;
  margin: 0 auto 32px;
  color: var(--charcoal);
}

.prose-section { padding: 20px 40px 90px; }
.prose {
  max-width: 680px;
  margin: 0 auto;
}
.prose h2 {
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.25;
  margin: 54px 0 20px;
  color: var(--charcoal);
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-family: var(--inter);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(26, 26, 26, 0.72);
  margin-bottom: 20px;
}
.prose p .drop {
  font-family: var(--baskerville);
  font-size: 19px;
  color: var(--charcoal);
}
.prose blockquote {
  border-left: 1px solid var(--sage);
  padding: 6px 0 6px 26px;
  margin: 34px 0;
  font-family: var(--baskerville);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.75);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 40px;
}
.split.reverse .split-media { order: 2; }
.split-media {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-body h2 {
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.split-body p {
  font-family: var(--inter);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.7);
  margin-bottom: 18px;
  max-width: 480px;
}

/* ===== STAT ROW (sustainability) ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 40px 90px;
}
.stat {
  text-align: center;
  padding: 34px 20px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
}
.stat .figure {
  font-family: var(--baskerville);
  font-size: 46px;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 14px;
}
.stat .caption {
  font-family: var(--inter);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.6);
}

/* ===== FORMS (newsletter, contact) ===== */
.form-section {
  padding: 130px 32px;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}
.form-section h2 {
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 44px;
  color: var(--charcoal);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.form-section > p {
  font-family: var(--inter);
  font-size: 13px;
  color: rgba(26, 26, 26, 0.55);
  margin-bottom: 44px;
}
.inline-form { display: inline-flex; align-items: center; gap: 24px; }
.inline-form input {
  width: 320px;
  padding: 12px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--charcoal);
  color: var(--charcoal);
  font-family: var(--inter);
  font-size: 14px;
  outline: none;
}
.inline-form input::placeholder { color: rgba(26, 26, 26, 0.35); }
.inline-form button {
  background: transparent;
  border: none;
  color: var(--charcoal);
  font-family: var(--inter);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  padding: 12px 4px;
  border-bottom: 1px solid var(--charcoal);
}
.inline-form button:hover { opacity: 0.6; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 90px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 40px 100px;
  align-items: start;
}
.field { margin-bottom: 26px; text-align: left; }
.field label {
  display: block;
  font-family: var(--inter);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.55);
  margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 10px 2px;
  font-family: var(--inter);
  font-size: 15px;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.25s ease;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--charcoal); }
.field input::placeholder, .field textarea::placeholder { color: rgba(26, 26, 26, 0.3); }

.contact-aside h3 {
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 12px;
}
.contact-aside .block { margin-bottom: 34px; }
.contact-aside p, .contact-aside a {
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.68);
  text-decoration: none;
  display: block;
}
.contact-aside a:hover { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }

.form-status {
  font-family: var(--inter);
  font-size: 13px;
  color: var(--sage);
  margin-top: 18px;
  min-height: 20px;
  text-align: left;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  background: var(--paper);
  gap: 16px;
}
footer .brand { font-family: var(--baskerville); font-weight: 400; font-size: 16px; color: var(--charcoal); letter-spacing: 0.18em; }
footer .copyright { font-family: var(--inter); font-size: 11px; color: rgba(26, 26, 26, 0.5); text-align: center; }
footer .social { display: flex; gap: 14px; justify-content: flex-end; }
footer .social a { font-family: var(--inter); font-size: 12px; color: rgba(26, 26, 26, 0.55); text-decoration: none; }
footer .social a:hover { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }
footer .social .dot { color: rgba(26, 26, 26, 0.25); }

/* ===== CART PAGE (full-page review, distinct from the drawer) ===== */
.cart-page {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 70px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 40px 110px;
  align-items: start;
}
.cart-lines { list-style: none; }
.cart-line {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.cart-line:last-child { border-bottom: 1px solid var(--hairline); }
.cart-line-media {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border-radius: 3px;
  overflow: hidden;
}
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-line-name {
  font-family: var(--baskerville);
  font-size: 23px;
  line-height: 1.25;
  margin-bottom: 6px;
}
.cart-line-variant {
  font-family: var(--inter);
  font-size: 11px;
  color: rgba(26, 26, 26, 0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.cart-line-unit {
  font-family: var(--inter);
  font-size: 12px;
  font-weight: 300;
  color: rgba(26, 26, 26, 0.5);
  margin-top: 14px;
}
.cart-line-right { text-align: right; }
.cart-line-total { font-family: var(--baskerville); font-size: 23px; white-space: nowrap; }

.cart-summary {
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 32px 30px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.cart-summary h2 {
  font-family: var(--baskerville);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  font-family: var(--inter);
  font-size: 13px;
  font-weight: 300;
  color: rgba(26, 26, 26, 0.7);
}
.summary-row.total {
  border-top: 1px solid var(--hairline);
  margin-top: 10px;
  padding-top: 20px;
}
.summary-row.total .label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.6);
}
.summary-row.total .value { font-family: var(--baskerville); font-size: 30px; color: var(--charcoal); }
.summary-note {
  font-family: var(--inter);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.45);
  margin: 14px 0 22px;
}
.summary-free-ship {
  font-family: var(--inter);
  font-size: 12px;
  font-weight: 300;
  color: var(--sage);
  padding: 14px 0 4px;
  line-height: 1.6;
}
.cart-continue {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-family: var(--inter);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.6);
  text-decoration: none;
}
.cart-continue:hover { color: var(--charcoal); }

.cart-page-empty {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 40px 130px;
  text-align: center;
}
.cart-page-empty p {
  font-family: var(--baskerville);
  font-style: italic;
  font-size: 24px;
  color: rgba(26, 26, 26, 0.55);
  margin-bottom: 32px;
}
.cart-page-empty .links { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }

/* Link from the drawer through to the full page */
.cart-view-page {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-family: var(--inter);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.55);
  text-decoration: none;
}
.cart-view-page:hover { color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .cart-page { grid-template-columns: 1fr; gap: 44px; }
  .cart-summary { position: static; }
}
@media (max-width: 720px) {
  .cart-page { padding: 10px 24px 80px; }
  .cart-line { grid-template-columns: 88px 1fr; gap: 18px; }
  .cart-line-right { grid-column: 2; text-align: left; margin-top: 4px; }
  .cart-line-name { font-size: 20px; }
}

/* ===== WAITLIST (revealed in place of the button) ===== */
.waitlist-form label {
  display: block;
  font-family: var(--inter);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.55);
  margin-bottom: 14px;
}
.waitlist-row {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 440px;
}
.waitlist-row input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--charcoal);
  padding: 11px 2px;
  font-family: var(--inter);
  font-size: 15px;
  color: var(--charcoal);
  outline: none;
  border-radius: 0;
}
.waitlist-row input::placeholder { color: rgba(26, 26, 26, 0.3); }
.waitlist-row button {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--charcoal);
  cursor: pointer;
  padding: 11px 2px;
  font-family: var(--inter);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  white-space: nowrap;
}
.waitlist-row button:hover { opacity: 0.6; }
.waitlist-row button:disabled { opacity: 0.35; cursor: not-allowed; }
.waitlist-done {
  font-family: var(--baskerville);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--sage);
  max-width: 440px;
}
@media (max-width: 720px) {
  .waitlist-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .waitlist-row button { text-align: left; }
}

/* ===== SCROLL REVEALS =====
   The hidden state only exists once JS has tagged an element, and JS only tags
   elements that start BELOW the fold. Anything already on screen — including the
   first product's Add to Cart button — is never hidden, and if the script fails
   to run at all nothing is hidden either. */
[data-reveal] { opacity: 0; transform: translateY(30px); }
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.95s var(--ease-lux), transform 0.95s var(--ease-lux);
}

/* ===== TOAST ===== */
#toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--charcoal);
  color: white;
  font-family: var(--inter);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-lux);
  z-index: 400;
}
#toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .page-hero h1 { font-size: 64px; }
  .product-info h2 { font-size: 48px; }
  .product-layout { gap: 60px; }
  .section-h2 { font-size: 42px; }
  .editorial-strip h3 { font-size: 36px; }
  .split { gap: 50px; }
  .split-body h2 { font-size: 34px; }
}
@media (max-width: 880px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; gap: 36px; }
  .product-layout.reverse .product-media { order: 1; }
  .product-info { padding: 0; }
  .product-info h2 { font-size: 44px; }
  .product-info .tagline { font-size: 20px; }
  .split { grid-template-columns: 1fr; gap: 34px; padding: 50px 30px; }
  .split.reverse .split-media { order: 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .stat-row { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  #site-header { padding: 0 18px; }
  .header-zone.left { gap: 18px; }
  .header-zone.right { gap: 14px; }
  .header-link span { display: none; }
  .header-brand { font-size: 24px; letter-spacing: 0.18em; }
  .header-link.contact-link { display: none; }
  .page-hero { padding: calc(var(--header-h) + 60px) 22px 50px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero .lead { font-size: 16px; }
  .section-h2 { font-size: 32px; }
  .category-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-section { padding: 60px 22px 80px; }
  .product-info h2 { font-size: 36px; }
  .product-info .tagline { font-size: 18px; }
  .product-info .price { font-size: 28px; }
  .editorial-strip { padding: 90px 24px; }
  .editorial-strip h3 { font-size: 26px; }
  .prose-section { padding: 10px 24px 70px; }
  .prose h2 { font-size: 27px; }
  .form-section { padding: 90px 24px; }
  .form-section h2 { font-size: 28px; }
  .inline-form { flex-direction: column; gap: 12px; width: 100%; }
  .inline-form input { width: 100%; max-width: 320px; }
  .contact-grid { padding: 10px 24px 70px; }
  footer { grid-template-columns: 1fr; gap: 14px; text-align: center; padding: 28px 24px; }
  footer .social { justify-content: center; }
  .drawer-panel.from-left, .search-panel { padding: 22px 26px 26px; }
  .menu-nav a { font-size: 22px; }
  .cart-head, .cart-foot { padding-left: 22px; padding-right: 22px; }
  .cart-body { padding-left: 22px; padding-right: 22px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
