/* ==========================================================================
   NORTHLINE — Global styles
   Palette, type and rules follow the Northline brand material.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #111111;
  --charcoal: #2a2a2a;
  --grey: #666666;
  --line: #e5e5e5;
  --off: #f7f7f7;
  --white: #ffffff;
  --on-dark-muted: #b5b5b5;
  --danger: #b3261e;
  --ok: #1f6f43;

  --font-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.75rem, 7.2vw, 6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.015em; }

:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .announce :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--black); color: var(--white); padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 18px; height: 18px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.muted { color: var(--grey); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--black); background: var(--black); color: var(--white);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap; text-align: center;
}
.btn:hover { background: var(--charcoal); border-color: var(--charcoal); }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: var(--line); border-color: var(--line); color: var(--black); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 12px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Announcement bar ---------- */
.announce { background: var(--black); color: var(--white); text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.announce-inner { min-height: 38px; display: flex; align-items: center; justify-content: center; padding: 8px 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand img { width: 30px; height: 30px; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .16em; }
.primary-nav ul { display: flex; gap: 36px; }
.primary-nav a {
  position: relative; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 8px 0;
}
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--black); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--off); }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; background: var(--black); color: var(--white);
  font-size: 11px; font-weight: 700; line-height: 1; border-radius: 9px;
}
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; justify-self: start; margin-left: -10px; }

/* ---------- Drawers & overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(17,17,17,.5); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; z-index: 200; }
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 210; width: min(440px, 100%); background: var(--white);
  display: flex; flex-direction: column; visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
}
.drawer-right { right: 0; transform: translateX(100%); }
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.1rem; letter-spacing: .06em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--white); }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: -.01em; }
.mobile-nav .soon { display: flex; justify-content: space-between; padding: 14px 0; color: var(--grey); font-size: 14px; border-bottom: 1px solid var(--line); }

/* Cart */
.cart-empty { text-align: center; padding: 64px 0; }
.cart-empty p { color: var(--grey); margin-bottom: 24px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { aspect-ratio: 1; background: var(--off); }
.cart-line h3 { font-size: 15px; letter-spacing: 0; line-height: 1.25; }
.cart-line .meta { font-size: 13px; color: var(--grey); margin-top: 2px; }
.cart-line .price { font-weight: 600; font-size: 14px; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 12px; }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; }
.qty button:hover { background: var(--off); }
.qty output { min-width: 30px; text-align: center; font-size: 14px; font-weight: 600; }
.remove-line { font-size: 12px; color: var(--grey); text-decoration: underline; margin-top: 10px; display: block; margin-left: auto; text-underline-offset: 3px; }
.remove-line:hover { color: var(--black); }
.subtotal { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.fine { font-size: 13px; color: var(--grey); }
.drawer-foot .btn + .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--white); overflow: hidden; }
.hero-grid.wrap { max-width: none; padding-inline: 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; min-height: min(78vh, 760px); }
.hero-copy { padding: clamp(48px, 8vw, 112px) clamp(24px, 4vw, 64px) clamp(48px, 8vw, 112px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; }
.hero h1 { max-width: 9ch; }
.hero p.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--on-dark-muted); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-visual { position: relative; background: var(--charcoal); display: flex; flex-direction: column; min-width: 0; }

