/* ==========================================================================
   The Crew Collective — Tote pre-order
   Brand: cream #FDF8EF · taupe #BAA98E · charcoal #414040 · black #000000
   Type:  Safira March (display) · Ubuntu (body, labels, navigation)
   ========================================================================== */

:root {
  --cream: #FCF8EF;
  --cream-deep: #F5EEE1;
  --taupe: #BAA98E;
  --charcoal: #414040;
  --black: #000000;
  --rule: #E2D9C8;
  --error: #9E2A1F;

  --font-display: "Safira March", "Marcellus", "Times New Roman", serif;
  --font-body: "Ubuntu", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 20px;
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms;
  --t: 280ms;
  --bar-h: 76px;
  --modal-bar-h: 64px;

  color-scheme: light;
}

@media (min-width: 600px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

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

::selection { background: var(--black); color: var(--cream); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 12px 16px; background: var(--black); color: var(--cream);
  font-size: .875rem; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--charcoal);
}

/* ---------- Buttons ---------- */
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  min-height: 56px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), opacity var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn__arrow { display: inline-block; transition: transform var(--t) var(--ease); letter-spacing: 0; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .45; }

.btn--primary { background: var(--black); color: var(--cream); border-color: var(--black); border-radius: 999px; }
@media (hover: hover) {
  .btn--primary:hover:not(:disabled) { background: var(--charcoal); border-color: var(--charcoal); }
  .btn:hover:not(:disabled) .btn__arrow { transform: translateX(4px); }
  .btn--text:hover .btn__arrow:first-child { transform: translateX(-4px); }
}

.btn--text {
  min-height: 44px;
  padding: 0 2px;
  color: var(--black);
  letter-spacing: .14em;
}
.btn--text:not(:has(.btn__arrow)) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.btn--small { font-size: .75rem; min-height: 44px; }
.btn--full { width: 100%; }
@media (max-width: 599px) { .btn--block-mobile { width: 100%; } }

/* ---------- Landing ----------
   Built to the mockup (assets/reference/landing-mockup.jpg, 1080×1920).
   1u = 1% of the mockup’s width. The whole composition is ~184u tall, so --u is the
   largest size that fits both the screen width and the screen height. On a phone the
   bag image spans the full screen width; taller screens centre it with extra space. */
.landing {
  --u: min(1vw, calc(100vh / 184)); /* fallback for browsers without svh (older in-app browsers) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(13.6 * var(--u)) 0 calc(15.6 * var(--u));
  overflow: hidden;
  overflow: clip;
  text-align: center;
}
.landing__brand { display: flex; flex-direction: column; align-items: center; }
.landing__logo { width: calc(50.6 * var(--u)); margin: 0; }
.landing__title {
  margin-top: calc(6.4 * var(--u)); /* 7.4u to the cap line, less the line-height leading */
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(6.9 * var(--u));
  line-height: 1.05;
  letter-spacing: .05em;
  text-transform: uppercase;
}

@supports (height: 100svh) {
  .landing { --u: min(1vw, calc(100svh / 184)); }
}

/* Hero image: both totes in one transparent cut-out. On phones it is a little wider than
   the screen, so the outer bag edges bleed off both sides like the mockup; the slogans stay in view. */
.duo {
  width: calc(118 * var(--u));
  flex: none;
  margin: calc(8.9 * var(--u)) 0 0;
}
.duo img { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .duo { animation: bagIn 1s .12s var(--ease) both; }
}
@keyframes bagIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.landing__cta { display: flex; flex-direction: column; align-items: center; }
.landing__note {
  margin-top: calc(9.7 * var(--u));
  font-weight: 700;
  font-size: max(12px, calc(4.5 * var(--u)));
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.landing__btn {
  margin-top: calc(5.1 * var(--u));
  width: calc(55.7 * var(--u));
  min-width: 200px;
  height: calc(12.6 * var(--u));
  min-height: 48px;
  padding: 0;
  font-weight: 700;
  font-size: max(13px, calc(4 * var(--u)));
  letter-spacing: .08em;
}
@media (prefers-reduced-motion: no-preference) {
  .landing__brand, .landing__cta { animation: rise .9s var(--ease) both; }
  .landing__cta { animation-delay: .34s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Modal ---------- */
html.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--cream);
  color: var(--black);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal::backdrop { background: var(--cream); }
/* Browsers without <dialog> support: keep it hidden until opened, then show as a plain overlay. */
.modal:not([open]) { display: none; }
.modal[open] { display: block; }
.modal--fallback { z-index: 1000; }
@media (prefers-reduced-motion: no-preference) {
  /* "backwards", not "both": a lingering transform would trap the fixed summary bar inside the dialog. */
  .modal[open] { animation: modalIn .45s var(--ease) backwards; }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.modal__bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  height: var(--modal-bar-h);
  padding: 0 max(8px, calc(var(--gutter) - 12px));
  background: var(--cream);
  border-bottom: 1px solid var(--black);
}
.modal__logo { grid-column: 2; justify-self: center; width: 150px; }
.modal__close {
  -webkit-appearance: none;
  appearance: none;
  grid-column: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--black);
  -webkit-tap-highlight-color: transparent;
}
.modal__close svg { width: 22px; height: 22px; transition: transform var(--t) var(--ease); }
@media (hover: hover) { .modal__close:hover svg { transform: rotate(90deg); } }

.preorder__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 8vw, 3.25rem);
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}
.preorder__lede { margin: 12px 0 32px; max-width: 44ch; color: var(--charcoal); }
.preorder:not([data-current="totes"]) .preorder__intro { display: none; }
.field__optional { font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--charcoal); }
@media (min-width: 1100px) { .preorder__lede { margin-bottom: 44px; } }

