:root {
  color-scheme: dark;
  --black: #030303;
  --white: #ffffff;
  --soft: #e8e8e8;
  --muted: #b0b0b0;
  --line: rgba(255, 255, 255, 0.18);
  --line-dark: rgba(0, 0, 0, 0.14);
  --glow: 0 0 34px rgba(255, 255, 255, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  scrollbar-color: #2e2e2e #050505;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  scrollbar-gutter: stable;
  background:
    radial-gradient(ellipse 116% 76% at var(--lava-core-x, 50%) var(--lava-core-y, 18%), rgba(255, 255, 255, 0.13), transparent 50%),
    linear-gradient(180deg, #030303 0%, #070707 46%, #030303 100%);
  color: var(--white);
  font-size: 16px;
  isolation: isolate;
  overflow-x: hidden;
  /* Black "lightning glow" behind all copy so white text pops against the
     bright lava plumes; reset on light surfaces (see glow-reset rule). */
  text-shadow:
    0 1px 12px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(0, 0, 0, 0.3);
}

body.locked {
  overflow: hidden;
}

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

.lava-bg {
  position: fixed;
  inset: -26%;
  z-index: 0;
  pointer-events: none;
  contain: strict;
  opacity: calc(0.92 + var(--lava-active, 0) * 0.18);
  /* Static blur/brightness: animating the blur radius forced a full-screen
     Gaussian re-raster every scroll frame (the main scroll-jank cause). Kept
     constant so the layer rasterizes once and only its transform animates. */
  filter: blur(21px) brightness(1.16);
  transform: translate3d(var(--lava-x, 0), var(--lava-y, 0), 0) scale(var(--lava-scale, 1))
    rotate(var(--lava-rotate, 0deg)) skewY(var(--lava-skew, 0deg));
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  transition:
    filter 420ms ease,
    opacity 520ms ease;
}

.lava-bg::before,
.lava-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 26% 58% at 14% 12%, rgba(255, 255, 255, 0.72), transparent 68%),
    radial-gradient(ellipse 24% 54% at 82% 16%, rgba(255, 255, 255, 0.52), transparent 70%),
    radial-gradient(ellipse 34% 60% at 50% 92%, rgba(255, 255, 255, 0.58), transparent 72%),
    radial-gradient(ellipse 18% 32% at 50% 46%, rgba(255, 255, 255, 0.84), transparent 66%),
    linear-gradient(122deg, transparent 10%, rgba(255, 255, 255, 0.24), transparent 52%);
  mix-blend-mode: screen;
  animation:
    lavaFloat 26s ease-in-out infinite alternate,
    lavaGlow 7.5s ease-in-out infinite;
}

.lava-bg::after {
  opacity: 0.72;
  transform: rotate(24deg) scale(1.16);
  animation-duration: 34s, 9s;
  animation-direction: alternate-reverse;
}

/* :where() keeps this at zero specificity so any element's own position
   (e.g. the fixed header, drawers, toast) always wins regardless of source order. */
:where(body > *:not(.lava-bg)) {
  position: relative;
  z-index: 1;
}

@keyframes lavaFloat {
  from {
    transform: translate3d(-2vw, 1vh, 0) scale(1);
  }

  to {
    transform: translate3d(3vw, -3vh, 0) scale(1.08);
  }
}

@keyframes lavaGlow {
  0%,
  100% {
    opacity: 0.78;
  }

  48% {
    opacity: 1;
  }
}

button,
select {
  font: inherit;
}

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

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

::selection {
  background: var(--white);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

main {
  flex: 1 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 16px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.72);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
}

.brand img {
  width: auto;
  height: 35px;
  object-fit: contain;
  filter: invert(1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.25));
}

.brand img:first-child {
  height: 30px;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-transform: inherit;
  transition: color 160ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--white);
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
  transition:
    background 160ms ease,
    color 160ms ease;
}

.shop-button:hover {
  background: var(--white);
  color: var(--black);
}

/* Hidden on desktop; the 980px breakpoint switches it on and turns the nav
   into a dropdown panel. */
