/* ============================================================
   Zatlov — Boutique
   Palette et typographie fixées par le projet :
   logo toujours en Ephesis, Anton pour les titres display,
   Oswald pour les libellés, Bodoni Moda italic pour l'éditorial,
   DM Sans pour le texte courant.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --deep: #050505;
  --cream: #f4ece2;
  --white: #ffffff;
  --gray-1: #a8a8a8;
  --gray-2: #a5a5a5;
  --gray-3: #6e6e6e;
  --gray-4: #4a4a4a;
  --gray-5: #5a5a5a;
  --error: #e8908f;

  --line: rgba(244, 236, 226, .12);
  --line-soft: rgba(244, 236, 226, .1);
  --line-mid: rgba(244, 236, 226, .24);
  --line-strong: rgba(244, 236, 226, .4);
  --wash: rgba(244, 236, 226, .12);

  --gutter: clamp(20px, 5vw, 54px);

  --f-script: 'Ephesis', cursive;
  --f-display: 'Anton', sans-serif;
  --f-label: 'Oswald', sans-serif;
  --f-editorial: 'Bodoni Moda', serif;
  --f-body: 'DM Sans', system-ui, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--f-body);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

* { box-sizing: border-box; }
img { max-width: 100%; }
a { color: var(--cream); }
a:hover { color: var(--white); }
input, button, select { font: inherit; }
input::placeholder { color: var(--gray-5); }

.page {
  width: 100%;
  position: relative;
  background: var(--bg);
  color: var(--cream);
  min-height: 100vh;
}

/* ---------- logo ---------- */
.logo {
  font-family: var(--f-script);
  line-height: .7;
  color: var(--cream);
  text-decoration: none;
}
.logo-hdr { font-size: clamp(32px, 5.5vw, 44px); }
.logo-ftr { font-size: clamp(30px, 5vw, 38px); }
.logo-modal { font-size: 40px; }
.logo-checkout { font-size: clamp(30px, 5vw, 40px); }

/* ---------- pills / boutons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 40px;
  background: transparent;
  color: var(--cream);
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.pill-line { border: 1px solid var(--line-strong); }
.pill-soft { border: 1px solid var(--line-mid); }
.pill-line:hover, .pill-soft:hover { background: var(--wash); color: var(--cream); }

.pill-lg {
  border: 1.5px solid rgba(244, 236, 226, .5);
  min-height: 48px;
  padding: 0 clamp(24px, 4vw, 32px);
  font-size: 12.5px;
  letter-spacing: .14em;
}
.pill-lg:hover { background: var(--wash); color: var(--cream); }

.btn-solid {
  border: 0;
  background: var(--cream);
  color: var(--bg);
  border-radius: 40px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-solid:hover { background: var(--white); }

.btn-quiet {
  border: 0;
  background: transparent;
  color: var(--gray-3);
  min-height: 40px;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.btn-quiet:hover { color: var(--cream); }

.btn-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 236, 226, .3);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 15px;
  cursor: pointer;
}
.btn-close:hover { background: var(--wash); }

.btn-close-bare {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-3);
  font-size: 16px;
  cursor: pointer;
}
.btn-close-bare:hover { color: var(--cream); }

/* ---------- header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(16px, 3vw, 32px);
  align-items: center;
  padding: clamp(14px, 2.4vw, 20px) var(--gutter);
}
.hdr-tag {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray-3);
  border-left: 1px solid rgba(244, 236, 226, .2);
  padding-left: clamp(12px, 2vw, 18px);
}

.search {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-mid);
  border-radius: 40px;
  padding: 0 18px;
  height: 46px;
}
.search-ic { color: var(--gray-3); font-size: 13px; }
.search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--cream);
  font-size: 14px;
  height: 44px;
}
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.4); }

.hdr-acc {
  flex: none;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  max-width: 220px;
}
.avatar {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(244, 236, 226, .45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0;
}
.acc-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.hdr-cart { flex: none; height: 46px; padding: 0 22px; }
.count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--cream);
  color: var(--bg);
  font-size: 11px;
}

/* ---------- banderole cagnotte ---------- */
.soutien-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: center;
  align-items: baseline;
  padding: 10px var(--gutter);
  background: var(--deep);
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  text-align: center;
  text-decoration: none;
}
.soutien-bar:hover { background: #161616; }
.soutien-bar-line {
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: clamp(14px, 1.8vw, 16px);
}
.soutien-bar-cta {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--cream);
}