/* ---------- Pre-order section ---------- */
.preorder {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 36px auto 0;
  padding: 0 var(--gutter) calc(88px + env(safe-area-inset-bottom, 0px));
  outline: none;
  scroll-margin-top: 0;
}
@media (min-width: 1100px) { .preorder { margin-top: 64px; padding-bottom: 128px; } }

/* Progress — three segments */
.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  counter-reset: none;
}
.progress__btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  width: 100%;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
  background: none;
  text-align: left;
  color: var(--charcoal);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.progress__btn:disabled { cursor: default; opacity: 1; }
.progress__num { font-family: var(--font-display); font-size: 1.375rem; line-height: 1; }
.progress__label {
  font-weight: 700; font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  line-height: 1.3;
}
.progress__item.is-done .progress__btn { border-top-color: var(--black); color: var(--black); }
.progress__item.is-current .progress__btn { border-top: 3px solid var(--black); padding-top: 12px; color: var(--black); }
.progress__item.is-upcoming .progress__btn { color: #8a8580; }
@media (hover: hover) {
  .progress__item.is-done .progress__btn:hover .progress__label { text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 600px) {
  .progress { gap: 16px; }
  .progress__btn { flex-direction: row; align-items: baseline; gap: 12px; padding-top: 18px; }
  .progress__item.is-current .progress__btn { padding-top: 16px; }
  .progress__num { font-size: 1.75rem; }
  .progress__label { font-size: .6875rem; }
}

/* Steps */
.step { padding-top: 44px; }
@media (min-width: 1100px) { .step { padding-top: 72px; } }
@media (prefers-reduced-motion: no-preference) {
  .step.is-entering { animation: stepIn .42s var(--ease) both; }
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.step__intro { margin-bottom: 32px; }
.step__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 6.4vw, 2.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  outline: none;
}
.step__copy { margin-top: 12px; max-width: 42ch; color: var(--charcoal); }

.step__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.step__actions--split { justify-content: space-between; }
@media (max-width: 599px) {
  .step__actions--split { flex-direction: column-reverse; align-items: stretch; }
  .step__actions--split .btn--primary { width: 100%; }
}

/* Details step — two columns on desktop */
@media (min-width: 1100px) {
  .step--details { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .step--details .step__intro { position: sticky; top: calc(var(--modal-bar-h) + 32px); margin: 0; }
}

/* ---------- Fields ---------- */
.details-form { max-width: 640px; }
.field { position: relative; padding-bottom: 6px; }
.field + .field { margin-top: 26px; }
.field__label {
  display: block;
  font-weight: 700; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--charcoal);
  transition: color var(--t-fast);
}
.field__input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  padding: 12px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--charcoal);
  border-radius: 0;
  background: transparent;
  font-size: 1.125rem; /* ≥16px so iOS doesn't zoom */
  line-height: 1.45;
  color: var(--black);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field__input::placeholder { color: #9d978f; opacity: 1; }
.field__input:focus { outline: none; border-bottom-color: var(--black); box-shadow: 0 1px 0 0 var(--black); }
.field:focus-within .field__label { color: var(--black); }
.field__input--area { resize: none; overflow: hidden; field-sizing: content; min-height: 52px; }

.field__hint { margin-top: 8px; font-size: .8125rem; color: var(--charcoal); }
.field__error {
  margin-top: 8px;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--error);
}
.field__error:empty { display: none; }
.field.is-invalid .field__input { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field.is-invalid .field__hint { display: none; }
.field.is-valid .field__label::after {
  content: "✓";
  margin-left: 8px;
  letter-spacing: 0;
  color: var(--black);
}

.form-error { margin-top: 16px; font-size: .875rem; color: var(--error); }
.form-error:empty { display: none; }

/* ---------- Totes (step 02) ---------- */
.shop { display: block; }
.totes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 600px) { .totes { grid-template-columns: repeat(2, 1fr); gap: 56px 24px; } }
@media (min-width: 1100px) {
  .shop { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
  .totes { gap: 72px 32px; }
}

.tote { position: relative; }
.tote__select {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.tote__select:focus-visible { outline: none; }
.tote__select:focus-visible .tote__frame { outline: 2px solid var(--black); outline-offset: 4px; }

.tote__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: box-shadow var(--t) var(--ease);
}
.tote__media { position: relative; }
.tote__frame picture, .tote__frame img {
  width: 100%; height: 100%;
}
/* Photo slider: one slide per colorway */
.tote__track {
  display: flex;
  height: 100%;
  transition: transform .45s var(--ease);
  will-change: transform;
}
.tote__track.is-dragging { transition: none; }
.tote__slide { flex: 0 0 100%; height: 100%; }
.tote__slide picture { display: block; }
.tote__media { touch-action: pan-y; }
.tote__frame img { -webkit-user-drag: none; user-select: none; }

/* Dots over the bottom of the photo */
.tote__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 3;
  display: flex;
  gap: 2px;
  transform: translateX(-50%);
}
.tote__dot {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
.tote__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--black);
  background: transparent;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.tote__dot.is-active::before { background: var(--black); transform: scale(1.1); }
.tote__dot:focus-visible { outline: 2px solid var(--black); outline-offset: -4px; border-radius: 50%; }
.tote__frame img {
  object-fit: cover;
  transition: transform .6s var(--ease), opacity .4s;
  mix-blend-mode: multiply; /* melts any off-cream photo background into the page */
}
@media (hover: hover) {
  .tote__select:hover .tote__frame img { transform: scale(1.025); }
}
.tote.is-selected .tote__frame { box-shadow: inset 0 0 0 2px var(--black); }
.tote.is-selected .tote__frame img { transform: scale(.94); }

.tote__mark {
  position: absolute;
  top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--black);
  color: var(--cream);
  transform: scale(.4);
  opacity: 0;
  transition: transform var(--t) var(--ease), opacity var(--t-fast);
}
.tote__mark svg { width: 16px; height: 16px; }
.tote.is-selected .tote__mark { transform: none; opacity: 1; }

