:root {
  --ink: #111;
  --muted: #6b6b6b;
  --line: #ececec;
  --bg: #fff;
  --banner: #111;
  --max: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.preview-banner {
  background: var(--banner);
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 10px 16px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 18px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 15px;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.nav a:hover { opacity: 0.65; }
.nav a.active { font-weight: 600; }

.header-right {
  display: flex;
  justify-content: flex-end;
}
.cart-link {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-count {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wrap {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding: 48px 0 80px;
  flex: 1;
}

h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.lede {
  font-size: 18px;
  color: #444;
  margin: 0 0 48px;
  max-width: 36em;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 40px 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f3f3f3;
}
.card h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 14px 0 2px;
}
.card .price {
  color: #555;
  font-size: 15px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-layout img {
  width: 100%;
  background: #f3f3f3;
}
.product-meta h1 { font-size: 32px; }
.product-meta .price { font-size: 20px; margin: 0 0 20px; }
.product-meta p { color: #444; }

.btn {
  display: inline-block;
  background: #111;
  color: #fff;
  border: 0;
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
}
.btn:hover { opacity: 0.85; }
.btn.ghost {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.notice {
  background: #f6f6f6;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 14px;
  color: #444;
  margin: 16px 0 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 28px 28px;
  color: #8a8a8a;
  font-size: 13px;
}

.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img { width: 72px; height: 72px; object-fit: cover; }
.cart-empty { color: #666; }
.cart-total { text-align: right; font-size: 18px; margin: 24px 0; }

form label { display: block; font-size: 13px; margin: 14px 0 6px; }
form input, form textarea {
  width: 100%;
  max-width: 480px;
  border: 1px solid #ccc;
  padding: 10px 12px;
  font: inherit;
}
form textarea { min-height: 120px; }

@media (max-width: 800px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .nav { grid-column: 1 / -1; }
  .grid, .product-layout { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
}
.filter-btn {
  border: 1px solid #ddd;
  background: #fff;
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.filter-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.count-meta {
  font-size: 13px;
  color: #888;
  margin: -28px 0 28px;
}
.tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #1b1b1b;
}
.tile small {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
  opacity: 0.7;
}
.tile strong { font-size: 16px; line-height: 1.25; }
.product-layout .tile { min-height: 360px; }
.cart-row .tile { width: 72px; height: 72px; aspect-ratio: auto; padding: 6px; font-size: 9px; }
.cart-row .tile strong { font-size: 9px; }

.look-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  color: #fff;
  background: #111 center/cover no-repeat;
  margin: 0;
}
.look-hero .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05)); }
.look-hero .copy {
  position: relative;
  width: min(1080px, calc(100% - 56px));
  margin: 0 auto;
  padding: 48px 0 56px;
}
.look-hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  color: #fff;
  margin: 0 0 8px;
}
.look-hero p { font-size: 18px; max-width: 28em; }
.chapter {
  width: min(1080px, calc(100% - 56px));
  margin: 0 auto;
  padding: 72px 0 24px;
}
.chapter h2 {
  font-size: 36px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.chapter .kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: #9a9a9a;
}
.spread {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  width: min(1080px, calc(100% - 56px));
  margin: 0 auto 24px;
}
.spread img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.spread .note { align-self: center; font-size: 18px; color: #333; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) {
  .spread, .strip { grid-template-columns: 1fr; }
  .look-hero { min-height: 56vh; }
}

.price s { color: #999; margin-right: 8px; }
.market-row { margin-top: 16px; }
label.optin { display: flex; gap: 10px; align-items: flex-start; max-width: 480px; margin: 18px 0; font-size: 14px; }
label.optin input { width: auto; margin-top: 3px; }

html { scroll-behavior: smooth; }
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: #111;
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 80;
  pointer-events: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  transition: padding .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 1px 0 #ececec;
}
.filters { position: sticky; top: 64px; z-index: 30; background: rgba(255,255,255,.94); padding: 10px 0 12px; }
.filter-gap { width: 12px; }
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.grid .card.reveal:nth-child(2) { transition-delay: .06s; }
.grid .card.reveal:nth-child(3) { transition-delay: .12s; }
.grid .card.reveal:nth-child(4) { transition-delay: .18s; }
.strip .card.reveal:nth-child(2) { transition-delay: .08s; }
.strip .card.reveal:nth-child(3) { transition-delay: .16s; }
.strip .card.reveal:nth-child(4) { transition-delay: .24s; }
.look-hero { background-attachment: fixed; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .look-hero { background-attachment: scroll; }
}

.header-right { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
.cat-drop { position: relative; }
.cat-drop-btn {
  border: 1px solid #111;
  background: #fff;
  font: inherit;
  font-size: 14px;
  padding: 7px 12px;
  cursor: pointer;
}
.cat-drop-btn::after { content: " ▾"; font-size: 11px; }
.cat-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  min-width: 320px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  padding: 16px 18px 18px;
  z-index: 50;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.cat-drop.open .cat-panel,
.cat-panel:not([hidden]) {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cat-panel[hidden] { display: none; }
.cat-drop.open .cat-panel[hidden] { display: grid; }
.cat-col { display: flex; flex-direction: column; align-items: flex-start; }
.cat-col button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  padding: 5px 0;
  cursor: pointer;
  color: #222;
}
.cat-col button:first-child { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; color: #888; }
.cat-col button:hover { opacity: .55; }
@media (max-width: 800px) {
  .cat-panel { right: 0; left: auto; min-width: min(92vw, 340px); }
}


.product-photos { display: grid; gap: 12px; }
.product-hero, .product-photos img.product-hero {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f3f1ec;
  border-radius: 2px;
}
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.gallery-thumb {
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}
.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.gallery-thumb.active { border-color: #111; }
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #f3f1ec;
}


.stock-badge {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a1f1f;
}
.card.sold-out img,
.card.sold-out .tile {
  opacity: 0.55;
}
.card.sold-out h2 { color: #444; }
button.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