/* Hero photo showcase */
.spin-stage { position: relative; flex: 1; min-height: 360px; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: var(--charcoal); }
.spin-stage.is-drag { cursor: grabbing; }
.spin-stage:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
.spin-sets { position: absolute; inset: 0; }
.spin-set { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.spin-set.is-active { opacity: 1; visibility: visible; }
.spin-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); pointer-events: none; -webkit-user-drag: none; }
.spin-img.is-on { opacity: 1; }
.spin-set.is-turntable .spin-img { transition: none; }
.spin-badge { position: absolute; top: 20px; left: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: var(--black); color: var(--white); padding: 9px 14px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.spin-ctrl { position: absolute; left: 20px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 4px; background: rgba(17,17,17,.86); color: var(--white); padding: 4px; max-width: calc(100% - 40px); }
.spin-btn { width: 40px; height: 40px; display: grid; place-items: center; color: var(--white); }
.spin-btn:hover { background: #333; }
#spin-prev .icon { transform: rotate(180deg); }
.spin-readout { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: center; min-width: 132px; padding: 0 6px; }
.spin-readout span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.spin-readout small { font-size: 11px; color: var(--on-dark-muted); letter-spacing: .08em; }
.spin-track { grid-column: 1 / -1; display: block; height: 2px; margin-top: 6px; background: #555; }
.spin-track b { display: block; height: 100%; background: var(--white); transition: width .3s var(--ease); }
.spin-shop { position: absolute; right: 20px; bottom: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; background: var(--white); color: var(--black); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: background-color .2s; }
.spin-shop:hover { background: var(--line); }
.spin-shop .icon { width: 16px; height: 16px; }
.spin-bar { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); background: var(--white); border-top: 1px solid var(--line); }
.spin-tab { text-align: left; padding: 14px 18px 16px; border-right: 1px solid var(--line); color: var(--grey); display: flex; flex-direction: column; gap: 2px; transition: background-color .2s, color .2s; min-width: 0; }
.spin-tab:last-child { border-right: 0; }
.spin-tab small { font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.spin-tab strong { font-family: var(--font-head); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.2; color: inherit; }
.spin-tab:hover { background: var(--off); color: var(--black); }
.spin-tab[aria-selected="true"] { background: var(--black); color: var(--white); }
.spin-tab:focus-visible { outline-offset: -3px; }

.trust-strip { border-bottom: 1px solid var(--line); }
.trust-strip ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-strip li { padding: 22px 20px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; border-left: 1px solid var(--line); }
.trust-strip li:first-child { border-left: 0; padding-left: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-off { background: var(--off); }
.section-dark { background: var(--black); color: var(--white); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head p { color: var(--grey); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Product grid & card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: flex; flex-direction: column; }
.card .media-link { position: relative; display: block; overflow: hidden; }
.media { position: relative; aspect-ratio: 4 / 5; background: var(--off); overflow: hidden; }
.media > svg, .media > img { width: 100%; height: 100%; object-fit: cover; }
.media svg { transition: transform .5s var(--ease); }
.card:hover .media svg, .card:hover .media img { transform: scale(1.04); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.badge { padding: 5px 9px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--black); color: var(--white); line-height: 1.2; }
.badge-sale { background: var(--white); color: var(--black); border: 1px solid var(--black); }
.badge-out { background: var(--grey); }
.quick-view {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; min-height: 44px; background: var(--white); color: var(--black);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transform: translateY(12px); opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease), background-color .2s;
}
.quick-view:hover { background: var(--black); color: var(--white); }
.card:hover .quick-view, .quick-view:focus-visible { transform: none; opacity: 1; }
@media (hover: none) { .quick-view { transform: none; opacity: 1; min-height: 36px; font-size: 11px; letter-spacing: .06em; white-space: nowrap; left: 8px; right: 8px; bottom: 8px; } }
.card-body { padding-top: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.3; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-price { font-size: 15px; font-weight: 500; display: flex; gap: 10px; align-items: baseline; }
.card-price s { color: var(--grey); font-size: 13px; }
.card-sizes { font-size: 12px; color: var(--grey); letter-spacing: .02em; }
.swatches { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #bdbdbd; background: var(--sw, #ccc); }
.card-link { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; align-self: flex-start; border-bottom: 1px solid var(--black); padding-bottom: 2px; }

/* ---------- Style tiles ---------- */
.style-grid { --n: 3; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 16px; }
.style-tile { position: relative; background: var(--charcoal); color: var(--white); aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; overflow: hidden; }
.style-tile .tile-media { position: absolute; inset: 0; }
.style-tile .tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.style-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,17,.78), rgba(17,17,17,0) 52%); pointer-events: none; }
.style-tile .num, .style-tile h3 { position: relative; z-index: 1; }
.style-tile .num { font-size: 12px; font-weight: 600; letter-spacing: .14em; background: var(--white); color: var(--black); align-self: flex-start; padding: 5px 9px; }
.style-tile h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.style-tile h3 .icon { width: 22px; height: 22px; transition: transform .2s var(--ease); }
.style-tile:hover .tile-media img { transform: scale(1.05); }
.style-tile:hover h3 .icon { transform: translateX(4px); }

/* ---------- Drop banner ---------- */
.drop { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.drop-visual { background: var(--charcoal); min-height: 420px; position: relative; overflow: hidden; }
.drop-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-copy { padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px) clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; }
.drop-copy .lead { color: var(--on-dark-muted); max-width: 40ch; font-size: 1.1rem; }
.drop-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--white); }
.drop-meta span { display: inline-flex; align-items: center; gap: 8px; }
.drop-meta span::before { content: ""; width: 5px; height: 5px; background: var(--white); border-radius: 50%; }
.drop-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--black); }
.why-item { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.why-item:last-child { border-right: 0; margin-right: 0; }
.why-item .n { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--grey); }
.why-item h3 { font-size: 1.05rem; margin: 40px 0 12px; letter-spacing: .02em; }
.why-item p { color: var(--grey); font-size: 15px; }

/* ---------- Statement ---------- */
.statement { max-width: 980px; }
.statement p { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.5rem, 3.1vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; }
.statement p strong { font-weight: 700; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; }
.cta-final .inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-final p { color: var(--on-dark-muted); font-size: 1.15rem; max-width: 44ch; }