.tote__meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 14px;
  align-items: baseline;
  padding-top: 16px;
}
.tote__index { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.3; }
.tote__name { font-weight: 500; font-size: 1rem; line-height: 1.4; }
.tote__price { font-size: .9375rem; color: var(--charcoal); white-space: nowrap; }
.tote__hint {
  grid-column: 2 / -1;
  margin-top: 4px;
  font-weight: 700; font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--charcoal);
  transition: color var(--t-fast);
}
.tote.is-selected .tote__hint { color: var(--black); }

.tote.is-unavailable .tote__select { cursor: not-allowed; }
.tote.is-unavailable .tote__frame img { opacity: .45; }

/* Color options — always visible under each tote */
.colors { display: grid; gap: 8px; margin-top: 16px; }
.color-opt__add,
.color-opt__chosen {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 6px 0 16px;
  border: 1px solid var(--rule);
  background: transparent;
  text-align: left;
}
.color-opt__add {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  padding-right: 16px;
  color: var(--black);
  transition: border-color var(--t-fast), background-color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (hover: hover) { .color-opt__add:hover:not(:disabled) { border-color: var(--black); } }
.color-opt__add:active:not(:disabled) { background: var(--cream-deep); }
.color-opt__add:disabled { cursor: not-allowed; opacity: .45; }
.color-opt__label { display: inline-flex; align-items: center; gap: 12px; font-size: .9375rem; }
.color-opt__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
}
.color-opt__plus { font-size: 1.125rem; font-weight: 400; letter-spacing: 0; line-height: 1; }
.color-opt__chosen { display: none; border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.color-opt__chosen .color-opt__label { font-weight: 500; }
.color-opt__chosen .stepper { border: 0; }
.color-opt__chosen .stepper__btn { width: 44px; height: 44px; }
.color-opt__chosen .stepper__value { border: 0; min-width: 32px; }
.color-opt.is-active .color-opt__add { display: none; }
.color-opt.is-active .color-opt__chosen { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .color-opt.is-active .color-opt__chosen { animation: chipIn .28s var(--ease); }
}
@keyframes chipIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* Color swatch — a square chip; the fill is set from data-swatch. The ring keeps white visible on cream. */
.swatch {
  display: inline-block;
  flex: none;
  width: 18px; height: 18px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
}
.review-item__color {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px;
  font-size: .875rem;
  color: var(--charcoal);
}
.review-item__color .swatch { width: 12px; height: 12px; }
.selection__color { font-style: normal; color: var(--charcoal); }

/* Stepper */
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--black); }
.stepper__btn {
  -webkit-appearance: none;
  appearance: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color var(--t-fast), color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.stepper__btn:disabled { color: #b3ada5; cursor: not-allowed; }
@media (hover: hover) { .stepper__btn:hover:not(:disabled) { background: var(--black); color: var(--cream); } }
.stepper__btn:active:not(:disabled) { background: var(--black); color: var(--cream); }
.stepper__value {
  display: grid; place-items: center;
  min-width: 44px;
  border-left: 1px solid var(--black);
  border-right: 1px solid var(--black);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.stepper--small .stepper__btn { width: 44px; height: 44px; font-size: 1.125rem; }
.stepper--small .stepper__value { min-width: 40px; font-size: 1.125rem; }

/* Loading skeleton for the grid */
.tote--skeleton .tote__frame { background: var(--cream-deep); }
@media (prefers-reduced-motion: no-preference) {
  .tote--skeleton .tote__frame { animation: pulse 1.4s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: .55; } }
.tote--skeleton .tote__meta span { display: block; height: 14px; background: var(--cream-deep); }
.tote--skeleton .tote__meta span:first-child { width: 24px; }
.tote--skeleton .tote__meta span:nth-child(2) { width: 70%; }

.catalog-error { grid-column: 1 / -1; padding: 32px 0; }
.catalog-error p { color: var(--charcoal); margin-bottom: 16px; }

/* Desktop selection panel */
.selection { display: none; }
@media (min-width: 1100px) {
  .selection { display: block; position: sticky; top: calc(var(--modal-bar-h) + 32px); }
  .step__next-inline { display: none; }
}
.selection__inner { border: 1px solid var(--black); padding: 28px; }
.selection__list { margin-top: 18px; }
.selection__list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: .9375rem;
}
.selection__list li span:last-child { white-space: nowrap; color: var(--charcoal); }
.selection__empty { margin: 16px 0 4px; color: var(--charcoal); font-size: .9375rem; }
.selection__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0 4px;
}
.selection__total strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.selection__total span { font-weight: 700; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; }
.selection .btn { margin-top: 20px; }

/* ---------- Mobile sticky summary ---------- */
.summary-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--black);
  color: var(--cream);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(110%);
  transition: transform .36s var(--ease);
  visibility: hidden;
}
.summary-bar.is-visible { transform: none; visibility: visible; }
.summary-bar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--bar-h);
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px;
}
.summary-bar__text { display: flex; flex-direction: column; line-height: 1.3; }
.summary-bar__count { font-weight: 500; font-size: .9375rem; }
.summary-bar__total { font-size: .8125rem; color: var(--taupe); }
.summary-bar__total:empty { display: none; }
.summary-bar__btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 52px;
  padding: 0 20px;
  border: 0; border-radius: 999px;
  background: var(--cream);
  color: var(--black);
  font-weight: 500; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.summary-bar__btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.summary-bar__btn:active { transform: translateY(1px); }
