/* =========================================================
   bamzoo — design tokens
   Palette drawn from the material itself: bamboo culm, ink,
   leaf, and the waxed cord used to lash joints together.
   ========================================================= */
:root {
  --ink: #1f2021;
  --ink-soft: #53585f;
  --paper: #ffffff;
  --paper-soft: #ffffff;
  --paper-deep: #ffffff;
  --bamboo: #82b14c;
  --bamboo-dark: #386b37;
  --leaf: #78b31f;
  --leaf-soft: #6c8a55;
  --cord: #78b31f;
  --line: rgba(31, 32, 33, 0.14);
  --line-strong: rgba(31, 32, 33, 0.28);

  --font-display: "Quicksand", "Helvetica", sans-serif;
  --font-body: "Quicksand", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Quicksand", sans-serif;

  --radius: 15px;
  --container: 1160px;
}

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* `clip` still prevents sideways scroll, but unlike `hidden` it doesn't
     turn <body> into a scroll container, which would break the sticky header. */
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--bamboo);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h2 {
  font-size:1.8em;
}

h3 {
  font-size: 1.5em;
}

p { margin: 0 0 1em; }

.container {
  margin: 0 auto;
  max-width: var(--container);
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bamboo);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

/* joint-dot: the recurring signature mark, echoes the pin that
   joins two bamboo struts in every kit */
.joint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bamboo);
  display: inline-block;
  flex: none;
}

/* =========== buttons =========== */
.btn {
  font-family: var(--font-display);
  font-weight:bold;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  background: transparent;
  color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--bamboo); outline-offset: 2px; }

.btn-primary { background: var(--bamboo); color: var(--paper-soft); }
.btn-primary:hover { background: var(--bamboo-dark); border-color: var(--bamboo-dark); }

.btn-cord { font:var(--font-display);background: var(--bamboo); color: var(--paper); border-color: var(--bamboo); }
.btn-cord:hover { background: var(--bamboo-dark); }

.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* =========== header =========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  gap: 24px;
}
.logo {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
}
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: -4px; right: 0px;
  background: var(--cord);
  color: var(--paper-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--bamboo); outline-offset: 3px; }

@media (max-width: 780px) {
  /* three explicit columns so the toggle stays left and the cart
     stays right regardless of how wide the logo or nav happen to be */
  .header-row {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    gap: 12px;
    margin-right: 0;
  }
  .nav-toggle { grid-column: 1; justify-self: start; margin-left: 10px; min-width: 0; }
  #logo-slot {
    grid-column: 2;
    justify-self: center;
    min-width: 0;   /* let the logo shrink instead of overflowing its 1fr track */
    max-width: 100%;
    overflow: hidden;
  }
  #logo-slot .logo,
  .header-row .logo { margin-left: 0; max-width: 100%; }
  .header-actions { grid-column: 3; justify-self: end; margin-right: 10px; min-width: 0; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 26px rgba(31, 32, 33, 0.1);
    padding: 4px 28px 14px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }

  /* Guaranteed 20px inset for every .container on every page, on every
     screen at this width. Full-bleed sections (hero banners, the
     partners marquee, the curved break graphic, the stack-slider's
     overflowing nav buttons) are never wrapped in .container, so they
     keep running edge-to-edge exactly as before. */
  .container { padding-left: 20px; padding-right: 20px; }
}


.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-slider-section { position: relative; }

/* Full viewport width, no container/margins/padding — deliberately
   not wrapped in .container so it runs edge-to-edge. */
.hero-visual {
  position: relative;
  width: 100%;
  height: min(72vh, 640px);
  min-height: 340px;
  overflow: visible;
  background: var(--paper-deep);
}

.hero-slides { position: absolute; inset: 0; }

/* Variant: a single embedded video filling the same hero-visual frame
   used by the slider on other pages (e.g. zoo.html). */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Video-only hero: centered, 75% of the page width, 16:9 frame.
   Scoped with :has() so slider heroes on other pages are unaffected. */
.hero-visual:has(> .hero-video) {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: transparent;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Overlay: layered ON TOP of the slide image (absolutely positioned
   within .hero-visual), full width, anchored so its own bottom edge
   sits slightly below the slide image's bottom edge (the overhang).
   .hero-visual has overflow: visible so that overhang isn't clipped.
   No mirroring here — upload pre-flipped artwork if you need it
   mirrored. */
.hero-overlays {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px; /* how far the overlay's bottom edge hangs past the image */
  display: grid;
  z-index: 2;
  pointer-events: none;
}
.hero-overlay-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-overlay-slide.active { opacity: 1; }
.hero-overlay-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* CTA + dots, overlaid directly on the photo. */
.hero-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px;
  pointer-events: none;
}
.hero-cta { pointer-events: auto; display: flex; gap: 12px; flex-wrap: wrap; }

