@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════════
   MONRIVA — Oslo
   Nike's layout language: utility strip over a centred nav, full-bleed
   hero with the words underneath it, snapping product rails, pill
   buttons, a size grid instead of a dropdown, and a column footer.
   Run on black, because the house only makes black.
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ───────── Tokens ───────── */

:root {
  --void:    #000000;   /* page */
  --tile:    #0E0E0E;   /* product media — Nike's #F5F5F5, inverted */
  --raise:   #141414;   /* utility strip, inputs, hover fills */
  --cloth:   #1D1D1D;   /* placeholder swatch */

  --fg:      #FFFFFF;
  --fg-dim:  #A5A5A6;   /* Nike's secondary grey */
  --fg-mute: #6E6E70;

  --line:    #262626;   /* Nike's #E5E5E5, inverted */
  --line-2:  #3A3A3A;

  --danger:  #D0554A;
  --good:    #7BA46F;

  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --t-hero:  clamp(2.6rem, 7.5vw, 5.5rem);
  --t-h1:    clamp(1.9rem, 4vw, 3rem);
  --t-h2:    clamp(1.35rem, 2.2vw, 1.75rem);
  --t-body:  1rem;

  --gut: clamp(1.25rem, 3vw, 3rem);
  --wrap: 1600px;
  --band: clamp(3rem, 5vw, 5rem);
  --pill: 999px;

  /* Legacy names the admin templates still reference inline */
  --snow: var(--void);
  --birch: var(--tile);
  --stone: var(--raise);
  --ink: var(--fg);
  --ink-soft: var(--fg-dim);
  --fog: var(--fg-mute);
  --hairline: var(--line);
  --panel-a: var(--tile);
  --panel-b: var(--raise);
  --panel-c: var(--cloth);
  --serif: var(--sans);
  --display: var(--sans);
  --mono: var(--sans);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* ───────── Base ───────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--fg); color: var(--void); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--fg); color: var(--void);
  padding: 0.9rem 1.4rem; font-weight: 500;
}
.skip:focus { left: 0; }

/* ───────── Layout ───────── */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.wrap.narrow { max-width: 760px; }

section { padding-block: var(--band); }
section.tight { padding-block: clamp(2rem, 3.5vw, 3rem); }
section.ruled { border-top: 1px solid var(--line); }

/* Nike sets a row title on the left and its controls on the right. */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.section-head h2 { font-size: var(--t-h2); font-weight: 500; letter-spacing: -0.01em; }
.section-head .label { color: var(--fg-dim); font-size: 0.9rem; }

.page-head { max-width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 4vw, 3.5rem) var(--gut) clamp(1.25rem, 2vw, 2rem); }
.page-head.narrow { max-width: 760px; }
.page-head .label { display: block; color: var(--fg-dim); font-size: 0.9rem; margin-bottom: 0.5rem; }
.page-head h1 { font-size: var(--t-h1); font-weight: 600; }
.page-head p { margin-top: 0.85rem; max-width: 56ch; color: var(--fg-dim); }

.prose { max-width: 60ch; color: var(--fg-dim); }

.label { display: block; font-size: 0.9rem; color: var(--fg-dim); }

/* ───────── Announcement + utility strip ───────── */

.announce {
  background: var(--raise);
  color: var(--fg);
  text-align: center;
  font-size: 0.8rem;
  padding: 0.6rem var(--gut);
  line-height: 1.4;
}

.utility { background: var(--raise); border-bottom: 1px solid var(--line); }
.utility .wrap {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 0.75rem; padding-block: 0.4rem; max-width: none;
}
.utility a {
  font-size: 0.75rem; color: var(--fg-dim); padding: 0.25rem 0;
  transition: color 0.15s;
}
.utility a:hover { color: var(--fg); }
.utility .sep { color: var(--line-2); font-size: 0.75rem; }

/* ───────── Header ───────── */

