/* White, black, and let the photos bring the colour. */
:root {
  --bg: #fff;
  --ink: #000;
  --muted: #767676;
  --line: #e5e5e5;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 2.5vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.muted { color: var(--muted); }

.wordmark {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
}

/* Header: menu row, then the big logo */
.top { padding: 0 var(--gutter) 30px; text-align: center; }
.topbar { display: flex; justify-content: space-between; align-items: center; height: 56px; font-size: 15px; }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top .wordmark { display: inline-block; margin-top: 18px; font-size: clamp(64px, 10vw, 140px); }
.lang button { color: var(--muted); }
.lang button + button::before { content: "/"; margin: 0 5px; color: var(--muted); }
.lang button[aria-pressed="true"] { color: var(--ink); }

/* Product: photos left, choices right */
.product { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }

/* Thumbnails down the left, big photo next to them (like Nike) */
.media {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding-left: var(--gutter);
}
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { position: relative; border-radius: 6px; overflow: hidden; }
.thumbs img { width: 76px; aspect-ratio: 1; object-fit: cover; background: #f2f2f2; transition: opacity .2s; }
.thumbs button:hover img { opacity: .8; }
.thumbs button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 6px; }
.stage { position: relative; min-width: 0; border-radius: 8px; overflow: hidden; }
.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  scroll-snap-align: start;
  background: #f2f2f2;
}
.arrow {
  position: absolute;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  box-shadow: 0 1px 8px rgba(0,0,0,.12);
  transition: background .2s, transform .15s;
}
.arrow:hover { background: #fff; transform: scale(1.06); }
.arrow svg { width: 20px; height: 20px; }
.arrow.prev { right: 76px; }
.arrow.next { right: 20px; }
.progress { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.5); }
.progress span { display: block; height: 100%; background: var(--ink); transition: width .25s, margin-left .25s; }

.info { padding: 8px clamp(20px, 4vw, 64px) 40px; max-width: 760px; }
h1 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.price { margin: 6px 0 36px; font-size: 20px; }
.price .muted { font-size: 15px; }

.field { margin-bottom: 32px; }
.label { display: flex; gap: 8px; align-items: baseline; margin-bottom: 14px; font-size: 15px; }
.label strong { font-weight: 500; }
.guide { margin-left: auto; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
  outline: 1.5px solid transparent;
  outline-offset: 3px;
  transition: outline-color .15s;
}
.swatch:hover { outline-color: var(--line); }
.swatch[aria-checked="true"] { outline-color: var(--ink); }

.sizes { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.size { height: 58px; border: 1px solid var(--line); font-size: 16px; line-height: 1.2; }
.size small { display: block; font-size: 11px; color: var(--muted); }
.size[aria-checked="true"] small { color: #bbb; }
.size:hover { border-color: var(--ink); }
.size[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.buy {
  width: 100%;
  height: 60px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.buy:disabled { background: var(--bg); color: var(--muted); border-color: #bbb; cursor: default; }
.note { display: flex; gap: 10px; margin: 18px 0 40px; font-size: 15px; color: #333; }
.arrow-mark { font-weight: 700; }

.tabs { border-top: 1px solid var(--line); }
.tab-list { display: flex; gap: 32px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-list button { padding: 18px 0 16px; font-size: 17px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-list button[aria-selected="true"] { color: var(--ink); font-weight: 500; border-color: var(--ink); }
/* All panels share one cell, so the box is always as tall as the longest one
   and switching tabs never changes the page height (which made the photo jump). */
.tab-panels { display: grid; }
[role="tabpanel"] { grid-area: 1 / 1; }
[role="tabpanel"].off { visibility: hidden; }
[role="tabpanel"] { margin: 20px 0 0; font-size: 15px; line-height: 1.6; }
[role="tabpanel"] p { margin: 0; }
.size-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.size-table th { text-align: left; font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--ink); }
.size-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* All colours */
.palette { padding: 120px var(--gutter) 40px; }
h2 { margin: 0 0 28px; font-size: 26px; font-weight: 500; letter-spacing: -.01em; text-align: center; }
.palette ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 32px 16px;
  text-align: center;
}
.palette li { cursor: pointer; font-size: 14px; }
.palette .blob { width: 88px; aspect-ratio: 1; margin: 0 auto 10px; border-radius: 50%; transition: transform .25s; }
.palette li:hover .blob { transform: scale(1.08); }
.palette ul.photos { max-width: none; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 6px; text-align: left; }
.palette ul.photos .blob { width: 100%; aspect-ratio: 4 / 5; border-radius: 0; margin-bottom: 10px; }
.palette ul.photos li:hover .blob { transform: none; opacity: .88; }

.about { padding: 120px var(--gutter); text-align: center; }
.about p { max-width: 760px; margin: 0 auto; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -.015em; }
.about a { text-decoration: underline; text-underline-offset: 4px; }

.faq { width: min(680px, 100% - 2 * var(--gutter)); margin: 0 auto; padding-bottom: 120px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: #333; }

footer { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 14px; }
footer .wordmark { margin-right: auto; font-size: 20px; }

@media (max-width: 860px) {
  .topbar nav { gap: 14px; }
  .topbar nav a[data-instagram] { display: none; }
  .top .wordmark { margin-top: 10px; }
  .product { grid-template-columns: 1fr; }
  .media { position: relative; display: block; padding-left: 0; }
  .thumbs { display: none; }
  .stage { border-radius: 0; }
  .progress { display: block; }
  .arrow { width: 38px; height: 38px; bottom: 16px; }
  .arrow.prev { right: 62px; }
  .arrow.next { right: 16px; }
  .arrow svg { width: 16px; height: 16px; }
  .info { padding: 28px var(--gutter) 24px; }
  .sizes { grid-template-columns: repeat(5, 1fr); }
  .tab-list { gap: 22px; }
  .tab-list button { font-size: 15px; }
  .palette { padding-top: 80px; }
  .palette ul { grid-template-columns: repeat(3, 1fr); }
  .palette .blob { width: 72px; }
  .palette ul.photos { grid-template-columns: repeat(2, 1fr); }
  .about { padding: 80px var(--gutter); }
}