.btn-photo {
  border: 1px solid rgba(246, 242, 231, 0.8);
  color: var(--paper-soft);
  background: rgba(31, 32, 33, 0.35);
  backdrop-filter: blur(3px);
}
.btn-photo:hover { background: rgba(31, 32, 33, 0.55); border-color: var(--paper-soft); }

.hero-dots { pointer-events: auto; display: flex; gap: 10px; position:absolute;right:20px;}
.hero-dot {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(246, 242, 231, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}
.hero-dot[aria-selected="true"] { background: var(--leaf-soft); width: 34px; }

@media (max-width: 780px) {
  .hero-visual { height: auto; aspect-ratio: 4 / 3; min-height: 260px; }
  .hero-controls { flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px; }
  .hero-overlays {
    transform: scale(1.35);
    transform-origin: left bottom;
  }
}

/* =========== meet-bamzoo stack slider =========== */
/* 9 slides, 3 visible at a time (1/3 width each). Each slide is two
   stacked images; image A is visible by default and image B fades
   in on hover/focus — a pure-CSS swap, no JS involved. */
.stack-slider {
  position: relative;
  margin-top: 40px;
}
.stack-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.stack-viewport::-webkit-scrollbar { display: none; }

.stack-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.stack-slide {
  flex: 0 0 33.3333%;
  scroll-snap-align: start;
  padding: 0 20px;
}

.stack-frame {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 0px;
} 

.stack-frame:focus-visible { outline: 2px solid var(--cord); outline-offset: 3px; }

.stack-img {
  position: absolute;
  inset: 28px;
  width: calc(100% - 56px);
  height: calc(100% - 56px);
  object-fit: contain;
  transition: opacity 0.35s ease;
}
.stack-img--a { opacity: 1; }
.stack-img--b { opacity: 0; }
.stack-frame:hover .stack-img--a,
.stack-frame:focus-visible .stack-img--a { opacity: 0; }
.stack-frame:hover .stack-img--b,
.stack-frame:focus-visible .stack-img--b { opacity: 1; }

.stack-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.stack-caption {
  color: #A6AAA9;
  font: 16px "Quicksand", sans-serif;
  font-weight: bold;
  margin: -30px 0 20px;
  text-align: center;
  position:relative;
  z-index:1;
}
.stack-nav:hover { border-color: var(--ink); }
.stack-nav:focus-visible { outline: 2px solid var(--cord); outline-offset: 2px; }
.stack-prev { left: -20px; }
.stack-next { right: -20px; }

@media (max-width: 900px) {
  .stack-slide { flex-basis: 50%; }
}
@media (max-width: 640px) {
  .stack-slide { flex-basis: 82%; padding: 0 12px; }
  /* .stack-frame { padding: 20px; } */
  .stack-img { inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); }
  .stack-nav { display: none; }
}

/* Decorative full-bleed break between the "Meet bamzoo" intro copy
   and the trio grid — a single slanted/curved bamboo-strip graphic
   run edge-to-edge, echoing the jagged-edge motif from the hero. */
.curv-break {
  width: 100%;
  overflow: hidden;
  margin: 8px 0 48px;
  line-height: 0;
}
.curv-break img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 640px) {
  .curv-break { margin: 4px 0 32px; }
}

/* =========== section scaffolding =========== */
/* padding-top/-bottom only (not the shorthand) — these are frequently
   combined with .container on the same element, and a shorthand
   `padding` here would silently reset .container's horizontal padding
   back to 0 since it comes later in the cascade with equal specificity. */
.section { padding-top: 84px; }
.section-tight { padding-top: 56px; padding-bottom: 56px; }
.section-alt { background: var(--bamboo); }
.section-dark { background: var(--paper); color: var(--ink-soft); }
.section-dark .eyebrow { color: var(--leaf); }
.section-head { max-width: 640px; margin-bottom: 44px; text-align:center; margin: 0 auto 15px;}
.section-head p { color: var(--ink-soft); max-width: 750px;}
.section-dark .section-head p { color: var(--leaf-soft); }

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* stacked feature rows (Engaging Play / Elegant Design / Beautiful Bamboo),
   each pairing a looping video with its copy, alternating sides */
