/* ================================================
   helloMatin — Buy Flow
   Bold type × single-accent monochrome
   ================================================ */

:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #8a8a8a;
  --line: #e5e5e5;
  --line-strong: #1a1a1a;
  --bg: #fafaf7;
  --bg-alt: #f2f2ed;
  --paper: #ffffff;
  --accent: #ff2d2d;
  --accent-ink: #ffffff;
  --ok: #1a1a1a;
  --radius: 0px;
  --radius-sm: 2px;
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ============ Top Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  font-family: "Space Grotesk", ui-sans-serif, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.15s var(--ease);
}
.nav__brand:hover { opacity: 0.7; }
.nav__brand b { color: var(--accent); font-weight: 700; }

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: auto;
  font-weight: 500;
}
.nav__links a { transition: color 0.15s var(--ease); }
.nav__links a:hover { color: var(--accent); }

.nav__cart {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__cart .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ============ Stage Wrap (sidebar + slide track) ============ */
.stage-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - 57px);
  border-top: 1px solid var(--line-strong);
}

.stage-nav {
  position: sticky;
  top: 57px;
  align-self: start;
  height: calc(100vh - 57px);
  padding: 40px 28px 28px;
  background: var(--bg);
  border-right: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.stage-nav__kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stage-nav__kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.stage-nav__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stage-nav__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.stage-nav__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s var(--ease), padding 0.2s var(--ease);
  color: var(--muted);
}
.stage-nav__item:hover:not(.locked) { padding-left: 6px; color: var(--ink); }
.stage-nav__item .num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  width: 24px;
}
.stage-nav__item .label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stage-nav__item .val {
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  color: var(--muted);
  max-width: 11ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-nav__item .val.empty { color: var(--line); }

.stage-nav__item.active {
  color: var(--accent);
}
.stage-nav__item.active .num {
  color: var(--accent);
}
.stage-nav__item.active .label {
  color: var(--ink);
}
.stage-nav__item.active::before {
  /* left accent bar — uses grid col to avoid layout shift */
}
.stage-nav__item.active {
  position: relative;
}
.stage-nav__item.active::after {
  content: "";
  position: absolute;
  left: -28px;
  top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.stage-nav__item.done .num {
  color: var(--ink);
}
.stage-nav__item.done .val {
  color: var(--ink);
  font-weight: 600;
}
.stage-nav__item.locked {
  cursor: not-allowed;
  opacity: 0.5;
}
.stage-nav__item.locked:hover { padding-left: 0; color: var(--muted); }

.stage-nav__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.stage-nav__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: "Space Grotesk", sans-serif;
}
.stage-nav__total .k {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.stage-nav__total .v {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stage-nav__arrows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stage-arrow {
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.stage-arrow:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}
.stage-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============ Stage track (horizontal slides) ============ */
.stage {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 57px);
}
.stage__track {
  display: flex;
  width: max-content;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.65, 0.05, 0.2, 1);
}

/* ============ Step Section ============ */
.step {
  flex: 0 0 var(--stage-w, 1180px);
  width: var(--stage-w, 1180px);
  min-height: calc(100vh - 57px);
  padding: 56px 48px 56px;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 56px;
  align-items: start;
  overflow-y: auto;
  max-height: calc(100vh - 57px);
}

.step__lead {
  position: static;
}

.step__kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step__kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.step__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4.2vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
}
.step__title em {
  font-style: normal;
  color: var(--accent);
}

.step__body {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 38ch;
  line-height: 1.55;
}

.step__meta {
  margin-top: 28px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step__meta b { color: var(--ink); font-weight: 600; }

/* ============ Collection Grid (Step 1) ============ */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.collection-card {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--paper);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s var(--ease);
}
.collection-card:hover {
  background: var(--bg-alt);
}
.collection-card.selected {
  background: var(--ink);
  color: white;
}
.collection-card__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.collection-card.selected .collection-card__num { color: rgba(255,255,255,0.6); }

.collection-card__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.collection-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: 12px;
  color: var(--muted);
}
.collection-card.selected .collection-card__meta { color: rgba(255,255,255,0.6); }
.collection-card__meta .count {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 36px;
  color: var(--ink);
  line-height: 0.9;
}
.collection-card.selected .collection-card__meta .count { color: white; }