header { position: sticky; top: 0; z-index: 80; background: var(--void); }

.nav {
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--gut);
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav-brand { display: flex; align-items: center; gap: 0.75rem; justify-self: start; }
.nav-brand .mark { display: block; width: clamp(96px, 10vw, 128px); }
.nav-brand .city {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-mute); padding-left: 0.75rem; border-left: 1px solid var(--line-2); line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; justify-self: center; }
.nav-links > li > a {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  padding: 1.1rem 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.nav-links > li > a:hover { border-bottom-color: var(--fg); }
.nav-links > li > a[aria-current="page"] { border-bottom-color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; justify-self: end; }
.bag-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: var(--pill);
  transition: background 0.15s;
}
.bag-link:hover { background: var(--raise); }
.bag-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--pill);
  background: var(--fg); color: var(--void);
  font-size: 0.72rem; font-weight: 600;
}

/* ───────── Buttons ───────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 500;
  padding: 0.9rem 1.5rem;
  border-radius: var(--pill);
  border: 1px solid var(--fg);
  background: var(--fg); color: var(--void);
  cursor: pointer; line-height: 1.2; text-align: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s, opacity 0.18s;
}
.btn:hover { background: #D6D6D6; border-color: #D6D6D6; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { background: transparent; border-color: var(--fg); }
.btn.solid { background: var(--fg); color: var(--void); border-color: var(--fg); }
.btn.small { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: var(--void); }
.btn[disabled] { opacity: 0.35; pointer-events: none; }
.btn.block { width: 100%; }

.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--fg-dim); font-family: var(--sans); font-size: 0.9rem;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s;
}
.link-btn:hover { color: var(--fg); }

.inline-link { text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--fg-dim); }

/* ───────── Hero — typographic statement, no product shot ───────── */

.hero {
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(360px, 52vh, 560px);
  overflow: hidden;
}
/* One soft light behind the words so the band never reads as dead black. */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 42%,
              rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.028) 42%, transparent 72%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gut);
  max-width: 1100px;
}
.hero-copy .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1.25rem;
}
.hero-copy h1 {
  font-size: var(--t-hero);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-copy h1 span { display: block; color: var(--fg-dim); }
.hero-copy p { max-width: 48ch; margin: 0 auto 2rem; color: var(--fg-dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ───────── Product rail (Nike's snapping carousel) ───────── */

.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.rail-head h2 { font-size: var(--t-h2); font-weight: 500; }
.rail-tools { display: flex; align-items: center; gap: 0.75rem; }
.rail-tools .all { font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; color: var(--fg-dim); }
.rail-tools .all:hover { color: var(--fg); }

.rail-btn {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: var(--pill);
  border: 0;
  background: var(--raise);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, opacity 0.15s;
}
.rail-btn:hover { background: #202020; }
.rail-btn[disabled] { opacity: 0.3; cursor: default; }
.rail-btn svg { width: 16px; height: 16px; }

.rail {
  display: grid;
  grid-auto-flow: column;
  /* A fixed track, not minmax — a flexible max lets the card shrink to the
     minimum and the row ends up short of the full width. */
  grid-auto-columns: calc((100% - 3 * 1rem) / 4);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* ───────── Product cards ───────── */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 24vw, 320px), 1fr));
  gap: 1rem 1rem;
}

.card { margin: 0; }
.card > a { display: block; height: 100%; }
.card:hover .photo:not(.alt) { opacity: 0; }
.card:hover .photo.alt { opacity: 1; }
.card:hover .fabric { transform: scale(1.04); }
.card.wide { grid-column: span 2; }
.card.wide .frame { aspect-ratio: 16 / 11; }

.card figcaption { padding-top: 0.9rem; }
.card figcaption .name { display: block; font-size: 1rem; font-weight: 500; }
.card figcaption .detail { display: block; font-size: 1rem; color: var(--fg-dim); margin-top: 0.1rem; }
.card figcaption .price { display: block; font-size: 1rem; font-weight: 500; margin-top: 0.5rem; }
.card .flag {
  display: block; font-size: 0.95rem; font-weight: 500; color: var(--fg);
  margin-bottom: 0.15rem;
}

/* ───────── Media frames + placeholder cloth ───────── */

.frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--tile);
  display: flex; align-items: center; justify-content: center;
}
.frame .photo {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 4%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}
.frame .photo.alt { position: absolute; inset: 0; opacity: 0; }

