/* =========================================================
   CLANORQUE® — Toronto
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Antonio:wght@400;600;700&display=swap");

:root {
  --ink: #0a0a0a;
  --paper: #fbfaf7;
  --white: #ffffff;
  --rouge: #ec1c24;          /* La Ligne Rouge */
  --grey: #8b8b8b;
  --line: rgba(10, 10, 10, 0.14);
  --gutter: clamp(16px, 3.2vw, 48px);
  --bar-h: 34px;
  --hdr-h: 72px;
  --top-h: calc(var(--bar-h) + var(--hdr-h));
  --ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Antonio", "Arial Narrow", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; font-size: inherit; font-weight: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
::selection { background: var(--rouge); color: var(--white); }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; }

/* La Ligne Rouge — the dashed red stitch used as a divider across the site */
.stitch { display: block; height: 0; border-top: 1px dashed var(--rouge); }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--hdr-h);
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--ink);
  transition: color 0.4s var(--ease), background-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.hdr--solid { background: var(--white); }
.hdr--hidden { transform: translateY(-100%); }

.hdr__left, .hdr__right { display: flex; align-items: center; gap: 28px; }
.hdr__right { justify-content: flex-end; }

.hdr__link { position: relative; padding-block: 6px; }
.hdr__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--rouge); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.hdr__link:hover::after, .hdr__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hdr__link:hover { text-transform: lowercase; }

.hdr__logo { display: block; width: clamp(130px, 13vw, 180px); }
.hdr__logo img { width: 100%; height: auto; transition: filter 0.4s var(--ease); }

.hdr__icon { display: none; width: 24px; height: 24px; }
.hdr__icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.4; }

.cart-count { font-variant-numeric: tabular-nums; }
.hdr__bag { position: relative; }
.hdr__badge {
  position: absolute; right: -6px; top: -4px;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: var(--rouge); color: var(--white);
  font-size: 9px; line-height: 15px; text-align: center;
}
.hdr__badge:empty, .hdr__badge[data-zero] { display: none; }

/* On the home reel the big centred mark replaces the header logo */
.page-home .hdr__logo { visibility: hidden; }

/* Home: header floats over the reel in white */
.page-home .hdr { color: var(--white); }
.page-home .hdr__logo img { filter: invert(1); }

/* The big centred logo on the home reel (Martine Rose puts it mid-screen) */
.home-mark {
  position: fixed;
  left: 50%; top: 50%;
  z-index: 40;
  width: min(62vw, 720px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.home-mark img { width: 100%; height: auto; filter: invert(1) drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35)); }
.home-mark__tag {
  margin-top: 14px;
  display: flex; justify-content: space-between;
  color: var(--white);
  font-size: 11px; letter-spacing: 0.18em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.page-home .hdr, .reel-foot, .reel__caption { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }

/* ---------------------------------------------------------
   Home reel — infinite auto-scrolling video stack
   --------------------------------------------------------- */
.reel {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.reel.is-dragging { cursor: grabbing; }

.reel__track { will-change: transform; }

.reel__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 62vh;
  overflow: hidden;
  background: #111;
}
.reel__item video,
.reel__item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s var(--ease);
}
.reel__item::after {           /* hover dim, like MR's opacity .8 */
  content: ""; position: absolute; inset: 0; background: #000; opacity: 0;
  transition: opacity 0.4s var(--ease); pointer-events: none;
}
@media (hover: hover) { .reel__item:hover::after { opacity: 0.18; } }

.reel__caption span:first-child { color: var(--white); background: var(--rouge); padding: 1px 5px; text-shadow: none; }
.reel__caption {
  position: absolute; left: var(--gutter); bottom: 18px; align-items: center;
  color: var(--white); z-index: 1;
  display: flex; gap: 18px;
  opacity: 0.9;
}

.reel-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 16px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--white);
  pointer-events: none;
}
.reel-foot a, .reel-foot button { pointer-events: all; }
.reel-foot__links { display: flex; gap: 24px; }

.reel-foot a { white-space: nowrap; }

