/* Presentation templates aligned to design-board C01/P01/S01/D01. */
html {
  scroll-behavior: smooth;
}

header {
  padding: 22px 3.3vw
}

.brand {
  font-size: 22px
}

header nav {
  gap: 24px
}

.preview-banner {
  font-size: 9px;
  padding: 8px
}

.collection-hero {
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  padding: 36px 3.3vw;
  min-height: 390px;
  background-image: linear-gradient(#bbc4b01c 1px, transparent 1px), linear-gradient(90deg, #bbc4b01c 1px, transparent 1px);
  background-size: 35px 35px
}

.collection-hero>div {
  padding: 0
}

.collection-hero>img {
  position: relative;
  inset: auto;
  max-width: none;
  min-height: 310px;
  max-height: 370px;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%)
}

.collection-hero h1 {
  font-size: clamp(55px, 6.2vw, 88px);
  margin: 22px 0;
  letter-spacing: -.035em
}

.collection-hero p {
  font-size: 14px
}

.ghost-index {
  position: absolute;
  right: 20px;
  top: -25px;
  font: 320px/.9 Industry;
  opacity: .045;
  z-index: -1;
  pointer-events: none
}

.mission-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 3.3vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font: 9px monospace;
  letter-spacing: .08em
}

.mission-strip a {
  text-decoration: none
}

.shop-section {
  padding: 32px 3.3vw
}

.shop-heading h2 {
  font-size: 29px
}

.shop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px
}

.product-photo {
  position: relative;
  display: block;
  background: #e7e7e3;
  overflow: hidden
}

.product-photo img {
  aspect-ratio: 1;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform .18s
}

.product-photo:hover img {
  transform: scale(1.025)
}

.photo-action {
  position: absolute;
  bottom: 12px;
  left: 13px;
  font: 8px monospace;
  color: #333c2d;
  letter-spacing: .05em
}

.shop-card h3 {
  font-size: 14px;
  font-weight: 400;
  margin-top: 10px
}

.shop-card h3 a {
  text-decoration: none
}

.shop-card .card-meta {
  font-size: 11px
}

.shop-card .small {
  font-size: 10px
}

.sibling-swatches {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 12px 0
}

.sibling-swatch {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  padding: 4px;
  overflow: hidden;
  display: block;
  background: #e7e7e3
}

.sibling-swatch img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover
}

.sibling-swatch.selected {
  border: 2px solid var(--ink)
}

.source-note {
  font: 10px/1.6 monospace;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px
}

.collection-hub {
  padding: 50px 3.3vw
}

.collection-hub h2 {
  font-size: clamp(40px, 5vw, 70px);
  letter-spacing: -.03em;
  margin: 20px 0 35px
}

.collection-tiles {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 35px
}

.tile {
  position: relative;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px
}

.tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e7e7e3
}

.tile-main img {
  height: 100%;
  min-height: 300px;
  max-height: 470px;
  filter: brightness(.6)
}

.tile>span {
  font: 9px monospace;
  margin-top: 20px
}

.tile h3 {
  font-size: 22px;
  margin: 12px 0 0
}

.tile p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0
}

.tile-main>span,
.tile-main h3 {
  position: absolute;
  left: 25px;
  bottom: 90px;
  color: white
}

.tile-main h3 {
  bottom: 45px;
  font-size: 30px
}

.product-crumb {
  padding: 24px 3.3vw;
  font: 10px monospace;
  color: var(--muted)
}

.standalone-pdp {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5vw;
  padding: 8px 3.3vw 55px;
  max-width: 1600px;
  margin: auto
}

.product-stage {
  position: relative;
  align-self: start
}

.product-stage>.eyebrow {
  position: absolute;
  top: 16px;
  left: 20px;
  padding: 0;
  z-index: 1;
  color: #4e5646
}

.product-stage>img {
  width: 100%;
  display: block;
  mix-blend-mode: multiply
}