.nav-toggle {
  display: none;
  width: 50px;
  min-height: 46px;
  place-items: center;
  border: 1px solid var(--white);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.cart-button {
  width: 50px;
  min-height: 46px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  box-shadow: var(--glow);
  transition: background 160ms ease;
}

.cart-button:hover {
  background: var(--soft);
}

.cart-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.cart-button span {
  position: absolute;
  right: -7px;
  top: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 950;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding-top: 76px;
  background: transparent;
}

.hero-copy,
.hero-media,
.manifesto,
.fit-finder,
.store {
  background: transparent;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: clamp(34px, 5.5vw, 82px);
}

.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
.manifesto span {
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.7),
    0 0 52px rgba(0, 0, 0, 0.45);
}

/* Black text on light surfaces would smear with a black glow - reset it. */
.lightning-text::after,
.cta,
.badge,
.cart-button,
.fit-options button.active,
.fit-size button.active,
.fit-add,
.notify-submit,
.news-submit,
.qv-badge:not(.qv-badge--soldout),
.qv-sizes button:hover,
.oc-cta,
.filter[aria-pressed="true"],
.size-row button:hover,
.shop-button:hover,
.drawer-panel,
.toast,
.sort option {
  text-shadow: none;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(74px, 15vw, 210px);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lightning-text {
  position: relative;
  display: inline-block;
}

.lightning-text::after {
  content: attr(data-text);
  /* Alt-text syntax silences the duplicated text for screen readers where
     supported; browsers without it fall back to the plain declaration above. */
  content: attr(data-text) / "";
  position: absolute;
  inset: 0;
  color: transparent;
  pointer-events: none;
  background:
    linear-gradient(
      110deg,
      transparent calc(var(--strike-x, 34%) - 18%),
      rgba(0, 0, 0, 0.92) calc(var(--strike-x, 34%) - 7%),
      transparent calc(var(--strike-x, 34%) - 1%),
      rgba(0, 0, 0, 0.84) calc(var(--strike-x, 34%) + 5%),
      transparent calc(var(--strike-x, 34%) + 16%)
    );
  background-clip: text;
  -webkit-background-clip: text;
  animation: lightningRipple 3.8s ease-in-out infinite;
}

@keyframes lightningRipple {
  0%,
  72%,
  100% {
    opacity: 0.1;
  }

  78%,
  84% {
    opacity: 1;
  }
}

.cta {
  width: max-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--glow);
  transition:
    background 160ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta:hover {
  background: var(--soft);
  transform: translateY(-2px);
}

.cta:active {
  transform: translateY(0);
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 900ms ease,
    transform 2200ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 1px solid var(--line);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.36), transparent 46%);
  pointer-events: none;
}

.manifesto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto a {
  min-height: clamp(320px, 32vw, 520px);
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.manifesto a:last-child {
  border-right: 0;
}

.manifesto a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.28) 42%, transparent 62%);
  pointer-events: none;
}

.manifesto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--tile-focus, center 32%);
  opacity: 0;
  transition:
    transform 900ms ease,
    opacity 900ms ease;
}

.manifesto img.active {
  opacity: 1;
}

.manifesto a:hover img.active {
  transform: scale(1.045);
  opacity: 0.88;
}

.manifesto span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  color: var(--white);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.manifesto a:hover span {
  transform: translateY(-4px);
}

/* The fit finder is a full-viewport "stage": the section spans the space below
   the fixed header and centers its shell, so when the anchor scrolls it into
   place only the lava background frames it - no neighbouring sections peek in. */
.fit-finder {
  min-height: calc(100svh - 76px);
  display: grid;
  align-content: center;
  padding: clamp(40px, 5vw, 72px) clamp(16px, 4vw, 58px);
  margin: clamp(48px, 7vh, 110px) 0;
}

.fit-shell {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}

.fit-copy,
.fit-tool {
  background: rgba(3, 3, 3, 0.62);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: clamp(14px, 2.4vw, 28px);
}

.fit-copy {
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
}

.fit-copy h2 {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.9;
  text-transform: uppercase;
}

.fit-preview {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}

.fit-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition:
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 240ms ease;
}

/* Rows 1-2 hold the option groups; the result card takes the leftover track so
   the tool always fills the full panel height next to the tall preview column. */
.fit-tool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
}

/* Mobile-only stepper chrome - hidden on desktop where all rows show at once. */
.fit-stepper {
  display: none;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fit-stepper span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fit-step-controls {
  display: flex;
  gap: 6px;
}

.fit-step-controls button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    opacity 160ms ease;
}