.collection-card__swatch {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40%;
  aspect-ratio: 1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  filter: grayscale(100%);
  transition: filter 0.3s var(--ease);
}
.collection-card:hover .collection-card__swatch,
.collection-card.selected .collection-card__swatch { filter: none; }
.collection-card.selected .collection-card__swatch { opacity: 1; }

/* ============ Product Grid (Step 2) ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
.product-card {
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.product-card__img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease);
}
.product-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card__img img { transform: scale(1.03); }
.product-card.selected .product-card__img {
  border-color: var(--accent);
  border-width: 2px;
}
.product-card.selected .product-card__img::after {
  content: "SELECTED";
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
  letter-spacing: 0.1em;
}
.product-card__ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ink);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
  letter-spacing: 0.08em;
}
.product-card__body {
  padding: 14px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
}
.product-card__price .sale {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
}
.product-card__price .orig {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}
.product-card__stock {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.product-card__stock.low { color: var(--accent); }

/* ============ Option Rail (Step 3-4) ============ */
.option-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.option-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 0.2s var(--ease);
}
.option-row:hover { padding-left: 12px; }
.option-row.selected {
  background: var(--ink);
  color: white;
  padding-left: 24px;
  padding-right: 24px;
  margin: 0 -24px;
}
.option-row__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.option-row.selected .option-row__num { color: rgba(255,255,255,0.5); }
.option-row__label {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.option-row__swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.option-row__arrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.option-row:hover .option-row__arrow { opacity: 1; }
.option-row.selected .option-row__arrow { opacity: 1; color: white; }

/* ============ Size Grid ============ */
.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.size-cell {
  aspect-ratio: 1;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  position: relative;
}
.size-cell .label {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.size-cell .sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.size-cell:hover { background: var(--bg-alt); }
.size-cell.selected {
  background: var(--ink);
  color: white;
}
.size-cell.selected .sub { color: rgba(255,255,255,0.6); }
.size-cell.disabled {
  color: var(--line);
  cursor: not-allowed;
  pointer-events: none;
}
.size-cell.disabled .sub { color: var(--line); }
.size-cell.disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

/* ============ Quantity Stepper ============ */
.qty-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 20px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line-strong);
  width: fit-content;
}
.qty-btn {
  width: clamp(80px, 10vw, 120px);
  height: clamp(80px, 10vw, 120px);
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 300;
  display: grid;
  place-items: center;
  transition: background 0.15s var(--ease);
  border-right: 1px solid var(--line-strong);
}
.qty-btn:last-child { border-right: none; }
.qty-btn:hover { background: var(--ink); color: white; }
.qty-display {
  width: clamp(120px, 14vw, 180px);
  height: clamp(80px, 10vw, 120px);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 700;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line-strong);
  letter-spacing: -0.02em;
}
.qty-hint {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  display: flex;
  gap: 16px;
  align-items: center;
}
.qty-hint .tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 11px;
}
.qty-hint .tag.low { border-color: var(--accent); color: var(--accent); }

/* ============ Summary (Step 6) ============ */
.summary-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  border-top: 1px solid var(--line-strong);
  padding-top: 40px;
}
.summary-image {
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}
.summary-image img { width: 100%; height: 100%; object-fit: cover; }

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.summary-row__label {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}
.summary-row__value {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 16px;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 24px 0 4px;
  margin-top: 8px;
  border-top: 2px solid var(--ink);
}
.summary-total__label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.summary-total__value {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.summary-total__value small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 8px;
  text-decoration: line-through;
}

.summary-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 12px;
}

.summary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  width: 100%;
  height: 64px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.btn--primary {
  background: var(--accent);
  color: white;
}
.btn--primary:hover { background: var(--ink); }
.btn--secondary {
  background: #fee500;
  color: #3c1e1e;
}
.btn--secondary:hover { background: var(--ink); color: white; }
.btn--kakao {
  width: 100%;
  background: #fee500;
  color: #3c1e1e;
  height: 72px;
  font-size: 16px;
}
.btn--kakao:hover { background: var(--ink); color: white; }