@media (max-width: 768px) {
  .reel__item { aspect-ratio: 4 / 5; min-height: 0; }
  .reel__caption { bottom: auto; top: calc(var(--hdr-h) + 4px); }
  .reel-foot > span { display: none; }
  .reel-foot { justify-content: center; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------
   Menu overlay (mobile / hamburger) — Wales Bonner style
   --------------------------------------------------------- */
.menu {
  position: fixed; inset: 0; z-index: 80;
  background: var(--paper);
  color: var(--ink);
  display: flex; flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }

.menu__bar {
  height: var(--hdr-h);
  padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  flex: none;
}
.menu__bar-left, .menu__bar-right { display: flex; align-items: center; gap: 22px; }
.menu__bar-right { justify-content: flex-end; }
.menu__bar svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.4; display: block; }
.menu__logo { width: clamp(132px, 38vw, 220px); }
.menu__logo img { width: 100%; height: auto; }

.menu__panels { position: relative; flex: 1; overflow: hidden; }
.menu__panel {
  position: absolute; inset: 0;
  padding: 7vh var(--gutter) 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.menu__panel[data-state="left"]  { transform: translateX(-30%); opacity: 0; pointer-events: none; }
.menu__panel[data-state="right"] { transform: translateX(100%); opacity: 0; pointer-events: none; }

.menu__primary li { overflow: hidden; }
.menu__primary a, .menu__primary button {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 14px;
  font-size: clamp(17px, 2.1vw, 22px);
  text-align: left;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease), color 0.2s;
}
.menu.is-open .menu__primary a,
.menu.is-open .menu__primary button { transform: none; }
.menu__primary li:nth-child(1) > * { transition-delay: 0.05s; }
.menu__primary li:nth-child(2) > * { transition-delay: 0.09s; }
.menu__primary li:nth-child(3) > * { transition-delay: 0.13s; }
.menu__primary li:nth-child(4) > * { transition-delay: 0.17s; }
.menu__primary li:nth-child(5) > * { transition-delay: 0.21s; }
.menu__primary li:nth-child(6) > * { transition-delay: 0.25s; }
.menu__primary li:nth-child(7) > * { transition-delay: 0.29s; }
.menu__primary a:hover, .menu__primary button:hover, .menu__primary a:active, .menu__primary button:active { color: var(--rouge); }
.menu__primary li + li { border-top: 1px solid transparent; }
.menu__primary svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; flex: none; }
.menu__primary .menu__sold { color: var(--grey); font-size: 12px; }

.menu__back {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px; font-size: 14px; color: var(--grey);
}
.menu__back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; }

.menu__secondary { margin-top: 48px; }
.menu__secondary a { display: block; padding-block: 5px; font-size: 16px; }
.menu__secondary a:hover { color: var(--rouge); }

.menu__meta {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--rouge);
  display: flex; justify-content: space-between; font-size: 12px; color: var(--grey);
}

@media (min-width: 1025px) {
  .menu__panel { padding-top: 10vh; }
  .menu__panel-inner { max-width: 560px; }
}

/* ---------------------------------------------------------
   Search overlay
   --------------------------------------------------------- */
.search {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  background: var(--paper);
  padding: 22px var(--gutter) 32px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  border-bottom: 1px solid var(--line);
}
.search.is-open { transform: none; }
.search form { display: flex; gap: 16px; align-items: center; }
.search input:focus { border-bottom-color: var(--rouge); }
.search input {
  flex: 1; border: 0; border-bottom: 1px solid var(--ink); background: transparent;
  font: 400 clamp(20px, 3vw, 32px)/1.2 var(--ui); padding: 10px 0; outline: none; text-transform: none;
}
.search__results { margin-top: 18px; display: grid; gap: 8px; }
.search__results a { display: flex; gap: 14px; align-items: center; }
.search__results img { width: 44px; height: 55px; object-fit: cover; }