.spec-strip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 9px monospace;
  color: var(--muted);
  background: var(--page);
  padding: 22px 0
}

.pdp-buybox {
  padding-top: 20px
}

.pdp-buybox h1 {
  font-size: clamp(38px, 4vw, 62px);
  text-transform: uppercase;
  letter-spacing: -.03em;
  margin: 22px 0
}

.pdp-description {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-height: 180px;
  overflow: auto
}

.pdp-buybox .detail-price {
  margin-top: 22px
}

.pdp-buybox hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0
}

.pdp-buybox details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px
}

.pdp-buybox summary {
  font: 12px Industry;
  cursor: pointer
}

.pdp-buybox label {
  font: 10px monospace;
  display: block
}

.pdp-buybox select {
  display: block;
  width: 100%;
  margin: 8px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--ink);
  font: 14px Arial
}

.pdp-buybox .shop-cta {
  width: 100%
}

.shop-cta:disabled {
  opacity: .45;
  cursor: not-allowed
}

#variant-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

#variant-status {
  font-size: 12px
}

dialog#search-dialog {
  padding: 30px 36px
}

#search-dialog h2 {
  font-size: clamp(48px, 6vw, 82px);
  letter-spacing: -.035em
}

#search-dialog {
  background-image: linear-gradient(#bbc4b014 1px, transparent 1px), linear-gradient(90deg, #bbc4b014 1px, transparent 1px);
  background-size: 100px 100px
}

.suggestion-link {
  display: block;
  border: 1px solid var(--line);
  padding: 12px;
  text-decoration: none
}

.suggestion-link img {
  aspect-ratio: 1;
  object-fit: cover
}

.suggestion-link small {
  font: 10px monospace;
  display: block;
  margin-top: 8px
}

.search-page {
  padding: 40px 3.3vw
}

.search-page h1 {
  font-size: clamp(48px, 6.5vw, 90px);
  letter-spacing: -.035em;
  margin: 25px 0
}

.search-page form {
  display: flex;
  border-bottom: 2px solid var(--ink)
}

.search-page input {
  padding: 18px 0;
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 24px Industry
}

.search-page button {
  background: none;
  color: var(--ink);
  border: 0;
  min-width: 100px;
  font: 12px Industry;
  cursor: pointer
}

.loading-panel {
  padding: 80px 5vw;
  min-height: 50vh
}

.loading-panel h1 {
  font-size: 45px
}

.bag-line a {
  text-decoration: none
}

[data-theme=night] .collection-hero {
  display: block;
  padding: 0;
  min-height: 470px;
  overflow: hidden;
  background: none
}

[data-theme=night] .collection-hero>img {
  position: absolute;
  inset: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  max-height: none;
  filter: brightness(.33) saturate(.55);
  clip-path: none;
  z-index: -1
}

[data-theme=night] .collection-hero>div {
  padding: 45px 3.3vw;
  max-width: 750px
}

[data-theme=night] .collection-hero h1 {
  font-size: clamp(65px, 7.4vw, 100px)
}

[data-theme=night] .ghost-index {
  z-index: 0;
  opacity: .15;
  color: #d3c496;
  right: 20px;
  top: 0
}

[data-theme=night] .mission-strip {
  background: #232a25;
  color: #d1bd8e
}

[data-theme=night] .product-photo {
  background: #b6b8ae
}

[data-theme=night] portal-product-card:nth-child(even) .shop-card {
  padding-top: 25px
}

[data-theme=night] #search-dialog {
  background-image: radial-gradient(ellipse at top right, #68745b44, transparent 60%)
}

[data-theme=night] #search-dialog h2 {
  color: #e2d7b9
}

.sibling-swatch:focus-visible,
.product-photo:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px
}

@media(max-width:1000px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  header nav {
    gap: 16px
  }

  .collection-tiles {
    grid-template-columns: 1fr 1fr
  }

  .tile-main {
    grid-column: 1/-1
  }

  .tile-main img {
    max-height: 400px
  }
}