body.has-summary-bar .step--totes { padding-bottom: calc(var(--bar-h) + 16px); }
@media (min-width: 1100px) {
  .summary-bar { display: none; }
  body.has-summary-bar .step--totes { padding-bottom: 0; }
}

/* ---------- Review (step 03) ---------- */
.review { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .review { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
  .review__summary { position: sticky; top: calc(var(--modal-bar-h) + 32px); }
}
.review__block + .review__block { margin-top: 48px; }
.review__head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--black);
}
.review__label { font-weight: 700; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; }

.review-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.review-item__thumb { width: 76px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); box-shadow: inset 0 0 0 1px var(--rule); }
.review-item__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.review-item__name { font-weight: 500; line-height: 1.4; }
.review-item__unit { margin-top: 2px; font-size: .875rem; color: var(--charcoal); }
.review-item__controls { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; }
.review-item__remove { font-size: .6875rem; }
.review-item__line { font-size: 1rem; white-space: nowrap; text-align: right; }
.review-item__qty-static { font-size: .875rem; color: var(--charcoal); }
@media (min-width: 600px) {
  .review-item { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; }
  .review-item__thumb { width: 96px; }
}

.details-list { display: grid; grid-template-columns: 1fr; }
.details-list > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.details-list dt { font-weight: 700; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--charcoal); padding-top: 3px; }
.details-list dd { overflow-wrap: anywhere; white-space: pre-line; }