.trio {
  display: flex;
  flex-direction: column;
  gap: 96px;
}
.trio-item {
  margin-top: -140px;
  display: flex;
  align-items: center;
  gap: 64px;
  padding-top: 10px;
}
.trio-item--reverse { flex-direction: row-reverse; }

.trio-media {
  position: relative;
  flex: 1 1 50%;
  padding: 32px;
  cursor: pointer;
}
.trio-media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* play/pause affordance centered over the video, fades on hover/state */
.trio-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(20, 18, 14, 0.55);
  pointer-events: none;
  transition: opacity 0.2s ease;
  opacity: 0;
}
.trio-media--paused .trio-play-icon { opacity: 1; }
.trio-media--playing:hover .trio-play-icon { opacity: 1; }

.trio-play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-style: solid;
}
/* triangle "play" glyph, shown while paused */
.trio-media--paused .trio-play-icon::before {
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--paper);
  transform: translate(-32%, -50%);
}
/* two bars "pause" glyph, shown on hover while playing */
.trio-media--playing .trio-play-icon::before {
  width: 7px;
  height: 22px;
  border-width: 0;
  background: var(--paper);
  box-shadow: 11px 0 0 var(--paper);
  transform: translate(-11px, -50%);
}

.trio-content {
  flex: 1 1 50%;
  padding: 32px;
}
.trio-item .spec { font-family: var(--font-mono); font-size: 12px; color: var(--bamboo-dark); }
.section-dark .trio-item { border-top-color: rgba(246,242,231,0.24); }
.section-dark .trio-item .spec { color: var(--bamboo); }

@media (max-width: 780px) {
  .trio { gap: 56px; }
  .trio-item,
  .trio-item--reverse {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-top: 32px;
    margin-top: -40px;
  }
  .trio-media,
  .trio-content { padding: 16px; }
}

/* =========== product grid / cards =========== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-soft);
  /* border: 1px solid var(--line); */
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card-media {
  aspect-ratio: 4/3;
  background: var(--paper-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--bamboo);
  overflow: hidden;
}
.card-media svg { width: 46%; }
.card-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body .spec { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.card-body h3 { font-size: 20px; margin: 2px 0 0; }
.card-price { font-family: var(--font-mono); font-size: 15px; margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }

/* =========== featured product band =========== */
.feature-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 40px;
}
.feature-media {
  aspect-ratio: 1;
  background: var(--paper-deep);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.feature-media svg { width: 60%; }
.feature-price { font-family: var(--font-mono); font-size: 28px; margin: 10px 0 26px; }
.feature-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.feature-list li { display: flex; gap: 10px; align-items: baseline; }

@media (max-width: 860px) {
  .feature-band { grid-template-columns: 1fr; }
}

/* =========== partners strip =========== */
.partners-section {
  border-top: 5px solid #edeeee;
  border-bottom: 5px solid #edeeee;
}

.partners-section .container {
  padding:0 !important;
}

.partners-slider {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
}

.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 64px;
  animation: partners-scroll 16s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.partners-slider:hover .partners-track { animation-play-state: paused; }

.partners-slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.partners-slide img {
  max-height: 100%;
  width: auto;
  filter: none;
  opacity: 1;
}

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; }
}

/* =========== newsletter =========== */


/*.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}*/

.signup-container {display: flex;
  align-items: center; /* Aligns inputs/buttons vertically */
  gap: 20px; /* Adds space between the input box and the button */ margin: 0 auto;
  max-width: var(--container);
  padding: 0 28px;
}

.newsletter-form {
    max-width: 400px;
    width: 100%;
    border-radius: 50px;
    box-shadow: 0 0 15px #00000080;
    color: #666;
    background:var(--paper);
    font-size: 16px;
    font-family: Quicksand,sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 25px;
    font-style: normal;
    margin-left: 0px;
    margin-top: 20px;
}
.newsletter-form input {
    max-width: 400px;
    width: 100%;
    color: #666;
    font-size: 16px;
    font-family: Quicksand,sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    font-style: normal;
    border:none;
  }
.newsletter-form input:focus {
  outline:none;
  border:none;
  border-color: var(--paper);
}