/* ---------------------------------------------------------
   Cart drawer
   --------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.35);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }

.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 75;
  width: min(440px, 100%);
  background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.cart.is-open { transform: none; }
.cart__head, .cart__foot { padding: 22px var(--gutter); }
.cart__head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cart__body { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.cart__empty { padding-block: 40px; color: var(--grey); text-align: center; }
.cart__line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.cart__line img { width: 76px; height: 95px; object-fit: cover; }
.cart__line-meta { display: grid; gap: 4px; align-content: start; }
.cart__line-meta span { color: var(--grey); }
.cart__qty { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.cart__qty button { width: 28px; height: 28px; border: 1px solid var(--ink); transition: color .2s, border-color .2s; }
.cart__qty button:hover, .cart__qty button:active { color: var(--rouge); border-color: var(--rouge); }
#cart-checkout { background: var(--rouge); border-color: var(--rouge); }
#cart-checkout:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cart__head span span { color: var(--rouge); }
.cart__remove { color: var(--grey); text-decoration: underline; }
.cart__foot { border-top: 1px solid var(--line); display: grid; gap: 14px; }
.cart__row { display: flex; justify-content: space-between; }
.cart__note { color: var(--grey); font-weight: 400; text-transform: none; font-size: 12px; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--ink);
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--white); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------------------------------------------------------
   Shop (collection grid)
   --------------------------------------------------------- */
.page-shop main { padding-top: calc(var(--hdr-h) + 20px); }

.shop-hero {
  position: relative;
  padding: 7vh var(--gutter) 5vh;
  display: grid; justify-items: center; gap: 22px;
  text-align: center;
}
.shop-hero img { width: min(340px, 64vw); height: auto; }
.shop-hero p { max-width: 460px; color: var(--grey); }

.shop-filters {
  position: sticky; top: var(--hdr-h); z-index: 20;
  display: flex; gap: 8px 26px; justify-content: center; align-items: center;
  padding: 14px var(--gutter);
  background: var(--white);
  border-bottom: 1px dashed transparent;
  transition: top 0.5s var(--ease), border-color 0.3s;
}
body.hdr-is-hidden .shop-filters { top: 0; }
.shop-filters.is-stuck { border-bottom-color: var(--rouge); }
.shop-filters button {
  padding-block: 4px; white-space: nowrap;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.shop-filters button:hover { color: var(--rouge); }
.shop-filters button[aria-pressed="true"] { color: var(--rouge); border-bottom-color: var(--rouge); }
.shop-filters__count { margin-left: 3px; font-size: 9px; vertical-align: super; color: var(--grey); }
.shop-filters button[aria-pressed="true"] .shop-filters__count { color: inherit; }

.shop-wrap { position: relative; padding: 28px var(--gutter) 90px; background: var(--white); }
.shop-empty { padding: 60px 0; text-align: center; color: var(--grey); display: grid; gap: 14px; justify-items: center; }
.shop-empty a { color: var(--rouge); border-bottom: 1px dashed var(--rouge); }

@media (max-width: 768px) {
  .shop-hero { padding: 3vh var(--gutter) 1vh; gap: 12px; }
  .shop-hero img { width: min(210px, 54vw); }
  .shop-filters {
    justify-content: flex-start;
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 8px; padding: 10px var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .shop-filters::-webkit-scrollbar { display: none; }
  .shop-filters button {
    flex: none;
    height: 36px; padding: 0 15px;
    border: 1px solid var(--line); border-radius: 999px;
  }
  .shop-filters button[aria-pressed="true"] { background: var(--rouge); border-color: var(--rouge); color: var(--white); }
  .shop-wrap { padding-top: 16px; }
}

.grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 28px;
  max-width: 1600px; margin-inline: auto;
}
/* A filter that leaves less than a full row centres what's left rather
   than stranding it against the left edge. Flex, not grid, so it works
   for any number of cards; hidden cards are display:none so they don't
   take up a slot. */
.grid.grid--few { display: flex; flex-wrap: wrap; justify-content: center; }
.grid.grid--few .card { flex: 0 1 380px; }

@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; } }
@media (max-width: 700px)  { .grid.grid--few .card { flex: 0 1 min(72vw, 320px); } }