.fabric {
  position: absolute; inset: 0;
  background: var(--cloth);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fabric::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.4) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 34%, rgba(255,255,255,0.09), transparent 72%);
}
.fabric.jersey { background: #232323; }
.fabric.fleece { background: #2A2A2A; }
.fabric.twill  { background: #1E1E1E; }
.fabric.rib    { background: #262626; }
.fabric.nylon  { background: #1A1A1A; }
.fabric.wool, .fabric.knit, .fabric.cashmere { background: #262626; }
.fabric.linen, .fabric.silk { background: #1E1E1E; }
.fabric.fleece::after {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.4) 0 2px, transparent 2px 7px),
    radial-gradient(ellipse at 50% 34%, rgba(255,255,255,0.09), transparent 72%);
}
.fabric.rib::after {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.075) 0 2px, rgba(0,0,0,0.35) 2px 6px),
    radial-gradient(ellipse at 50% 34%, rgba(255,255,255,0.08), transparent 72%);
}

.frame .monogram {
  position: relative; z-index: 1;
  display: block; width: 46%; max-width: 200px;
  opacity: 0.38; pointer-events: none;
}

/* ───────── Category tiles ───────── */

/* Nike sets the label and its call to action inside the tile, bottom left. */
/* Explicit tracks: auto-fit leaves a collapsed column when the category
   count is smaller than the columns that fit, and the row stops short. */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cat-tile { margin: 0; }
.cat-tile > a { position: relative; display: block; }
.cat-tile .frame { aspect-ratio: 4 / 5; }
.cat-tile .frame::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  pointer-events: none;
}
.cat-tile:hover .fabric { transform: scale(1.04); }
.cat-tile:hover .photo:not(.alt) { opacity: 0; }
.cat-tile:hover .photo.alt { opacity: 1; }
.cat-tile figcaption {
  position: absolute; left: clamp(1rem, 2vw, 1.5rem); bottom: clamp(1rem, 2vw, 1.5rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
}
.cat-tile .name { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }
.cat-tile .detail {
  display: inline-flex; align-items: center;
  font-size: 0.95rem; font-weight: 500;
  padding: 0.55rem 1.15rem;
  border-radius: var(--pill);
  background: var(--fg); color: var(--void);
  transition: background 0.18s;
}
.cat-tile > a:hover .detail { background: #D6D6D6; }

/* ───────── Filter pills ───────── */

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filters a {
  font-size: 0.95rem; font-weight: 500;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  color: var(--fg-dim);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filters a:hover { color: var(--fg); border-color: var(--fg); }
.filters a[aria-current="page"] { background: var(--fg); border-color: var(--fg); color: var(--void); }

/* ───────── Product page ───────── */

.product-view {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
/* Nike runs PDP shots large and stacked; the info column sticks alongside. */
.product-gallery { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.product-view .frame::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(255,255,255,0.06), transparent 68%);
  pointer-events: none;
}
.shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

/* The drop page runs both shots the full measure, then talks underneath. */
.drop-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.drop-caption .product-info { position: static; }
.drop-caption .spec { margin-top: 0; }

.product-info { position: sticky; top: 84px; }
.product-info .label { margin-bottom: 0.35rem; }
.product-info h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; margin-bottom: 0.35rem; }
.product-info .price { font-size: 1.05rem; font-weight: 500; margin-bottom: 1.5rem; }
.product-info .desc { color: var(--fg-dim); margin-bottom: 1.5rem; }

/* Size grid — Nike picks sizes from boxes, never a dropdown */
.size-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.6rem; }
.size-head .label { margin: 0; color: var(--fg); font-weight: 500; }
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1.25rem; }
.size-grid label {
  position: relative; display: block; cursor: pointer;
}
.size-grid input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.size-grid span {
  display: flex; align-items: center; justify-content: center;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}
.size-grid label:hover span { border-color: var(--fg); }
.size-grid input:checked + span { border-color: var(--fg); border-width: 2px; background: var(--raise); }
.size-grid input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }

.buy-form { display: grid; gap: 0.75rem; }
.buy-row { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; }

/* Spec rows */
.spec { margin-top: 2rem; border-top: 1px solid var(--line); }
.spec > div {
  display: grid; grid-template-columns: 10rem 1fr; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.spec .k { color: var(--fg-dim); font-size: 0.95rem; }
.spec .v { font-size: 0.95rem; }

/* ───────── Forms ───────── */

.field { display: block; }
.field span { display: block; font-size: 0.85rem; color: var(--fg-dim); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 0.95rem;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-dim) 50%),
                    linear-gradient(135deg, var(--fg-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg-mute); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-mute); }