/* ---------- promo bar ---------- */
.promo {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-bottom: 1px solid rgba(244, 236, 226, .14);
  background: var(--cream);
  color: var(--bg);
  padding: 12px var(--gutter);
  cursor: pointer;
  text-align: center;
}
.promo-title {
  font-family: var(--f-display);
  font-size: clamp(15px, 2.2vw, 19px);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.promo-cta {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--bg);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(130% 100% at 60% 20%, #2a2a2a 0%, #191919 42%, #0f0f0f 72%, #0a0a0a 100%);
  padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(48px, 7vw, 76px);
}
.hero-in {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 28px);
}
.hero-cover { position: relative; width: clamp(220px, 52vw, 300px); }
.hero-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .7);
  display: block;
}

.progress-wrap {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: clamp(14px, 2.4vw, 22px);
}
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.progress-label { color: var(--gray-1); }
.progress-pct { color: var(--cream); }
.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(244, 236, 226, .14);
  overflow: hidden;
}
.progress-bar { height: 100%; border-radius: 3px; background: var(--cream); width: 10%; }

.hero-title {
  margin: clamp(10px, 2vw, 18px) 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(30px, 6.4vw, 50px);
  line-height: 1;
  color: var(--cream);
  text-transform: uppercase;
  text-align: center;
}
.hero-blurb {
  margin: 0;
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.6;
  color: var(--gray-2);
  text-align: center;
  max-width: 46ch;
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- boutique ---------- */
.shop {
  padding: clamp(48px, 7vw, 80px) var(--gutter) clamp(60px, 9vw, 100px);
  background: var(--bg);
}
.shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.shop-head-l { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.eyebrow {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cream);
}
.shop-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(30px, 6.4vw, 50px);
  color: var(--cream);
  text-transform: uppercase;
}
.result-label {
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(16px, 2.6vw, 28px);
}

.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cream);
  padding: 5px 9px;
  border-radius: 3px;
}
.card-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-label);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(244, 236, 226, .34);
}
.card-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card-name {
  margin: 0;
  font-family: var(--f-label);
  font-weight: 500;
  font-size: clamp(14px, 1.8vw, 15.5px);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cream);
  min-width: 0;
}
.card-price { flex: none; font-family: var(--f-label); font-size: 14px; color: var(--gray-2); }
.card-detail {
  margin: -6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gray-3);
  text-wrap: pretty;
}
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size {
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-mid);
  border-radius: 4px;
  background: transparent;
  color: var(--gray-2);
  font-family: var(--f-label);
  font-size: 11.5px;
  letter-spacing: .08em;
  cursor: pointer;
}
.size:hover { border-color: rgba(244, 236, 226, .5); color: var(--cream); }
.size.is-on { border-color: var(--cream); background: var(--cream); color: var(--bg); }

.card-add {
  margin-top: auto;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cream);
  border-radius: 40px;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
.card-add:hover { background: var(--cream); color: var(--bg); }

.empty { padding: clamp(40px, 7vw, 72px) 0; text-align: center; }
.empty-title {
  margin: 0 0 8px;
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: clamp(20px, 3vw, 27px);
  color: var(--cream);
}
.empty-hint { margin: 0 0 22px; font-size: 14px; color: var(--gray-3); }
.empty .pill-line { min-height: 44px; padding: 0 24px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  color: var(--bg);
  border-radius: 40px;
  padding: 13px 16px 13px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  max-width: calc(100% - 32px);
}
.toast-text {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast-btn {
  flex: none;
  border: 0;
  background: var(--bg);
  color: var(--cream);
  border-radius: 40px;
  min-height: 36px;
  padding: 0 16px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- overlays ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, .78);
  backdrop-filter: blur(4px);
  border: 0;
  padding: 0;
  cursor: default;
}
.sheet {
  position: relative;
  z-index: 1;
  max-height: 100%;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid rgba(244, 236, 226, .14);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 34px);
}
.sheet-auth { width: min(100%, 420px); }
.sheet-account { width: min(100%, 400px); }

