:root {
  color-scheme: dark;
  --bg: #0f0f0e;
  --bg-deep: #090908;
  --panel: #171715;
  --panel-2: #1f1d18;
  --text: #e8e4d9;
  --muted: #8c8c84;
  --gold: #c5a059;
  --gold-2: #d7b66d;
  --line: rgba(197, 160, 89, 0.16);
  --line-strong: rgba(197, 160, 89, 0.34);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-deep: #f6f4ef;
  --panel: #ffffff;
  --panel-2: #f8f6f1;
  --text: #11120f;
  --muted: #20231e;
  --gold: #7b6742;
  --gold-2: #9b8657;
  --line: rgba(37, 40, 34, 0.12);
  --line-strong: rgba(92, 83, 57, 0.26);
  --shadow: 0 28px 80px rgba(30, 34, 29, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

html::before {
  content: none;
}

html.is-theme-changing::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  content: "";
  pointer-events: none;
  background: var(--theme-fade-from, var(--bg));
  animation: themeFadeOut 760ms cubic-bezier(0.2, 0.86, 0.2, 1) both;
}

html.is-theme-changing[data-theme-from="dark"]::before {
  background: #0f0f0e;
}

html.is-theme-changing[data-theme-from="light"]::before {
  background: #fbfaf7;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(197, 160, 89, 0.14), transparent 28rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 22rem);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 18% 8%, rgba(123, 103, 66, 0.025), transparent 28rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 22rem);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.scroll-progress {
  position: fixed;
  top: 5.2rem;
  right: 0.85rem;
  bottom: 5rem;
  z-index: 40;
  width: 1px;
  transform: scaleY(0);
  transform-origin: top;
  background: var(--gold);
  opacity: 0.76;
}

.scroll-progress::after {
  position: absolute;
  left: 50%;
  bottom: -0.2rem;
  width: 0.42rem;
  height: 0.42rem;
  content: "";
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0 7vw;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  width: fit-content;
  color: var(--text);
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  color: var(--text);
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.22))
    drop-shadow(0 0 18px rgba(197, 160, 89, 0.2));
  transition:
    color 280ms ease,
    filter 280ms ease,
    transform 280ms ease;
}

.brand:hover .brand-mark {
  color: var(--gold);
  filter:
    drop-shadow(0 0 12px rgba(197, 160, 89, 0.34))
    drop-shadow(0 0 30px rgba(197, 160, 89, 0.18));
  transform: translateY(-1px);
}

.brand-copy {
  display: grid;
  gap: 0.08rem;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.6rem);
}

.topnav a {
  position: relative;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  transition: color 280ms ease;
}

.topnav a::after {
  position: absolute;
  left: 0;
  right: 0.34em;
  bottom: -0.55rem;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms ease;
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--gold);
}

:root[data-theme="light"] .topnav a {
  color: #1c1e1a;
}

:root[data-theme="light"] .topnav a:hover,
:root[data-theme="light"] .topnav a[aria-current="page"] {
  color: #6f5729;
}

/* The source logo artwork is white for the dark palette. In light mode it
   becomes black so it stays clear against the bright navigation and hero. */
:root[data-theme="light"] .brand-mark,
:root[data-theme="light"] .hero-logo {
  filter: brightness(0) saturate(100%)
    drop-shadow(0 1px 3px rgba(255, 255, 255, 0.72));
}

.topnav a:hover::after,
.topnav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.topbar-actions {
  display: flex;
  justify-content: end;
  gap: 0.55rem;
}

.round-action {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 240ms ease,
    color 240ms ease,
    transform 240ms ease,
    background 240ms ease;
}

.round-action:hover {
  border-color: var(--gold);
  background: rgba(197, 160, 89, 0.12);
  color: var(--gold);
  transform: translateY(-1px);
}

.cart-link span {
  position: absolute;
  right: -0.26rem;
  top: -0.28rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--gold);
  color: #0f0f0e;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1rem;
  text-align: center;
}

.cart-link span[hidden] {
  display: none;
}

.cart-icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-shirt-icon {
  display: none;
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-home-icon {
  display: none;
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-home-door {
  fill: none !important;
}

.nav-cart-button {
  display: flex;
}

@media (min-width: 641px) {
  .nav-cart-button {
    display: none;
  }
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.label {
  margin: 0 0 1.25rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: 0;
}

p {
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0 2rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition:
    color 260ms ease,
    background 260ms ease,
    border-color 260ms ease,
    transform 260ms ease,
    box-shadow 260ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold);
  color: #0f0f0e;
}

.button-primary:hover {
  background: var(--gold-2);
  box-shadow: 0 18px 42px rgba(197, 160, 89, 0.18);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button-quiet {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--gold);
}

.button-quiet:hover {
  border-color: var(--gold);
}

.text-link {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 240ms ease;
}

.text-link:hover {
  color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 760ms ease var(--reveal-delay, 0ms),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.storefront {
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: 100svh;
  margin-left: -50vw;
  display: grid;
  place-items: end start;
  overflow: hidden;
  text-align: left;
}

.storefront-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.storefront-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  opacity: 0.52;
  filter: saturate(0.76) contrast(1.05);
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.storefront-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 46%, rgba(15, 15, 14, 0.08) 0 16rem, rgba(15, 15, 14, 0.2) 31rem),
    linear-gradient(180deg, rgba(15, 15, 14, 0.3), rgba(15, 15, 14, 0.26) 48%, var(--bg) 100%),
    linear-gradient(90deg, rgba(15, 15, 14, 0.22), transparent 28%, transparent 72%, rgba(15, 15, 14, 0.22));
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes themeFadeOut {
  from {
    opacity: 0.92;
  }
  to {
    opacity: 0;
  }
}

.storefront-copy {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 2rem));
  padding: 0 0 10vh 7vw;
}

.hero-logo {
  width: clamp(5.4rem, 10vw, 8.4rem);
  height: auto;
  margin: 0 0 1.8rem;
  opacity: 0.9;
  filter:
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.24))
    drop-shadow(0 0 54px rgba(197, 160, 89, 0.28));
  animation: logoFloat 5.8s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.storefront-copy h1 {
  color: var(--text);
  font-size: clamp(3.8rem, 9vw, 8.6rem);
}

.storefront-copy h1 span {
  color: var(--gold);
}

.storefront-copy p:not(.label) {
  width: min(38rem, 100%);
  margin: 1.4rem 0 0;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

/* The daylight home view uses the photo directly, softened only by white. */
:root[data-theme="light"] .storefront-bg img {
  opacity: 1;
  filter: saturate(0.98) contrast(1.01);
}

:root[data-theme="light"] .storefront-bg::after {
  background: linear-gradient(
    180deg,
    rgba(255, 253, 248, 0.04),
    rgba(255, 253, 248, 0.1) 58%,
    var(--bg) 100%
  );
}

:root[data-theme="light"] .storefront-copy {
  isolation: isolate;
}

/* A localized glow keeps the text legible without veiling the photograph. */
:root[data-theme="light"] .storefront-copy::before {
  position: absolute;
  z-index: -1;
  inset: -3rem -5rem;
  content: "";
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 253, 248, 0.72) 0%,
    rgba(255, 253, 248, 0.34) 42%,
    rgba(255, 253, 248, 0) 74%
  );
  filter: blur(10px);
  pointer-events: none;
}

/* Keep the hero kicker readable over the home photograph in the light palette. */
:root[data-theme="light"] .storefront-copy .label {
  color: #3e3216;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .storefront-copy p:not(.label) {
  position: relative;
  isolation: isolate;
  color: #0b0d0a;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
}