.field textarea { min-height: 110px; resize: vertical; }
.field input[type="color"] { padding: 0.3rem; height: 3rem; cursor: pointer; }
.field input[type="file"] { padding: 0.7rem; font-size: 0.9rem; }

label.qty-input { max-width: 110px; }
input.qty-input {
  width: 80px;
  background: var(--void);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.6rem 0.7rem;
  -webkit-appearance: none; appearance: none;
}
input.qty-input:hover { border-color: var(--fg-mute); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }

.checkbox-row {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.95rem; color: var(--fg-dim); cursor: pointer;
}
.checkbox-row input { accent-color: var(--fg); width: 17px; height: 17px; }

fieldset.group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  margin: 0 0 1.25rem;
}
fieldset.group legend { font-size: 0.95rem; font-weight: 500; color: var(--fg); padding-inline: 0.5rem; }

/* ───────── Notices ───────── */

.notice, .error {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--raise);
  padding: 0.9rem 1.15rem;
  font-size: 0.95rem;
}
.error { border-color: var(--danger); color: var(--danger); }

/* ───────── Tables ───────── */

.table-wrap { overflow-x: auto; }
table.sheet { width: 100%; border-collapse: collapse; min-width: 560px; }
table.sheet th {
  font-size: 0.85rem; font-weight: 500; color: var(--fg-dim);
  text-align: left; padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.sheet td { padding: 1rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: middle; }
table.sheet tbody tr:last-child td { border-bottom: 0; }
table.sheet .num { text-align: right; }
table.sheet .item-name { font-weight: 500; }
table.sheet .item-name a { text-decoration: underline; text-underline-offset: 3px; }

.cart-summary {
  display: flex; align-items: center; justify-content: flex-end;
  flex-wrap: wrap; gap: 1rem;
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.cart-summary .total { margin-right: auto; font-size: 1.05rem; font-weight: 500; }

.status {
  display: inline-block; font-size: 0.8rem; font-weight: 500;
  padding: 0.3rem 0.7rem; border-radius: var(--pill);
  border: 1px solid var(--line-2); color: var(--fg-dim); text-transform: capitalize;
}
.status.paid { color: var(--good); border-color: var(--good); }
.status.shipped { background: var(--fg); color: var(--void); border-color: var(--fg); }
.status.cancelled { color: var(--danger); border-color: var(--danger); }

/* ───────── Payment ───────── */

.pay-card {
  max-width: 460px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--tile); padding: clamp(1.25rem, 3vw, 2rem);
}
.pay-card h2 { margin-bottom: 0.25rem; }
.pay-card .testmode { font-size: 0.85rem; color: var(--fg-dim); margin-bottom: 1.25rem; }
.pay-card form { margin-top: 1.25rem; display: grid; gap: 0.9rem; }
.pay-card .pay-total {
  display: flex; justify-content: space-between;
  font-size: 1.05rem; font-weight: 500;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.pay-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; font-size: 0.95rem; color: var(--fg-dim); }

/* ───────── Editorial ───────── */

.maison-quote { text-align: center; }
.maison-quote .label { margin-bottom: 1rem; }
.maison-quote blockquote {
  margin: 0 auto; max-width: 26ch;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
  text-transform: uppercase;
}
.maison-quote .attrib { margin-top: 1.25rem; color: var(--fg-dim); font-size: 0.95rem; }

.heritage .split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem); align-items: center;
}
.heritage .portrait {
  position: relative; aspect-ratio: 4 / 5;
  background: var(--tile);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.heritage .portrait::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,0.08), transparent 70%);
}
.heritage .portrait img { position: relative; z-index: 1; width: 88%; }
.heritage .portrait .monogram { width: 55%; opacity: 0.38; }
.heritage h2 { margin: 0.5rem 0 1rem; font-size: var(--t-h1); font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; }