/*.signup-container newsletter-form input {
  display: flex;
  border: none !important;
  background: var(--paper);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 16px !important;
  color: inherit;
} */

.signup-container newsletter-form input:focus { outline: none; border:none; }

.signup-container button {
    display: inline-block;
    overflow: visible;
    line-height: 1.563;
    font-size: 18px;
    font-family: Quicksand,sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 9px 40px;
    box-shadow: 0 0 15px #00000080;
    color: #666;
    border-radius: 50px;
    margin-left: 0px;
    background: #72b427;
    text-rendering: optimizeLegibility;
    margin-top: 20px;
    border:none;
}

/*.newsletter-form button {
  border: none;
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 20px;
  cursor: pointer;
}*/ 
.section-dark .newsletter-form { border-color: var(--paper-soft); }
.section-dark .newsletter-form button { background: var(--paper-soft); color: var(--ink); border-left-color: var(--paper-soft); }

@media (max-width: 640px) {
  .signup-container { flex-wrap: wrap; }
  .signup-container button { white-space: nowrap; margin-left: 0px; }
}

/* =========== footer =========== */
.site-footer { background: var(--bamboo); color: var(--paper); padding: 50px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 10px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col a:hover { color: var(--bamboo-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--paper);
  flex-wrap: wrap;
  gap: 14px;
}
.social-row { display: flex; gap: 16px; }
.social-row a svg { width: 16px; height: 16px; }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =========== breadcrumb / page header =========== */
.page-head { padding-top: 44px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--cord); }

/* =========== shop sections =========== */
.shop-section {
  margin-top: 40px;
  padding-top: 40px;
  margin-bottom: 56px;
}
.shop-section-title {
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

/* =========== product detail =========== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

/* Info column (title, price, description, etc.) — kept on the left.
   Add class="product-info" to that column's wrapper div in the markup. */
.product-info { order: 1; }

/* Gallery — main image with a column of thumbnails to its right.
   Pushed to the right via 'order' so it doesn't need to be reordered
   in the HTML/JS that builds it. */
.product-gallery {
  order: 2;
  display: flex;
  flex-direction: row;
  gap: 14px;
}

.gallery-main {
  flex: 1;
  aspect-ratio: 1;
  max-height: 70vh;
  background: var(--paper-deep);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main svg { width: 58%; }

.gallery-thumbs {
  flex: none;
  width: 78px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 100%;
  overflow-y: auto;
}

.gallery-thumb {
  flex: none;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: var(--paper-deep);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: var(--line-strong); }
.gallery-thumb.active { border-color: var(--bamboo); }

.product-price { font-family: var(--font-mono); font-size: 26px; margin: 8px 0 22px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin: 26px 0; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--ink); border-radius: var(--radius); }
.qty-control button { background: none; border: none; width: 38px; height: 40px; cursor: pointer; font-size: 16px; }
.qty-control input { width: 42px; text-align: center; border: none; background: none; font-family: var(--font-mono); font-size: 15px; }
.accordion { border-top: 1px solid var(--line); margin-top: 30px; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item summary {
  padding: 16px 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
}
.accordion-item p { padding-bottom: 16px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-info { order: 2; }
  .product-gallery { order: 1; flex-direction: column; }
  .gallery-thumbs { width: 100%; flex-direction: row; overflow-x: auto; overflow-y: visible; }
  .gallery-thumb { width: 64px; height: 64px; }
}

/* =========== cart page =========== */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: flex-start; }
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb { width: 84px; height: 84px; background: var(--paper-deep); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-thumb svg { width: 60%; }
.cart-line-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cart-line h3 { font-size: 17px; margin: 0 0 4px; }
.cart-line .spec { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }
.cart-line-price { font-family: var(--font-mono); }
.cart-remove { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; color: var(--cord); background: none; border: none; cursor: pointer; padding: 0; margin-top: 6px; }
.cart-empty { padding: 60px 0; text-align: center; color: var(--ink-soft); }

.summary-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 96px;
}
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 8px 0; }
.summary-row.total { font-family: var(--font-mono); font-size: 17px; border-top: 1px solid var(--line-strong); margin-top: 10px; padding-top: 16px; }

@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-thumb { width: 64px; height: 64px; }
}

/* =========== checkout page =========== */
.checkout-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: flex-start; }
.form-section { margin-bottom: 34px; }
.form-section h2 { font-size: 30px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.field input, .field select {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--paper-soft);
  color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; outline-offset: 1px; border-color: var(--cord); }