@media(max-width:760px) {
  header {
    padding: 20px
  }

  .brand {
    font-size: 19px
  }

  header nav {
    gap: 8px;
    flex-wrap: wrap
  }

  header nav a,
  header nav>button {
    font-size: 10px
  }

  .collection-hero {
    display: block;
    min-height: 420px;
    padding: 0;
    background: none
  }

  .collection-hero>div {
    padding: 35px 24px;
    position: relative;
    z-index: 1
  }

  .collection-hero>img {
    position: absolute;
    inset: 0;
    max-height: none;
    width: 100%;
    height: 100%;
    filter: brightness(.35);
    clip-path: none
  }

  .collection-hero h1 {
    font-size: 60px
  }

  .collection-hero p {
    color: white
  }

  .ghost-index {
    display: none
  }

  .mission-strip {
    padding: 14px 20px;
    flex-wrap: wrap;
    font-size: 8px
  }

  .mission-strip>span:last-child {
    display: none
  }

  .shop-section {
    padding: 25px 20px
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px
  }

  .shop-card h3 {
    font-size: 13px
  }

  .shop-card .card-meta {
    flex-direction: column;
    gap: 6px
  }

  .sibling-swatches {
    gap: 3px
  }

  .sibling-swatch {
    height: 36px;
    width: 36px;
    min-height: 36px
  }

  .standalone-pdp {
    grid-template-columns: 1fr;
    padding: 0 20px 30px;
    gap: 15px
  }

  .pdp-buybox {
    padding-top: 0
  }

  .pdp-buybox h1 {
    font-size: 42px
  }

  .product-crumb {
    padding: 20px;
    font-size: 9px
  }

  .pdp-buybox .sibling-swatch {
    height: 44px;
    width: 44px
  }

  .spec-strip {
    font-size: 8px
  }

  .collection-hub {
    padding: 30px 20px
  }

  .collection-hub h2 {
    font-size: 40px
  }

  .collection-tiles {
    gap: 18px 12px
  }

  .tile h3 {
    font-size: 18px
  }

  .tile-main h3 {
    font-size: 26px
  }

  .tile>span {
    font-size: 8px
  }

  .search-page {
    padding: 30px 20px
  }

  .search-page input {
    font-size: 18px
  }

  dialog#search-dialog {
    padding: 24px
  }

  .shop-heading h2 {
    font-size: 24px
  }

  .source-note {
    font-size: 9px
  }

  portal-product-card:nth-child(even) .shop-card {
    padding-top: 0 !important
  }
}

@media(prefers-reduced-motion:reduce) {
  .product-photo img {
    transition: none
  }
}

header nav>a {
  display: inline-flex;
  align-items: center
}

/* Light-DOM component hosts preserve the existing page grid. */
portal-product-card,
portal-swatches,
portal-product-detail,
portal-variant-picker,
portal-overlays {
  display: contents
}

/* Match the board's photographic hero and restrained equipment index. */
.hero-image {
  position: relative;
  margin: 0;
  min-height: 310px;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}

.hero-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image figcaption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font: 9px monospace;
  letter-spacing: .13em;
}

.collection-hero h1 {
  font-size: clamp(55px, 5.5vw, 82px);
  line-height: .98;
}

[data-theme=night] .collection-hero .hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: none;
}

[data-theme=night] .collection-hero .hero-image img {
  filter: brightness(.33) saturate(.55);
  object-position: center 35%;
}

[data-theme=night] .collection-hero>div {
  padding: 45px 3.3vw;
}

[data-theme=night] .collection-hero p {
  color: #e0dfd2;
}

.shop-heading h2 {
  max-width: 900px;
  font-size: clamp(23px, 2.5vw, 34px);
}

.shop-grid {
  gap: 24px 16px;
}

.product-photo>.eyebrow {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font: 8px monospace;
  color: #4c5147;
}

.product-photo img {
  display: block;
}