.tenets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.tenets .name { display: block; font-weight: 500; margin-bottom: 0.35rem; }
.tenets p { font-size: 0.95rem; color: var(--fg-dim); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.facts > div { background: var(--tile); border-radius: 12px; padding: clamp(1.5rem, 3vw, 2.5rem) 1.25rem; text-align: center; }
.facts .num { display: block; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.facts .what { display: block; margin-top: 0.6rem; color: var(--fg-dim); font-size: 0.95rem; }

.founders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.letter { background: var(--tile); border-radius: 12px; padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.letter .initials {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--pill);
  background: var(--raise); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1rem;
}
.letter h3 { margin-bottom: 0.2rem; }
.letter .role { display: block; font-size: 0.9rem; color: var(--fg-dim); margin-bottom: 1rem; }
.letter .msg { font-size: 0.95rem; color: var(--fg-dim); }
.letter .sign { margin-top: 1rem; font-size: 0.95rem; font-weight: 500; }

/* ───────── Newsletter ───────── */

.newsletter { text-align: center; }
.newsletter .label { margin-bottom: 0.5rem; }
.newsletter h2 { font-size: var(--t-h1); font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.newsletter .wrap > p { max-width: 48ch; margin: 0 auto 1.5rem; color: var(--fg-dim); }
.newsletter form { display: flex; gap: 0.5rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 200px;
  background: var(--void); border: 1px solid var(--line-2); border-radius: var(--pill);
  color: var(--fg); font-family: var(--sans); font-size: 1rem;
  padding: 0.9rem 1.25rem;
}
.newsletter input::placeholder { color: var(--fg-mute); }
.newsletter input:focus { border-color: var(--fg); }
.newsletter button {
  font-family: var(--sans); font-size: 1rem; font-weight: 500;
  padding: 0.9rem 1.75rem; border-radius: var(--pill);
  background: var(--fg); color: var(--void); border: 1px solid var(--fg);
  cursor: pointer; transition: background 0.18s;
}
.newsletter button:hover { background: #D6D6D6; }
.newsletter .confirm { margin-top: 1rem; min-height: 1.2em; font-size: 0.95rem; color: var(--fg-dim); }

/* ───────── Footer ───────── */

footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 4vw, 3.5rem) 1.75rem; }
.foot { display: grid; gap: 2.5rem; }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}
.foot-cols h3 {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.foot-cols ul { display: grid; gap: 0.6rem; }
.foot-cols a { font-size: 0.95rem; color: var(--fg-dim); transition: color 0.15s; }
.foot-cols a:hover { color: var(--fg); }
.foot .brand { display: block; max-width: 190px; }
.foot .brand span { display: block; margin-top: 0.85rem; font-size: 0.85rem; color: var(--fg-mute); }

.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.foot-bottom .place { font-size: 0.85rem; color: var(--fg-dim); }
.foot-bottom .fine { font-size: 0.85rem; color: var(--fg-mute); margin: 0; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
.foot-bottom nav a { font-size: 0.85rem; color: var(--fg-mute); }
.foot-bottom nav a:hover { color: var(--fg); }

/* ───────── Admin ───────── */

.admin-bar { position: sticky; top: 0; z-index: 80; background: var(--raise); border-bottom: 1px solid var(--line); }
.admin-bar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap; padding-block: 0.85rem;
}
.admin-bar .title { font-size: 0.95rem; font-weight: 600; }
.admin-bar nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.admin-bar nav a {
  font-size: 0.9rem; color: var(--fg-dim);
  padding-block: 0.25rem; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.admin-bar nav a:hover { color: var(--fg); }
.admin-bar nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }

.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-cards > div { background: var(--tile); border-radius: 12px; padding: 1.25rem; }
.admin-cards .num { display: block; font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.admin-cards .what { display: block; margin-top: 0.4rem; font-size: 0.9rem; color: var(--fg-dim); }

.order-grid { display: grid; gap: 1.25rem; }
.addr-card { background: var(--tile); border-radius: 12px; padding: 1.15rem; font-size: 0.95rem; }
.addr-card .label { margin-bottom: 0.6rem; }

/* Full delivery address in the orders list, street on top, postcode below. */
.ship-to { line-height: 1.45; min-width: 15rem; }
.ship-to span { color: var(--fg-dim); font-size: 0.82rem; }

.thumb, .thumb-swatch {
  position: relative; width: 54px; height: 54px; flex: 0 0 auto;
  overflow: hidden; border-radius: 6px; background: var(--tile); object-fit: cover;
}
.thumb-swatch .fabric { position: absolute; inset: 0; }

/* inline-flex so a form sat next to a link keeps them on one row. */
.inline-form { display: inline-flex; gap: 0.5rem; align-items: center; vertical-align: middle; }
select.status-select {
  background: var(--void); border: 1px solid var(--line-2); border-radius: var(--pill);
  color: var(--fg); font-family: var(--sans); font-size: 0.9rem; padding: 0.5rem 0.85rem;
}

/* ───────── Motion ───────── */

.js .rise {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .rail { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; }
}

/* ───────── Responsive ───────── */

@media (max-width: 1100px) {
  .rail { grid-auto-columns: calc((100% - 2 * 1rem) / 3); }
  .product-view { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr; height: auto; padding-block: 0.75rem; row-gap: 0.25rem; }
  .nav-brand { grid-row: 1; }
  .nav-actions { grid-row: 1; grid-column: 2; justify-self: end; }
  .nav-links {
    grid-row: 2; grid-column: 1 / -1; justify-self: start;
    width: 100%; gap: 1.25rem; overflow-x: auto; scrollbar-width: none;
    /* Fade the trailing edge so it reads as a row you can push along. */
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links > li > a { padding-block: 0.5rem 0.75rem; white-space: nowrap; }
  .product-view { grid-template-columns: 1fr; }
  .product-info { position: static; }
  .drop-caption { grid-template-columns: 1fr; }
  .heritage .split { grid-template-columns: 1fr; }
  .heritage .portrait { max-width: 420px; }
  .rail { grid-auto-columns: calc((100% - 1rem) / 2); }
  .card.wide { grid-column: span 1; }
  .card.wide .frame { aspect-ratio: 1 / 1; }
}

@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
  .hero { min-height: clamp(360px, 60vh, 520px); }
  .rail { grid-auto-columns: 74%; }
  .rail-btn { display: none; }
  .product-gallery { grid-template-columns: 1fr; }
  .shot-row { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .cart-summary .btn { flex: 1 1 100%; }
  .foot-bottom nav { margin-left: 0; }
  .utility .wrap { justify-content: center; }
}