:root[data-theme="light"] .storefront-copy p:not(.label)::before {
  position: absolute;
  z-index: -1;
  inset: -0.8rem -1.8rem;
  content: "";
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 253, 248, 0.42),
    rgba(255, 253, 248, 0) 72%
  );
  filter: blur(7px);
  pointer-events: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 3rem;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-divider::before,
.section-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.section-divider::after {
  max-width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 0.48rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  transform: rotate(45deg);
}

.section-head,
.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-head h2,
.catalog-head h1 {
  color: var(--text);
  font-size: clamp(2.3rem, 5.4vw, 4.8rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(1.25rem, 3vw, 2.3rem);
  margin-bottom: 2rem;
}

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

.product-card {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  color: var(--text);
  cursor: pointer;
}

.product-card.is-filtered-out {
  display: none;
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(22rem, 36vw, 29rem);
  overflow: hidden;
  background: #1a1a19;
  isolation: isolate;
}

.product-visual::before {
  position: absolute;
  inset: -20%;
  content: "";
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.18), transparent 13rem),
    radial-gradient(circle at 70% 85%, rgba(197, 160, 89, 0.2), transparent 14rem);
  opacity: 0.7;
  transition: transform 700ms ease;
}

.product-visual::after {
  position: absolute;
  inset: 10%;
  content: "";
  border: 1px solid rgba(232, 228, 217, 0.1);
  transition:
    inset 700ms ease,
    border-color 700ms ease;
}

.product-card:hover .product-visual::before {
  transform: scale(1.08) rotate(2deg);
}

.product-card:hover .product-visual::after {
  inset: 8%;
  border-color: rgba(197, 160, 89, 0.38);
}