/* ---------- Page header ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-head .lead { color: var(--grey); font-size: 1.15rem; max-width: 58ch; margin-top: 20px; }
.crumbs { font-size: 13px; color: var(--grey); margin-bottom: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--black); text-decoration: underline; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding-block: 40px 96px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 24px); }
.filter-group { border-bottom: 1px solid var(--line); padding: 20px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; font-weight: 700; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .chips { display: grid; grid-template-columns: repeat(3, 1fr); }
.filters .chip span { width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; padding: 0 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: all .15s; }
.chip:hover span { border-color: var(--black); }
.chip input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.chip input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; border: 1px solid #999; margin: 0; display: grid; place-items: center; flex: none; background: var(--white); cursor: pointer; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--black); border-color: var(--black); }
.check input:checked::after { content: ""; width: 8px; height: 8px; background: var(--white); }
.check input[type="radio"]:checked::after { border-radius: 50%; }
.check input:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.check .sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #bdbdbd; background: var(--sw); }
.check small { margin-left: auto; color: var(--grey); font-size: 12px; }
.filter-clear { margin-top: 20px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--grey); }
.filter-clear:hover { color: var(--black); }

.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.shop-bar .count { font-size: 14px; color: var(--grey); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sort label { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.select {
  appearance: none; height: 44px; padding: 0 40px 0 14px; border: 1px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; font-size: 14px; cursor: pointer; min-width: 190px;
}
.select:hover { border-color: var(--black); }
.filter-toggle { display: none; }
.filters > .drawer-head, .filters > .drawer-foot { display: none; }
.shop-layout .product-grid { grid-template-columns: repeat(3, 1fr); }
.active-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.active-tags button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: var(--off); border: 1px solid var(--line); font-size: 13px; }
.active-tags button:hover { border-color: var(--black); }
.active-tags .icon { width: 12px; height: 12px; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 72px 16px; border: 1px dashed #c8c8c8; }
.empty-state p { color: var(--grey); margin-bottom: 20px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); padding: 32px 0 96px; align-items: start; }
.pdp-gallery { display: grid; grid-template-columns: 84px 1fr; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.pdp-thumbs { display: flex; flex-direction: column; gap: 12px; }
.pdp-thumbs button { aspect-ratio: 1; background: var(--off); border: 1px solid transparent; overflow: hidden; }
.pdp-thumbs button[aria-pressed="true"] { border-color: var(--black); }
.pdp-main .media { aspect-ratio: 1; }
.pdp-info { display: flex; flex-direction: column; gap: 24px; }
.pdp-info h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.pdp-price { font-size: 1.5rem; font-weight: 600; display: flex; gap: 14px; align-items: baseline; }
.pdp-price s { font-size: 1.05rem; color: var(--grey); font-weight: 400; }
.pdp-desc { color: var(--charcoal); font-size: 1.05rem; max-width: 52ch; }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.opt-label span { font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--grey); font-size: 14px; }
.size-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.size-grid .chip span { width: 100%; height: 48px; }
.size-grid .chip input:disabled + span { color: #b5b5b5; background: repeating-linear-gradient(135deg, transparent 0 6px, #eee 6px 7px); cursor: not-allowed; }
.colour-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.colour-opt { position: relative; }
.colour-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.colour-opt span { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.colour-opt span i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #bdbdbd; background: var(--sw); }
.colour-opt:hover span { border-color: var(--black); }
.colour-opt input:checked + span { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.colour-opt input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.pdp-actions { display: grid; gap: 10px; }
.pdp-note { font-size: 14px; color: var(--grey); background: var(--off); padding: 14px 16px; border-left: 2px solid var(--black); }
.form-error { color: var(--danger); font-size: 14px; min-height: 20px; }
.details { border-top: 1px solid var(--line); }
.details h2 { font-size: 13px; letter-spacing: .14em; font-family: var(--font-body); font-weight: 700; padding: 22px 0 8px; }
.details dl { display: grid; grid-template-columns: 150px 1fr; }
.details dt, .details dd { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.details dt { color: var(--grey); }
.details dd { font-weight: 500; }
.unavailable { padding: 14px 16px; border: 1px solid var(--black); font-weight: 600; }

/* ---------- Modal (quick view) ---------- */
.modal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .2s var(--ease), visibility .2s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-panel { position: relative; background: var(--white); width: min(960px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; }
.modal-panel .media { aspect-ratio: auto; min-height: 100%; }
.modal-close { position: absolute; top: 8px; right: 8px; z-index: 3; background: var(--white); }
.modal-info { padding: 40px 36px; display: flex; flex-direction: column; gap: 20px; }
.modal-info h2 { font-size: 1.9rem; }

/* ---------- About ---------- */
.about-hero h1 { max-width: 12ch; }
.prose { max-width: 680px; }
.prose p { font-size: 1.15rem; line-height: 1.7; color: var(--charcoal); }
.prose p + p { margin-top: 1.4em; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.about-closing { text-align: center; }
.about-closing .inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.about-closing h2 { max-width: 14ch; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--black); }
.values > div { padding: 28px 28px 8px 0; }
.values > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.values h3 { font-size: 1.05rem; margin-bottom: 10px; }
.values p { color: var(--grey); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); padding-block: 56px 100px; }
.channels { display: grid; gap: 0; border-top: 1px solid var(--black); align-self: start; }
.channel { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.channel .icon { width: 24px; height: 24px; }
.channel small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.channel strong { font-weight: 500; font-size: 1.05rem; }
a.channel:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #cfcfcf; background: var(--white); border-radius: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--black); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--black); outline-offset: 0; border-color: var(--black); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 13px; min-height: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.notice { padding: 18px 20px; background: var(--off); border-left: 2px solid var(--black); }
.notice strong { display: block; margin-bottom: 4px; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 88px); padding: 48px 0 100px; align-items: start; }
.summary { background: var(--off); padding: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.summary h2 { font-size: 1.15rem; letter-spacing: .04em; margin-bottom: 8px; }
.summary .cart-line { grid-template-columns: 72px 1fr auto; }
.summary .cart-line .thumb { background: var(--white); }
.summary .total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; padding-top: 18px; }
.step-title { font-size: 1.15rem; letter-spacing: .02em; margin-bottom: 20px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--black); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary:hover { color: var(--grey); }
.faq .answer { padding: 0 0 28px; color: var(--charcoal); max-width: 64ch; font-size: 1.05rem; }
.faq .answer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Policy pages ---------- */
.policy { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 96px); padding-block: 56px 100px; }
.policy-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.policy-nav h2 { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; margin-bottom: 14px; font-weight: 700; }
.policy-nav a { display: block; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--line); color: var(--grey); }
.policy-nav a:hover, .policy-nav a[aria-current="page"] { color: var(--black); font-weight: 600; }
.policy-body { max-width: 720px; }
.policy-body h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 44px 0 14px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p, .policy-body li { color: var(--charcoal); line-height: 1.75; }
.policy-body p + p { margin-top: 1em; }
.policy-body ul { list-style: disc; padding-left: 1.2em; margin-top: 1em; }
.policy-body li + li { margin-top: .4em; }
.policy-body a { text-decoration: underline; text-underline-offset: 3px; }
.policy-updated { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--grey); }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf .inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.nf .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 22vw, 14rem); line-height: .9; letter-spacing: -.05em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding: 80px 0 32px; border-top: 1px solid #2e2e2e; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-bottom: 56px; }
.footer-brand img { width: 36px; height: 36px; margin-bottom: 20px; }
.footer-brand p { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; max-width: 14ch; }
.footer-col h2 { font-family: var(--font-body); font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--on-dark-muted); margin-bottom: 18px; }
.footer-col li + li { margin-top: 12px; }
.footer-col a { font-size: 15px; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.soon-row { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 24px 0; border-top: 1px solid #333; font-size: 13px; color: var(--on-dark-muted); letter-spacing: .04em; }
.soon-row b { color: var(--white); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid #333; font-size: 13px; color: var(--on-dark-muted); }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #3a3a3a; color: var(--white); transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--white); color: var(--black); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 24px); background: var(--black); color: var(--white); padding: 14px 22px; font-size: 14px; font-weight: 500; z-index: 300; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); max-width: calc(100% - 32px); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

body.is-locked { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-layout .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .why-item:nth-child(3) { border-right: 0; margin-right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1040px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .brand { justify-self: center; grid-column: 2; }
  .menu-toggle { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 3; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; --header-h: 64px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 56px var(--gutter) 40px; }
  .spin-stage { min-height: 0; aspect-ratio: 1 / 1; flex: none; }
  .trust-strip ul { grid-template-columns: 1fr 1fr; }
  .trust-strip li { padding: 16px 12px; border-top: 1px solid var(--line); }
  .trust-strip li:nth-child(-n+2) { border-top: 0; }
  .trust-strip li:nth-child(odd) { border-left: 0; padding-left: 0; }

  .drop { grid-template-columns: minmax(0, 1fr); }
  .drop-visual { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .drop-copy { padding: 40px var(--gutter) 56px; min-width: 0; }

  .shop-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .filter-toggle { display: inline-flex; }
  .filters { position: fixed; top: 0; bottom: 0; left: 0; width: min(380px, 100%); background: var(--white); z-index: 210; padding: 0; overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; display: flex; flex-direction: column; }
  .filters.is-open { transform: none; visibility: visible; }
  .filters > .drawer-head, .filters > .drawer-foot { display: flex; }
  .filters > .drawer-foot { display: block; }
  .filters .drawer-head { position: sticky; top: 0; background: var(--white); z-index: 1; }
  .filters .filter-body { padding: 24px; flex: 1; }
  .filters .drawer-foot { position: sticky; bottom: 0; }
  .filter-group:first-child { padding-top: 20px; }

  .pdp { grid-template-columns: 1fr; padding-top: 16px; }
  .pdp-gallery { position: static; grid-template-columns: 1fr; }
  .pdp-thumbs { flex-direction: row; order: 2; }
  .pdp-thumbs button { width: 72px; }
  .modal-panel { grid-template-columns: 1fr; }
  .modal-panel .media { aspect-ratio: 4 / 3; min-height: 0; }
  .modal-info { padding: 28px 24px 32px; }

  .split { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .values > div, .values > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .contact-grid, .checkout { grid-template-columns: 1fr; padding-top: 32px; }
  .summary { position: static; order: -1; }
  .policy { grid-template-columns: 1fr; padding-top: 32px; gap: 32px; }
  .policy-nav { position: static; display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 56px 0; }
  .product-grid, .shop-layout .product-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .card-body { padding-top: 12px; }
  .card-title, .card-price { font-size: 14px; }
  .style-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .style-tile { aspect-ratio: 1 / 1.15; padding: 14px; }
  .style-tile.span-full { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .spin-badge { top: 12px; left: 12px; padding: 8px 10px; }
  .spin-ctrl { left: 12px; bottom: 12px; }
  .spin-shop { right: 12px; bottom: 12px; padding: 0 12px; min-height: 44px; }
  .spin-ctrl .spin-readout { display: none; }
  .spin-tab { padding: 12px 12px 14px; }
  .spin-tab strong { font-size: 12.5px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item, .why-item:nth-child(3) { border-right: 0; margin: 0; padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; }
  .why-item h3 { margin: 0 0 8px; }
  .why-item .n { grid-row: span 2; padding-top: 2px; }
  .hero-actions .btn, .drop-actions .btn { flex: 1 1 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .size-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-bar { align-items: stretch; }
  .sort { width: 100%; }
  .sort .select { flex: 1; }
  .details dl { grid-template-columns: 120px 1fr; }
  .channel { grid-template-columns: 36px 1fr; }
  .channel .icon:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Admin preview banner */
.preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 400; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 10px 16px; background: #fff3b0; color: var(--black); font-size: 13px; font-weight: 600; border-top: 1px solid #d9c84a; }
.preview-bar a, .preview-bar button { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: 13px; }

/* ---------- Cart page, totals, payments, order confirmation ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 72px); padding: 40px 0 100px; align-items: start; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--black); font-size: 14px; color: var(--grey); }
.cart-list .cart-line { grid-template-columns: 120px 1fr auto; gap: 20px; padding: 24px 0; }
.cart-list .cart-line h3 { font-size: 17px; line-height: 1.25; }
.cart-list .cart-line .meta { font-size: 14px; }
.cart-list .cart-line .price { font-size: 16px; }
.summary .totals, .totals { margin: 8px 0 0; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.totals dt { color: var(--grey); }
.totals dd { margin: 0; font-weight: 600; text-align: right; }
.totals .grand { border-bottom: 0; padding-top: 16px; font-size: 1.2rem; }
.totals .grand dt { color: var(--black); font-weight: 700; }
.summary .fine { margin-top: 8px; }
.summary ul { margin-bottom: 4px; }

.pay-methods { display: grid; gap: 10px; }
.pay-opt { border: 1px solid #cfcfcf; background: var(--white); transition: border-color .15s; }
.pay-opt:hover { border-color: var(--black); }
.pay-opt.is-on { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.pay-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; }
.pay-head input { width: 18px; height: 18px; accent-color: var(--black); flex: none; }
.pay-head b { font-weight: 600; font-size: 15px; }
.pay-head small { margin-left: auto; color: var(--grey); font-size: 13px; }
.pay-detail { display: none; padding: 0 20px 18px 52px; font-size: 14px; color: var(--charcoal); }
.pay-opt.is-on .pay-detail { display: block; }
.pay-detail p { margin: 0 0 10px; }
.pay-detail .field { margin-top: 12px; }
.pay-detail .field label { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; }
.pay-acct { display: flex; flex-direction: column; gap: 2px; background: var(--off); padding: 12px 14px; border-left: 2px solid var(--black); margin: 0 0 12px; }
.pay-acct span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); font-weight: 700; }
.pay-acct b { font-size: 1.2rem; letter-spacing: .04em; }
.pay-acct small { color: var(--grey); }

.order-done { max-width: 720px; padding: 56px 0 100px; }
.order-done h2 { margin-bottom: 20px; }
.done-id { font-size: 1.1rem; margin-bottom: 12px; }
.done-id b { font-family: var(--font-head); letter-spacing: .04em; background: var(--black); color: var(--white); padding: 3px 12px; margin-left: 6px; }
.done-pay { margin: 24px 0; padding: 20px 22px; border: 1px solid var(--black); }
.done-pay h3 { margin-bottom: 10px; font-size: 1rem; letter-spacing: .02em; }
.done-pay p:last-child { margin-bottom: 0; }
.done-lines { margin: 20px 0 8px; border-top: 1px solid var(--line); }
.done-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; padding-top: 28px; }
  .cart-list .cart-line { grid-template-columns: 88px 1fr auto; gap: 14px; }
}
@media (max-width: 640px) {
  .pay-detail { padding-left: 20px; }
}
@media (max-width: 900px) { .cart-layout .summary { order: 0; position: static; } }


/* ==========================================================================
   UX polish (v3)
   ========================================================================== */
html { scroll-padding-top: 88px; }
a, button, summary, .chip, .colour-opt, .pay-head { touch-action: manipulation; -webkit-tap-highlight-color: rgba(17, 17, 17, .07); }
.btn:active { transform: translateY(1px); }
img { height: auto; }
.media > img, .look-photo img, .tile-media img, .spin-img { height: 100%; }

/* ---------- Product cards: whole card is a link, second photo on hover ---------- */
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.quick-view, .card-link { position: relative; z-index: 2; }
.card .media .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease), transform .5s var(--ease); }
@media (hover: hover) { .card:hover .media .alt { opacity: 1; } }
@media (hover: none) { .quick-view { display: none; } }
.card-body { gap: 4px; }
.card-price { font-weight: 600; }
.card-link { margin-top: 10px; }

/* ---------- Lookbook: editorial blocks ---------- */
.look-blocks { display: grid; gap: clamp(48px, 7vw, 96px); }
.look-block { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.look-block.is-flip .look-copy { order: 2; }
.look-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.look-copy h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1; }
.look-copy p { color: var(--charcoal); max-width: 34ch; }
.look-copy .look-meta { color: var(--grey); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.look-copy .btn { margin-top: 6px; }
.look-photos { display: grid; gap: 8px; max-width: 740px; width: 100%; justify-self: start; }
.look-block.is-flip .look-photos { justify-self: end; }
.look-photos.n-1 { grid-template-columns: 1fr; max-width: 560px; }
.look-photos.n-2, .look-photos.n-4 { grid-template-columns: repeat(2, 1fr); }
.look-photos.n-3 { grid-template-columns: repeat(3, 1fr); }
.look-photos.n-5 { grid-template-columns: repeat(4, 1fr); }
.look-photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--white); cursor: zoom-in; padding: 0; }
.look-photo.is-big { grid-column: span 2; grid-row: span 2; }
.look-photo img { width: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.look-photo:hover img { transform: scale(1.045); }
.look-label { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; background: rgba(255,255,255,.94); color: var(--black); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.look-photo:focus-visible { outline-offset: -3px; }

/* ---------- Lightbox ---------- */
.modal.lightbox { background: rgba(10, 10, 10, .985); padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 230; }
.lb-fig { margin: 0; width: min(94vw, 1100px); display: flex; flex-direction: column; gap: 14px; }
.lb-img { width: 100%; max-height: calc(100vh - 150px); object-fit: contain; user-select: none; }
.lb-fig figcaption { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--white); font-size: 14px; }
.lb-cap { font-weight: 600; letter-spacing: .02em; }
.lb-count { color: var(--on-dark-muted); font-size: 13px; }
.lb-shop { margin-left: auto; }
.lb-close { position: absolute; top: 14px; right: 14px; color: var(--white); width: 48px; height: 48px; z-index: 2; }
.lb-close:hover { background: #2a2a2a; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; color: var(--white); background: rgba(30,30,30,.7); z-index: 2; }
.lb-nav:hover { background: #333; }
.lb-prev { left: 14px; }
.lb-prev .icon { transform: rotate(180deg); }
.lb-next { right: 14px; }

/* ---------- Product page: swipe dots + sticky buy bar ---------- */
.pdp-dots { display: none; }
.pdp-sticky { display: none; }
body.has-sticky .toast { bottom: 96px; }

/* ---------- Free-delivery progress ---------- */
.free-bar { margin: 0 0 14px; }
.free-bar p { font-size: 13px; margin: 0 0 8px; color: var(--charcoal); }
.free-bar b { font-weight: 700; color: var(--black); }
.free-track { height: 4px; background: var(--line); overflow: hidden; }
.free-track i { display: block; height: 100%; background: var(--black); transition: width .45s var(--ease); }

/* ---------- Footer: accepted payments ---------- */
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 22px 0; border-top: 1px solid #333; }
.pay-row b { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--white); font-weight: 600; }
.pay-row .chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-row .chips-list span { padding: 6px 12px; border: 1px solid #444; color: #dcdcdc; font-size: 12px; font-weight: 500; letter-spacing: .02em; }

/* ---------- Menu drawer footer ---------- */
.menu-foot .menu-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.menu-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.menu-links a:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ==========================================================================
   Tablet & phone
   ========================================================================== */
@media (max-width: 1040px) {
  .look-block { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .look-block.is-flip .look-copy { order: 0; }
  .look-block.is-flip .look-photos { justify-self: start; }
  .look-copy { align-items: flex-start; }
  .look-copy p { max-width: 52ch; }
}

@media (max-width: 900px) {
  .shop-bar { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.97); padding-top: 12px; margin-top: -12px; }
  .pdp-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
  .pdp-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c9c9c9; transition: background-color .2s, transform .2s; }
  .pdp-dots i.on { background: var(--black); transform: scale(1.25); }
  .pdp-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: 14px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--white);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.07);
  }
  .pdp-sticky[hidden] { display: none; }
  .ps-info { flex: 1; min-width: 0; }
  .ps-info b { display: block; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ps-info span { font-size: 13px; color: var(--grey); }
  .pdp-sticky .btn { min-height: 48px; padding: 0 24px; }
  body.has-sticky { padding-bottom: 72px; }
}

@media (max-width: 640px) {
  /* Hero: headline, one line of copy and both buttons fit above the photo */
  .hero-copy { padding: 26px var(--gutter) 26px; gap: 12px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: clamp(2.15rem, 10.5vw, 2.9rem); max-width: none; }
  .hero p.lead { font-size: 15px; line-height: 1.5; }
  .hero .hero-actions { flex-wrap: nowrap; gap: 8px; width: 100%; margin-top: 6px; }
  .hero .hero-actions .btn { flex: 1 1 0; min-height: 48px; padding: 0 8px; font-size: 11.5px; letter-spacing: .06em; white-space: normal; line-height: 1.2; }
  .spin-btn { width: 44px; height: 44px; }
  .spin-shop { min-height: 48px; }
  #spin-shop-name { display: none; }
  .spin-tab strong { font-size: 12px; }

  /* Cards: tap anywhere; no wrapping link text */
  .card-link { display: none; }
  .card-title { font-size: 14px; }
  .card-sizes { font-size: 11.5px; }

  /* Sections */
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .section-head p { font-size: .98rem; margin-top: 8px; }
  .look-photos.n-3 { grid-template-columns: repeat(2, 1fr); }
  .look-photos.n-5 { grid-template-columns: repeat(2, 1fr); }
  .look-photo.is-big { grid-column: span 2; grid-row: span 1; }
  .look-copy h3 { font-size: 1.7rem; }
  .look-label { left: 8px; bottom: 8px; padding: 4px 8px; font-size: 10px; }

  /* Product page */
  .pdp-thumbs { display: none; }
  .pdp-info { gap: 20px; }
  .pdp-info h1 { font-size: 2rem; }

  /* Touch targets */
  .qty button { width: 42px; height: 42px; }
  .qty output { min-width: 34px; }
  .chip span { height: 44px; min-width: 48px; }
  .select { height: 48px; }
  .remove-line { padding: 8px 0; }

  /* Lightbox */
  .lb-img { max-height: calc(100vh - 190px); }
  .lb-nav { width: 44px; height: 44px; top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-fig figcaption { padding: 0 4px 64px; }
  .lb-shop { margin-left: 0; }

  .pay-row { padding: 18px 0; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .hero-copy { padding-top: 48px; padding-bottom: 36px; }
}

/* ==========================================================================
   v4: checkout, tracking, contact, sizes, fixes
   ========================================================================== */
.field { align-content: start; }          /* inputs in the same row now line up */
.btn-lg { min-height: 58px; font-size: 14px; }
.link-btn { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: none; text-decoration: underline; text-underline-offset: 3px; color: inherit; padding: 4px 0; }
.link-btn:hover { color: var(--grey); }
.size-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.size-grid .chip span { min-width: 0; }

/* Lookbook: flipped blocks swap their columns (this was shrinking the Adidas photos) */
@media (min-width: 1041px) { .look-block.is-flip { grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); } }
.tile-media img { object-position: 50% 62%; }

/* Quick view: photo always fills its half; touch devices get a + button on the card */
.modal-panel .media { position: relative; aspect-ratio: auto; min-height: 100%; }
.modal-panel .media > img, .modal-panel .media > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv-fab { display: none; position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 42px; height: 42px; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.qv-fab:active { transform: scale(.94); }
@media (hover: none) { .qv-fab { display: grid; } }
@media (max-width: 900px) { .modal-panel .media { aspect-ratio: 1 / 1; min-height: 0; } }

/* Size guide */
.guide-panel { grid-template-columns: 1fr; width: min(560px, 100%); }
.guide-body { padding: 36px 32px; display: grid; gap: 16px; }
.guide-body h2 { font-size: 1.6rem; }
.guide-table { overflow-x: auto; border: 1px solid var(--line); }
.guide-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide-table th, .guide-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.guide-table th { background: var(--off); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table td:first-child { font-weight: 700; }

/* Checkout stepper */
.steps { display: flex; align-items: center; flex-wrap: wrap; list-style: none; padding: 28px 0 0; margin: 0; }
.steps li { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.steps li + li::before { content: ""; width: clamp(20px, 6vw, 72px); height: 1px; background: #cfcfcf; margin: 0 14px; }
.steps li i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #b5b5b5; display: grid; place-items: center; flex: none; }
.steps li.done, .steps li.on { color: var(--black); }
.steps li.done i { background: var(--black); border-color: var(--black); color: var(--white); }
.steps li.done i .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.steps li.on i { border-color: var(--black); background: radial-gradient(circle, var(--black) 42%, transparent 46%); }
.summary-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.summary-head h2 { margin: 0; }
.secure { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--grey); margin: 16px 0 0; line-height: 1.5; }
.secure .icon { flex: none; margin-top: 2px; color: var(--ok); }
.field .hint { font-size: 12.5px; color: var(--grey); margin: 0; }

/* Promo code box */
.promo { margin: 16px 0 6px; }
.promo-form { display: flex; gap: 8px; }
.promo-form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #cfcfcf; background: var(--white); text-transform: uppercase; letter-spacing: .06em; border-radius: 0; }
.promo-form input::placeholder { text-transform: none; letter-spacing: 0; }
.promo-form input:focus { outline: 2px solid var(--black); outline-offset: 0; border-color: var(--black); }
.promo-msg { font-size: 13px; color: var(--danger); min-height: 18px; margin: 6px 0 0; }
.promo-applied { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: #e5f5ec; border: 1px solid #b7dfc6; font-size: 14px; color: #14502f; }
#cart-disc, #sum-disc { color: var(--ok); }

/* Order tracking */
.track { padding-block: 40px 100px; }
.track > * { max-width: 980px; }
.track-form { display: flex; gap: 10px; max-width: 640px; }
.track-form input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid #cfcfcf; background: var(--white); letter-spacing: .06em; text-transform: uppercase; border-radius: 0; }
.track-form input::placeholder { text-transform: none; letter-spacing: 0; }
.track-form input:focus { outline: 2px solid var(--black); outline-offset: 0; border-color: var(--black); }
.track-recent { margin-top: 20px; }
.track-recent b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { padding: 10px 14px; border: 1px solid var(--line); background: var(--white); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.chip-btn small { color: var(--grey); font-weight: 500; margin-left: 6px; }
.chip-btn:hover { border-color: var(--black); }
#track-result { margin-top: 8px; }
.placed { background: var(--black); color: var(--white); padding: 26px 28px; margin-top: 20px; }
.placed h2 { font-size: 1.8rem; margin-bottom: 8px; }
.placed p { color: #d8d8d8; margin: 0; max-width: 60ch; }
.track-card { background: var(--white); border: 1px solid var(--line); padding: 24px 26px; margin-top: 20px; }
.track-card h3 { font-size: 1rem; letter-spacing: .02em; margin-bottom: 14px; }
.track-head { display: flex; flex-wrap: wrap; gap: 18px 48px; }
.track-head small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); font-weight: 700; margin-bottom: 4px; }
.track-head b { font-weight: 600; }
.track-code { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: .03em; }
.track-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 30px 0 6px; padding: 0; list-style: none; }
.track-steps li { position: relative; text-align: center; padding-top: 32px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); }
.track-steps li i { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 2px solid #cfcfcf; z-index: 1; }
.track-steps li::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: #dcdcdc; }
.track-steps li:first-child::before { display: none; }
.track-steps li.done, .track-steps li.on { color: var(--black); font-weight: 700; }
.track-steps li.done i { background: var(--black); border-color: var(--black); }
.track-steps li.done::before, .track-steps li.on::before { background: var(--black); }
.track-steps li.on i { border-color: var(--black); box-shadow: 0 0 0 5px rgba(17,17,17,.12); }
.track-cancel { color: var(--danger); font-weight: 600; margin: 18px 0 0; }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.track-grid .track-card { margin-top: 20px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.timeline li { display: flex; gap: 16px; font-size: 14px; }
.timeline time { color: var(--grey); min-width: 112px; }
.pay-ok { color: var(--ok); }
.file-drop { position: relative; display: block; border: 1.5px dashed #9a9a9a; padding: 20px 16px; text-align: center; cursor: pointer; margin: 16px 0 12px; font-size: 14px; color: var(--charcoal); background: var(--off); }
.file-drop:hover { border-color: var(--black); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop:focus-within { outline: 2px solid var(--black); outline-offset: 2px; }
#receipt-preview { display: block; max-width: 220px; max-height: 220px; margin: 0 0 12px; border: 1px solid var(--line); }
#receipt-preview[hidden] { display: none; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); padding-block: 56px 100px; align-items: start; }
.contact-side h2, .contact-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.channels { display: grid; gap: 12px; margin-top: 24px; border: 0; }
.channel { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
a.channel:hover { border-color: var(--black); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.channel > .icon:first-child { width: 52px; height: 52px; padding: 14px; background: var(--black); color: var(--white); stroke-width: 1.6; }
.channel.is-off { background: var(--off); cursor: default; }
.channel.is-off > .icon:first-child { background: #bdbdbd; }
.channel.is-off strong { color: var(--grey); font-weight: 500; }
.channel small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 2px; }
.channel strong { font-weight: 600; font-size: 1.02rem; word-break: break-word; }
.channel .ch-go .icon { width: 18px; height: 18px; }
.contact-card { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.contact-card .form { margin-top: 20px; }

@media (max-width: 900px) {
  .track-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; padding-block: 32px 72px; }
  .steps { padding-top: 20px; }
}
@media (max-width: 640px) {
  .steps li { font-size: 11px; letter-spacing: .06em; gap: 7px; }
  .steps li + li::before { width: 14px; margin: 0 8px; }
  .track-form { flex-direction: column; }
  .track-form .btn { width: 100%; }
  .track-card { padding: 20px 18px; }
  .track-steps li { font-size: 10px; letter-spacing: .04em; }
  .timeline li { flex-direction: column; gap: 2px; }
  .guide-body { padding: 28px 20px; }
}

/* Shop filter: sizes grouped by system */
#f-size { display: block; }
.size-group + .size-group { margin-top: 14px; }
.size-sys { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }

/* Checkout on phones: no overflow, form first, compact stepper */
.checkout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.checkout > *, .cart-layout > * { min-width: 0; }
@media (max-width: 900px) {
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .checkout .summary { order: 0; position: static; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .steps { flex-wrap: nowrap; }
  .steps li + li::before { width: 22px; margin: 0 10px; }
}
@media (max-width: 640px) {
  .steps li { font-size: 10px; letter-spacing: .04em; gap: 6px; }
  .steps li i { width: 18px; height: 18px; }
  .steps li.done i .icon { width: 11px; height: 11px; }
  .steps li + li::before { width: 10px; margin: 0 6px; }
}