.fit-step-controls button:hover {
  border-color: var(--white);
}

.fit-step-controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--line);
}

.fit-row {
  display: grid;
  gap: 8px;
  align-content: start;
}

.fit-row label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fit-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

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

.fit-options button,
.fit-add {
  min-height: 48px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease;
}

.fit-options button:hover {
  border-color: var(--white);
}

.fit-options button.active,
.fit-add {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--glow);
}

.fit-add {
  padding: 0 20px;
}

.fit-add:hover {
  background: var(--soft);
}

.fit-result {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(140px, 240px) minmax(0, 1fr) auto;
  gap: clamp(14px, 1.8vw, 24px);
  align-items: center;
  padding: clamp(10px, 1.2vw, 16px);
  border: 1px solid var(--line);
}

.fit-result-visual {
  position: relative;
  align-self: stretch;
  min-height: 132px;
  overflow: hidden;
}

.fit-result-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.fit-result strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(15px, 1.4vw, 20px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fit-result span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.fit-size {
  display: inline-flex;
  gap: 6px;
  margin-top: 14px;
}

.fit-size button {
  min-height: 42px;
  min-width: 46px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.fit-size button:hover {
  border-color: var(--white);
}

.fit-size button.active {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--glow);
}

.store {
  min-height: 100svh;
  padding: clamp(58px, 7vw, 98px) clamp(16px, 4vw, 58px);
}

.shop-page .store {
  padding-top: calc(76px + clamp(58px, 7vw, 98px));
}

.store-intro {
  max-width: 1180px;
  margin: 0 auto clamp(36px, 4.2vw, 56px);
}

.store-intro h2 {
  margin-bottom: 14px;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.85;
  text-transform: uppercase;
}

.store-copy {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.store-toolbar {
  max-width: 1180px;
  margin: 0 auto clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.store-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.store-count {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.filter,
.sort {
  min-height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter {
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.filter:hover {
  border-color: var(--white);
}

.filter[aria-pressed="true"] {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--glow);
}

.sort {
  cursor: pointer;
  transition: border-color 160ms ease;
}

.sort:hover {
  border-color: var(--white);
}

.sort option {
  color: var(--black);
}

.product-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.1vw, 24px);
  align-items: stretch;
}

.product {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(3, 3, 3, 0.68);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    border-color 300ms ease,
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 300ms ease;
}

.product:hover {
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
}

/* Sold-out cards stay in the grid (sorted last) but sit back so the available
   pieces lead the eye; they lift a little on hover to stay legible. */
.product--soldout {
  opacity: 0.6;
}

.product--soldout:hover {
  opacity: 0.82;
}

.product-visual {
  aspect-ratio: 4 / 5;
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--product-focus, center 38%);
  transition:
    transform 550ms ease,
    opacity 550ms ease;
}

/* Second angle (when a product has one) crossfades in on hover/focus. */
.product-photo--alt {
  opacity: 0;
}

.product:hover .product-photo {
  transform: scale(1.04);
}

.product:hover .product-photo--alt,
.product-visual:focus-visible .product-photo--alt {
  opacity: 1;
}

.product-view-cue {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(3, 3, 3, 0.72);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.product-visual:hover .product-view-cue,
.product-visual:focus-visible .product-view-cue {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 981px) {
  .product-grid > .product:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--soldout {
  background: rgba(3, 3, 3, 0.78);
  color: var(--white);
  border: 1px solid var(--line);
}

.product-info {
  display: grid;
  gap: 10px;
  padding: 14px;
  min-height: 132px;
  border-top: 1px solid var(--line);
}

.product-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.product-title span:last-child {
  white-space: nowrap;
  color: var(--soft);
  font-weight: 800;
}

.size-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
}

.size-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.size-row button:hover {
  background: var(--white);
  color: var(--black);
}

.size-row button:disabled {
  border-color: var(--line-dark);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.4;
  text-decoration: line-through;
}

.size-row button:disabled:hover {
  background: transparent;
  color: var(--muted);
}

@media (max-width: 1180px) and (min-width: 981px) {
  .product-title {
    grid-template-columns: 1fr;
  }

  .product-title span:last-child {
    white-space: normal;
  }
}

.empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  background: rgba(3, 3, 3, 0.62);
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
}

footer {
  margin-top: auto;
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: #000;
  color: var(--muted);
  box-shadow: 0 -18px 70px rgba(0, 0, 0, 0.6);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(120px, 0.75fr));
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 56px) clamp(28px, 4vw, 44px);
}