.card { display: block; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #f6f5f2; }
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.5s var(--ease), transform 1.2s var(--ease);
}
.card__media img + img { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__media img + img { opacity: 1; }
  .card:hover .card__media img:first-child { transform: scale(1.03); }
}
.card__tag {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  background: var(--rouge); color: var(--white);
  padding: 3px 7px;
  font: 600 13px/1.1 var(--display); text-transform: none; letter-spacing: 0.02em;
}
.card__tag--sold { background: var(--ink); }
.card__info { padding-top: 12px; display: grid; gap: 4px; }
.card__name { transition: color 0.25s; }
@media (hover: hover) { .card:hover .card__name { color: var(--rouge); } }
.card__price { display: flex; align-items: center; gap: 8px; }
.card__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rouge); flex: none; }
.card__dot--sold { background: transparent; border: 1px solid var(--grey); }
.card__name { font: 600 clamp(17px, 1.6vw, 22px)/1.1 var(--display); text-transform: none; letter-spacing: 0; }
.card__price { font: 400 clamp(15px, 1.3vw, 19px)/1 var(--display); color: #444; }
.card__collection { color: var(--rouge); font-size: 10px; }
@media (max-width: 700px) { .card__info { padding-top: 9px; gap: 3px; } .card__name { font-size: 16px; } .card__price { font-size: 14px; } .card__tag { left: 8px; top: 8px; font-size: 12px; } }

/* ---------------------------------------------------------
   Product page — Martine Rose layout
   --------------------------------------------------------- */
.page-product main { padding-top: var(--hdr-h); }

.pdp {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 84px minmax(0, 2fr);
  gap: 0 var(--gutter);
  padding: 0 var(--gutter);
  min-height: calc(100vh - var(--hdr-h));
}

.pdp__info {
  position: sticky; top: var(--hdr-h);
  align-self: start;
  min-height: calc(100vh - var(--hdr-h));
  padding-block: 11vh 40px;
  display: grid; align-content: start; gap: 30px;
  text-align: center;
}
.pdp__crumbs { color: var(--grey); display: flex; justify-content: center; gap: 8px; }
.pdp__crumbs a:last-child { color: var(--rouge); }
.pdp__title { display: grid; gap: 4px; }
.pdp__title h1 { font-size: 14px; }
.pdp__price { font-size: 13px; }
.pdp__title::after { content: ""; display: block; width: 56px; margin: 16px auto 0; border-top: 1px dashed var(--rouge); }
.pdp__size-head { display: flex; justify-content: space-between; align-items: baseline; max-width: 360px; margin: 0 auto 10px; }
.pdp__size-head a { color: var(--rouge); border-bottom: 1px dashed var(--rouge); font-weight: 400; }
.pdp__size-head output { color: var(--rouge); }

.pdp__sizes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pdp__size {
  min-width: 56px; height: 40px; padding: 0 12px;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}
.pdp__size { transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s; }
@media (hover: hover) { .pdp__size:hover { border-color: var(--rouge); color: var(--rouge); } }
.pdp__size:active { transform: scale(0.96); }
.pdp__size[aria-pressed="true"] { background: var(--rouge); border-color: var(--rouge); color: var(--white); }
.pdp__size[disabled],
.pdp__size[disabled][aria-pressed="true"] { background: transparent; border-color: var(--line); color: var(--grey); opacity: 1; }
.pdp__sizes.is-nudged { animation: nudge 0.45s var(--ease); }
@keyframes nudge { 0%,100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.pdp__size[disabled] { opacity: 0.35; text-decoration: line-through; }

.pdp__buy { display: grid; gap: 8px; }
.pdp__buy .btn { min-height: 64px; }
.pdp__buy .btn:hover { background: var(--rouge); border-color: var(--rouge); color: var(--white); }
.pdp__msg { min-height: 16px; color: var(--rouge); }

.pdp__desc { display: grid; gap: 22px; max-width: 380px; margin-inline: auto; }
.pdp__desc dl { margin: 0; display: grid; gap: 14px; }
.pdp__desc dl > div { padding-top: 14px; border-top: 1px dashed rgba(236, 28, 36, 0.45); }
.pdp__desc dt { margin-bottom: 2px; }
.pdp__desc dd { margin: 0; font-weight: 400; }

.pdp__thumbs {
  position: sticky; top: var(--hdr-h);
  align-self: start;
  padding-block: 11vh 40px;
  display: grid; gap: 14px;
}
.pdp__thumbs button { display: block; aspect-ratio: 4 / 5; overflow: hidden; opacity: 0.45; transition: opacity 0.25s; background: #f1f0ec; }
.pdp__thumbs button[aria-current="true"], .pdp__thumbs button:hover { opacity: 1; }
.pdp__thumbs button[aria-current="true"] { outline: 1px solid var(--rouge); outline-offset: 3px; }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp__gallery { display: grid; gap: var(--gutter); padding-block: 24px 80px; }
.pdp__gallery figure { margin: 0; background: #f6f5f2; cursor: zoom-in; }
.pdp__gallery img { width: 100%; height: auto; }

.pdp__related { padding: 70px var(--gutter) 90px; border-top: 1px solid var(--line); }
.pdp__related h2 { text-align: center; margin-bottom: 36px; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; padding: 0; }
  .pdp__thumbs { display: none; }
  .pdp__gallery {
    order: -1;
    grid-auto-flow: column; grid-auto-columns: 100%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 0; padding: 0;
    scrollbar-width: none;
  }
  .pdp__gallery::-webkit-scrollbar { display: none; }
  .pdp__gallery figure { scroll-snap-align: start; aspect-ratio: 4 / 5; }
  .pdp__gallery img { height: 100%; object-fit: cover; }
  .pdp__info { position: static; min-height: 0; padding: 26px var(--gutter) 60px; }
  .pdp__dots { display: flex; }
}
.pdp__dots { display: none; justify-content: center; gap: 4px; padding: 14px var(--gutter) 0; }
.pdp__dots span { flex: 1; max-width: 42px; height: 2px; background: var(--line); transition: background 0.3s; }
.pdp__dots span.is-active { background: var(--rouge); }

/* Mobile: sticky add-to-bag bar */
.pdp-bar { display: none; }
@media (max-width: 900px) {
  .page-product .pdp__title h1 { font-size: 15px; }
  .page-product .pdp__size { height: 46px; min-width: 0; }
  .page-product .pdp__sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); max-width: 360px; margin-inline: auto; }
  .page-product .pdp__sizes:has(> :only-child) { grid-template-columns: minmax(120px, max-content); justify-content: center; }
  .pdp__info { gap: 24px; }
  .pdp__desc { text-align: left; max-width: 520px; }
  .pdp__desc dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
  .pdp__desc dt { margin: 0; }
  .pdp__related { padding: 44px 0 60px; }
  .pdp__related h2 { margin-bottom: 20px; }
  .pdp__related .grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .pdp__related .grid::-webkit-scrollbar { display: none; }
  .pdp__related .card { scroll-snap-align: start; opacity: 1; transform: none; }

  .pdp-bar {
    display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px dashed var(--rouge);
    transform: translateY(105%);
    transition: transform 0.45s var(--ease);
  }
  .pdp-bar.is-visible { transform: none; }
  .pdp-bar__meta { display: grid; gap: 2px; min-width: 0; }
  .pdp-bar__meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pdp-bar__price { color: var(--grey); }
  .pdp-bar__btn { min-height: 46px; padding: 0 22px; background: var(--rouge); border-color: var(--rouge); }
  .pdp-bar__btn--ghost { background: var(--white); color: var(--rouge); }
  .page-product .ftr { padding-bottom: 90px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 95; background: var(--white);
  display: none; overflow-y: auto; cursor: zoom-out;
}
.lightbox.is-open { display: block; }
.lightbox img { width: 100%; height: auto; }
.lightbox__close { position: fixed; top: 20px; right: var(--gutter); z-index: 1; background: var(--white); padding: 8px 12px; }

/* ---------------------------------------------------------
   Content pages (About / Archive)
   --------------------------------------------------------- */
.page-content main { padding-top: var(--hdr-h); }

.about {
  min-height: calc(100vh - var(--hdr-h));
  display: grid; grid-template-columns: 1fr 1fr;
}
.about__media { position: sticky; top: var(--hdr-h); height: calc(100vh - var(--hdr-h)); overflow: hidden; }
.about__media video, .about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__text { padding: 12vh var(--gutter) 90px; display: grid; align-content: start; gap: 48px; }
.about__lede {
  font: 600 clamp(30px, 4.2vw, 64px)/1.02 var(--display);
  text-transform: none; letter-spacing: -0.005em;
}
.about__lede em { font-style: normal; color: var(--rouge); }
.about__list { counter-reset: p; display: grid; gap: 0; border-top: 1px dashed var(--rouge); }
.about__list li {
  counter-increment: p;
  display: grid; grid-template-columns: 48px 1fr; gap: 12px;
  padding-block: 20px; border-bottom: 1px dashed var(--rouge);
  font: 400 clamp(18px, 1.8vw, 26px)/1.2 var(--display); text-transform: none;
}
.about__list li::before { content: "0" counter(p); font: 700 11px/2 var(--ui); color: var(--rouge); }
.about__sig { color: var(--grey); display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { position: relative; top: 0; height: 60vh; }
}

.archive {
  min-height: calc(100vh - var(--hdr-h));
  display: grid; place-items: center; gap: 30px;
  padding: 10vh var(--gutter);
  text-align: center;
  background-image: url("../img/tri-emblem-pattern.webp");
  background-size: 540px auto;
}
.archive__card { background: var(--white); padding: clamp(24px, 5vw, 64px); display: grid; gap: 28px; justify-items: center; }
.archive__card img { width: min(560px, 80vw); height: auto; }

/* ---------------------------------------------------------
   Footer — Martine Rose layout
   --------------------------------------------------------- */
.ftr {
  padding: 60px var(--gutter) 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.ftr__signup { display: grid; gap: 14px; align-content: start; max-width: 340px; }
.ftr__signup input[type="email"] {
  height: 44px; padding: 0 12px; border: 1px solid var(--ink);
  font: inherit; text-transform: none; font-weight: 400; background: transparent; outline: none;
}
.ftr__check { display: flex; gap: 10px; font-weight: 400; text-transform: none; font-size: 12px; align-items: flex-start; }
.ftr__check input { margin: 2px 0 0; accent-color: var(--ink); }
.ftr__logo { display: grid; place-items: center; align-content: start; }
.ftr__logo img { width: min(220px, 100%); height: auto; }
.ftr__col { display: grid; gap: 4px; align-content: start; }
.ftr__col h3 { margin-bottom: 8px; }
.ftr__col a { font-weight: 400; }
.ftr__col a:hover { color: var(--rouge); }
.ftr__signup .btn:hover { background: var(--rouge); border-color: var(--rouge); color: var(--white); }
.ftr__base {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 26px; margin-top: 10px; border-top: 1px dashed var(--rouge);
  color: var(--grey);
}
@media (max-width: 900px) {
  .ftr { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 44px; }
  .ftr__col a { padding-block: 5px; }
  .ftr__logo img { width: 130px; }
  .ftr__signup, .ftr__logo { grid-column: 1 / -1; max-width: none; }
  .ftr__logo { order: -1; }
}

/* ---------------------------------------------------------
   Responsive header swap
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --hdr-h: 64px; }
  .hdr__text { display: none; }
  .hdr__icon { display: block; }
  .hdr__left, .hdr__right { gap: 18px; }
}

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* =========================================================
   The glass rail — announcement bar + fixed header
   ========================================================= */
.announce {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--bar-h); overflow: hidden;
  background: rgba(250, 250, 248, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(10, 10, 10, 0.07);
  color: var(--ink);
  font-size: 10px; letter-spacing: 0.08em;
}
body.announce-closed { --bar-h: 0px; }
body.announce-closed .announce { display: none; }
.announce__track { position: absolute; inset: 0; }
.announce__item {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding-inline: 46px; text-align: center;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.65s var(--ease), color 0.2s;
}
.announce__item.is-current { transform: none; }
.announce__item.is-out { transform: translate3d(0, -100%, 0); }
.announce__item:hover { color: var(--rouge); }
.announce__close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; display: grid; place-items: center; opacity: 0.5;
}
.announce__close svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.announce__close:hover { opacity: 1; color: var(--rouge); }

.hdr { top: var(--bar-h); transition: height 0.4s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease); }
.hdr--hidden { transform: none; }        /* the header stays put on every page now */
.hdr--solid {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px dashed rgba(236, 28, 36, 0.5);
}
.hdr--compact { height: 56px; }
.hdr__logo { width: clamp(104px, 10.5vw, 140px); transition: width 0.4s var(--ease); }
.hdr--compact .hdr__logo { width: clamp(92px, 8.5vw, 116px); }
.page-home .hdr { background: transparent; border-bottom: 0; }
.page-home .hdr__logo { visibility: visible; }

.home-mark { display: none; }
.reel-foot { justify-content: center; }

/* Page offsets under the rail */
.page-shop main { padding-top: calc(var(--top-h) + 16px); }
.page-product main, .page-content main { padding-top: var(--top-h); }
.shop-filters, body.hdr-is-hidden .shop-filters { top: var(--top-h); }
.pdp { min-height: calc(100vh - var(--top-h)); }
.pdp__info, .pdp__thumbs { top: var(--top-h); }
.pdp__info { min-height: calc(100vh - var(--top-h)); }
.about { min-height: calc(100vh - var(--top-h)); }
.about__media { top: var(--top-h); height: calc(100vh - var(--top-h)); }
.archive { min-height: calc(100vh - var(--top-h)); }
@media (max-width: 900px) { .about__media { height: 60vh; } .pdp__info { min-height: 0; } }

/* Sold out — greyed, but still clickable and browsable */
.card--sold .card__media img { filter: grayscale(1); opacity: 0.78; transition: filter 0.45s var(--ease), opacity 0.45s var(--ease); }
@media (hover: hover) { .card--sold:hover .card__media img { filter: none; opacity: 1; } }
.card--sold .card__name, .card--sold .card__price { color: var(--grey); }
.pdp__sold { color: var(--grey); }
.pdp__size--sold { color: var(--grey); border-color: var(--line); text-decoration: line-through; }
.pdp__size--sold[aria-pressed="true"] { background: transparent; color: var(--ink); border-color: var(--ink); border-style: dashed; }

/* Footer socials */
.ftr__social { display: flex; gap: 12px; align-items: center; }
.ftr__social a { display: grid; place-items: center; width: 26px; height: 26px; }
.ftr__social svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.ftr__social a:hover { color: var(--rouge); }
.ftr__base { align-items: center; }
@media (max-width: 700px) { .ftr__base { flex-direction: column; gap: 14px; text-align: center; } }
@media (max-width: 1024px) { .hdr--compact { height: 52px; } }

/* Bottom menu list: same rhythm as the main list, with a small chevron */
.menu__secondary a, .menu__secondary button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding-block: 5px; font-size: 16px; text-align: left;
}
.menu__secondary svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; flex: none; }
.menu__secondary button:hover { color: var(--rouge); }