.product-visual--chalk {
  background: linear-gradient(135deg, #d8d0bc, #f1eadb);
}

.product-visual--pine {
  background: linear-gradient(135deg, #102f29, #1f564a);
}

.product-visual--canvas {
  background: linear-gradient(135deg, #9f8e6d, #d2bd91);
}

.product-visual--wine {
  background: linear-gradient(135deg, #4f1b2b, #8e4256);
}

.garment {
  position: relative;
  z-index: 1;
  display: block;
  width: 44%;
  height: 58%;
  border-radius: 2rem 2rem 0.7rem 0.7rem;
  background: #f2eee4;
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .garment {
  transform: translateY(-8px) scale(1.03);
}

.garment::before {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 30%;
  height: 17%;
  content: "";
  border: 3px solid rgba(15, 15, 14, 0.15);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.garment::after {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 1.1rem;
  height: 2.4rem;
  content: "";
  background: rgba(197, 160, 89, 0.75);
  transform: translate(-50%, -50%);
  box-shadow: 0 -0.64rem 0 -0.42rem rgba(197, 160, 89, 0.75);
}

.garment--hoodie-road {
  border-radius: 2.3rem 2.3rem 1rem 1rem;
  background: #25483d;
}

.garment--hoodie-road::after {
  top: 57%;
  width: 28%;
  height: 18%;
  border: 2px solid rgba(232, 228, 217, 0.24);
  border-radius: 0.55rem;
  background: transparent;
  box-shadow: none;
}

.garment--longsleeve-light {
  width: 46%;
  height: 61%;
  border-radius: 1.7rem 1.7rem 0.7rem 0.7rem;
  background: #f7f4ec;
}

.garment--longsleeve-light::before {
  width: 34%;
  height: 13%;
}

.garment--longsleeve-light::after {
  top: 53%;
  width: 1rem;
  height: 2.1rem;
  background: rgba(143, 116, 66, 0.72);
  box-shadow: 0 -0.56rem 0 -0.38rem rgba(143, 116, 66, 0.72);
}

.garment--tote-dream {
  width: 40%;
  height: 47%;
  border-radius: 0.35rem;
  background: #f0e4c9;
}

.garment--tote-dream::before {
  top: -22%;
  width: 56%;
  height: 34%;
  border: 4px solid rgba(15, 15, 14, 0.2);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.garment--tote-dream::after {
  width: 1rem;
  height: 2.3rem;
}

.garment--cap-route {
  width: 52%;
  height: 27%;
  margin-top: 9%;
  border-radius: 999px 999px 1.1rem 1.1rem;
  background: #9b4a5f;
}

.garment--cap-route::before {
  left: 78%;
  top: 62%;
  width: 42%;
  height: 35%;
  border: 0;
  border-radius: 999px;
  background: rgba(232, 228, 217, 0.3);
}

.garment--cap-route::after {
  top: 46%;
  width: 0.7rem;
  height: 1.2rem;
}

.product-info,
.product-buy {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.product-info {
  margin-top: 1rem;
}

.product-info h2 {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.25;
  text-transform: uppercase;
}

.product-kind,
.product-info p {
  display: none;
}

.product-buy {
  align-items: center;
  margin-top: auto;
  padding-top: 0.85rem;
}

.product-buy strong {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.product-buy .button {
  min-height: 2.55rem;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(8px);
}

.product-card:hover .product-buy .button,
.product-buy .button:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.size-chip {
  min-width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  transition:
    border-color 220ms ease,
    color 220ms ease,
    background 220ms ease;
}

.size-chip:hover,
.size-chip.is-active {
  border-color: var(--gold);
  background: rgba(197, 160, 89, 0.08);
  color: var(--gold);
}

.one-size {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-top: clamp(8rem, 14vw, 12rem);
}

.product-detail-gallery {
  display: grid;
  gap: 1rem;
}

.product-detail-gallery .product-visual {
  width: min(100%, 34rem);
  min-height: 0;
  aspect-ratio: 2 / 3;
  justify-self: start;
  touch-action: pan-y;
}

.gallery-count {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 3;
  border: 1px solid color-mix(in srgb, var(--text) 26%, transparent);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  color: var(--text);
  padding: 0.32rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.product-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--panel);
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card .product-visual:has(.product-photo) {
  min-height: 0;
  aspect-ratio: 2 / 3;
}

.product-card:hover .product-photo,
.product-detail-gallery:hover .product-photo {
  transform: scale(1.018);
}

.variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 0.8rem;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.variant-chip:hover,
.variant-chip.is-active {
  border-color: var(--gold);
  background: rgba(197, 160, 89, 0.08);
  color: var(--text);
}

.variant-chip__dot {
  width: 0.78rem;
  height: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.variant-chip__dot--white {
  background: #f7f3e9;
}

.variant-chip__dot--graphite {
  background: #403b40;
}

.variant-chip__dot--banana {
  background: #e7d163;
}

.variant-chip__dot--light-grey {
  background: #c9c9c4;
}

.variant-chip__dot--burgundy {
  background: #6f2638;
}

.product-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.product-thumb {
  position: relative;
  overflow: hidden;
  width: 4.4rem;
  height: 4.4rem;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.product-thumb span {
  display: block;
  width: 100%;
  height: 100%;
}

.product-thumb img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb b {
  position: absolute;
  right: 0.35rem;
  bottom: 0.25rem;
  z-index: 2;
  color: var(--text);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.product-thumb.is-active {
  border-color: var(--gold);
}

.product-thumb.is-pending {
  border-style: dashed;
  cursor: default;
  opacity: 0.38;
}

.product-detail-copy {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1.2rem;
}

.product-detail-copy h1 {
  color: var(--text);
  font-size: clamp(3rem, 6.4vw, 6rem);
}

.product-detail-copy p:not(.label) {
  color: color-mix(in srgb, var(--text) 76%, transparent);
  font-size: 1.08rem;
}

.product-detail-price {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 500;
}

.product-detail-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-detail-list li {
  border: 1px solid var(--line);
  padding: 0.8rem 1rem;
  color: var(--muted);
}

.quantity-stepper {
  display: inline-grid;
  grid-template-columns: 3.1rem minmax(3rem, 1fr) 3.1rem;
  align-items: center;
  width: min(17rem, 100%);
  min-height: 3.1rem;
  border: 1px solid var(--line-strong);
}

.quantity-stepper button {
  width: 100%;
  height: 100%;
  min-height: 3.1rem;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 1.2rem;
}

.quantity-stepper strong {
  display: grid;
  place-items: center;
  height: 100%;
  border-inline: 1px solid var(--line);
  color: var(--text);
}

.quantity-stepper--cart {
  width: 8.4rem;
  grid-template-columns: 2.4rem minmax(2rem, 1fr) 2.4rem;
  min-height: 2.4rem;
}

.quantity-stepper--cart button {
  min-height: 2.4rem;
}

.mission-band {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.mission-band h2 {
  color: var(--text);
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 1.12;
}

.mission-band p {
  color: color-mix(in srgb, var(--text) 76%, transparent);
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
}

.site-footer {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(2rem, 5vw, 4rem);
}

.site-footer h2 {
  color: color-mix(in srgb, var(--text) 7%, transparent);
  font-size: clamp(4.8rem, 13vw, 13rem);
  line-height: 0.86;
  text-transform: uppercase;
  user-select: none;
}

.site-footer span {
  color: color-mix(in srgb, var(--gold) 14%, transparent);
}

.about-hero,
.catalog-head,
.cart-page {
  padding-top: clamp(8rem, 14vw, 12rem);
}

.cart-page {
  padding-top: clamp(5rem, 7vw, 7rem);
}

@media (min-width: 641px) {
  .cart-page {
    gap: 1.25rem;
    padding-top: 1rem;
  }
}

.about-hero {
  width: min(820px, 100%);
  margin: 0 auto;
}

.about-hero h1 {
  color: var(--text);
  font-size: clamp(3.5rem, 7.5vw, 6.8rem);
}

.about-hero h1::after {
  display: block;
  width: 4rem;
  height: 1px;
  margin-top: 2rem;
  content: "";
  background: var(--gold);
}

.story-layout {
  width: min(760px, 100%);
  margin: 0 auto;
}

.story-flow {
  display: grid;
  gap: clamp(2rem, 5vw, 3.4rem);
}

.story-flow p {
  color: color-mix(in srgb, var(--text) 78%, transparent);
  font-size: clamp(1.08rem, 1.65vw, 1.28rem);
}

.story-image {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  filter: saturate(0.86) contrast(1.04);
}

.process-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.process-band article {
  min-height: 14rem;
  padding: 1.5rem;
  background: var(--bg);
  transition:
    background 280ms ease,
    transform 280ms ease;
}

.process-band article:hover {
  background: rgba(197, 160, 89, 0.06);
  transform: translateY(-4px);
}

.process-band span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.26em;
}

.process-band h3 {
  margin-top: 2.4rem;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1.1;
}

.process-band p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.quote-strip {
  display: grid;
  justify-items: center;
  gap: 2rem;
  width: min(780px, 100%);
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  text-align: center;
}

.quote-strip p {
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.32;
}

.catalog-head {
  align-items: start;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.filter-chip {
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  padding: 0 1rem;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition:
    border-color 260ms ease,
    color 260ms ease,
    background 260ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--gold);
  background: rgba(197, 160, 89, 0.08);
  color: var(--gold);
}

.mobile-filter-toggle {
  display: none;
}

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.6rem, 3.2vw, 2.8rem);
  align-items: start;
  min-height: calc(100svh - 4.25rem);
  padding-bottom: clamp(5rem, 11vw, 9rem);
}

.cart-maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(9, 9, 8, 0.94);
  text-align: center;
}

.cart-maintenance-card {
  width: min(42rem, 100%);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(197, 160, 89, 0.12), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.cart-maintenance-card .label {
  margin-bottom: 1rem;
}

.cart-maintenance-card h1 {
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.cart-maintenance-note {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.cart-copy {
  display: grid;
  gap: 0.8rem;
  width: min(34rem, 100%);
}

.cart-copy .label {
  margin-bottom: 0;
}

.cart-copy h1 {
  max-width: 18ch;
  color: var(--text);
  font-size: clamp(1.9rem, 3vw, 3.05rem);
  line-height: 1.02;
}

.cart-copy p:not(.label) {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.cart-board {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow);
}

.cart-list-panel {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.cart-order-panel {
  min-width: 0;
  background: rgba(255, 255, 255, 0.018);
}

body[data-page="cart"] .site-footer {
  margin-top: clamp(2rem, 7vw, 5rem);
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-item-link {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.cart-item-link:hover strong,
.cart-item-link:focus-visible strong {
  color: var(--gold);
}

.cart-item-link:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 0.35rem;
}

.cart-row-image {
  display: block;
  width: 4.6rem;
  height: 4.6rem;
  aspect-ratio: 1;
  box-sizing: border-box;
  border-radius: 0.25rem;
  background: var(--panel);
  object-fit: fill !important;
  object-position: center;
}

.cart-row strong {
  color: var(--text);
}

.cart-row span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-row b {
  color: var(--gold);
  white-space: nowrap;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.cart-total span {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-total strong {
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 500;
}

.checkout-form {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.checkout-head { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; }
.checkout-kicker { margin:0 0 .35rem; color:var(--gold); font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; }
.checkout-title { display:block; margin:0; }
.account-chip { display:flex; align-items:center; gap:.45rem; border:1px solid var(--line); border-radius:99px; padding:.35rem .65rem .35rem .35rem; background:transparent; color:var(--text); font-size:.72rem; cursor:pointer; }
.account-avatar { display:grid; place-items:center; width:1.65rem; height:1.65rem; border-radius:50%; background:var(--gold); color:#171512; font-weight:700; }
.checkout-steps { display:flex; align-items:center; gap:.55rem; color:var(--muted); font-size:.66rem; letter-spacing:.12em; }
.checkout-steps span.is-active { color:var(--text); }
.checkout-steps i { width:1.6rem; border-top:1px solid var(--line); }
.fulfillment-switch { display:grid; grid-template-columns:1fr 1fr; gap:.2rem; padding:.22rem; border:1px solid var(--line); border-radius:.75rem; background:rgba(255,255,255,.025); }
.fulfillment-switch button { min-height:2.35rem; border:0; border-radius:.55rem; background:transparent; color:var(--muted); cursor:pointer; font-size:.76rem; }
.fulfillment-switch button.is-active { background:var(--gold); color:#171512; font-weight:700; }
.checkout-fields { display:grid; grid-template-columns:1fr 1fr; gap:.85rem; }
.field-wide { grid-column:1 / -1; }
.pay-method { display:flex; justify-content:space-between; align-items:center; border:1px solid rgba(197,160,89,.62); border-radius:.7rem; padding:.8rem; background:rgba(197,160,89,.08); }
.pay-method-copy { display:flex; align-items:center; gap:.7rem; }
.pay-method-copy strong,.pay-method-copy small { display:block; }
.pay-method-copy strong { color:var(--text); font-size:.82rem; }
.pay-method-copy small { margin-top:.2rem; color:var(--muted); font-size:.72rem; }
.tbank-mark { display:grid; place-items:center; width:2rem; height:2rem; border-radius:.55rem; background:#ffdd2d; color:#171512; font-weight:900; font-size:1.2rem; }
.pay-check { color:var(--gold); font-weight:800; }
.checkout-submit { display:flex; justify-content:space-between; align-items:center; }
.checkout-submit b { font-weight:500; }
.checkout-safe { margin:0; color:var(--muted); font-size:.68rem; text-align:center; }
.account-panel { position:relative; display:grid; gap:1rem; padding:1.3rem; border-top:1px solid var(--line); background:linear-gradient(145deg,rgba(197,160,89,.1),transparent); }
.account-panel[hidden] { display:none; }
.account-panel h2 { margin:0; color:var(--text); font-size:1.35rem; line-height:1.08; }
.account-panel label { display:grid; gap:.4rem; color:var(--muted); font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; }
.account-panel small { color:var(--muted); font-size:.7rem; }
.account-close { position:absolute; top:.8rem; right:1rem; border:0; background:transparent; color:var(--muted); font-size:1.5rem; cursor:pointer; }

/* Desktop cart pass: keep the summary and complete checkout visible together. */
@media (min-width: 900px) and (max-height: 850px) {
  body[data-page="cart"] .cart-page { grid-template-columns:minmax(14rem,.48fr) minmax(0,1.52fr); gap:.6rem; min-height:auto; padding-top:1rem; padding-bottom:2.5rem; }
  body[data-page="cart"] .cart-copy { align-self:start; padding-top:1.1rem; }
  body[data-page="cart"] .cart-copy h1 { font-size:clamp(1.8rem,2.5vw,2.5rem); }
  body[data-page="cart"] .cart-copy p:not(.label) { margin-top:.8rem; font-size:.9rem; }
  body[data-page="cart"] .cart-board { grid-column:2; grid-row:1; }
  body[data-page="cart"] .cart-row { padding:.7rem; gap:.7rem; }
  body[data-page="cart"] .cart-item-link { grid-template-columns:3.7rem minmax(0,1fr); gap:.7rem; }
  body[data-page="cart"] .cart-row-image { width:3.7rem; height:3.7rem; }
  body[data-page="cart"] .cart-total { padding:.85rem 1rem; }
  body[data-page="cart"] .cart-total strong { font-size:1.5rem; }
  body[data-page="cart"] .checkout-form { gap:.65rem; padding:.95rem 1rem; }
  body[data-page="cart"] .checkout-fields { gap:.55rem .7rem; }
  body[data-page="cart"] .checkout-form input, body[data-page="cart"] .checkout-form select { min-height:2.55rem; }
  body[data-page="cart"] .checkout-form label { gap:.25rem; font-size:.67rem; }
  body[data-page="cart"] .fulfillment-switch button { min-height:2rem; }
  body[data-page="cart"] .pay-method { padding:.6rem .7rem; }
  body[data-page="cart"] .checkout-safe { font-size:.62rem; }
}

.checkout-title {
  display: none;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.1;
}

.checkout-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-form [hidden] { display: none !important; }

input {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0 0.9rem;
  transition: border-color 240ms ease;
}

input:focus {
  border-color: var(--gold);
  outline: none;
}

select { width:100%; min-height:3.1rem; border:1px solid var(--line); border-radius:0; background:rgba(255,255,255,.03); color:var(--text); padding:0 .9rem; }
select:focus { border-color:var(--gold); outline:none; }

.order-status {
  min-height: 1.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.order-status[data-status="success"] {
  color: var(--gold);
}

.order-status[data-status="error"] {
  color: #d77962;
}

.pickup-confirmation {
  display: grid;
  align-content: center;
  gap: 1rem;
  min-height: 23rem;
  padding: 2rem;
}

.pickup-confirmation[hidden] {
  display: none;
}

.pickup-confirmation h2 {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.pickup-confirmation > p:not(.checkout-kicker) {
  max-width: 28rem;
  color: var(--muted);
}

.pickup-confirmation .button {
  width: fit-content;
  margin-top: 0.5rem;
}

.empty-cart {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

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

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

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 1rem;
  }

  .topnav {
    grid-column: 1 / -1;
    justify-content: center;
    order: 3;
    min-height: 3.2rem;
    border-top: 1px solid var(--line);
  }

  .scroll-progress {
    display: none;
  }

  .storefront-copy {
    padding-top: 7rem;
  }

  .section-head,
  .catalog-head,
  .mission-band,
  .cart-page {
    grid-template-columns: 1fr;
  }

  .cart-copy,
  .cart-board {
    grid-template-columns: 1fr;
  }

  .cart-list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cart-page {
    align-items: start;
    min-height: auto;
  }

  .product-grid,
  .product-grid--featured,
  .process-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    padding-top: 7.5rem;
  }

  .product-detail-gallery .product-visual {
    width: min(100%, 38rem);
    justify-self: center;
  }

  .product-detail-copy {
    position: static;
  }

  .mission-band {
    text-align: left;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 1rem, 1180px);
  }

  .topbar {
    min-height: 4rem;
    padding-top: max(0.6rem, env(safe-area-inset-top));
    padding-bottom: 0.3rem;
  }

  .brand {
    gap: 0.56rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .brand-copy {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .brand-copy span:last-child {
    display: none;
  }

  .topnav {
    gap: 0;
  }

  .topnav a {
    flex: 1;
    text-align: center;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }

  .storefront {
    min-height: 92svh;
  }

  .storefront-bg::after {
    background:
      linear-gradient(180deg, rgba(15, 15, 14, 0.16), rgba(15, 15, 14, 0.22) 44%, var(--bg) 100%),
      linear-gradient(90deg, rgba(15, 15, 14, 0.46), transparent 45%, rgba(15, 15, 14, 0.46));
  }

  :root[data-theme="light"] .storefront-bg::after {
    background: linear-gradient(
      180deg,
      rgba(255, 253, 248, 0.04),
      rgba(255, 253, 248, 0.1) 58%,
      var(--bg) 100%
    );
  }

  .storefront-copy h1 {
    font-size: 3.45rem;
  }

  .hero-actions,
  .drop-note,
  .section-head,
  .catalog-head {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .hero-actions .button,
  .quote-strip .button {
    width: 100%;
  }

  .product-grid,
  .product-grid--featured,
  .process-band {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 23rem;
  }

  .product-detail-gallery .product-visual,
  .product-card .product-visual:has(.product-photo) {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .product-detail-page {
    gap: 1.25rem;
    padding-top: 7rem;
  }

  .product-detail-gallery {
    gap: 0.65rem;
  }

  .product-thumbs {
    gap: 0.45rem;
    padding: 0 0.15rem 0.2rem;
    scroll-snap-type: x mandatory;
  }

  .product-thumb {
    width: 3.65rem;
    height: 3.65rem;
    scroll-snap-align: start;
  }

  .product-detail-copy {
    gap: 0.9rem;
  }

  .product-detail-copy h1 {
    font-size: clamp(2.45rem, 13vw, 3.6rem);
    line-height: 0.96;
  }

  .product-detail-copy p:not(.label) {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .product-detail-price {
    font-size: 1.45rem;
  }

  .variant-row,
  .size-row {
    gap: 0.4rem;
  }

  .gallery-count {
    right: 0.6rem;
    bottom: 0.6rem;
  }

  .product-buy .button {
    opacity: 1;
    transform: none;
  }

  .product-buy {
    display: grid;
  }

  .filter-bar {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .about-hero,
  .catalog-head,
  .cart-page {
    padding-top: 9rem;
  }

  .about-hero h1,
  .cart-copy h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .cart-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cart-item-link {
    grid-template-columns: 3.9rem minmax(0, 1fr);
  }

  .cart-row-image {
    width: 3.9rem;
    height: 3.9rem;
  }

  .cart-row b {
    grid-column: 2;
  }

  .cart-row .round-action {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* Phone-first app shell. These overrides intentionally leave desktop layouts unchanged. */
@media (max-width: 640px) {
  html {
    background: var(--bg);
  }

  body {
    min-width: 0;
    overflow-x: hidden;
    padding-bottom: calc(5.35rem + env(safe-area-inset-bottom));
  }

  main {
    width: 100%;
    padding-inline: 1rem;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 4.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: calc(env(safe-area-inset-top) + 0.5rem) 1rem 0.5rem;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .brand-copy {
    display: none;
  }

  .brand-mark {
    width: 2.35rem;
    height: 2.35rem;
  }

  .topbar-actions {
    gap: 0.45rem;
  }

  .round-action {
    min-width: 2.5rem;
    min-height: 2.5rem;
    border-radius: 999px;
  }

  .topnav {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0.35rem 1rem calc(0.35rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--panel) 96%, transparent);
    border-top: 1px solid var(--line);
    box-shadow: 0 -0.75rem 2rem rgb(0 0 0 / 8%);
    backdrop-filter: blur(18px);
  }

  .topnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 3.45rem;
    gap: 0.16rem;
    border-radius: 0.85rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .topnav a::before {
    font-size: 1.15rem;
    line-height: 1;
  }

  .topnav a:nth-child(1)::before { content: none; }
  .topnav a:nth-child(2)::before { content: "▦"; }
  .topnav a:nth-child(3)::before { content: "✦"; }
  .topnav a:nth-child(4)::before { content: none; }

  .topnav a:nth-child(3)::before {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 800;
    opacity: 1;
    text-shadow: 0 0 0.7rem rgba(255, 255, 255, 0.38);
  }

  .topnav a:nth-child(3)[aria-current="page"]::before {
    color: var(--gold-2);
  }

  .topnav a::before {
    font-size: 1.9rem;
    font-weight: 800;
    text-shadow: 0 0 0.7rem rgba(255, 255, 255, 0.38);
  }

  .topnav a:nth-child(1)::before {
    font-size: 2.05rem;
    font-weight: 900;
    text-shadow: 0 0 0.85rem rgba(255, 255, 255, 0.5);
  }

  .topnav a .nav-shirt-icon {
    color: #ffffff;
    filter: drop-shadow(0 0 0.45rem rgba(255, 255, 255, 0.32));
  }

  .topnav a .nav-cart-symbol {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    fill: none;
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    filter: drop-shadow(0 0 0.45rem rgba(255, 255, 255, 0.32));
  }

  .topnav a[aria-current="page"]::before,
  .topnav a[aria-current="page"] .nav-shirt-icon,
  .topnav a[aria-current="page"] .nav-cart-symbol {
    color: var(--gold-2);
    stroke: var(--gold-2);
    filter: drop-shadow(0 0 0.55rem rgba(214, 173, 99, 0.4));
  }

  .topnav a[aria-current="page"] .nav-home-icon {
    stroke: var(--gold-2);
    filter: drop-shadow(0 0 0.55rem rgba(214, 173, 99, 0.4));
  }

  .nav-cart-button {
    display: flex;
    color: var(--gold);
  }

  .nav-cart-button[aria-current="page"] {
    background: rgba(214, 173, 99, 0.12);
  }

  .nav-cart-symbol {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
  }

  .topnav a:nth-child(2)::before {
    content: none;
  }

  .topnav a:nth-child(2) .nav-shirt-icon {
    display: block;
    width: 1.55rem;
    height: 1.55rem;
  }

  .topnav a:nth-child(1) .nav-home-icon {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    color: #ffffff;
    filter: drop-shadow(0 0 0.45rem rgba(255, 255, 255, 0.32));
  }

  .topnav a[aria-current="page"] {
    color: var(--text);
    background: color-mix(in srgb, var(--gold) 16%, transparent);
  }

  .site-footer,
  body[data-page="home"] .section-divider,
  body[data-page="home"] .section-head,
  body[data-page="home"] .product-grid--featured {
    display: none;
  }

  .storefront {
    min-height: calc(100svh - 4.5rem);
    margin-inline: -1rem;
    border: 0;
  }

  .storefront-copy {
    width: 100%;
    padding: clamp(5.5rem, 19svh, 9rem) 1.35rem 2rem;
    text-align: left;
  }

  .storefront-copy::before {
    inset: -2rem -1rem;
  }

  .hero-logo {
    width: 5.5rem;
    margin: 0 0 1.25rem;
  }

  .storefront-copy .label,
  .storefront-copy p:not(.label) {
    display: none;
  }

  .storefront-copy h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 14vw, 4.25rem);
    line-height: 0.93;
    text-align: left;
  }

  .hero-actions {
    display: flex;
    width: 100%;
    margin-top: 1.5rem;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .catalog-head {
    display: block;
    padding-top: 1.3rem;
    margin-bottom: 1rem;
  }

  .catalog-head .label {
    display: none;
  }

  .catalog-head h1 {
    font-size: 2rem;
    line-height: 1;
  }

  .filter-bar {
    width: calc(100% + 2rem);
    margin: 1rem -1rem;
    padding: 0 1rem 0.4rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    min-height: 2.35rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 0.75rem;
  }

  .product-card {
    gap: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .product-card .product-visual:has(.product-photo) {
    aspect-ratio: 3 / 4;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--panel);
  }

  .product-card .product-visual::before,
  .product-card .product-visual::after {
    display: none;
  }

  .product-card .product-photo {
    object-fit: cover;
  }

  .product-info {
    gap: 0.18rem;
    margin-top: 0.65rem;
    padding: 0;
  }

  .product-info .product-kind,
  .product-info p {
    display: none;
  }

  .product-info h2 {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .product-buy {
    display: flex;
    align-items: center;
    margin-top: 0.25rem;
    padding: 0;
  }

  .product-buy strong {
    font-size: 0.9rem;
  }

  .product-buy .button {
    display: none;
  }

  .product-detail-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
  }

  .product-detail-gallery {
    order: 0;
    width: calc(100% + 2rem);
    margin: 0 -1rem;
    gap: 0.65rem;
  }

  .product-detail-gallery .product-visual {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-inline: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .product-detail-gallery .product-photo {
    object-fit: cover;
  }

  .product-thumbs {
    padding: 0 1rem 0.25rem;
    gap: 0.45rem;
  }

  .product-thumb {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 0.65rem;
  }

  .product-detail-copy {
    order: 1;
    position: static;
    gap: 0.85rem;
    padding-bottom: 0.5rem;
  }

  .product-detail-copy .label {
    font-size: 0.62rem;
  }

  .product-detail-copy h1 {
    font-size: 2.35rem;
    line-height: 0.96;
  }

  .product-detail-copy p:not(.label) {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .product-detail-price {
    font-size: 1.35rem;
  }

  .variant-row,
  .size-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .variant-row::-webkit-scrollbar,
  .size-row::-webkit-scrollbar {
    display: none;
  }

  .variant-chip {
    flex: 0 0 auto;
    min-height: 2.3rem;
    padding: 0 0.75rem;
  }

  .size-chip {
    flex: 0 0 auto;
    min-width: 2.65rem;
    min-height: 2.65rem;
  }

  .product-detail-list {
    display: none;
  }

  [data-product-controls] .button {
    width: 100%;
    min-height: 3.35rem;
  }

  .quantity-stepper,
  .quantity-stepper button {
    min-height: 3.35rem;
  }

  .quantity-stepper {
    width: 100%;
  }

  .about-hero,
  .cart-page {
    padding-top: 1.3rem;
  }

  .about-hero {
    width: 100%;
    text-align: center;
  }

  .about-hero .label {
    display: none;
  }

  .about-hero h1 {
    max-width: 11ch;
    margin-inline: auto;
    font-size: clamp(3rem, 13vw, 4.2rem);
    line-height: 0.98;
  }

  .about-hero h1::after {
    margin-inline: auto;
    margin-top: 1.25rem;
  }

  .story-layout {
    width: 100%;
  }

  .story-flow {
    gap: 1.25rem;
  }

  .story-flow p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .story-image {
    border-radius: 1.1rem;
  }

  .story-image img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .process-band {
    display: none;
  }

  body[data-page="about"] .quote-strip {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--line);
  }

  body[data-page="about"] .quote-strip .button {
    width: 100%;
  }

  body[data-page="home"] .quote-strip {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--line);
  }

  body[data-page="home"] .quote-strip p {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
  }

  body[data-page="home"] .quote-strip .button {
    width: 100%;
  }

  .cart-page {
    display: block;
    min-height: auto;
    padding-bottom: 1rem;
  }

  .cart-copy {
    width: 100%;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
  }

  .cart-copy .label,
  .cart-copy p:not(.label) {
    display: none;
  }

  .cart-copy h1 {
    font-size: 2rem;
  }

  .cart-board {
    grid-template-columns: 1fr;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .cart-list-panel {
    border: 0;
  }

  .cart-order-panel {
    margin-top: 1rem;
    border: 1px solid var(--line);
    background: var(--panel);
  }

  .cart-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .cart-item-link {
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .cart-row-image {
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 0.75rem;
  }

  .cart-row > b {
    grid-column: 2;
    grid-row: 1;
  }

  .cart-row .quantity-stepper {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }

  .cart-total {
    padding: 1rem;
  }

  .cart-total strong {
    font-size: 1.45rem;
  }

  .checkout-form {
    padding: 1rem;
  }
}

/* Compact mobile pass: preserve comfortable tap targets while reducing dead space. */
@media (max-width: 640px) {
  body {
    padding-bottom: calc(4.45rem + env(safe-area-inset-bottom));
  }

  main {
    padding-inline: 0.75rem;
  }

  .topbar {
    min-height: 3.8rem;
    padding-inline: 0.75rem;
    padding-bottom: 0.35rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .round-action {
    min-width: 2.3rem;
    min-height: 2.3rem;
  }

  .topnav {
    padding-inline: 0.75rem;
  }

  .topnav a {
    min-height: 2.85rem;
    gap: 0.08rem;
  }

  .topnav a::before {
    font-size: 1rem;
  }

  .storefront {
    left: auto;
    width: calc(100% + 1.5rem);
    min-height: calc(100svh - 3.8rem);
    margin-inline: -0.75rem;
  }

  .storefront-copy {
    padding: clamp(4rem, 13svh, 6.5rem) 1rem 1.5rem;
  }

  .hero-logo {
    width: 4.5rem;
    margin-bottom: 0.85rem;
  }

  .storefront-copy h1 {
    font-size: clamp(2.7rem, 13vw, 3.8rem);
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .catalog-head,
  .about-hero,
  .cart-page {
    padding-top: 1rem;
  }

  .catalog-head {
    margin-bottom: 0.65rem;
  }

  .catalog-head h1,
  .about-hero h1,
  .cart-copy h1 {
    font-size: 2rem;
  }

  .filter-bar {
    margin-block: 0.65rem;
    padding-bottom: 0.2rem;
  }

  .filter-chip {
    min-height: 2.15rem;
  }

  .product-grid {
    gap: 0.8rem 0.55rem;
  }

  .product-card .product-visual:has(.product-photo) {
    aspect-ratio: 4 / 5;
    border-radius: 0.75rem;
  }

  .product-info {
    margin-top: 0.45rem;
  }

  .product-info h2 {
    font-size: 0.72rem;
  }

  .product-buy {
    margin-top: 0.15rem;
  }

  .product-buy strong {
    font-size: 0.8rem;
  }

  .product-detail-page {
    gap: 0.75rem;
    padding-top: 0.75rem;
  }

  .product-detail-gallery {
    gap: 0.45rem;
  }

  .product-detail-gallery .product-visual {
    aspect-ratio: 4 / 5;
  }

  .product-thumbs {
    gap: 0.35rem;
  }

  .product-thumb {
    width: 3.1rem;
    height: 3.1rem;
  }

  .product-detail-copy {
    gap: 0.65rem;
  }

  .product-detail-copy h1 {
    font-size: 2.1rem;
  }

  .product-detail-copy p:not(.label) {
    font-size: 0.88rem;
  }

  .product-detail-price {
    font-size: 1.2rem;
  }

  .size-chip,
  .variant-chip {
    min-height: 2.35rem;
  }

  .story-flow {
    gap: 0.9rem;
  }

  .story-flow p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .story-image img {
    aspect-ratio: 16 / 10;
  }

  .cart-copy {
    margin-bottom: 0.8rem;
  }

  .cart-row {
    gap: 0.55rem;
    padding: 0.6rem 0;
  }

  .cart-item-link {
    grid-template-columns: 3.6rem minmax(0, 1fr);
    gap: 0.55rem;
  }

  .cart-row-image {
    width: 3.6rem;
    height: 3.6rem;
  }

  .cart-row span {
    font-size: 0.72rem;
  }

  .cart-row .quantity-stepper,
  .quantity-stepper,
  .quantity-stepper button {
    min-height: 2.8rem;
  }

  .cart-order-panel {
    margin-top: 0.75rem;
  }

  .cart-total,
  .checkout-form {
    padding: 0.8rem;
  }

  .cart-total strong {
    font-size: 1.25rem;
  }
}

/* Keep every mobile surface inside the viewport; controls wrap instead of scrolling sideways. */
@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .filter-bar {
    width: 100%;
    margin-inline: 0;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.35rem;
  }

  .filter-chip {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }

  .product-thumbs {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .variant-row,
  .size-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .variant-chip {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }

  .size-chip {
    flex: 0 0 auto;
  }

  input,
  textarea,
  select,
  button,
  .button {
    max-width: 100%;
  }
}

/* Stronger, more legible About page typography. */
body[data-page="about"] .story-flow p {
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  font-weight: 650;
  line-height: 1.5;
}

body[data-page="about"] .process-band article p {
  font-weight: 700;
}

body[data-page="about"] .process-band article p {
  font-size: 1rem;
  line-height: 1.45;
}

body[data-page="about"] .quote-strip p {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.4;
}

@media (min-width: 641px) {
  body[data-page="catalog"] .catalog-head {
    padding-top: clamp(5rem, 8vw, 7rem);
  }

  body[data-page="product"] .product-detail-page {
    padding-top: clamp(5rem, 8vw, 7rem);
  }
}

@media (max-width: 640px) {
  body[data-page="about"] .story-flow p {
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.48;
  }
}

/* Final mobile app polish */
@media (max-width: 640px) {
  :root {
    --bg: #101310;
    --bg-deep: #0b0d0b;
    --panel: #191d18;
    --panel-2: #232920;
    --text: #f3efe4;
    --muted: #a9ad9f;
    --gold: #d6ad63;
    --gold-2: #e4c17c;
    --line: rgba(224, 194, 125, 0.14);
    --line-strong: rgba(224, 194, 125, 0.3);
  }

  body {
    background:
      radial-gradient(circle at 88% 0%, rgba(214, 173, 99, 0.12), transparent 15rem),
      linear-gradient(180deg, var(--bg-deep), var(--bg) 24rem);
  }

  .topbar {
    position: fixed;
    min-height: 4.25rem;
    padding-top: max(0.55rem, env(safe-area-inset-top));
    background: rgba(11, 13, 11, 0.84);
    border-bottom-color: rgba(224, 194, 125, 0.1);
  }

  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  .topbar-actions .round-action:first-child {
    display: none;
  }

  .cart-link {
    width: 2.65rem;
    height: 2.65rem;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1rem;
  }

  .topnav {
    padding: 0.45rem 0.7rem calc(0.45rem + env(safe-area-inset-bottom));
    background: rgba(22, 26, 21, 0.94);
    border-top-color: rgba(224, 194, 125, 0.12);
    box-shadow: 0 -1rem 2rem rgba(0, 0, 0, 0.22);
  }

  .topnav a {
    color: #899082;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .topnav a::before {
    color: currentColor;
    opacity: 0.9;
  }

  .topnav a[aria-current="page"] {
    color: var(--gold);
    background: rgba(214, 173, 99, 0.12);
  }

  main {
    padding-inline: 1rem;
  }

  .storefront {
    width: calc(100% + 2rem);
    min-height: 100svh;
    margin-inline: -1rem;
    place-items: end start;
  }

  .storefront-bg img {
    object-position: 62% center;
    opacity: 0.66;
    filter: saturate(0.7) contrast(1.08);
  }

  .storefront-bg::after {
    background:
      linear-gradient(180deg, rgba(11, 13, 11, 0.1), rgba(11, 13, 11, 0.3) 42%, var(--bg) 91%),
      linear-gradient(90deg, rgba(11, 13, 11, 0.56), transparent 80%);
  }

  .storefront-copy {
    width: min(25rem, 100%);
    padding: 0 1.25rem 6.75rem;
  }

  .hero-logo {
    width: 4.65rem;
    margin-bottom: 1.4rem;
  }

  .storefront-copy .label,
  .storefront-copy p:not(.label) {
    display: block;
  }

  .storefront-copy .label {
    margin-bottom: 0.9rem;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }

  .storefront-copy h1 {
    max-width: 8ch;
    font-size: clamp(3.05rem, 15vw, 4.4rem);
    line-height: 0.9;
  }

  .storefront-copy p:not(.label) {
    max-width: 18rem;
    margin-top: 1.2rem;
    color: rgba(243, 239, 228, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 0.65rem;
    margin-top: 1.65rem;
  }

  .hero-actions .button {
    width: auto;
    min-height: 3.45rem;
    border-radius: 0.95rem;
  }

  .hero-actions .button-primary {
    flex: 1.3;
  }

  .hero-actions .button-quiet {
    flex: 0.7;
  }

  body[data-page="home"] .section-divider,
  body[data-page="home"] .section-head,
  body[data-page="home"] .product-grid--featured,
  body[data-page="home"] .mission-band,
  .site-footer {
    display: none;
  }

  .catalog-head,
  .about-hero,
  .cart-page {
    padding-top: 5.55rem;
  }

  .catalog-head h1,
  .about-hero h1,
  .cart-copy h1 {
    font-size: 2.35rem;
    letter-spacing: -0.04em;
  }

  .catalog-head {
    margin-bottom: 1rem;
  }

  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding-inline: 0;
    width: 100%;
    min-height: 3rem;
    margin-top: 1rem;
    padding: 0 0.95rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .mobile-filter-toggle__icon {
    display: none !important;
  }

  .mobile-filter-toggle__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(214, 173, 99, 0.14);
    color: var(--gold);
    font-size: 0;
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .mobile-filter-toggle__icon::before,
  .mobile-filter-toggle__icon::after {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.68rem;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: var(--gold);
    transform: translate(-50%, -50%);
  }

  .mobile-filter-toggle__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .mobile-filter-toggle b {
    color: var(--gold);
    font-weight: 800;
  }

.mobile-filter-toggle[aria-expanded="true"] .mobile-filter-toggle__icon {
    transform: none !important;
  }

  body[data-page="about"] .story-flow p {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  body[data-page="about"] .about-hero {
    padding-top: 6.5rem;
  }

  body[data-page="catalog"] .catalog-head {
    text-align: center;
  }

  body[data-page="catalog"] .catalog-head h1 {
    margin-inline: auto;
  }

  .filter-bar {
    display: none;
    width: 100%;
    margin: 0.65rem 0 0;
    padding: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.025);
  }

  .filter-bar.is-open {
    display: flex;
  }

  .filter-chip {
    min-height: 2.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
  }

  .product-grid,
  .product-grid--featured {
    gap: 1.4rem 0.75rem;
  }

  .product-card .product-visual:has(.product-photo) {
    aspect-ratio: 0.82;
    border: 0;
    border-radius: 1.1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }

  .product-card .product-visual::before {
    display: block;
    inset: 0;
    opacity: 0.35;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 42%);
  }

  .product-card .product-photo {
    object-fit: cover;
    transition: transform 500ms ease;
  }

  .product-card:active .product-photo {
    transform: scale(0.98);
  }

  .product-info {
    margin-top: 0.7rem;
  }

  .product-info h2 {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 650;
  }

  .product-buy {
    margin-top: 0.35rem;
  }

  .product-buy strong {
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 700;
  }

  .product-detail-page {
    padding-top: 4.25rem;
  }

  .product-detail-gallery .product-visual {
    aspect-ratio: 0.86;
    border-radius: 1rem;
  }

  .product-detail-copy h1 {
    font-size: 2.55rem;
  }

  .product-detail-copy .button,
  [data-product-controls] .button {
    border-radius: 0.95rem;
  }

  .cart-board {
    margin-inline: -0.1rem;
  }

  .cart-order-panel {
    border-radius: 1rem;
    overflow: hidden;
  }

  .checkout-form input {
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
  }

  .checkout-fields { grid-template-columns:1fr; }
  .field-wide { grid-column:auto; }

  .checkout-title {
    display: block;
  }

  .checkout-form .button {
    border-radius: 0.8rem;
  }
}

/* Center the home menu copy as a single focal point. */
.storefront {
  place-items: center;
  text-align: center;
}

.storefront-copy {
  width: min(920px, calc(100% - 2rem));
  padding: 4rem 0 0;
}

.hero-logo {
  margin-inline: auto;
}

.storefront-copy p:not(.label) {
  margin-inline: auto;
}

.hero-actions {
  justify-content: center;
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(5.1rem + env(safe-area-inset-bottom));
  }

  .topnav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 3.35rem;
    padding-top: 0.5rem;
    padding-left: 0.7rem;
    padding-right: 0.75rem;
    padding-bottom: calc(0.72rem + env(safe-area-inset-bottom));
  }

  .topnav a {
    min-height: 3.4rem;
  }

  .storefront {
    place-items: center;
  }

  .storefront-copy {
    width: 100%;
    padding: 7rem 1.25rem 10rem;
    text-align: center;
  }

  .storefront-copy h1 {
    max-width: 10ch;
    margin-inline: auto;
    text-align: center;
  }

  .storefront-copy p:not(.label) {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .topnav a {
    min-height: 3.25rem;
    font-size: 0;
    letter-spacing: 0;
  }

  .topnav a::before {
    font-size: 1.55rem;
    line-height: 1;
    transform: translateY(0);
  }

  .topnav a[aria-current="page"]::before {
    color: var(--gold-2);
    filter: drop-shadow(0 0 0.5rem rgba(214, 173, 99, 0.3));
  }
}

/* Light theme contrast pass: warm neutrals with a deeper olive-gold accent. */
:root[data-theme="light"] {
  --bg: #f7f4eb;
  --bg-deep: #eee8da;
  --panel: #fffdf8;
  --panel-2: #ebe5d7;
  --text: #1b201a;
  --muted: #4d554b;
  --gold: #73551f;
  --gold-2: #916d2b;
  --line: rgba(40, 45, 35, 0.2);
  --line-strong: rgba(76, 72, 47, 0.42);
  --shadow: 0 24px 64px rgba(53, 48, 31, 0.14);
}

:root[data-theme="light"] .button-primary {
  background: #73551f;
  color: #fffdf5;
}

:root[data-theme="light"] .button-primary:hover {
  background: #5f4518;
  box-shadow: 0 18px 42px rgba(95, 69, 24, 0.2);
}

:root[data-theme="light"] .button-quiet {
  background: rgba(255, 253, 248, 0.72);
  color: #5f4518;
}

:root[data-theme="light"] .cart-link {
  background: #fffdf8;
  color: var(--text);
}

:root[data-theme="light"] .round-action {
  background: #f1eadc;
  border-color: #cfc5b1;
  color: #2f362d;
}

:root[data-theme="light"] .round-action:hover {
  background: #e8deca;
  border-color: #b9ad96;
  color: #2f362d;
}

:root[data-theme="light"] .cart-link span {
  background: #a47725;
  color: #fffdf5;
}

@media (max-width: 640px) {
  .cart-row-image {
    transform: scaleY(1.16);
  }

  :root[data-theme="light"] .topbar {
    background: rgba(247, 244, 235, 0.94);
    border-bottom-color: rgba(76, 72, 47, 0.18);
  }

  :root[data-theme="light"] .topnav {
    background: rgba(255, 253, 248, 0.96);
    border-top-color: rgba(76, 72, 47, 0.2);
    box-shadow: 0 -1rem 2rem rgba(53, 48, 31, 0.12);
  }

  :root[data-theme="light"] .topnav a {
    color: #4d554b;
  }

  :root[data-theme="light"] .topnav a[aria-current="page"] {
    color: #5f4518;
    background: rgba(115, 85, 31, 0.12);
  }
}

@media (max-width: 640px) {
  body[data-page="product"] main {
    width: 100%;
    padding-inline: 0;
  }

  body[data-page="product"] .product-detail-page {
    width: 100%;
    align-items: stretch;
  }

  body[data-page="product"] .product-detail-gallery {
    width: calc(100% - 1rem);
    margin-inline: auto;
  }

  body[data-page="product"] .product-detail-gallery .product-visual {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    aspect-ratio: 0.86;
    border-radius: 1rem;
  }

  body[data-page="product"] .product-detail-copy {
    padding-inline: 1rem;
    padding-top: 0.5rem;
    gap: 0.75rem;
  }

  body[data-page="product"] .product-detail-copy .label {
    display: none;
  }

  .topnav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    top: 0;
    bottom: auto;
    overflow: hidden;
    left: -14px;
    right: auto;
    width: calc(100vw + 28px);
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
  }

  .topnav a {
    display: flex !important;
    min-height: 3.65rem;
    font-size: 0;
    font-weight: 900;
    transform: translateY(0.08rem);
    margin-bottom: 0;
  }

  .topnav a::after {
    display: none !important;
  }

  .topnav a::before {
    font-size: 1.9rem;
  }

  body[data-page="home"] .topnav a {
    transform: translate(-0.14rem, 0.24rem);
  }

  .topnav a:nth-child(1)::before,
  .topnav a:nth-child(2)::before,
  .topnav a:nth-child(4)::before {
    content: none !important;
  }

  .topnav a:nth-child(3)::before {
    content: "✦" !important;
    display: block;
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 800;
    text-shadow: 0 0 0.7rem rgba(255, 255, 255, 0.38);
  }

  .topnav a .nav-home-icon,
  .topnav a .nav-shirt-icon,
  .topnav a .nav-cart-symbol {
    display: block !important;
    color: #ffffff;
    fill: currentColor;
    stroke: currentColor;
  }

  .topnav .nav-cart-button {
    transform: translate(-0.32rem, 0.08rem);
    margin-right: 0.45rem;
  }

  :root[data-theme="light"] {
    --bg: #f7f5ef;
    --bg-deep: #efede5;
    --panel: #ffffff;
    --panel-2: #f2f0e8;
    --text: #171914;
    --muted: #63685d;
    --gold: #8b6b32;
    --gold-2: #a57d39;
    --line: rgba(55, 59, 48, 0.15);
    --line-strong: rgba(55, 59, 48, 0.28);
  }

  :root[data-theme="light"] body {
    background:
      radial-gradient(circle at 88% 0%, rgba(139, 107, 50, 0.1), transparent 15rem),
      linear-gradient(180deg, var(--bg-deep), var(--bg) 24rem);
  }

  :root[data-theme="light"] .topbar {
    background: rgba(247, 245, 239, 0.9);
    border-bottom-color: rgba(55, 59, 48, 0.12);
  }

  :root[data-theme="light"] .topnav {
    background: rgba(255, 255, 255, 0.94);
    border-top-color: rgba(55, 59, 48, 0.14);
  }

  :root[data-theme="light"] .topnav a .nav-home-icon,
  :root[data-theme="light"] .topnav a .nav-shirt-icon,
  :root[data-theme="light"] .topnav a .nav-cart-symbol {
    color: #4b5045;
    stroke: #4b5045;
    filter: drop-shadow(0 0 0.35rem rgba(75, 80, 69, 0.18));
  }

  :root[data-theme="light"] .topnav a:nth-child(3)::before {
    color: #4b5045;
    text-shadow: 0 0 0.45rem rgba(75, 80, 69, 0.18);
  }

  :root[data-theme="light"] .topnav a[aria-current="page"] .nav-home-icon,
  :root[data-theme="light"] .topnav a[aria-current="page"] .nav-shirt-icon,
  :root[data-theme="light"] .topnav a[aria-current="page"] .nav-cart-symbol,
  :root[data-theme="light"] .topnav a[aria-current="page"]::before {
    color: var(--gold-2);
    stroke: var(--gold-2);
    filter: drop-shadow(0 0 0.45rem rgba(165, 125, 57, 0.28));
  }

  :root[data-theme="light"] .topnav a[aria-current="page"] {
    background: #283027;
    color: #ffffff;
  }

  :root[data-theme="light"] .topnav a[aria-current="page"] .nav-home-icon,
  :root[data-theme="light"] .topnav a[aria-current="page"] .nav-shirt-icon,
  :root[data-theme="light"] .topnav a[aria-current="page"] .nav-cart-symbol,
  :root[data-theme="light"] .topnav a[aria-current="page"]::before {
    color: #ffffff;
    stroke: #ffffff;
    filter: drop-shadow(0 0 0.45rem rgba(255, 255, 255, 0.24));
  }

  :root[data-theme="light"] .topnav a[aria-current="page"] {
    background: rgba(214, 173, 99, 0.12);
    color: var(--gold-2);
  }

  :root[data-theme="light"] .topnav a[aria-current="page"] .nav-home-icon,
  :root[data-theme="light"] .topnav a[aria-current="page"] .nav-shirt-icon,
  :root[data-theme="light"] .topnav a[aria-current="page"] .nav-cart-symbol,
  :root[data-theme="light"] .topnav a[aria-current="page"]::before {
    color: var(--gold-2);
    stroke: var(--gold-2);
    filter: drop-shadow(0 0 0.45rem rgba(165, 125, 57, 0.28));
  }

  :root:not([data-theme="light"]) {
    --bg: #080a08;
    --bg-deep: #040604;
    --panel: #101410;
    --panel-2: #171c16;
    --text: #f5f3e9;
    --muted: #9ca399;
  }

  :root:not([data-theme="light"]) body {
    background:
      radial-gradient(circle at 88% 0%, rgba(214, 173, 99, 0.08), transparent 15rem),
      linear-gradient(180deg, var(--bg-deep), var(--bg) 24rem);
  }

  :root:not([data-theme="light"]) .topbar,
  :root:not([data-theme="light"]) .topnav {
    background: rgba(4, 6, 4, 0.96);
  }

  .round-action {
    min-width: 2.55rem;
    min-height: 2.55rem;
  }

  .cart-link span[data-cart-count] {
    top: -0.18rem;
    right: -0.18rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.22rem;
    border: 2px solid var(--bg-deep);
    background: var(--gold);
    color: #11130f;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
  }
}