.footer-mark {
  height: 24px;
  width: auto;
  margin-bottom: 16px;
  filter: invert(1);
}

.footer-brand p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  text-transform: none;
}

.footer-col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-heading {
  margin: 0 0 4px;
  color: var(--white);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col a {
  width: max-content;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 56px) clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-bottom a {
  color: var(--muted);
  transition: color 160ms ease;
}

.footer-bottom a:hover {
  color: var(--white);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.drawer.open {
  display: block;
}

.drawer.open .scrim {
  animation: scrimIn 300ms ease both;
}

.drawer.open .drawer-panel {
  animation: drawerIn 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes scrimIn {
  from {
    opacity: 0;
  }
}

@keyframes drawerIn {
  from {
    transform: translateX(100%);
  }
}

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow);
}

.drawer-panel :focus-visible {
  outline-color: var(--black);
}

.panel-head,
.panel-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.panel-foot {
  border-top: 1px solid var(--line-dark);
  border-bottom: 0;
}

.panel-head strong,
.panel-foot strong {
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.close,
.checkout {
  min-height: 42px;
  border: 1px solid var(--black);
  cursor: pointer;
  padding: 0 16px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.close {
  background: transparent;
  color: var(--black);
}

.close:hover {
  background: var(--black);
  color: var(--white);
}

.checkout {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.checkout:hover {
  background: #1a1a1a;
}

.checkout:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.panel-body {
  overflow: auto;
  padding: 18px;
  scrollbar-color: #bdbdbd #ffffff;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line-dark);
  padding: 8px;
}

.cart-thumb {
  width: 72px;
  height: 88px;
  overflow: hidden;
  background: #eee;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cart-item strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
}

.cart-item span {
  color: #595959;
  font-size: 12px;
}

.cart-item-info {
  display: grid;
  gap: 8px;
  align-content: start;
}

.qty {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid var(--line-dark);
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.qty-btn:hover {
  background: var(--black);
  color: var(--white);
}

.qty-count {
  min-width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line-dark);
  border-right: 1px solid var(--line-dark);
  font-size: 12px;
  font-weight: 950;
}

.cart-line-end {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: space-between;
  height: 100%;
}

.line-total {
  font-size: 12px;
  white-space: nowrap;
}

.cart-empty {
  margin: 0;
  color: #666;
  font-weight: 900;
  text-transform: uppercase;
}

.remove {
  width: 34px;
  height: 34px;
  border: 1px solid var(--black);
  background: transparent;
  cursor: pointer;
  font-weight: 950;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.remove:hover {
  background: var(--black);
  color: var(--white);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  min-width: min(340px, calc(100% - 32px));
  padding: 13px 16px;
  background: var(--white);
  color: var(--black);
  text-align: center;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--glow);
  transform: translate(-50%, 90px);
  opacity: 0;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.992);
  clip-path: inset(8% 0 0 0);
  transition:
    opacity 680ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  clip-path: inset(0 0 0 0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  /* Absolutely positioned so it drops out of the header grid (keeping the
     brand | actions layout intact) and overlays the page below the bar. */
  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 0;
    padding: 6px clamp(16px, 4vw, 56px) 14px;
    background: rgba(3, 3, 3, 0.94);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .nav a {
    padding: 15px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .site-header.nav-open .nav a:last-child {
    border-bottom: 0;
  }

  .site-header.nav-open .nav a::after {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    min-height: clamp(420px, 62svh, 680px);
    order: -1;
  }

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

  .manifesto {
    grid-template-columns: 1fr;
  }

  .manifesto a {
    min-height: 46vw;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .manifesto a:last-child {
    border-bottom: 0;
  }

  .product-grid > .product:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - clamp(14px, 2.1vw, 24px)) / 2);
  }

  .fit-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .fit-copy {
    grid-template-rows: auto minmax(220px, 32vh);
    min-height: auto;
  }

  .store-toolbar {
    justify-content: center;
    text-align: center;
  }

  .store-controls {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    padding: 12px 14px;
  }

  .brand img {
    height: 28px;
  }

  .brand img:first-child {
    height: 24px;
  }

  .cart-button {
    width: 44px;
    min-height: 42px;
  }

  .shop-button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 11px;
  }

  .header-actions {
    gap: 8px;
  }

  .hero {
    padding-top: 68px;
  }

  .hero-copy {
    padding: 30px 16px 42px;
  }

  .hero-media {
    min-height: 62svh;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-grid > .product:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  /* Stepper mode: one question at a time instead of one long list. */
  .fit-stepper {
    display: flex;
  }

  .fit-tool .fit-row {
    display: none;
  }

  .fit-tool .fit-row.step-active {
    display: grid;
    animation: stepIn 300ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .fit-options {
    grid-template-columns: 1fr;
  }

  .fit-result {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .fit-result-visual {
    min-height: 120px;
  }

  .fit-add {
    grid-column: 1 / -1;
  }

  .manifesto a {
    min-height: 96vw;
  }

  .fit-copy {
    grid-template-rows: auto minmax(200px, 55vw);
  }

  .fit-tool {
    grid-template-columns: 1fr;
  }

  /* One sleek scrollable row of filters instead of a wrapped pile. */
  .store-controls {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .store-controls::-webkit-scrollbar {
    display: none;
  }

  .filter,
  .sort {
    flex: 0 0 auto;
  }

  .store-count {
    width: 100%;
    text-align: center;
  }

  .store {
    padding: 44px 12px;
  }

  .shop-page .store {
    padding-top: 112px;
  }

  .product {
    background: rgba(3, 3, 3, 0.74);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-bottom: 8px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
}

/* --- Cart trust strip ----------------------------------------------------- */
.cart-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-dark);
  color: #5f5f5f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Footer newsletter ---------------------------------------------------- */
.footer-news {
  margin-top: 22px;
  max-width: 340px;
}

.footer-news .footer-heading {
  margin-bottom: 10px;
}

.news-form,
.notify-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* --- Shared form controls (newsletter + restock waitlist) ----------------- */
.news-input,
.notify-input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 13px;
}

.news-input::placeholder,
.notify-input::placeholder {
  color: #8a8a8a;
}

.news-submit,
.notify-submit {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 160ms ease;
}

.news-submit:hover,
.notify-submit:hover {
  background: var(--soft);
}

.news-submit:disabled,
.notify-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.news-consent,
.form-consent {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* --- Modal system (quick-view, size guide, order confirmation) ------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
}

.modal.open {
  display: block;
}

.modal.open .modal-scrim {
  animation: scrimIn 300ms ease both;
}

.modal.open .modal-panel {
  animation: modalIn 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 18px));
  }
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: clamp(20px, 3vw, 36px);
  background: rgba(6, 6, 6, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.6);
  color: var(--white);
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.modal-close:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* --- Quick-view ----------------------------------------------------------- */
.qv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
}

.qv-main {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.qv-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qv-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.qv-thumb {
  width: 62px;
  height: 78px;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  transition:
    opacity 160ms ease,
    border-color 160ms ease;
}

.qv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qv-thumb.active,
.qv-thumb:hover {
  opacity: 1;
  border-color: var(--white);
}

.qv-detail {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: 44px;
}

.qv-badge {
  width: max-content;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qv-badge--soldout {
  background: rgba(3, 3, 3, 0.78);
  color: var(--white);
  border: 1px solid var(--line);
}

.qv-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.05;
  text-transform: uppercase;
}

.qv-price {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--soft);
}

.qv-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.qv-fit {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qv-actions {
  margin-top: 6px;
  display: grid;
  gap: 12px;
}

.qv-sizes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qv-sizes-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qv-sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.qv-sizes button {
  min-height: 50px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.qv-sizes button:hover {
  background: var(--white);
  color: var(--black);
}

.qv-soldout-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* --- Size guide ----------------------------------------------------------- */
#sizeGuide .modal-panel {
  width: min(540px, calc(100% - 32px));
}

.sg-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 30px);
  text-transform: uppercase;
}

.sg-note {
  margin: 0 0 18px;
  max-width: 460px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.sg-table-wrap {
  overflow-x: auto;
}

.sg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sg-table th,
.sg-table td {
  padding: 12px 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.sg-table thead th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sg-table tbody th {
  font-weight: 950;
}

/* --- Order confirmation --------------------------------------------------- */
#orderConfirm .modal-panel {
  width: min(460px, calc(100% - 32px));
  text-align: center;
}

.oc-body {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 8px 4px;
}

.oc-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--white);
  font-size: 26px;
  box-shadow: var(--glow);
}

