/* Layout: full-bleed editorial grid on a white ground, sharp corners everywhere,
   photography carries the colour. One wide display face, one mono for prices. */
:root {
  --paper: #ffffff;
  --ink: #111111;
  --ink-soft: #5c5c58;
  --line: #e4e4e1;
  --wash: #f2f2f0;
  --scrim: rgb(17 17 17 / 0.28);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --t-xs: 11px;
  --t-sm: 13px;
  --t-base: 15px;
  --t-lg: 18px;
  --t-h3: clamp(20px, 1.6vw, 24px);
  --t-h2: clamp(30px, 3.4vw, 52px);
  --t-statement: clamp(32px, 5.4vw, 92px);

  --gutter: clamp(16px, 2.2vw, 32px);
  --header-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.18, 1);
  color-scheme: light;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
::view-transition-group(product-hero) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
html.is-locked { overflow: hidden; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph-light { font-size: 20px; line-height: 1; display: inline-block; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- Type helpers ---------- */
.h2 {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.mono { font-family: var(--font-mono); font-size: var(--t-sm); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.label { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
[data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-words] .wi { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), transform 0.15s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { background: var(--wash); border-color: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.btn[disabled]::before { display: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--block { width: 100%; }
.btn .ph-light { font-size: 16px; transition: transform 0.45s var(--ease-out); }
.btn:hover .ph-arrow-right { transform: translateX(4px); }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.link-line { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.45s var(--ease-out); padding-bottom: 2px; }
.link-line:hover, .link-line[aria-current="true"] { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform 0.5s var(--ease-out), background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: var(--paper); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--gutter);
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.nav--right { justify-content: flex-end; gap: 22px; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 8px; height: 44px; }
.logo { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.menu-btn { display: none; margin-left: -12px; }
.bag-count { font-family: var(--font-mono); display: inline-block; min-width: 1ch; }
.bag-count.bump { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.6); } }
.nav .only-mobile { display: none; }
.nav .link-line { background-position: 0 calc(100% - 12px); gap: 0; }
.nav .menu-btn { display: none; }
.bag-btn { position: relative; }
.bag-dot { position: absolute; top: 7px; right: 5px; font-size: 10px; line-height: 1; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }

@media (max-width: 860px) {
  .nav--left a { display: none; }
  .nav .menu-btn { display: inline-grid; }
  .nav .only-desktop { display: none; }
  .nav .only-mobile { display: inline-grid; }
  .nav--right { gap: 0; margin-right: -10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--wash);
  isolation: isolate;
}
.hero__media { position: absolute; inset: -2% 0 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; }
.hero__copy {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--header-h) + clamp(32px, 9vh, 120px));
  max-width: 360px;
  display: grid;
  gap: 18px;
  justify-items: start;
  z-index: 2;
}
.hero__kicker { font-family: var(--font-mono); font-size: var(--t-sm); }
.hero__title { font-size: clamp(30px, 3vw, 46px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.hero__sub { color: var(--ink-soft); max-width: 30ch; }
.hero__word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1em;
  margin: 0;
  display: flex;
  justify-content: center;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 30.5vw;
  line-height: 0.8;
  letter-spacing: -0.045em;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  will-change: transform;
}
.hero__word .ch { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__word .ch { transform: translateY(105%); }
  .js .hero__copy > * { opacity: 0; }
}
@media (max-width: 700px) {
  .hero { height: 92svh; }
  .hero__media img { object-position: 50% 72%; }
  .hero__copy { top: calc(var(--header-h) + 24px); right: var(--gutter); max-width: none; gap: 14px; }
  .hero__sub { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--paper); position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding: 16px 14px; font-size: var(--t-sm); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.marquee__item .ph-light { font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 160px) var(--gutter); position: relative; background: var(--paper); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
main { position: relative; z-index: 1; background: var(--paper); }

/* ---------- Media frames ---------- */
.media { position: relative; overflow: hidden; background: var(--wash); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { opacity: 0; }
.media.is-missing::after {
  content: attr(data-alt);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--ink-soft);
}

/* ---------- Product card ---------- */
.card { position: relative; display: grid; gap: 12px; align-content: start; }
.card__media { aspect-ratio: 4 / 5; }
.card__media > a { position: absolute; inset: 0; z-index: 1; }
.card__img { position: absolute; inset: 0; transition: opacity 0.6s var(--ease-out), transform 1.2s var(--ease-out); }
.card__img--alt { opacity: 0; }
.card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.card__quick {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--paper);
  transform: translateY(calc(100% + 12px));
  transition: transform 0.5s var(--ease-out);
}
.card__quick span { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 8px; margin-right: auto; white-space: nowrap; }
.card__quick button { min-width: 38px; height: 36px; padding: 0 8px; font-family: var(--font-mono); font-size: 12px; transition: background-color 0.2s, color 0.2s; }
.card__quick button:hover:not([disabled]) { background: var(--ink); color: var(--paper); }
.card__quick button[disabled] { color: #b9b9b5; text-decoration: line-through; cursor: not-allowed; }
.card__info { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: var(--t-sm); }
.card__name { font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; }
.card__price { font-family: var(--font-mono); font-size: var(--t-sm); }
.card__color { color: var(--ink-soft); grid-column: 1 / -1; }
.card.is-soldout .card__img { filter: grayscale(0.6) contrast(0.92) brightness(1.06); }
@media (hover: hover) and (pointer: fine) {
  .card__media:hover .card__img--alt { opacity: 1; }
  .card__media:hover .card__img { transform: scale(1.04); }
  .card__media:hover .card__quick, .card__media:focus-within .card__quick { transform: translateY(0); }
}
@media (hover: none), (pointer: coarse) { .card__quick { display: none; } }

/* ---------- Bestsellers ---------- */
.best__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.best__grid .card:nth-child(1) { grid-column: 1 / span 2; }
.best__grid .card:nth-child(2) { grid-column: 3 / span 4; }
.best__grid .card:nth-child(3) { grid-column: 7 / span 3; margin-top: clamp(40px, 7vw, 120px); }
.best__grid .card:nth-child(4) { grid-column: 11 / span 2; }
.best__grid .card { grid-row: 1; }
.best__grid .card:nth-child(1) .card__media,
.best__grid .card:nth-child(4) .card__media { aspect-ratio: 3 / 4; }
.best__cta {
  grid-column: 10 / -1;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.4vw, 36px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
}
.best__cta .ph-light { font-size: 1em; transition: transform 0.5s var(--ease-out); }
.best__cta:hover .ph-light { transform: translateX(8px); }
@media (max-width: 900px) {
  .best__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .best__grid .card:nth-child(n) { grid-column: auto; grid-row: auto; margin-top: 0; }
  .best__grid .card:nth-child(even) { margin-top: 48px; }
  .best__grid .card:nth-child(n) .card__media { aspect-ratio: 4 / 5; }
  .best__cta { grid-column: 1 / -1; grid-row: auto; justify-self: start; font-size: 24px; }
}

/* ---------- Statement ---------- */
.statement { padding-block: clamp(96px, 14vw, 220px); }
.statement__text {
  max-width: 20ch;
  font-size: var(--t-statement);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.statement__text .sw { display: inline; }
.inline-img {
  display: inline-block;
  width: 1.7em;
  height: 0.82em;
  vertical-align: -0.04em;
  margin-inline: 0.06em;
  overflow: hidden;
  background: var(--wash);
}
.inline-img img { width: 100%; height: 100%; object-fit: cover; }
.statement__foot { margin-top: clamp(32px, 4vw, 56px); display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.statement__foot p { max-width: 40ch; color: var(--ink-soft); }

/* ---------- Lookbook (pinned horizontal) ---------- */
.look { background: var(--paper); position: relative; }
.look__pin { height: 100svh; overflow: hidden; display: flex; align-items: center; }
.look__track { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding-inline: var(--gutter); will-change: transform; }
.look__intro { flex: 0 0 auto; width: min(40vw, 520px); display: grid; gap: 20px; align-self: center; }
.look__title { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(56px, 8vw, 132px); line-height: 0.86; letter-spacing: -0.05em; }
.look__intro p { color: var(--ink-soft); max-width: 32ch; }
.look__item { flex: 0 0 auto; display: grid; gap: 12px; }
.look__item:nth-child(odd) { align-self: flex-end; margin-bottom: 7vh; }
.look__item:nth-child(even) { align-self: flex-start; margin-top: 9vh; }
.look__media { height: 64vh; aspect-ratio: 3 / 4; }
.look__item:nth-child(3n) .look__media { height: 72vh; aspect-ratio: 4 / 5; }
.look__item:nth-child(4n) .look__media { height: 56vh; }
.look__media img { position: absolute; inset: 0 -9%; width: 118%; max-width: none; height: 100%; }
.look__cap { display: flex; justify-content: space-between; gap: 16px; font-size: var(--t-sm); }
.look__cap span { font-family: var(--font-mono); color: var(--ink-soft); }
.look__cap a { font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; }
.look__end { flex: 0 0 auto; width: 30vw; display: grid; place-items: center; }
@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .look__pin { height: auto; display: block; padding-block: clamp(72px, 10vw, 140px); }
  .look__track { overflow-x: auto; scroll-snap-type: x mandatory; align-items: flex-start; padding-bottom: 8px; scrollbar-width: none; }
  .look__track::-webkit-scrollbar { display: none; }
  .look__intro { width: 78vw; scroll-snap-align: start; align-self: stretch; align-content: end; padding-bottom: 40px; }
  .look__item:nth-child(n) { align-self: flex-start; margin: 0; scroll-snap-align: start; }
  .look__item:nth-child(n) .look__media { height: auto; width: 74vw; aspect-ratio: 3 / 4; }
  .look__media img { inset: 0; width: 100%; }
  .look__end { width: 1px; }
}

/* ---------- Categories ---------- */
.cats__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(240px, 27vw, 440px));
  gap: var(--gutter);
}
.cat { position: relative; display: block; overflow: hidden; background: var(--wash); }
.cat:nth-child(1) { grid-row: 1 / 3; }
.cat:nth-child(2) { grid-column: 2 / 4; }
.cat .media { position: absolute; inset: 0; }
.cat .media img { transition: transform 1.2s var(--ease-out); will-change: transform; }
.cat__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--paper);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cat__label .mono { color: var(--ink-soft); font-weight: 400; }
.cat__label .ph-light { font-size: 16px; transition: transform 0.5s var(--ease-out); }
.cat:hover .cat__label .ph-light { transform: translateX(4px); }
@media (hover: hover) { .cat:hover .media img { transform: scale(1.05); } }
@media (max-width: 760px) {
  .cats__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .cat:nth-child(1), .cat:nth-child(2) { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .cat:nth-child(3), .cat:nth-child(4) { aspect-ratio: 3 / 4; }
}

/* ---------- Shop grid ---------- */
.shop__tools { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.tab sup { font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); top: 0; }
.tab:hover { border-color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab[aria-pressed="true"] sup { color: #bdbdb9; }
.select { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.select select { appearance: none; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 6px 22px 6px 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; cursor: pointer; border-radius: 0; }
.select .ph-light { position: absolute; right: 0; font-size: 12px; pointer-events: none; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) var(--gutter); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .card__info { grid-template-columns: 1fr; }
  .card__price { order: 2; }
  .card__color { order: 3; }
  .shop__tools { width: 100%; gap: 16px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; width: calc(100% + var(--gutter) * 2); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
}
.grid__empty { grid-column: 1 / -1; padding: 64px 0; color: var(--ink-soft); }

/* ---------- Newsletter ---------- */
.news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: stretch; padding-bottom: clamp(72px, 10vw, 160px); }
.news__copy { display: grid; align-content: center; gap: 20px; padding-block: 40px; max-width: 520px; }
.news__copy p { color: var(--ink-soft); }
.news__form { display: grid; gap: 8px; margin-top: 12px; }
.news__form label { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.news__row { display: flex; gap: 0; }
.news__row input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-right: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}
.news__row input::placeholder { color: #8a8a86; }
.news__row input:focus-visible { outline-offset: -3px; }
.news__msg { min-height: 1.5em; font-size: var(--t-sm); }
.news__msg.is-error { color: #b42318; }
.news__media { aspect-ratio: 4 / 3; }
.news__media img { object-position: 38% 40%; }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } .news__media { order: -1; } }

/* ---------- Footer (curtain reveal) ---------- */
.footer-wrap { position: relative; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.footer {
  background: var(--wash);
  padding: clamp(48px, 6vw, 88px) var(--gutter) 0;
  display: grid;
  gap: clamp(40px, 6vw, 96px);
}
.footer-wrap.is-curtain .footer { position: fixed; left: 0; right: 0; bottom: 0; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gutter); }
.footer__cols h3 { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.footer__cols li + li { margin-top: 6px; }
.footer__cols a { font-size: var(--t-sm); }
.footer__note { color: var(--ink-soft); font-size: var(--t-sm); max-width: 34ch; }
.footer__word {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 29vw;
  line-height: 0.74;
  letter-spacing: -0.045em;
  display: flex;
  justify-content: center;
  white-space: nowrap;
  margin-inline: calc(var(--gutter) * -1);
  overflow: hidden;
  padding-top: 0.04em;
  user-select: none;
}
.footer__word span { display: inline-block; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-soft); font-family: var(--font-mono); position: relative; background: var(--wash); }
@media (max-width: 760px) { .footer__cols { grid-template-columns: 1fr 1fr; } .footer__note { grid-column: 1 / -1; } }

/* ---------- Overlays: drawer, search, menu ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.overlay.is-open { visibility: visible; pointer-events: auto; }
.overlay__scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 0.5s var(--ease-out); }
.overlay.is-open .overlay__scrim { opacity: 1; }
.overlay { transition: visibility 0s linear 0.6s; }
.overlay.is-open { transition: visibility 0s; }

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--paper);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-in-out);
  padding-top: env(safe-area-inset-top, 0px);
}
.overlay.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 12px 0 var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.drawer__body { overflow-y: auto; padding: 8px var(--gutter); }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.drawer__row { display: flex; justify-content: space-between; font-size: var(--t-sm); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.drawer__ship { font-size: var(--t-sm); color: var(--ink-soft); }
.drawer__note { font-size: var(--t-sm); padding: 12px 14px; background: var(--wash); }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 0; }
.line .media { aspect-ratio: 4 / 5; }
.line__name { font-size: var(--t-sm); font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; }
.line__meta { font-size: var(--t-sm); color: var(--ink-soft); }
.line__price { font-family: var(--font-mono); font-size: var(--t-sm); text-align: right; }
.line__actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; }
.qty button .ph-light { font-size: 14px; }
.qty span { min-width: 26px; text-align: center; font-family: var(--font-mono); font-size: 12px; }
.line__remove { font-size: 12px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.line.is-new { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: var(--wash); } 100% { background: transparent; } }
.empty { display: grid; gap: 20px; justify-items: start; padding: 40px 0; }
.empty p { font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.02em; }

.search__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-height: 88svh;
  background: var(--paper);
  display: grid;
  grid-template-rows: auto 1fr;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-in-out);
  padding-top: env(safe-area-inset-top, 0px);
}
.overlay.is-open .search__panel { transform: translateY(0); }
.search__bar { display: flex; align-items: center; gap: 12px; height: 84px; padding: 0 12px 0 var(--gutter); border-bottom: 1px solid var(--line); }
.search__bar input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: clamp(20px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; outline: none; }
.search__bar input::placeholder { color: #9a9a96; }
.search__results { overflow-y: auto; padding: 24px var(--gutter) 32px; }
.search__results .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.search__hint { color: var(--ink-soft); font-size: var(--t-sm); margin-bottom: 16px; }
@media (max-width: 900px) { .search__results .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.menu__panel {
  position: absolute;
  inset: 0;
  background: var(--paper);
  display: grid;
  grid-template-rows: auto 1fr auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-in-out);
  padding-top: env(safe-area-inset-top, 0px);
}
.overlay.is-open .menu__panel { clip-path: inset(0 0 0 0); }
.menu__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 12px 0 var(--gutter); }
.menu__links { display: grid; align-content: center; gap: 4px; padding: 0 var(--gutter); }
.menu__links a { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(40px, 12vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; display: block; overflow: hidden; }
.menu__links a span { display: inline-block; transform: translateY(105%); transition: transform 0.8s var(--ease-out); }
.overlay.is-open .menu__links a span { transform: translateY(0); }
.overlay.is-open .menu__links a:nth-child(2) span { transition-delay: 0.05s; }
.overlay.is-open .menu__links a:nth-child(3) span { transition-delay: 0.1s; }
.overlay.is-open .menu__links a:nth-child(4) span { transition-delay: 0.15s; }
.menu__foot { padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 20px; font-size: var(--t-sm); }

/* ---------- Product page ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.55fr) minmax(240px, 0.95fr);
  gap: clamp(24px, 4vw, 72px);
  padding: calc(var(--header-h) + 24px) var(--gutter) clamp(72px, 8vw, 120px);
  align-items: start;
}
.pdp__info, .pdp__buy { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 28px; }
.pdp__head { display: grid; gap: 16px; }
.pdp__buy { gap: 20px; }
.pdp__crumbs { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); display: flex; gap: 8px; }
.pdp__crumbs a:hover { color: var(--ink); }
.pdp__title { font-size: clamp(26px, 2.4vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-transform: uppercase; }
.pdp__color { color: var(--ink-soft); }
.pdp__price { font-family: var(--font-mono); font-size: var(--t-lg); }
.pdp__desc { color: var(--ink-soft); max-width: 42ch; }
.pdp__gallery { display: grid; gap: 8px; }
.pdp__gallery .media { aspect-ratio: 4 / 5; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; height: 52px; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ph-light { font-size: 14px; transition: transform 0.4s var(--ease-out); }
.acc details[open] summary .ph-light { transform: rotate(45deg); }
.acc details::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete; }
.acc details[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }
.acc__body { padding-bottom: 18px; font-size: var(--t-sm); color: var(--ink-soft); display: grid; gap: 8px; }
.acc__body ul { display: grid; gap: 4px; }
.acc__body li::before { content: "- "; }
.size-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); }
.size-table th { font-weight: 500; color: var(--ink); }
.swatches { display: flex; gap: 8px; }
.swatch { width: 30px; height: 30px; border: 1px solid var(--line); position: relative; }
.swatch[aria-current="true"]::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--ink); }
.opt-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.opt-label span { color: var(--ink-soft); font-weight: 500; }
.opt-label button { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--ink-soft); }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.size {
  height: 46px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.size:hover:not([disabled]) { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size[disabled] { color: #b9b9b5; background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px)); cursor: not-allowed; }
.sizes.is-error .size:not([disabled]) { border-color: var(--ink); animation: nudge 0.4s ease; }
@keyframes nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.pdp__msg { font-size: var(--t-sm); min-height: 1.5em; }
.pdp__perks { display: grid; gap: 6px; font-size: var(--t-sm); color: var(--ink-soft); }
.pdp__perks li { display: flex; gap: 10px; align-items: center; }
.pdp__perks .ph-light { font-size: 16px; color: var(--ink); }
.pdp__missing { padding: calc(var(--header-h) + 15vh) var(--gutter) 20vh; display: grid; gap: 24px; justify-items: start; }

.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.5s var(--ease-out);
}
.buybar.is-visible { transform: translateY(0); }
.buybar__info { display: grid; font-size: 12px; min-width: 0; }
.buybar__info strong { font-weight: 600; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__info span { font-family: var(--font-mono); color: var(--ink-soft); }
.buybar .btn { margin-left: auto; height: 46px; padding: 0 20px; }

@media (max-width: 960px) {
  .pdp { display: flex; flex-direction: column; align-items: stretch; padding-top: var(--header-h); gap: 28px; }
  .pdp__info { display: contents; }
  .pdp__head { order: 1; }
  .pdp__buy { order: 2; }
  .pdp__info .acc { order: 3; }
  .pdp__gallery {
    order: 0;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .pdp__gallery::-webkit-scrollbar { display: none; }
  .pdp__gallery .media { scroll-snap-align: start; }
  .pdp__buy { position: static; }
  .buybar { display: flex; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  @view-transition { navigation: none; }
}