/* ============ Hero ============ */
.hero {
  padding: 80px 32px 100px;
  max-width: 1440px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 40px;
}
.hero__meta b { color: var(--accent); }
.hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 13vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.hero__title .ko {
  font-family: "Pretendard", sans-serif;
  font-size: 0.5em;
  display: block;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 18px;
  letter-spacing: -0.02em;
}
.hero__sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__desc { font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 48ch; }
.hero__cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-family: "Space Grotesk", sans-serif;
}
.hero__cta-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 32px;
  background: var(--ink);
  color: white;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease);
}
.hero__cta-btn:hover { background: var(--accent); }
.hero__cta-btn .arrow { font-weight: 400; font-size: 20px; }

.step-next {
  align-self: flex-start;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 36px;
  background: var(--ink);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.step-next:hover { background: var(--accent); }
.step-next .arrow { font-weight: 400; font-size: 20px; }

/* ============ Footer ============ */
.foot {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.foot h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 600;
}
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.foot li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
.foot li a:hover { color: var(--accent); }

/* ============ Toast ============ */
.hm-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2,0.8,0.2,1);
  z-index: 200;
  max-width: 90vw;
  text-align: center;
}
.hm-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.foot__brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.foot__brand b { color: var(--accent); }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .nav { padding: 14px 20px; }
  .nav__links { display: none; }

  /* Stage: stack sidebar on top as a compact strip */
  .stage-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .stage-nav {
    position: sticky;
    top: 57px;
    height: auto;
    padding: 14px 16px;
    border-right: none;
    border-bottom: 1px solid var(--line-strong);
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    z-index: 20;
  }
  .stage-nav::-webkit-scrollbar { display: none; }
  .stage-nav__kicker,
  .stage-nav__title,
  .stage-nav__foot { display: none; }
  .stage-nav__list {
    display: flex;
    flex-direction: row;
    border-top: none;
    gap: 8px;
    margin-top: 0;
  }
  .stage-nav__item {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    white-space: nowrap;
  }
  .stage-nav__item .val { display: none; }
  .stage-nav__item .label { font-size: 13px; }
  .stage-nav__item .num { font-size: 10px; width: auto; }
  .stage-nav__item:hover:not(.locked) { padding-left: 14px; }
  .stage-nav__item.active {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
  }
  .stage-nav__item.active .label { color: white; }
  .stage-nav__item.active .num { color: rgba(255,255,255,0.6); }
  .stage-nav__item.active::after { display: none; }

  /* Stage slides — switch from horizontal slider to vertical stack on mobile */
  .stage { min-height: auto; overflow: visible; }
  .stage__track {
    display: block !important;
    width: 100% !important;
    transform: none !important;
    transition: none !important;
  }
  .step {
    flex: none !important;
    width: 100% !important;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 20px 56px;
    min-height: auto;
    max-height: none;
    overflow-y: visible;
    border-top: 1px solid var(--line);
  }
  .step:first-child { border-top: none; }
  .step__lead { position: static; }
  .step__title { font-size: clamp(32px, 8vw, 48px); }

  /* Content grids */
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .size-grid { grid-template-columns: repeat(3, 1fr); }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Hero */
  .hero { padding: 48px 20px 64px; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero__sub { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
  .hero__cta { justify-content: flex-start; }

  /* Summary */
  .summary-head { grid-template-columns: 1fr; }
  .summary-actions { grid-template-columns: 1fr; }

  /* Quantity */
  .qty-btn, .qty-display { height: 64px; }
  .qty-btn { width: 64px; font-size: 26px; }
  .qty-display { width: 88px; font-size: 32px; }
  .step-next { width: 100%; justify-content: center; }

  /* Footer */
  .foot { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 20px 32px; }
}

@media (max-width: 500px) {
  .collection-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: repeat(2, 1fr); }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
  .step__title { font-size: 34px; }
  .hero__title { font-size: clamp(48px, 14vw, 80px); }
  .foot { grid-template-columns: 1fr; }
}