.oc-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  text-transform: uppercase;
}

.oc-copy {
  margin: 0;
  max-width: 340px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.oc-cta {
  margin-top: 6px;
}

/* --- Hero carousel controls ----------------------------------------------- */
.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
}

.hero-nav,
.hero-play {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.5);
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.hero-play {
  font-size: 11px;
}

.hero-nav:hover,
.hero-play:hover {
  background: rgba(3, 3, 3, 0.82);
  border-color: var(--white);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--white);
  background: transparent;
  cursor: pointer;
  opacity: 0.5;
  transition:
    opacity 160ms ease,
    background 160ms ease;
}

.hero-dot.active {
  background: var(--white);
  opacity: 1;
}

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

  .qv-detail {
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .news-form,
  .notify-form {
    grid-template-columns: 1fr;
  }
}

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

/* ============================================================
   ADMIN BACK-OFFICE — on-brand dark catalog editor
   All rules scoped under .admin so storefront styles are untouched.
   ============================================================ */
.admin {
  /* admin-only tokens (not in :root) */
  --admin-surface: rgba(255, 255, 255, 0.03);
  --admin-surface-2: rgba(255, 255, 255, 0.05);
  --admin-border: rgba(255, 255, 255, 0.12);
  --admin-border-strong: rgba(255, 255, 255, 0.22);
  --admin-focus: rgba(255, 255, 255, 0.5);
  --admin-success: #7fd1a3;
  --admin-danger: #e88b8b;
  --admin-radius: 12px;

  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 96px;
  color: var(--soft);
  font-size: 15px;
}

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