.photo-action {
  bottom: 10px;
  left: 12px;
}

.shop-card h3 {
  font-size: 13px;
  margin: 13px 0 8px;
}

.sibling-swatches {
  gap: 3px;
  margin: 10px 0 0;
}

.sibling-swatch {
  width: 32px;
  height: 36px;
  min-height: 36px;
  padding: 5px 3px;
  border: 0;
  border-radius: 0;
  background: none;
}

.sibling-swatch.selected {
  border: 0;
}

.swatch-visual {
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid #8d9188;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--panel);
}

.swatch-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sibling-swatch.selected .swatch-visual {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.swatch-missing {
  display: grid;
  place-items: center;
  border-style: dashed;
  color: var(--muted);
  font: 12px monospace;
}

.pdp-buybox .sibling-swatches {
  gap: 8px;
  margin: 12px 0 20px;
}

.pdp-buybox .sibling-swatch {
  width: 40px;
  height: 44px;
  min-height: 44px;
  padding: 8px 6px;
}

.pdp-buybox .swatch-visual {
  width: 28px;
  height: 28px;
}

.pdp-description {
  font-size: 13px;
  line-height: 1.65;
  max-height: 8.2em;
  overflow: auto;
}

.load-more {
  display: block;
  margin: 36px auto;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  padding: 16px 24px;
  font: 12px Industry;
  cursor: pointer;
}

.load-more[hidden] {
  display: none;
}

.collection-intro {
  max-width: 550px;
  color: var(--muted);
}

.collection-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile img {
  aspect-ratio: 4/3;
}

.tile h3 {
  font-size: 22px;
}

.tile:has(>h3):not(:has(img)) {
  min-height: 170px;
  justify-content: end;
  background: var(--panel);
  padding: 24px;
}

portal-navigation {
  display: flex;
  gap: 20px;
  align-items: center;
}

header {
  position: relative;
  z-index: 5;
}

header nav {
  flex-wrap: wrap;
}

.catalog-menu>summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font: 12px Industry;
  text-transform: uppercase;
}

.catalog-menu>summary::-webkit-details-marker {
  display: none;
}

.catalog-menu>summary::after {
  content: ' +';
  color: var(--muted);
}

.catalog-menu[open]>summary::after {
  content: ' −';
}

.catalog-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 30px 3.3vw;
  background: var(--page);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 25px #0002;
  max-height: 75vh;
  overflow: auto;
  z-index: 20;
}

.catalog-menu-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.catalog-menu-intro a {
  font: 12px Industry;
}

.catalog-menu-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 24px;
}