/* Filter row follows the header as it shrinks */
body.hdr-compact .shop-filters { top: calc(var(--bar-h) + 56px); }
@media (max-width: 1024px) { body.hdr-compact .shop-filters { top: calc(var(--bar-h) + 52px); } }


/* =========================================================
   v3 — floating banner pill, calmer grid, filter panel
   ========================================================= */
body { --top-h: var(--hdr-h); }   /* the pill only appears on the home page */
.hdr { top: 0; }

/* The announcement sits below the header as a rounded glass pill */
.announce {
  top: calc(var(--hdr-h) + 18px);   /* 6px read as crowded against the header */
  left: 50%; right: auto;
  width: min(520px, calc(100% - 2 * var(--gutter)));
  height: 38px;
  border-radius: 14px;
  transform: translateX(-50%);
  background: rgba(252, 252, 250, 0.62);
  border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
  z-index: 55;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.announce__item { padding-inline: 42px; }
body.hdr-compact .announce { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-10px); }
@media (max-width: 768px) { .announce { height: 36px; border-radius: 12px; } }

/* Menu — one rhythm for every line, in the brand's condensed face */
.menu__panel { padding-top: 6vh; }
.menu__primary a, .menu__primary button,
.menu__secondary a, .menu__secondary button {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 4.6vw, 21px);
  letter-spacing: 0.015em;
  padding-block: 8px;
}
.menu__primary svg, .menu__secondary svg { width: 15px; height: 15px; }
.menu__secondary { margin-top: 34px; }
.menu__sold { font-size: 11px; }