.review__summary-inner { border: 1px solid var(--black); padding: 28px 24px; }
@media (min-width: 600px) { .review__summary-inner { padding: 32px; } }
.totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; }
.totals > div + div { border-top: 1px solid var(--rule); }
.totals dt { font-weight: 700; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--charcoal); }
.totals dd { font-size: 1rem; }
.totals .totals__grand dd { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; }
.totals__note { display: block; margin-top: 2px; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: .75rem; }
.btn--submit { margin-top: 24px; position: relative; }
.fineprint { margin-top: 16px; font-size: .8125rem; line-height: 1.55; color: var(--charcoal); }

/* Submit loading state */
.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}
.btn.is-loading .btn__spinner { display: inline-block; animation: spin .8s linear infinite; }
.btn.is-loading { cursor: progress; }
.btn.is-loading:disabled { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Success ---------- */
.step--success { padding-top: 16px; }
.success { max-width: 880px; margin: 0 auto; text-align: center; }
.success__eyebrow { margin-bottom: 18px; }
.success__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 12vw, 6rem);
  line-height: .98;
  text-transform: uppercase;
  outline: none;
}
.success__message { max-width: 36ch; margin: 22px auto 0; font-size: 1.0625rem; color: var(--charcoal); }
.success__ref {
  display: inline-block;
  margin-top: 36px;
  padding: 24px 36px 22px;
  border: 1px solid var(--black);
  min-width: min(100%, 320px);
}
.success__ref-num {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
  letter-spacing: .06em;
  user-select: all;
}
.success__ref-date { display: block; margin-top: 10px; font-size: .8125rem; color: var(--charcoal); }
.success__summary { margin-top: 56px; text-align: left; display: grid; gap: 48px; }
@media (min-width: 900px) { .success__summary { grid-template-columns: 1fr 1fr; gap: 56px; } }
.success__email {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--black);
  color: var(--charcoal);
}
.success__email strong { color: var(--black); font-weight: 500; overflow-wrap: anywhere; }
.success__again { margin-top: 24px; }

@media (prefers-reduced-motion: no-preference) {
  .success > * { animation: rise .8s var(--ease) both; }
  .success > *:nth-child(2) { animation-delay: .08s; }
  .success > *:nth-child(3) { animation-delay: .16s; }
  .success > *:nth-child(4) { animation-delay: .28s; }
  .success > *:nth-child(n+5) { animation-delay: .38s; }
  .success__ref { position: relative; }
  .success__ref::after {
    content: "";
    position: absolute; inset: -1px;
    border: 1px solid var(--black);
    clip-path: inset(0 100% 0 0);
    animation: draw 1s .5s var(--ease) forwards;
  }
}
@keyframes draw { to { clip-path: inset(0 0 0 0); } }

.noscript { padding: 24px; text-align: center; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* Shown only by /js/fallback.js when the page can't run in a very old in-app browser. */
.browser-help {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000;
  padding: 20px; background: #000; color: #FCF8EF;
  font-family: "Ubuntu", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.5;
  text-align: left;
}
.browser-help p { margin: 0 0 10px; }
.browser-help__title { font-weight: 700; font-size: 16px; }
.browser-help__link { word-break: break-all; font-size: 13px; opacity: .8; }
.browser-help__retry,
.browser-help__close {
  margin-top: 4px; padding: 10px 20px; border: 0; border-radius: 999px;
  background: #FCF8EF; color: #000; font: inherit; font-weight: 700;
}
.browser-help__close { background: transparent; color: #FCF8EF; border: 1px solid #FCF8EF; }

/* ---------- Stock: "N left" and "Sold out" ---------- */
.color-opt__stock {
  margin-left: 2px;
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--charcoal);
}
.color-opt__stock.is-last { color: var(--black); font-weight: 700; }
.color-opt.is-soldout .color-opt__add:disabled {
  opacity: 1;
  background: var(--cream-deep);
  border-style: dashed;
  color: var(--charcoal);
}
.color-opt.is-soldout .swatch { opacity: .45; }
.color-opt.is-soldout .color-opt__stock {
  color: var(--black);
  font-weight: 700;
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
/* A design with nothing left in any color */
.tote.is-soldout .tote__frame::after {
  content: "Sold out";
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  padding: 7px 12px;
  background: var(--black);
  color: var(--cream);
  font-weight: 700;
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tote.is-soldout .tote__hint { color: var(--black); }
.btn:disabled.landing__btn { opacity: 1; background: var(--charcoal); border-color: var(--charcoal); }
