/* MIND OVER MATTER — styles
   Deep black, white, charcoal, muted silver. Mobile-first. */

:root {
  --black: #080808;
  --white: #ffffff;
  --charcoal: #161616;
  --charcoal-2: #1f1f1f;
  --line-d: #2b2b2b;
  --silver: #a8a8a8;      /* 8.4:1 on black */
  --grey: #5c5c5c;        /* 6.7:1 on white */
  --line-l: #e4e4e4;
  --mist: #f3f3f3;
  --alert: #c5221f;

  /* semantic (dark default) */
  --bg: var(--black);
  --fg: var(--white);
  --muted: var(--silver);
  --line: var(--line-d);
  --surface: var(--charcoal);
  --err: #ff7a70;

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

  --gutter: 20px;
  --max: 1440px;
  --header-h: 60px;
  --bar-h: 32px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --t-fast: 150ms;
  --t-med: 300ms;
  --t-slow: 800ms;

  --z-header: 40;
  --z-drawer: 100;
  --z-toast: 1000;
}
@media (min-width: 768px) { :root { --gutter: 40px; --header-h: 68px; } }
@media (min-width: 1280px) { :root { --gutter: 56px; } }

.light {
  --bg: var(--white);
  --fg: var(--black);
  --muted: var(--grey);
  --line: var(--line-l);
  --surface: var(--mist);
  --err: var(--alert);
}
.dark {
  --bg: var(--black);
  --fg: var(--white);
  --muted: var(--silver);
  --line: var(--line-d);
  --surface: var(--charcoal);
  --err: #ff7a70;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.light, .dark { background: var(--bg); color: var(--fg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: var(--z-toast); background: var(--white); color: var(--black); padding: 12px 16px; }
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

/* ---------- Type ---------- */
.label {
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
}
.muted { color: var(--muted); }
.display {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.04em; line-height: .88;
}
.h1 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: .95; font-size: clamp(40px, 7vw, 96px); text-wrap: balance; }
.h2 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: .95; font-size: clamp(32px, 5.2vw, 72px); text-wrap: balance; }
.h3 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.15; font-size: clamp(20px, 2vw, 26px); }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.num { font-variant-numeric: tabular-nums; }
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 17px; letter-spacing: .04em; margin: 48px 0 12px; }
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* "To complete" flags on policy pages */
.flag { background: #fff1b8; color: #3d3100; padding: 1px 6px; font-size: .92em; }
.notice { border: 1px solid var(--line); padding: 16px 18px; margin: 24px 0 40px; display: grid; gap: 4px; font-size: 14px; }
.notice strong { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 32px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, opacity var(--t-fast) ease;
  touch-action: manipulation; white-space: nowrap; text-align: center;
}
.btn--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--primary:hover { opacity: .86; }
.btn--outline:hover { background: var(--fg); color: var(--bg); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn .arrow { transition: transform var(--t-med) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.is-loading { pointer-events: none; opacity: .7; }

.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--t-med) var(--ease-out); padding-bottom: 2px; }
.ulink:hover, .ulink[aria-current="page"] { background-size: 100% 1px; }
.tlink { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Announcement ---------- */
.bar {
  min-height: var(--bar-h); display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--black); padding: 7px var(--gutter);
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-align: center; line-height: 1.4;
}
@media (min-width: 600px) { .bar { font-size: 11px; letter-spacing: .16em; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header); height: var(--header-h);
  background: color-mix(in srgb, var(--black) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-d); color: var(--white);
}
.header__inner { height: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.wordmark { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: -0.01em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.nav { display: none; }
.nav ul { display: flex; gap: 36px; }
.nav a { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.icon-btn svg { width: 22px; height: 22px; }
.bag-count { font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--white); color: var(--black); padding: 0 5px; }
.bag-count:empty { display: none; }
@media (min-width: 1000px) {
  .header__inner { grid-template-columns: 1fr auto 1fr; }
  .nav { display: block; }
  .menu-btn { display: none; }
}

.mobile-nav {
  position: fixed; inset: 0; z-index: var(--z-drawer); background: var(--black); color: var(--white);
  display: flex; flex-direction: column; padding: 0 var(--gutter) 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity var(--t-fast) ease, visibility 0s linear var(--t-fast);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-med) ease, visibility 0s; }
.mobile-nav__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.mobile-nav ul { margin-top: 32px; display: grid; }
.mobile-nav li a { display: block; padding: 12px 0; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; border-bottom: 1px solid var(--line-d); }
.mobile-nav__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 8px; }

/* ---------- Placeholder imagery ---------- */
.ph {
  position: relative; width: 100%; height: 100%;
  background: var(--charcoal); color: var(--silver);
  display: grid; place-items: center; text-align: center; overflow: hidden;
}
.light .ph { background: var(--mist); color: var(--grey); }
.ph::before, .ph::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid currentColor; opacity: .5; }
.ph::before { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.ph::after { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.ph__text { display: grid; gap: 6px; padding: 24px; }
.ph__text b { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }
.ph__text span { font-size: 12px; letter-spacing: .04em; }

.media { position: relative; overflow: hidden; background: var(--surface); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ar-45 { aspect-ratio: 4 / 5; }
.ar-34 { aspect-ratio: 3 / 4; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h) - var(--bar-h)); display: grid; color: var(--white); background: var(--black); --fg: var(--white); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.hero__media .ph { place-items: start center; padding-top: 14vh; }
.hero__media .ph::after { display: none; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,8,.8) 0%, rgba(8,8,8,0) 50%); pointer-events: none; }
.hero__content { position: relative; align-self: end; padding: 64px var(--gutter) 28px; display: grid; gap: 28px; width: 100%; max-width: var(--max); margin: 0 auto; }
.hero__title { font-size: clamp(54px, 14.6vw, 220px); }
.hero__row { display: grid; gap: 24px; }
.hero__secondary { border-top: 1px solid rgba(255,255,255,.22); padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; }
@media (max-width: 899.98px) {
  .hero { min-height: 0; }
  .hero__media { position: relative; inset: auto; aspect-ratio: 4 / 5; max-height: 72svh; width: 100%; }
  .hero__shade { display: none; }
  .hero__content { padding-top: 28px; }
}
@media (min-width: 900px) {
  .hero__media { left: 40%; }
  .hero__shade { left: 40%; background: linear-gradient(to right, rgba(8,8,8,.9) 0%, rgba(8,8,8,0) 22%), linear-gradient(to top, rgba(8,8,8,.55) 0%, rgba(8,8,8,0) 35%); }
  .hero__title { font-size: clamp(80px, 10vw, 190px); }
  .hero__row { grid-template-columns: 1fr; max-width: 36%; gap: 20px; }
  .hero__row .btn { justify-self: start; }
  .hero__content { padding-bottom: 36px; }
}