.field.invalid input { border-color: var(--cord); }
.field-error { font-size: 12px; color: var(--cord); min-height: 14px; }

.order-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0; }
.order-line span:first-child { color: var(--ink-soft); }

.form-status { font-family: var(--font-mono); font-size: 13px; margin-top: 14px; min-height: 18px; }
.form-status.error { color: var(--cord); }
.form-status.success { color: var(--leaf); }

@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* =========== confirmation =========== */
.confirm-wrap { text-align: center; padding-top: 100px; padding-bottom: 100px; max-width: 520px; margin: 0 auto; }
.confirm-wrap .joint-dot { width: 12px; height: 12px; margin-bottom: 20px; }

/* =========== cart drawer =========== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 32, 33, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 60;
}
.cart-drawer-overlay--visible { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 32px rgba(31, 32, 33, 0.12);
  z-index: 61;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cart-drawer--open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.cart-drawer-head h2 {
  font-size: 15px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--ink);
}
.cart-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
}
.cart-drawer-close:focus-visible { outline: 2px solid var(--bamboo); outline-offset: 2px; }

.cart-drawer-lines {
  flex: 1;
  overflow-y: auto;
  padding: 4px 24px;
}
.cart-drawer-lines .cart-line { grid-template-columns: 72px 1fr; }
.cart-drawer-lines .cart-thumb { width: 72px; height: 72px; }
.cart-drawer-lines .cart-empty { padding: 48px 0; }

.cart-drawer-summary {
  border-top: 1px solid var(--line);
  padding: 20px 24px 26px;
  flex: none;
}
.cart-drawer-summary .summary-row { font-family: var(--font-mono); font-size: 15px; padding: 6px 0 16px; }
.cart-drawer-viewcart {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 14px;
}
.cart-drawer-viewcart:hover { color: var(--cord); }

body.cart-drawer-locked { overflow: hidden; }

@media (max-width: 480px) {
  .cart-drawer { width: 100%; }
}


/* =========== Zoo Page =========== */

.zoo-grid {margin-bottom: 50px;}


/* =========== Bam "Boot Camp" drawer =========== */
.bamzoo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 32, 33, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 70;
}
.bamzoo-overlay--visible { opacity: 1; pointer-events: auto; }

.bamzoo-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(390px, 100%);
  z-index: 71;
  transform: translateX(100%);
  visibility: hidden;                       /* keeps closed-drawer links/videos out of the tab order */
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.bamzoo-drawer--open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

/* Tab hanging off the upper-left edge of the drawer (desktop) */
.closebamzoo {
  position: absolute;
  top: 24px;
  right: 100%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bamboo);
  color: var(--paper);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: -6px 0 16px rgba(31, 32, 33, 0.12);
}
.closebamzoo:hover { background: var(--bamboo-dark); }
.closebamzoo:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