.sheet-title {
  margin: 18px 0 6px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 34px);
  text-transform: uppercase;
  color: var(--cream);
}
.sheet-blurb {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-3);
  text-wrap: pretty;
}

.promo-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px dashed rgba(244, 236, 226, .35);
  border-radius: 8px;
}
.promo-note-big { font-family: var(--f-display); font-size: 24px; color: var(--cream); line-height: 1; }
.promo-note-txt { font-size: 12.5px; line-height: 1.5; color: var(--gray-1); }

.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(244, 236, 226, .16);
  border-radius: 40px;
  margin-bottom: 22px;
}
.tab {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 40px;
  cursor: pointer;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gray-1);
}
.tab.is-on { background: var(--cream); color: var(--bg); }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label {
  font-family: var(--f-label);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-1);
}
.field input {
  min-height: 48px;
  background: transparent;
  border: 1px solid rgba(244, 236, 226, .28);
  border-radius: 8px;
  outline: none;
  padding: 0 16px;
  color: var(--cream);
  font-size: 14px;
}
.field input:focus { border-color: rgba(244, 236, 226, .6); }
.field input.spaced { letter-spacing: .08em; }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 14px; }

.form-error { margin: 0; font-size: 12.5px; color: var(--error); }
.form-submit { margin-top: 4px; min-height: 50px; }
.form-switch { margin: 6px 0 0; text-align: center; font-size: 12.5px; color: var(--gray-3); }
.form-switch a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--line-strong); }

.account-eyebrow {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray-1);
}
.account-name {
  margin: 12px 0 4px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 4.6vw, 32px);
  text-transform: uppercase;
  color: var(--cream);
}
.account-mail { margin: 0 0 24px; font-size: 13.5px; color: var(--gray-3); word-break: break-word; }
.rows { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.row:last-child { border-bottom: 1px solid var(--line-soft); }
.row-k { color: var(--gray-2); }
.row-v { font-family: var(--f-label); color: var(--cream); }
.logout { width: 100%; min-height: 48px; }

/* ---------- panier ---------- */
.cart-overlay { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.cart-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, .72);
  backdrop-filter: blur(3px);
  border: 0;
  padding: 0;
  cursor: default;
}
.drawer {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  height: 100%;
  background: var(--panel);
  border-left: 1px solid rgba(244, 236, 226, .14);
  display: flex;
  flex-direction: column;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 4vw, 26px);
  border-bottom: 1px solid var(--line);
}
.drawer-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 4vw, 28px);
  text-transform: uppercase;
  color: var(--cream);
}
.drawer-title span { font-family: var(--f-label); font-size: 14px; color: var(--gray-3); }
.drawer-body { flex: 1; overflow-y: auto; padding: clamp(16px, 3vw, 22px) clamp(20px, 4vw, 26px); }
.drawer-foot {
  padding: clamp(20px, 4vw, 26px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty { padding: clamp(30px, 6vw, 50px) 0; text-align: center; }
.cart-empty p {
  margin: 0 0 20px;
  font-family: var(--f-editorial);
  font-style: italic;
  font-size: 20px;
  color: var(--gray-3);
}
.cart-empty .pill-line { min-height: 44px; padding: 0 24px; }

.line {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.line-thumb { width: 66px; height: 66px; border-radius: 4px; overflow: hidden; }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.line-body { min-width: 0; }
.line-name {
  font-family: var(--f-label);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cream);
}
.line-meta { font-size: 12.5px; color: var(--gray-3); margin-top: 3px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(244, 236, 226, .3);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover { background: rgba(244, 236, 226, .14); }
.qty-n { font-family: var(--f-label); font-size: 13px; min-width: 18px; text-align: center; color: var(--cream); }
.line-remove {
  margin-left: 6px;
  border: 0;
  background: transparent;
  color: var(--gray-3);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  min-height: 32px;
  padding: 0 4px;
}
.line-remove:hover { color: var(--error); }
.line-total { font-family: var(--f-label); font-size: 14px; color: var(--cream); white-space: nowrap; }

.ship-hint {
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px dashed var(--line-mid);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--gray-1);
}

.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--gray-2); }
.sum-row span:last-child { font-family: var(--f-label); color: var(--cream); }
.promo-inline {
  border: 1px dashed rgba(244, 236, 226, .35);
  background: transparent;
  color: var(--cream);
  border-radius: 6px;
  min-height: 44px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.promo-inline:hover { background: rgba(244, 236, 226, .1); }
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.total-k {
  font-family: var(--f-label);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray-1);
}
.total-v { font-family: var(--f-display); font-size: clamp(22px, 4vw, 28px); color: var(--cream); }
.checkout-btn { min-height: 50px; }
.checkout-btn.is-off { opacity: .4; }

