/* Woodland catalogue hero. Scoped so product archives retain their own content. */
.hos-shop-hero--3d {
  --hos-scene-green: #262b2a;
  --hos-scene-cream: #f1edda;
  --hos-scene-muted: #bfc7b5;
  --hos-scene-line: rgba(223, 226, 205, .20);
  --hos-studio-backdrop: url('../shop-scene/studio-forest-banner.webp');
  background-image:
    linear-gradient(90deg, rgba(8, 19, 14, .68) 0%, rgba(9, 21, 16, .42) 29%, rgba(8, 17, 14, .12) 58%, rgba(5, 13, 10, .28) 100%),
    var(--hos-studio-backdrop);
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--hos-scene-green);
  box-shadow: none;
  padding-block: 0;
  margin-bottom: var(--hos-12);
}
.hos-shop-hero--3d .hos-shop-hero__inner {
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.55fr);
  gap: 0 var(--hos-8);
  padding-top: var(--hos-4);
  padding-bottom: var(--hos-6);
  min-height: 0;
  max-width: var(--hos-max);
  margin-inline: auto;
  padding-inline: var(--hos-gutter);
}
.hos-shop-hero--3d .hos-shop-hero__copy {
  width: 100%;
  max-width: 360px;
  margin-inline: 0;
  padding-bottom: 0;
  text-align: left;
}
.hos-shop-hero--3d .hos-shop-intro { max-width: none; }
.hos-shop-hero--3d .hos-shop-intro__display,
.hos-shop-hero--3d .hos-shop-hero__title {
  font-size: clamp(2.5rem, 3.4vw, 3.25rem);
  line-height: 1.06;
  max-width: 16ch;
  color: var(--hos-scene-cream);
}
.hos-shop-hero--3d .hos-shop-intro__display em { color: var(--hos-night-resin); }
.hos-shop-hero--3d .hos-shop-intro__continuation {
  max-width: 58ch;
  margin-inline: auto;
  color: var(--hos-scene-muted);
  font-family: var(--hos-ui);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: var(--hos-3);
}
.hos-shop-hero--3d .hos-shop-intro p:not(:first-child) { color: var(--hos-scene-muted); margin-inline: auto; }
.hos-shop-hero--3d .hos-category-rail {
  max-width: none;
  justify-content: flex-start;
  gap: var(--hos-1) var(--hos-6);
  margin-top: var(--hos-4);
}
.hos-shop-hero--3d .hos-category-rail a { font-size: .875rem; }
.hos-shop-hero--3d .hos-shop-hero__stage-wrap {
  max-width: 880px;
  width: 100%;
  margin-inline: auto;
  justify-self: center;
}
.hos-shop-hero--3d .hos-shop-hero__stage {
  height: clamp(360px, calc(100svh - 210px), 600px);
  aspect-ratio: auto;
  overflow: hidden;
  isolation: isolate;
}
.hos-shop-hero--3d .hos-shop-hero__stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: auto;
  left: 7%;
  right: 3%;
  bottom: 3%;
  width: auto;
  height: 25%;
  background: radial-gradient(ellipse at 52% 58%, rgba(2, 8, 5, .68) 0%, rgba(4, 12, 8, .42) 34%, rgba(4, 12, 8, .14) 56%, transparent 72%);
  filter: blur(10px);
  transform: scaleY(.52);
  transform-origin: center bottom;
  pointer-events: none;
}
.hos-shop-hero--3d .hos-shop-hero__stage::after { content: none; }
.hos-shop-hero--3d .hos-shop-hero__product-img,
.hos-shop-scene__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.hos-shop-hero--3d .hos-shop-hero__product-img { z-index: 1; }
.hos-shop-scene__canvas { display: block; z-index: 2; opacity: 0; pointer-events: none; transition: opacity .7s ease; }
.is-scene-ready .hos-shop-scene__canvas { opacity: 1; }
.is-scene-ready .hos-shop-hero__product-img { visibility: visible; }
.is-rendering-3d.is-scene-ready .hos-shop-hero__product-img { visibility: hidden; }
body.woocommerce-shop .hos-header { box-shadow: none; }
.hos-shop-hero--3d .hos-shop-hero__note {
  grid-column: 1 / -1;
  max-width: 65ch;
  margin: var(--hos-6) auto 0;
  color: var(--hos-scene-muted);
  font-size: .875rem;
  line-height: 1.6;
  text-align: center;
}
@media (max-width: 900px) {
  .hos-shop-hero--3d {
    --hos-studio-backdrop: url('../shop-scene/studio-forest-tablet.webp');
    padding-block: 0;
  }
  .hos-shop-hero--3d .hos-shop-hero__inner {
    min-height: 0;
    padding: var(--hos-4) var(--hos-gutter) var(--hos-6);
    gap: 0 var(--hos-4);
  }
  .hos-shop-hero--3d .hos-shop-intro__display,
  .hos-shop-hero--3d .hos-shop-hero__title { font-size: clamp(2.15rem, 5.2vw, 3.25rem); }
  .hos-shop-hero--3d .hos-shop-intro__continuation { max-width: 52ch; }
  .hos-shop-hero--3d .hos-shop-hero__stage-wrap { max-width: 840px; }
}
@media (max-width: 800px) {
  .hos-shop-hero--3d .hos-shop-hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--hos-2); padding-top: var(--hos-12); }
  .hos-shop-hero--3d .hos-shop-hero__copy { max-width: 640px; margin-inline: 0; text-align: left; }
  .hos-shop-hero--3d .hos-shop-intro__display,
  .hos-shop-hero--3d .hos-shop-hero__title { max-width: none; margin: var(--hos-6) 0 0; text-align: left; }
  .hos-shop-hero--3d .hos-category-rail { justify-content: flex-start; margin-top: var(--hos-2); }
  .hos-shop-hero--3d .hos-shop-hero__stage-wrap { max-width: 640px; }
  .hos-shop-hero--3d .hos-shop-hero__stage { height: auto; aspect-ratio: 1.3; }
  .hos-shop-hero--3d .hos-shop-hero__note { text-align: left; margin: var(--hos-4) 0 0; }
}
@media (max-width: 600px) {
  .hos-shop-hero--3d { --hos-studio-backdrop: url('../shop-scene/studio-forest-mobile.webp'); }
  .hos-shop-hero--3d .hos-shop-hero__copy { padding-bottom: var(--hos-2); margin-inline: 0; text-align: left; }
  .hos-shop-hero--3d .hos-shop-intro__display,
  .hos-shop-hero--3d .hos-shop-hero__title { max-width: 100%; margin-inline: 0; text-align: left; font-size: clamp(2.15rem, 7vw, 2.75rem); }
  .hos-shop-hero--3d .hos-shop-intro__continuation { font-size: .9375rem; line-height: 1.65; text-align: left; margin-inline: 0; }
  .hos-shop-hero--3d .hos-shop-hero__note { text-align: left; margin: var(--hos-4) 0 0; }
  .hos-shop-hero--3d .hos-category-rail {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--hos-2);
    padding: var(--hos-1) var(--hos-4) var(--hos-3);
    margin-inline: calc(var(--hos-gutter) * -1);
    justify-content: flex-start;
  }
  .hos-shop-hero--3d .hos-category-rail::-webkit-scrollbar {
    display: none;
  }
  .hos-shop-hero--3d .hos-category-rail a {
    flex-shrink: 0;
    border: 1px solid rgba(250, 249, 221, 0.14) !important;
    border-radius: 999px !important;
    background: rgba(250, 249, 221, 0.04);
    padding: 6px 14px;
    min-height: 44px;
    font-size: .8125rem;
    white-space: nowrap;
    text-decoration: none;
  }
  .hos-shop-hero--3d .hos-category-rail a[aria-current] {
    background: rgba(116, 190, 152, 0.16) !important;
    border-color: var(--hos-night-leaf) !important;
    color: var(--hos-night-ink) !important;
  }
  .hos-shop-hero--3d .hos-shop-hero__stage-wrap {
    width: calc(100% + var(--hos-gutter) * 2);
    max-width: none;
    margin-inline: calc(var(--hos-gutter) * -1);
  }
  .hos-shop-hero--3d .hos-shop-hero__stage { aspect-ratio: 1.12; }
}
@media (min-width: 801px) {
  .hos-shop-hero--3d .hos-shop-hero__inner {
    align-items: start;
    padding-top: clamp(80px, 7.4vw, 106.4px);
  }
  .hos-shop-hero--3d .hos-shop-hero__copy { align-self: start; }
  .hos-shop-hero--3d .hos-shop-intro__display,
  .hos-shop-hero--3d .hos-shop-hero__title { margin-top: var(--hos-6); }
  .hos-shop-hero--3d .hos-shop-hero__stage-wrap { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hos-shop-scene__canvas { transition: none; }
}