.catalog-menu-group h3 {
  font: 12px Industry;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.catalog-menu-group ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.catalog-menu-group li {
  margin: 0 0 10px;
  font: 13px/1.5 Arial, sans-serif;
}

.catalog-menu-group li>span {
  display: block;
  padding-top: 12px;
  font: 11px Industry;
  text-transform: uppercase;
  color: var(--muted);
}

.catalog-menu a {
  text-decoration: none;
}

.catalog-menu a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.catalog-menu summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media(max-width:1000px) {
  header {
    align-items: flex-start;
  }

  header nav {
    justify-content: flex-end;
    gap: 12px;
  }

  portal-navigation {
    gap: 14px;
  }

  .collection-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:760px) {
  header {
    flex-direction: column;
    gap: 12px;
  }

  header nav {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  header nav>a {
    font-size: 9px;
  }

  .catalog-menu>summary {
    font-size: 11px;
  }

  .catalog-menu-panel {
    padding: 22px 20px;
  }

  .catalog-menu-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .catalog-menu-group ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
  }

  .catalog-menu-group li a {
    display: block;
    padding: 8px 0;
  }

  .catalog-menu-intro {
    flex-direction: column;
    gap: 12px;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    height: 100%;
    clip-path: none;
  }

  .hero-image img {
    filter: brightness(.35);
  }

  .hero-image figcaption {
    display: none;
  }

  .collection-hero h1 {
    font-size: 60px;
  }

  .collection-hero p {
    color: #fff;
  }

  [data-theme=night] .collection-hero>div {
    padding: 35px 24px;
  }

  .collection-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile h3 {
    font-size: 16px;
  }

  .pdp-buybox .sibling-swatch {
    width: 40px;
  }

  .sibling-swatch {
    min-height: 44px;
    height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media(max-width:760px) {

  /* Men's/Women's menus cover the duplicate collection/shop shortcuts. */
  header nav>a {
    display: none;
  }

  header nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 7px;
  }

  portal-navigation {
    gap: 12px;
  }

  header nav>button {
    white-space: nowrap;
  }
}

/* Card swatches stay on one scrollable line, with room for selected outlines. */
.shop-card {
  min-width: 0;
}

.shop-card .sibling-swatches {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  gap: 1px;
  padding: 5px 3px 5px 5px;
  margin: 7px 0 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.shop-card .sibling-swatch {
  flex: 0 0 28px;
  width: 28px;
  height: 34px;
  min-height: 34px;
  padding: 7px 4px;
}

.shop-card .swatch-visual {
  width: 18px;
  height: 18px;
}

.shop-card .sibling-swatch:focus-visible {
  outline-offset: -1px;
}

/* Set before first paint; the observer removes this as the reveal starts. */
.shop-card.card-reveal-pending {
  opacity: 0;
}

@media(prefers-reduced-motion:reduce) {
  .shop-card.card-reveal-pending {
    opacity: 1;
  }
}

/* Native collection-to-product navigation: shared photography, soft page fade. */

.product-stage [data-image] {
  view-transition-name: portal-product-image;
}

::view-transition-group(portal-product-image) {
  animation-duration: 460ms;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}

::view-transition-image-pair(portal-product-image) {
  isolation: isolate;
}

::view-transition-old(portal-product-image),
::view-transition-new(portal-product-image) {
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 240ms;
}

@media(prefers-reduced-motion:reduce) {

  .product-stage [data-image] {
    view-transition-name: none;
  }
}

/* Keep PDP color choices compact, while retaining usable focus/touch targets. */
.pdp-buybox .sibling-swatches {
  gap: 2px;
}

.pdp-buybox .sibling-swatch {
  width: 36px;
  padding-left: 4px;
  padding-right: 4px;
}

/* Photography-led PDP: primary image, then a two-column media mosaic. */
portal-product-gallery {
  display: block;
  min-width: 0;
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  min-width: 0;
  border: 0;
  background: #e7e7e3;
  color: #30372c;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.gallery-item:first-child {
  grid-column: 1/-1;
}

.gallery-photo {
  cursor: zoom-in;
  width: 100%;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.gallery-image-index {
  position: absolute;
  top: 16px;
  left: 16px;
  font: 8px monospace;
  letter-spacing: .12em;
}

.gallery-image-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font: 9px Industry;
  padding: 8px 10px;
  background: #f0efe8dd;
  border: 1px solid #aab09e;
}

.gallery-photo:hover .gallery-image-zoom {
  background: #f0efe8;
}

.gallery-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-external {
  text-decoration: none;
}

.gallery-external img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-external>span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #f0efe8e8;
  padding: 12px;
  font: 12px Industry;
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.gallery-controls .eyebrow,
.gallery-zoom-note {
  font: 8px monospace;
  letter-spacing: .1em;
}

.gallery-paging {
  display: none;
  align-items: center;
  gap: 12px;
  font: 10px monospace;
}

.gallery-paging button {
  min-width: 40px;
  min-height: 44px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
}

.media-zoom {
  width: calc(100vw - 32px);
  max-width: none;
  height: calc(100dvh - 32px);
  max-height: none;
  margin: auto;
  padding: 20px;
  overflow: hidden;
}

.media-zoom[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.media-zoom::backdrop {
  background: #080c0bea;
  backdrop-filter: blur(5px);
}

.zoom-toolbar,
.zoom-toolbar>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.zoom-toolbar button,
.zoom-navigation button {
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 10px 16px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 11px Industry;
}

.zoom-viewport {
  min-height: 0;
  overflow: auto;
  background: #e7e7e3;
}

.zoom-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  user-select: none;
}

.zoom-viewport.is-zoomed {
  cursor: grab;
}

.zoom-viewport.is-zoomed:active {
  cursor: grabbing;
}

.zoom-viewport.is-zoomed img {
  width: 200%;
  height: auto;
  min-height: 100%;
  object-fit: contain;
}

.zoom-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.zoom-navigation p {
  margin: 0;
  max-width: 50%;
  font: 11px/1.5 Arial, sans-serif;
  color: var(--muted);
}

.gallery-paging button:disabled,
.zoom-navigation button:disabled {
  opacity: .35;
  cursor: default;
}

@media(max-width:760px) {
  .gallery-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-track::-webkit-scrollbar {
    display: none;
  }

  .gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .gallery-paging {
    display: flex;
  }

  .gallery-controls .eyebrow {
    max-width: 90px;
    line-height: 1.5;
  }

  .gallery-zoom-note {
    display: none;
  }

  .gallery-image-index {
    top: 12px;
    left: 12px;
  }

  .gallery-image-zoom {
    right: 12px;
    bottom: 12px;
  }

  .media-zoom {
    width: 100vw;
    height: 100dvh;
    border: 0;
    padding: 16px;
  }

  .zoom-toolbar {
    align-items: flex-start;
  }

  .zoom-toolbar>div {
    gap: 6px;
  }

  .zoom-toolbar button,
  .zoom-navigation button {
    font-size: 10px;
    padding: 10px;
  }

  .zoom-toolbar>.eyebrow {
    font-size: 8px;
    padding-top: 16px;
  }

  .zoom-navigation p {
    font-size: 10px;
  }
}

.product-stage,
.gallery-track {
  min-width: 0;
}

.sibling-swatches[hidden] {
  display: none;
}

/* Tall panels scroll into reach before sticking; mobile keeps the normal flow. */
@media(min-width:761px) {
  .pdp-buybox {
    position: sticky;
    top: min(24px, calc(100dvh - var(--buybox-height, 0px) - 24px));
    align-self: start;
  }
}

/* Saved gear: one consistent product action across cards and detail pages. */
portal-wishlist-button {
  display: inline-block;
}

.wishlist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
  font: 11px Industry;
}

.wishlist-button svg {
  flex: none;
}

.wishlist-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.wishlist-button[aria-pressed=true] path {
  fill: var(--accent);
  stroke: var(--accent);
}

.wishlist-button:hover {
  border-color: var(--ink);
}

.shop-card {
  position: relative;
}

.card-save {
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 2;
}

.card-save .wishlist-button {
  padding: 0;
  background: transparent;
  border: 0;
}

.card-save [data-wishlist-label] {
  display: none;
}

[data-theme=night] portal-product-card:nth-child(even) .card-save {
  top: 25px;
}

.pdp-save {
  display: block;
  margin-top: 12px;
}

.pdp-save .wishlist-button {
  width: 100%;
}

.wishlist-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
  font: 11px Industry;
}

.wishlist-link>span:first-child {
  font: 22px Arial, sans-serif;
}

.wishlist-page {
  min-height: 65vh;
  padding-top: 55px;
}

.wishlist-page h1 {
  font: 700 clamp(40px, 5vw, 72px)/.98 Industry;
  letter-spacing: -.035em;
  margin: 20px 0;
}

.wishlist-note {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 30px;
}

.wishlist-empty {
  padding: 40px 0 65px;
  border-top: 1px solid var(--line);
}

.wishlist-empty h2 {
  font: 24px Industry;
}

.wishlist-empty p {
  color: var(--muted);
}

.wishlist-empty[hidden] {
  display: none;
}

@media(max-width:760px) {
  [data-theme=night] portal-product-card:nth-child(even) .card-save {
    top: 0;
  }

  .wishlist-link {
    font-size: 9px;
    gap: 3px;
  }

  .wishlist-link>span:first-child {
    font-size: 18px;
  }

  header nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .wishlist-page {
    padding-top: 30px;
  }
}

.pdp-copy {
  white-space: pre-line;
  font: 13px/1.7 Arial, sans-serif;
  color: var(--muted);
  margin: 14px 0;
}

.variant-select-control {
  position: relative;
  display: block;
  margin: 8px 0 18px;
}

.pdp-buybox .variant-select-control select {
  margin: 0;
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.pdp-buybox select:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Native collection content, with an honest text-only state for missing media. */
.collection-hero.is-catalog-collection h1 {
  font-size: clamp(34px, 4.2vw, 66px);
  overflow-wrap: anywhere;
}

.is-catalog-collection [data-collection-description] {
  white-space: pre-line;
  line-height: 1.65;
  max-width: 650px;
}

.is-catalog-collection [data-collection-description][hidden] {
  display: none;
}

.collection-no-image {
  grid-template-columns: 1fr;
  min-height: 280px;
}

.collection-no-image>div {
  max-width: 1000px;
}

[data-theme=night] .collection-no-image {
  min-height: 280px;
  background: var(--panel);
}

[data-theme=night] .collection-no-image>div {
  max-width: 1000px;
}

@media(max-width:760px) {
  .collection-hero.is-catalog-collection h1 {
    font-size: clamp(32px, 9vw, 48px);
  }

  .collection-hero.collection-no-image {
    min-height: 260px;
    background: var(--panel);
  }

  .collection-no-image p {
    color: var(--muted);
  }

  .collection-no-image h1 {
    color: var(--ink);
  }
}

/* Homepage prototype: structured sections that can map to Shopify metaobjects. */
.portal-home-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding: 48px 3.3vw 52px;
  position: relative;
  isolation: isolate;
}

.home-hero-copy {
  align-self: center;
  padding: 25px 0;
}

.home-hero-copy h1 {
  white-space: pre-line;
  font: 700 clamp(60px, 7vw, 104px)/.94 Industry;
  letter-spacing: -.04em;
  margin: 28px 0;
}

.home-hero-copy p {
  max-width: 420px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.portal-home-hero figure {
  position: relative;
  margin: 0;
  min-height: 470px;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
}

.portal-home-hero figure img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: 58% center;
}

.portal-home-hero figcaption {
  position: absolute;
  bottom: 22px;
  left: 24px;
  font: 10px Industry;
  letter-spacing: .12em;
  color: white;
}

.home-serial {
  position: absolute;
  top: 22px;
  left: 24px;
  color: white;
  font: 8px monospace;
  letter-spacing: .13em;
}

.home-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.home-paths a {
  padding: 24px 3.3vw;
  border-right: 1px solid var(--line);
  text-decoration: none;
  font: 11px Industry;
  letter-spacing: .08em;
}

.home-paths a:hover {
  background: var(--panel);
}

.home-collections {
  padding-top: 58px;
}

.home-collections h2,
.home-story h2 {
  font: 700 clamp(38px, 4.7vw, 64px)/.98 Industry;
  letter-spacing: -.035em;
  margin: 22px 0 34px;
}

.home-collections .collection-tiles {
  margin-bottom: 0;
}

.home-featured {
  padding-block: 35px 55px;
}

.home-featured .shop-heading>a {
  font: 10px Industry;
  text-decoration: none;
}

.home-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--panel);
  margin: 0 3.3vw 55px;
}