/* ---------- checkout ---------- */
.checkout { position: fixed; inset: 0; z-index: 70; overflow-y: auto; background: var(--bg); }
.checkout-in { min-height: 100%; display: flex; flex-direction: column; }
.checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(16px, 3vw, 28px);
  padding: clamp(18px, 3vw, 26px) var(--gutter);
  border-bottom: 1px solid rgba(244, 236, 226, .08);
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.step { display: flex; align-items: center; gap: 9px; color: var(--gray-3); }
.step.is-current { color: var(--cream); }
.step-n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: rgba(244, 236, 226, .16);
  color: var(--gray-1);
}
.step.is-done .step-n { background: var(--cream); color: var(--bg); }

.checkout-body {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(30px, 5vw, 60px);
  padding: clamp(28px, 5vw, 52px) var(--gutter) clamp(50px, 8vw, 80px);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}
.checkout-col { min-width: 0; }
.checkout-h2 {
  margin: 0 0 22px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 36px);
  text-transform: uppercase;
  color: var(--cream);
}
.checkout-h2.tight { margin-bottom: 8px; }
.checkout-note { margin: 0 0 22px; font-size: 13px; color: var(--gray-3); }
.form-next { margin-top: 6px; min-height: 52px; }

.done-eyebrow {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gray-1);
}
.done-title {
  margin: 14px 0 10px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--cream);
}
.done-blurb {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-2);
  max-width: 48ch;
  text-wrap: pretty;
}
.done-blurb strong { color: var(--cream); }
.done-rows { display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; }
.done-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.done-row:last-child { border-bottom: 1px solid var(--line-soft); }
.done-row-k { color: var(--gray-3); }
.done-row-v { color: var(--cream); text-align: right; }
.done-row-v.num { font-family: var(--f-label); }
.done-btn { min-height: 52px; padding: 0 30px; }

.summary {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(20px, 3.4vw, 28px);
}
.summary h3 {
  margin: 0 0 18px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray-1);
}
.sum-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(244, 236, 226, .09);
}
.sum-thumb { width: 52px; height: 52px; border-radius: 4px; overflow: hidden; }
.sum-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sum-name {
  font-family: var(--f-label);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cream);
}
.sum-meta { font-size: 12px; color: var(--gray-3); margin-top: 2px; }
.sum-total { font-family: var(--f-label); font-size: 13px; color: var(--cream); white-space: nowrap; }
.sum-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sum-foot .total-row { padding-top: 12px; border-top: 1px solid rgba(244, 236, 226, .14); }

/* ---------- footer ---------- */
.ftr {
  padding: clamp(28px, 4vw, 40px) var(--gutter);
  background: var(--deep);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: space-between;
  align-items: center;
}
.ftr-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 24px);
  font-family: var(--f-label);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--gray-3);
  text-transform: uppercase;
}
.ftr-nav a { color: inherit; text-decoration: none; }
.ftr-nav a:hover { color: var(--white); }
.ftr-copy { font-family: var(--f-label); font-size: 10px; letter-spacing: .1em; color: var(--gray-4); }

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 95;
  mix-blend-mode: overlay;
  opacity: .28;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDAiIGhlaWdodD0iMTQwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC44NSIgbnVtT2N0YXZlcz0iMiIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIgb3BhY2l0eT0iMC41NSIvPjwvc3ZnPg==");
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