.bamzoo-panel {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  color: var(--ink);
  padding: 32px 24px 48px;
  box-shadow: -12px 0 32px rgba(31, 32, 33, 0.12);
}
.bamzoo-panel h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
}
.bamzoo-subtitle {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink-soft);
}
.bamzoo-intro {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-soft);

}
.bamzoo-safety {
  margin: 0 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border: 12px solid var(--bamboo);
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.bamzoo-safety strong { color: var(--ink); }

.bamzoo-videos { list-style: none; margin: 0; padding: 0; counter-reset: bamzoo-video; }

/* Shadow-boxed accordion item: title + (collapsed) video panel share one box. */
.bamzoo-video {
  margin: 0 0 16px;
  counter-increment: bamzoo-video;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(31, 32, 33, 0.14);
  overflow: hidden;
}
.bamzoo-video-heading { margin: 0; }

.bamzoo-video-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 16px 44px 16px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  position: relative;
}
.bamzoo-video-toggle::before { content: counter(bamzoo-video) ". "; }
/* Chevron, rotates open */
.bamzoo-video-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.bamzoo-video-toggle[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.bamzoo-video-toggle:hover { background: rgba(127, 127, 127, 0.08); }
.bamzoo-video-toggle:focus-visible { outline: 3px solid var(--bamboo); outline-offset: -3px; }

.bamzoo-video-panel { padding: 0 18px 18px; }
.bamzoo-video-frame {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
}
.bamzoo-video-frame video,
.bamzoo-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.bamzoo-status { margin: 0 0 24px; color: var(--ink-soft); }

body.bamzoo-locked { overflow: hidden; }

/* Mobile: full width, with the tab sitting inside that width */
@media (max-width: 480px) {
  .bamzoo-drawer {
    width: 100%;
    padding-left: 44px;                     /* gutter that holds the tab */
    background: var(--bamboo);
  }
  .closebamzoo {
    right: auto;
    left: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bamzoo-drawer, .bamzoo-overlay { transition: none; }
}




/* =========== Zoo page: intro row + Boot Camp arrow button =========== */
/* Full-width row: text lines up with the .container grid on the left,
   button sits near the right edge of the viewport. */
/* Green background wrapper around the intro row (full width). */
/* Positioned against <main>. top stays auto (the wrapper's natural spot,
   right under the video) and margin-top pulls it up so the green image
   tucks behind the bottom 200px of the hero video. */
main:has(> .zoo-intro-wrap) { position: relative; }
.zoo-intro-wrap {
  --intro-overlap: 130px;
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 0;
  margin-top: calc(-1 * var(--intro-overlap));
  padding-top: calc(var(--intro-overlap) + 20px); /* keep text clear of the video */
  background-image: url("/assets/images/green_background.png");
  background-size: 100% 75%; /* full width, 75% of the wrapper's height (stretched) */
  background-position: bottom center; /* image bottom edge = wrapper bottom = zoo-intro bottom */
  background-repeat: no-repeat;
}
/* video sits above the green; the gallery below makes room for the
   out-of-flow wrapper (value is kept in sync by a tiny script in zoo.html) */
.hero-visual:has(> .hero-video) { z-index: 1; }
.zoo-intro-wrap + section { margin-top: var(--intro-space, 280px); }
.zoo-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  padding: 100px 20px 28px max(28px, calc((100% - var(--container)) / 2 + 28px));
}
/* Two columns: left = three stacked lines; right = share prompt, icons, tag line */
.zoo-intro-text {
  max-width: 760px;
  display:block;
}
.zoo-intro-text li::marker {
  color: var(--bamboo);
}
.zoo-intro-lead { font-size: 1.2rem; line-height: 2.0; margin: 0 0 6px; color:var(--bamboo); font-weight:bold;}
.zoo-share { margin: 0 0 10px; color:var(--bamboo); font-weight:bold;}
.zoo-tag { margin: 8px 0 0; color:var(--bamboo);}

/* "Share your creations!" on the left; icons with the tag line directly beneath on the right */
.zoo-share-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 16px; }
.zoo-share-row .zoo-intro-lead { margin: 0; line-height: 42px; } /* centres text on the 42px icons */
.zoo-share-links { display: flex; flex-direction: column; align-items: flex-start; }

.zoo-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.zoo-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2.0px solid currentColor;
  border-radius: 50%;
  color: var(--bamboo);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.zoo-social a:hover,
.zoo-social a:focus-visible { color: var(--paper); background-color: var(--bamboo); border-color: var(--bamboo); }
.zoo-social svg { width: 22px; height: 22px; }

.zoo_popup_btn {
  width:260px;
  --h: 88px; 
   position: relative;
  isolation: isolate;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
}


.zoo_popup_btn:hover,
/*.zoo_popup_btn:focus-visible { background-color: var(--bamboo-dark); } 
.zoo_popup_btn:focus-visible { outline: 3px solid var(--bamboo-dark); outline-offset: 4px; } */

.zoo_popup_title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}
.zoo_popup_sub {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.04em;
}

@media (max-width: 780px) {
  .zoo-intro { flex-direction: column; align-items: stretch; padding: 8px 20px 24px 28px; }
  .zoo_popup_btn { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .zoo_popup_btn, .zoo-social a { transition: none; } }

/* =========== contact page =========== */
.contact-wrap { max-width: 700px; }
.contact-intro h2 { font-family: var(--font-display); font-size: 30px; margin-bottom: 10px; }
.contact-intro h3 {
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-soft); margin: 18px 0 4px;
}
.contact-intro p { margin: 0; }
.contact-form { margin-top: 32px; }
.contact-form .btn { margin-top: 6px; }

/* textarea matches the checkout .field inputs */
.field textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 140px;
  resize: vertical;
  background: var(--paper-soft);
  color: var(--ink);
}
.field textarea:focus { outline: none; border-color: var(--cord); }
.field.invalid textarea { border-color: var(--cord); }

/* honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