.reveal-line { display: block; overflow: hidden; padding-bottom: .02em; }
.reveal-line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-line > span { transform: translateY(105%); animation: rise 1s var(--ease-out) forwards; }
  .reveal-line:nth-child(2) > span { animation-delay: 80ms; }
  .reveal-line:nth-child(3) > span { animation-delay: 160ms; }
  .hero__fade { opacity: 0; animation: fadein 900ms var(--ease-out) 450ms forwards; }
}
@keyframes rise { to { transform: none; } }
@keyframes fadein { to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 144px 0; } }
.page-head { padding: 56px 0 40px; }
@media (min-width: 900px) { .page-head { padding: 96px 0 56px; } }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Featured product (home) */
.drop-grid { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.drop-grid > :first-child { grid-column: span 2; }
.drop-info { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 900px) {
  .drop-layout { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
  .drop-info { margin-top: 0; position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Lookbook */
.look { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 900px) { .look { grid-template-columns: repeat(4, 1fr); gap: 12px; } .look--offset { margin-top: 72px; } }

/* Philosophy */
.philo { display: grid; gap: 40px; }
.philo__text { font-family: var(--font-head); font-weight: 600; font-size: clamp(26px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: pretty; max-width: 26ch; }
.philo__text .dim { color: var(--muted); }
@media (min-width: 900px) { .philo { grid-template-columns: 3fr 9fr; } }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.countdown > div { padding: 14px 12px; border-right: 1px solid var(--line); }
.countdown > div:last-child { border-right: 0; }
.countdown b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 5vw, 48px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; margin-bottom: 6px; }

/* ---------- Forms ---------- */
.signup { container-type: inline-size; display: grid; gap: 10px; }
.signup__row { display: flex; flex-direction: column; gap: 10px; }
@container (min-width: 460px) { .signup__row { flex-direction: row; } .signup__row .input { flex: 1; min-width: 0; } }
.field { display: grid; gap: 8px; }
.input {
  width: 100%; min-height: 54px; padding: 0 16px; background: transparent; color: var(--fg);
  border: 1px solid var(--line); border-radius: 0; font-size: 16px;
  transition: border-color var(--t-fast) ease;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:hover:not(:disabled) { border-color: var(--muted); }
.input:focus-visible { outline: none; border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input:disabled { opacity: .5; cursor: not-allowed; }
.error { color: var(--err); font-size: 13px; }
.error:empty { display: none; }
.form-note { font-size: 13px; color: var(--muted); }
.success { border: 1px solid var(--line); padding: 18px; display: grid; gap: 4px; }
.success:focus { outline: none; }

/* ---------- Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.pdp { display: grid; gap: 32px; padding-bottom: 96px; }
.gallery { display: grid; gap: 12px; min-width: 0; }
.gallery__track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: 0 0 88%; scroll-snap-align: start; }
.gallery__item .media > button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__dots { display: flex; gap: 6px; justify-content: center; }
.gallery__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background var(--t-fast); }
.gallery__dots span.on { background: var(--fg); }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
  .gallery__track { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; }
  .gallery__item:first-child:nth-last-child(odd) { grid-column: span 2; }
  .gallery__dots { display: none; }
  .pdp__info { position: sticky; top: calc(var(--header-h) + 24px); }
}
.pdp__info { display: grid; gap: 28px; min-width: 0; }
.pdp__name { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em; line-height: 1; font-size: clamp(30px, 3.4vw, 46px); text-wrap: balance; }
.price { font-size: 20px; font-weight: 500; }

.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 12px; }
.opt__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.opt__grid--wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.chip span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 16px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}
.chip input:hover + span { border-color: var(--fg); }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.chip input:disabled { cursor: not-allowed; }
.chip input:disabled + span { opacity: .35; text-decoration: line-through; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--muted); }
.opt.has-error .chip span { border-color: var(--err); }
.opt .error { margin-top: 10px; }
.stock-line { font-size: 13px; color: var(--muted); }
.stock-line:empty { display: none; }

.status-box { border: 1px solid var(--line); padding: 18px; display: grid; gap: 8px; }
.status-box .label { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform var(--t-med) var(--ease-out); flex: none; }
.acc details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.acc__body { padding-bottom: 22px; color: var(--muted); font-size: 15px; display: grid; gap: 10px; }
.acc__body ul { list-style: disc; padding-left: 18px; display: grid; gap: 2px; }

/* Shop grid / related */
.grid-products { display: grid; grid-template-columns: 1fr; gap: 40px 12px; }
@media (min-width: 600px) { .grid-products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-products { grid-template-columns: repeat(3, 1fr); gap: 56px 16px; } }
.card { display: grid; gap: 14px; }
.card .media img { transition: transform 1.2s var(--ease-out); }
.card:hover .media img { transform: scale(1.02); }
.card__meta { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.card__name { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; }

/* ---------- Size guide ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 480px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table thead th { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.table .tbc { color: var(--muted); }
.measure { display: grid; gap: 24px; margin-top: 40px; }
.measure dt { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.measure dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
@media (min-width: 700px) { .measure { grid-template-columns: 1fr 1fr; } }

/* ---------- Bag (drawer + page) ---------- */
.scrim { position: fixed; inset: 0; z-index: calc(var(--z-drawer) - 1); background: rgba(8,8,8,.6); opacity: 0; visibility: hidden; transition: opacity var(--t-med), visibility 0s linear var(--t-med); }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-med), visibility 0s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer); width: min(460px, 100%);
  display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden;
  transition: transform 240ms var(--ease-in), visibility 0s linear 240ms;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 480ms var(--ease-out), visibility 0s; }
.drawer__head { height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); flex: none; }
.drawer__body { flex: 1; overflow-y: auto; padding: 24px var(--gutter); overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--line); padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); flex: none; }

.line { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 0; }
.line .media { aspect-ratio: 3 / 4; }
.line .ph::before, .line .ph::after, .line .ph__text { display: none; }
.line__top { display: flex; justify-content: space-between; gap: 12px; }
.line__name { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; }
.line__actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-size: 14px; }
.remove { font-size: 13px; color: var(--muted); min-height: 44px; }
.remove:hover { color: var(--fg); }
.bag-summary { display: grid; gap: 10px; }
.bag-summary .row { display: flex; justify-content: space-between; gap: 12px; }
.bag-summary .total { font-weight: 600; font-size: 17px; padding-top: 12px; border-top: 1px solid var(--line); }
.empty { display: grid; gap: 18px; justify-items: start; }
@media (min-width: 900px) { .bag-page { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; } .bag-page aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.bag-page aside { border: 1px solid var(--line); padding: 24px; margin-top: 32px; }
@media (min-width: 900px) { .bag-page aside { margin-top: 0; } }

/* ---------- Modal / lightbox ---------- */
.modal {
  position: fixed; z-index: var(--z-drawer); left: 50%; top: 50%;
  width: min(760px, calc(100% - 2 * var(--gutter))); max-height: calc(100dvh - 40px); overflow: auto;
  padding: 24px; transform: translate(-50%, -47%); opacity: 0; visibility: hidden;
  transition: transform var(--t-fast) var(--ease-in), opacity var(--t-fast), visibility 0s linear var(--t-fast);
}
.modal.is-open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; transition: transform var(--t-med) var(--ease-out), opacity var(--t-med), visibility 0s; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }

.lightbox { position: fixed; inset: 0; z-index: var(--z-drawer); background: var(--black); display: grid; grid-template-rows: auto 1fr; opacity: 0; visibility: hidden; transition: opacity var(--t-med), visibility 0s linear var(--t-med); }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-med), visibility 0s; }
.lightbox__head { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter); height: var(--header-h); color: var(--white); }
.lightbox__stage { overflow: auto; display: grid; place-items: center; }
.lightbox__stage img { max-width: none; width: min(1600px, 170vw); }
@media (min-width: 900px) { .lightbox__stage img { width: min(1800px, 115vw); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: var(--z-toast); left: 50%; top: calc(var(--header-h) + 12px);
  transform: translate(-50%, -10px); opacity: 0; pointer-events: none;
  background: var(--white); color: var(--black); padding: 14px 20px; max-width: calc(100% - 32px);
  font-size: 13px; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-med);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Footer ---------- */
.footer { padding: 88px 0 24px; border-top: 1px solid var(--line-d); }
.footer__grid { display: grid; gap: 56px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer__cols ul { display: grid; }
.footer__cols a { display: inline-block; padding: 7px 0; font-size: 14px; }
.footer__mark { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em; line-height: .82; font-size: clamp(30px, 8.6vw, 132px); margin-top: 88px; white-space: nowrap; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-d); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 5fr 7fr; } .footer__cols { grid-template-columns: repeat(3, 1fr); } }

/* Mobile sticky buy bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-header) - 1);
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(100%); transition: transform var(--t-med) var(--ease-out);
}
.buybar.is-on { transform: none; }
.buybar .btn { min-height: 48px; padding: 0 20px; }
@media (min-width: 900px) { .buybar { display: none; } }

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .fade { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
  .js .fade.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