/* ---------- Top bar (sticky) ---------- */
.admin-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 -20px 32px;
  padding: 16px 20px;
  background: rgba(3, 3, 3, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--admin-border);
}

.admin-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.admin-wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--white);
}

.admin-brand-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.admin-btn:focus-visible {
  outline: 2px solid var(--admin-focus);
  outline-offset: 2px;
}

.admin-btn-primary {
  background: var(--white);
  color: #030303;
  border-color: var(--white);
}
.admin-btn-primary:hover { background: var(--soft); }
.admin-btn-primary:active { transform: translateY(1px); }

.admin-btn-ghost {
  background: transparent;
  color: var(--soft);
  border-color: var(--admin-border-strong);
}
.admin-btn-ghost:hover {
  background: var(--admin-surface-2);
  border-color: var(--admin-focus);
}
.admin-btn-ghost:active { transform: translateY(1px); }

/* ---------- Status pill ---------- */
.admin-status {
  margin: 0;
  max-width: 420px;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  opacity: 0;
  white-space: pre-wrap;
  transition: opacity 180ms ease;
}
.admin-status.is-visible {
  opacity: 1;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-2);
}
.admin-status.is-info { color: var(--soft); }
.admin-status.is-success {
  color: var(--admin-success);
  border-color: rgba(127, 209, 163, 0.4);
  background: rgba(127, 209, 163, 0.08);
}
.admin-status.is-error {
  color: var(--admin-danger);
  border-color: rgba(232, 139, 139, 0.42);
  background: rgba(232, 139, 139, 0.08);
  border-radius: 12px;
}

/* ---------- Catalog list ---------- */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.admin-spacer { height: 40px; }

