:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --line-strong: #d9d9d9;
  --nav-bg: #000000;
  --nav-text: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center;
  padding: 20px 28px;
  background: var(--nav-bg); color: var(--nav-text);
}
.nav-zone { flex: 1; display: flex; align-items: center; }
.nav-zone--right { justify-content: flex-end; gap: 18px; }
.nav-wordmark { font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nav--simple { justify-content: center; }
.nav--dimmed { opacity: .45; }
.icon-btn { background: none; border: 0; padding: 0; display: flex; line-height: 0; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--nav-text); stroke-width: 1.8; }
.cart-badge-wrap { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -8px; background: #ffffff; color: #000000;
  font-size: 10px; font-weight: 700; border-radius: 50%; width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center;
}

.nav-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(280px, 80%); z-index: 25;
  background: #ffffff; color: var(--ink); transform: translateX(-100%); transition: transform .2s ease;
  display: flex; flex-direction: column; padding: 24px; gap: 4px;
}
.nav-menu.open { transform: none; }
.nav-menu a { padding: 14px 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; border-bottom: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block; background: var(--ink); color: #ffffff; border: 0;
  padding: 14px 28px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  font-size: 12px; text-align: center; cursor: pointer;
}
.btn-primary.full { width: 100%; }
.btn-primary.fit { width: fit-content; padding: 16px 32px; font-size: 12px; }
.btn-primary.pill { border-radius: 999px; padding: 16px; font-size: 14px; }
.btn-primary[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.link-underline { background: none; border: 0; padding: 0; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* ---------- Product grid / card ---------- */
.shop-wrap { max-width: 1280px; margin: 0 auto; padding: 40px 32px 72px; }
.shop-wrap h1 { font-size: 32px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 24px; }

.product-grid {
  display: grid; gap: 32px; row-gap: 48px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.product-card { display: flex; flex-direction: column; gap: 10px; }
.product-card .tag-row { display: flex; justify-content: flex-end; min-height: 24px; }
.tag-pill { border: 1px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.product-card figure { margin: 0; aspect-ratio: 4/5; background: #f0efec center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.product-card figure span { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: #9a9890; }
.product-card .info { text-align: center; }
.product-card .name { font-size: 14px; letter-spacing: .01em; margin-bottom: 4px; }
.product-card .price { font-size: 13px; color: var(--muted); }

/* ---------- Listing filter bar ---------- */
.filter-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--line);
}
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip {
  border-radius: 999px; padding: 8px 16px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-strong); color: var(--ink);
}
.filter-chip.active { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.sort-select { background: none; color: var(--ink); border: 1px solid var(--line-strong); padding: 9px 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- PDP ---------- */
.pdp-wrap { max-width: 1280px; margin: 0 auto; padding: 48px 40px 88px; }
.pdp-grid { display: grid; grid-template-columns: minmax(220px, 280px) minmax(280px, 1fr) minmax(200px, 240px); gap: 48px; align-items: start; }
.pdp-info { display: flex; flex-direction: column; gap: 20px; }
.pdp-info h1 { font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -.01em; }
.pdp-meta { display: flex; align-items: center; gap: 10px; }
.pdp-price { font-size: 15px; }
.pdp-bullets { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink); }
.size-chart-note { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.size-chart-scroll { overflow-x: auto; max-width: 100%; }
.size-chart { border-collapse: collapse; font-size: 12px; }
.size-chart td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; white-space: nowrap; }
.size-chart td:first-child { text-align: left; color: var(--muted); text-transform: uppercase; font-size: 11px; }
.size-chart .muted-cell { color: var(--muted); }
.how-to-measure { margin-top: 20px; }
.how-to-measure-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.how-to-measure ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

.pdp-gallery { display: flex; flex-direction: column; gap: 16px; }
.pdp-gallery figure { margin: 0; border: 1px solid var(--line); aspect-ratio: 4/5; background: #f0efec center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.pdp-gallery figure span { font-size: 12px; color: #9a9890; text-transform: uppercase; letter-spacing: .12em; }

.pdp-buybox { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 24px; }
.buybox-group { display: grid; gap: 10px; }
.buybox-label { font-size: 13px; color: var(--ink); }
.size-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.size-pill { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--ink); font-size: 12px; }
.size-pill.active { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--line-strong); width: fit-content; }
.qty-stepper button { width: 38px; height: 38px; border: 0; background: none; font-size: 16px; }
.qty-stepper button:first-child { border-right: 1px solid var(--line-strong); }
.qty-stepper button:last-child { border-left: 1px solid var(--line-strong); }
.qty-stepper span { width: 40px; text-align: center; font-size: 14px; }

/* ---------- Add-to-cart modal ---------- */
.added-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: flex-end; z-index: 40; }
.added-overlay[hidden] { display: none; }
.added-panel { background: #ffffff; width: 360px; max-width: 90%; margin: 40px; padding: 28px; position: relative; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.added-panel .close-x { position: absolute; top: 20px; right: 20px; background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; }
.added-confirm { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 24px; }
.added-item { display: flex; gap: 14px; margin-bottom: 28px; }
.added-item figure { margin: 0; width: 70px; height: 70px; border: 1px solid var(--line); flex: none; background: #f0efec center/cover no-repeat; }
.added-item p { font-size: 14px; margin-bottom: 6px; }
.added-item .meta { font-size: 13px; color: var(--muted); margin: 0; }
.added-view-cart { text-align: center; font-size: 13px; margin-bottom: 20px; }
.added-view-cart a { text-decoration: underline; cursor: pointer; }
.added-continue { text-align: center; margin-top: 16px; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: #ffffff; color: var(--ink); border-left: 1px solid var(--ink); z-index: 30;
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.drawer-head button { background: none; border: 0; font-size: 24px; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 16px; align-content: start; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--ink); display: grid; gap: 12px; }
.row { display: flex; justify-content: space-between; }
.row.total { font-weight: 700; font-size: 18px; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: #c0392b; font-size: 13px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.line .meta { color: var(--muted); font-size: 13px; }
.line .line-price { font-weight: 700; }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty button { width: 26px; height: 26px; background: none; border: 1px solid var(--line-strong); border-radius: 50%; }
.remove { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; justify-self: end; align-self: end; }

/* ---------- Checkout review ---------- */
.checkout-wrap { max-width: 640px; margin: 0 auto; padding: 72px 40px; }
.checkout-wrap h1 { font-weight: 700; font-size: 36px; letter-spacing: -.01em; margin-bottom: 32px; }
.checkout-lines { display: grid; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.checkout-line { display: flex; justify-content: space-between; gap: 12px; }
.checkout-line .meta { color: var(--muted); font-size: 13px; }
.checkout-line .line-price { font-weight: 700; }
.checkout-totals { display: grid; gap: 10px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--ink); }
.checkout-totals .row { color: var(--muted); font-size: 14px; }
.checkout-totals .row.total { color: var(--ink); }
.checkout-note { color: var(--muted); font-size: 13px; margin-top: 16px; }
.checkout-back { margin-top: 20px; }
.checkout-back .link-underline { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-top { max-width: 1280px; margin: 0 auto; padding: 40px 32px 20px; display: grid; gap: 10px; }
.logo-sm { font-size: 16px; font-weight: 700; letter-spacing: .04em; color: var(--ink); text-transform: uppercase; }
.footer-note { max-width: 440px; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding: 16px 32px 32px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom a { text-decoration: underline; }

/* ---------- Success / center page ---------- */
.center-page { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 16px; padding: 24px; }
.center-page h1 { font-weight: 400; font-size: clamp(36px, 7vw, 64px); letter-spacing: -.01em; }
.center-page p { color: var(--muted); max-width: 440px; margin: 0 auto; }

@media (max-width: 900px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-buybox { position: static; }
}
@media (max-width: 640px) {
  .footer-bottom { justify-content: flex-start; }
  .added-panel { margin: 0; width: 100%; max-width: 100%; height: 100%; }
}