.home-story figure {
  margin: 0;
  background: var(--page);
}

.home-story img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 550px;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.home-story>div {
  padding: 50px;
  align-self: center;
}

.home-story h2 {
  white-space: pre-line;
  font-size: clamp(35px, 3.5vw, 54px);
}

.home-story p {
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 25px;
}

.home-preview-note {
  padding: 20px 3.3vw;
  font: 9px/1.6 monospace;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

[data-theme=night] .portal-home-hero {
  min-height: 560px;
  display: block;
  padding: 50px 3.3vw;
  overflow: hidden;
}

[data-theme=night] .portal-home-hero figure {
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: none;
}

[data-theme=night] .portal-home-hero figure img {
  filter: brightness(.3) saturate(.65);
  object-position: center 38%;
}

[data-theme=night] .home-hero-copy {
  max-width: 650px;
}

[data-theme=night] .home-hero-copy p {
  color: #e0dfd2;
}

[data-theme=night] .home-serial {
  left: auto;
  right: 24px;
}

@media(max-width:760px) {

  .portal-home-hero,
  [data-theme=night] .portal-home-hero {
    display: block;
    min-height: 490px;
    padding: 35px 24px 65px;
  }

  .portal-home-hero figure {
    position: absolute;
    inset: 0;
    min-height: 0;
    z-index: -1;
    clip-path: none;
  }

  .portal-home-hero figure img {
    filter: brightness(.32);
  }

  .home-hero-copy {
    color: white;
  }

  .home-hero-copy h1 {
    font-size: 66px;
  }

  .home-hero-copy p {
    color: #e0dfd2;
  }

  .home-serial {
    display: none;
  }

  .home-paths a {
    padding: 18px 12px;
    font-size: 9px;
    line-height: 1.5;
  }

  .home-collections {
    padding-top: 35px;
  }

  .home-collections .collection-tiles {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-story {
    grid-template-columns: 1fr;
    margin-inline: 20px;
  }

  .home-story>div {
    padding: 30px 24px;
  }

  .home-story img {
    max-height: 380px;
    object-position: center 25%;
  }

  .home-featured .shop-heading {
    flex-wrap: wrap;
  }
}

/* Listing density is a mobile-only preference; desktop keeps its normal grid. */
.standalone-pdp h1[tabindex="-1"]:focus {
  /* Route focus announces the product without outlining a noninteractive title. */
  outline: none;
}

#grid-toggle { display: none; }
#grid-toggle [hidden] { display: none; }
@media (max-width: 760px) {
  #grid-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0;
    margin-left: auto;
  }
  #products[data-mobile-columns="1"] { grid-template-columns: minmax(0, 1fr); }
}

.wishlist-grid-toolbar { display: flex; justify-content: flex-end; }

.collection-read-more {
  display: inline-block;
  margin-left: .5em;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.portal-utilities { display: flex; align-items: center; gap: 4px; }
.portal-utilities .header-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.header-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.header-tool .tool-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  padding: 0 3px;
  background: var(--page);
  color: var(--ink);
  font: 9px/16px monospace;
  border-radius: 8px;
  text-align: center;
}
@media(max-width:760px) {
  header nav { gap: 4px; flex-wrap: wrap; }
  .portal-utilities { margin-left: auto; gap: 0; }
  header nav theme-picker { margin-left: 4px; }
}


portal-account-status { display: block; }
.account-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 3.3vw;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 10px/1.5 monospace;
  letter-spacing: .04em;
}
.account-status p { margin: 0; }
portal-account-status[data-state=verified] .account-status { color: var(--ink); }
portal-account-status[data-state=verified] [data-account-message]::before { content: '✓ '; color: var(--accent); }
.account-status-actions { flex-shrink: 0; }
.account-status-actions a, .account-status-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.account-status-actions [hidden] { display: none; }
@media(max-width:760px) {
  .account-status { padding: 8px 20px; font-size: 9px; }
  .account-status-actions a, .account-status-actions button { min-height: 44px; }
}


.price-values { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .25em .45em; }
.price-original { color: var(--muted); font-size: .78em; font-weight: 400; text-decoration-thickness: 1px; }
.price-member { color: var(--ink); }