/* Shop head — category on the left, Filter on the right */
.shop-hero { display: none; }
.shop-head {
  position: sticky; top: var(--top-h); z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: var(--white);
  font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0;
}
body.hdr-compact .shop-head { top: var(--hdr-h); }
@media (max-width: 1024px) { body.hdr-compact .shop-head { top: var(--hdr-h); } }
.shop-head__filter { position: relative; padding-block: 2px; }
.shop-head__filter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--rouge); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.shop-head__filter:hover::after { transform: scaleX(1); transform-origin: left; }
.shop-wrap { padding-top: 8px; }

/* Filter panel: a sheet on phones, a dropdown on desktop */
.filter-sheet {
  position: fixed; inset: 0; z-index: 78;
  background: rgba(10, 10, 10, 0.28);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.filter-sheet.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease); }
.filter-sheet__panel {
  width: 100%; max-width: 520px;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  padding: 16px var(--gutter) max(20px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.filter-sheet.is-open .filter-sheet__panel { transform: none; }
.filter-sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px; border-bottom: 1px dashed rgba(236, 28, 36, 0.5);
}
.filter-sheet__head svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; display: block; }
.filter-sheet__list button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding-block: 12px;
  font: 400 clamp(16px, 4.2vw, 18px)/1.2 var(--display);
  text-transform: none; letter-spacing: 0.015em;
}
.filter-sheet__list button span { font: 400 11px/1 var(--ui); color: var(--grey); }
.filter-sheet__list button[aria-pressed="true"],
.filter-sheet__list button[aria-pressed="true"] span { color: var(--rouge); }
@media (min-width: 901px) {
  .filter-sheet { align-items: flex-start; justify-content: flex-end; background: rgba(10, 10, 10, 0.16); }
  .filter-sheet__panel {
    margin: calc(var(--top-h) + 8px) var(--gutter) 0 0;
    max-width: 290px; border-radius: 14px; padding-bottom: 12px;
    transform: translateY(-10px); opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .filter-sheet.is-open .filter-sheet__panel { transform: none; opacity: 1; }
}

/* Product cards — name and price, quietly set */
.card__info { padding-top: 10px; gap: 2px; }
.card__name, .card__price {
  font: 400 13px/1.35 var(--ui);
  text-transform: none; letter-spacing: 0;
}
.card__name { color: var(--ink); }
.card__price { color: var(--ink); display: block; }
.card--sold .card__name, .card--sold .card__price { color: var(--grey); }
.card__tag { font: 400 10px/1.4 var(--ui); text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 7px; }
@media (max-width: 700px) { .card__name, .card__price { font-size: 12px; } }

/* Footer */
.ftr__logo img { width: min(170px, 100%); }
@media (max-width: 900px) { .ftr__logo img { width: 132px; } }

/* Reel captions — "LOOK 01" chip with the look's name beside it */
.reel__caption { gap: 10px; align-items: center; }
.reel__look {
  font: 700 9.5px/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 6px 3px;
}
.reel__name {
  font: 400 15px/1 var(--display);
  letter-spacing: 0.07em; text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 768px) { .reel__name { font-size: 14px; } }

/* Glass over moving video is redrawn every frame on phones — keep the blur light */
.announce {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(252, 252, 250, 0.72);
}

/* Long-form pages (privacy policy) */
.legal {
  max-width: 680px; margin: 0 auto;
  padding: 7vh var(--gutter) 90px;
  text-transform: none; font-weight: 400; letter-spacing: 0;
  font-size: 15px; line-height: 1.65;
}
.legal h1 { font: 600 clamp(30px, 5vw, 48px)/1.05 var(--display); margin: 10px 0 12px; }
.legal h2 {
  font: 600 20px/1.2 var(--display); letter-spacing: 0.02em;
  margin: 40px 0 12px; padding-top: 18px; border-top: 1px dashed rgba(236, 28, 36, 0.45);
}
.legal p, .legal li { margin: 0 0 12px; }
.legal ul { list-style: disc; padding-left: 20px; }
.legal a { color: var(--rouge); border-bottom: 1px dashed var(--rouge); }
.legal strong { font-weight: 700; }
.legal__kicker { font: 700 11px/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rouge); }
.legal__meta { color: var(--grey); font-size: 13px; }

/* iOS Safari draws its own play button over inline video — hide it so the reel
   and the about film stay clean. */
.reel video::-webkit-media-controls,
.reel video::-webkit-media-controls-start-playback-button,
.about__media video::-webkit-media-controls,
.about__media video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0;
}

/* Best seller tag sits under the New tag when a product has both */
.card__tag--best { background: var(--ink); top: 34px; }
@media (max-width: 700px) { .card__tag--best { top: 30px; } }