/* ---------- Product card ---------- */
.admin-card {
  min-width: 0;
  margin: 0;
  padding: 20px 22px 22px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.admin-card:hover {
  border-color: var(--admin-border-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.admin-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-thumb {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-2);
  display: grid;
  place-items: center;
}
.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-thumb-ph {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-card-heading {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface-2);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-chip-danger {
  color: var(--admin-danger);
  border-color: rgba(232, 139, 139, 0.42);
  background: rgba(232, 139, 139, 0.08);
}
.admin-chip:empty { display: none; }

.admin-card-price {
  flex: none;
  align-self: flex-start;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* ---------- Field grid ---------- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.admin-field-full { grid-column: 1 / -1; }

.admin-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-hint {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--admin-success);
  font-variant-numeric: tabular-nums;
}

/* ---------- Inputs ---------- */
.admin-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: rgba(0, 0, 0, 0.32);
  color: var(--soft);
  font: inherit;
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.admin-input::placeholder { color: var(--muted); opacity: 0.7; }
.admin-input:hover { border-color: var(--admin-border-strong); }
.admin-input:focus {
  outline: none;
  border-color: var(--admin-focus);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.admin-select-wrap {
  position: relative;
  display: block;
}
.admin-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
}
.admin-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.admin-select option {
  background: #0a0a0a;
  color: var(--soft);
}

/* Description textarea: matches .admin-input styling, spans full width */
.admin-textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
  font-family: inherit;
}

/* ---------- Size picker (toggle chips) ---------- */
.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
label.admin-chip {
  position: relative;
  cursor: pointer;
  gap: 6px;
  user-select: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
label.admin-chip:hover {
  border-color: var(--admin-border-strong);
}
label.admin-chip input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}
label.admin-chip:has(input:checked) {
  background: var(--white);
  border-color: var(--white);
  color: #030303;
}
label.admin-chip:has(input:focus-visible) {
  outline: 2px solid var(--admin-focus);
  outline-offset: 2px;
}

/* ---------- Controls row ---------- */
.admin-card-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--admin-border);
}

/* Toggle switch (wraps the real checkbox) */
.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.admin-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}
.admin-toggle-track {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--admin-border-strong);
  background: var(--admin-surface-2);
  transition: background 160ms ease, border-color 160ms ease;
}
.admin-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}
.admin-toggle-input:checked ~ .admin-toggle-track {
  background: rgba(232, 139, 139, 0.22);
  border-color: rgba(232, 139, 139, 0.5);
}
.admin-toggle-input:checked ~ .admin-toggle-track .admin-toggle-knob {
  transform: translateX(20px);
  background: var(--white);
}
.admin-toggle-input:focus-visible ~ .admin-toggle-track {
  outline: 2px solid var(--admin-focus);
  outline-offset: 2px;
}
.admin-toggle-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--soft);
}

/* Image upload */
.admin-upload {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}
.admin-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.admin-upload-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px dashed var(--admin-border-strong);
  background: var(--admin-surface);
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 150ms ease, background 150ms ease;
}
.admin-upload:hover .admin-upload-btn {
  border-color: var(--admin-focus);
  background: var(--admin-surface-2);
}
.admin-upload-input:focus-visible ~ .admin-upload-btn {
  outline: 2px solid var(--admin-focus);
  outline-offset: 2px;
}
.admin-upload-name {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Remove (quiet danger) */
.admin-remove {
  margin-left: auto;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--admin-danger);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.admin-remove:hover {
  background: rgba(232, 139, 139, 0.1);
  border-color: rgba(232, 139, 139, 0.4);
}
.admin-remove:focus-visible {
  outline: 2px solid var(--admin-danger);
  outline-offset: 2px;
}

/* ---------- Login screen / auth-gate loading ---------- */
/* .admin--loading hides the chrome before requireAuth() resolves, so the
   sticky bar + list never flash before we know whether to show the login
   card or the editor. Removed once the catalog has loaded. */
.admin--loading .admin-bar,
.admin--loading .admin-list,
.admin--loading .admin-spacer,
.admin:has(#adminLogin) .admin-bar,
.admin:has(#adminLogin) .admin-list,
.admin:has(#adminLogin) .admin-spacer {
  display: none;
}
#adminLogin {
  min-height: 80vh;
  display: grid;
  place-items: center;
}
.admin-login-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 32px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: var(--admin-surface);
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-login-wordmark { font-size: 24px; }
.admin-login-sub {
  margin: -8px 0 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-login-msg {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.admin-login-msg.is-error { color: var(--admin-danger); }
.admin-login-field { text-align: left; }
.admin-login-btn { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .admin { padding: 0 16px 80px; }
  .admin-bar {
    margin: 0 -16px 24px;
    padding: 14px 16px;
  }
  .admin-actions { width: 100%; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-card-controls { gap: 14px; }
  .admin-remove { margin-left: 0; }
  .admin-upload { flex-basis: 100%; }
}
