/* ================================================================
   Michael Hope Clothing Brand
   ================================================================ */

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

:root {
  --bg:           #000000;
  --bg-1:         #0a0a0a;
  --bg-2:         #111111;
  --white:        #ffffff;
  --off-white:    #f2f2f2;
  --silver-1:     #c8c8c8;
  --silver-2:     #8a8a8a;
  --silver-3:     #6f6f6f;   /* AA on black: 4.5:1 — used for text */
  --silver-4:     #2a2a2a;
  --line:         rgba(255,255,255,0.06);
  --line-2:       rgba(255,255,255,0.14);
  --line-3:       rgba(255,255,255,0.28);

  --money-pos:    #00c853;
  --money-mid:    #ffb300;
  --money-neg:    #6b6b6b;
  --error:        #ff3b3b;

  /* One typeface — Inter at heavy weights for display, regular for body.
     Avoids the "everything-Bebas" Shopify-streetwear look. */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'Menlo', 'Consolas', monospace;

  --header-h:     64px;
  --announce-h:   32px;
  --maxw:         1440px;
  --pad:          24px;

  --t-fast:       150ms;
  --t-base:       240ms;
  --t-slow:       420ms;
  --ease:         cubic-bezier(.2,.7,.2,1);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--white); color: var(--bg); }

/* Focus visibility — keyboard users get a clear ring.
   On dark backgrounds: white outline. On white backgrounds: black outline. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
/* Solid white buttons need a dark ring instead — white-on-white = invisible. */
.btn:focus-visible:not(.btn--ghost),
.adm-btn--solid:focus-visible,
.newsletter button:focus-visible {
  outline-color: var(--bg);
}

/* Skip link for keyboard users — only visible when focused. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--bg);
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Screen-reader-only utility class for invisible labels. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ----------
   Display font (Bebas) is reserved for the hero / largest editorial moments.
   Section titles, headings, labels, brand all use Inter — uppercase + tight tracking
   carries a typographic identity without the "everything is Bebas" generic feel.
*/

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 0.95;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 96px);
}
h2, h3, h4, h5 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}
h2 { font-size: clamp(20px, 1.8vw, 28px); letter-spacing: 0.06em; }
h3 { font-size: 16px; letter-spacing: 0.12em; }
h4 { font-size: 12px; letter-spacing: 0.18em; }

p { color: var(--silver-1); max-width: 60ch; }

.label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-2);
  font-weight: 500;
}

.muted { color: var(--silver-2); }
.fine  { font-size: 12px; color: var(--silver-2); }
.mono  { font-family: var(--font-mono); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(48px, 6vw, 96px); }
.section--tight { padding-block: clamp(32px, 3vw, 48px); }
.divider { height: 1px; background: var(--line); width: 100%; }

/* ---------- Announcement bar (data-driven; hidden if empty) ---------- */

.announce {
  height: var(--announce-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.announce__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  padding-left: 100%;
  gap: 28px;
}
.announce a, .announce span { color: var(--silver-1); }
.announce a:hover { color: var(--white); }
.announce__item {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.announce__sep {
  width: 4px; height: 4px;
  background: var(--silver-3);
  border-radius: 50%;
  display: inline-block;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav--main { flex: 1; min-width: 0; }
.nav--right { gap: 4px; flex-shrink: 0; }
.nav__link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-1);
  position: relative;
  padding: 10px 0;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link.is-active { color: var(--white); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--white);
}

/* Brand lockup: white MH monogram + MICHAEL HOPE wordmark in white. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand__mark {
  display: block;
  height: 40px;
  width: auto;
}
.brand__name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
/* On narrow viewports the brand lockup steals room from the nav — drop the
   wordmark; the monogram alone identifies the brand. The footer is a stacked
   layout so it always shows the full lockup (see .footer__brand below). */
@media (max-width: 879px) {
  .header__inner .brand__name { display: none; }
}
@media (min-width: 880px) {
  .brand__mark { height: 46px; }
  .brand__name { font-size: 18px; }
}

.icon-btn {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--silver-1);
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.icon-btn:hover { color: var(--white); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.icon-btn .count {
  position: absolute;
  top: 6px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--white);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}
.menu-toggle { display: none; }

/* ---------- Brand hero (homepage splash above product showcase) ---------- */

.brand-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 56px 24px 64px;
  text-align: center;
  position: relative;
}
.brand-hero::before,
.brand-hero::after {
  /* Hairline accent rules above + below the wordmark for a couture feel. */
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 0 auto;
  background: var(--silver-2);
  opacity: 0.4;
}
.brand-hero::before { margin-bottom: 28px; }
.brand-hero::after  { margin-top: 22px; }
.brand-hero__inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.brand-hero__mark {
  display: block;
  width: auto;
  height: clamp(96px, 16vw, 168px);
  filter: drop-shadow(0 2px 24px rgba(255,255,255,0.06));
}
.brand-hero__title {
  font-family: var(--font-body);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  line-height: 1;
}
.brand-hero__tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--silver-2);
  margin: 0;
}
@media (max-width: 600px) {
  .brand-hero { padding: 40px 18px 48px; }
  .brand-hero__inner { gap: 14px; }
  .brand-hero::before { margin-bottom: 20px; }
  .brand-hero::after  { margin-top: 16px; }
}

/* ---------- Hero (data-driven, 1–5 showcase products that cycle) ---------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  min-height: clamp(420px, 56vh, 620px);
  overflow: hidden;
}
.hero__slide {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: clamp(420px, 56vh, 620px);
}
.hero--carousel .hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease);
}
.hero--carousel .hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero__media {
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  height: 100%;       /* fill the slide grid cell instead of dictating it */
}
.hero__media img {
  width: 100%; height: 100%;
  /* `contain` shows the whole product (with letterboxing into the dark bg)
     instead of clipping to the middle when the photo is portrait. */
  object-fit: contain;
  transition: transform var(--t-slow) var(--ease);
}
.hero__slide:hover .hero__media img { transform: scale(1.02); }
.hero__copy {
  padding: clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  border-left: 1px solid var(--line);
  background: var(--bg);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.94;
  text-transform: uppercase;
  /* Capped so long product names ("Signature Black Retro Trucker") don't wrap
     to 3+ lines and shove the Shop-now button off-screen. */
  font-size: clamp(36px, 3.6vw, 60px);
}
.hero__price {
  display: flex; gap: 12px; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
}
.hero__price del { color: var(--silver-3); }

.hero__dots {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0;
  z-index: 5;
  background: rgba(0,0,0,0.45);
  padding: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Hit target is the full 44x44 button; the visible dot is rendered via ::before. */
.hero__dot {
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hero__dot::before {
  content: '';
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.35);
  transition: background var(--t-fast), transform var(--t-fast);
}
.hero__dot:hover::before  { background: rgba(255,255,255,0.7); }
.hero__dot.is-active::before { background: var(--white); transform: scale(1.2); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:hover { background: var(--bg); color: var(--white); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--white); background: var(--white); color: var(--bg); }
.btn--block { width: 100%; }
.btn--lg { height: 52px; padding: 0 32px; font-size: 12px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 10px; }
.btn[disabled], .btn.is-disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Section header ---------- */

.s-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.s-head__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}
.s-head__link {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-1);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.s-head__link:hover { color: var(--white); border-color: var(--white); }

/* ---------- Product grid & card ---------- */

.p-grid {
  display: grid;
  /* `auto-fill` with capped track width: when there's one product,
     it stays one card-wide instead of filling the whole row, and there
     are no ghost "empty boxes" because each card carries its own border. */
  grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
  justify-content: start;
  gap: 16px;
}

.p-card {
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.p-card:hover { background: var(--bg-1); }
.p-card__image {
  aspect-ratio: 1 / 1.18;
  background: var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.p-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.p-card:hover .p-card__image img { transform: scale(1.03); }

/* Subtle "no image" placeholder — diagonal hatch, no big letters */
.no-img {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 12px,
      rgba(255,255,255,0.025) 12px 13px);
  background-color: var(--bg-1);
}

.p-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 7px;
  background: var(--white);
  color: var(--bg);
  font-weight: 600;
  font-family: var(--font-body);
}
.p-card__badge--sale {
  background: var(--bg);
  color: var(--white);
  border: 1px solid var(--line-3);
}
.p-card__body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
}
.p-card__name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white);
}
.p-card__price {
  margin-top: 2px;
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--white);
}
.p-card__price del { color: var(--silver-3); font-weight: 400; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-block: 48px;
}
.footer__brand .brand__mark { height: 56px; }
.footer__brand .brand__name { font-size: 18px; }
.footer__brand p { margin-top: 12px; max-width: 320px; font-size: 12px; }
.footer__col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--silver-2);
  margin-bottom: 14px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__col a {
  font-size: 13px;
  color: var(--silver-1);
  transition: color var(--t-fast);
}
.footer__col a:hover { color: var(--white); }

.newsletter {
  display: flex;
  margin-top: 12px;
  border: 1px solid var(--line-2);
}
.newsletter input {
  flex: 1;
  background: transparent;
  border: 0;
  height: 42px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--white);
  outline: none;
}
.newsletter input::placeholder { color: var(--silver-3); }
.newsletter button {
  height: 42px;
  padding: 0 16px;
  background: var(--white);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background var(--t-fast), color var(--t-fast);
}
.newsletter button:hover { background: var(--silver-1); }
.newsletter__msg { margin-top: 8px; font-size: 11px; color: var(--silver-2); min-height: 14px; }
.newsletter__msg.is-ok  { color: var(--money-pos); }
.newsletter__msg.is-err { color: var(--error); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-3);
}

/* ---------- Forms ---------- */

.form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.form--wide { max-width: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-2);
  font-weight: 500;
}
.field__input, .field textarea, .field select {
  height: 44px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  color: var(--white);
  padding: 0 14px;
  /* 16px to prevent iOS Safari zoom-on-focus. */
  font-size: 16px;
  outline: none;
  transition: border-color var(--t-fast);
  font-family: var(--font-body);
}
.field textarea { height: auto; padding: 14px; min-height: 140px; resize: vertical; line-height: 1.5; }
.field__input:focus, .field textarea:focus, .field select:focus { border-color: var(--white); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field__error { color: var(--error); font-size: 12px; min-height: 14px; }

/* ---------- Product detail ---------- */

.pd {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--line);
  margin-block: 24px;
}
.pd__media { background: var(--bg); display: flex; flex-direction: column; gap: 1px; }
.pd__media-main {
  aspect-ratio: 1/1.05;
  background: var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.pd__media-main img { width: 100%; height: 100%; object-fit: cover; }
.pd__media-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.pd__thumb {
  aspect-ratio: 1/1;
  background: var(--bg-2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: outline var(--t-fast);
}
.pd__thumb.is-active { outline-color: var(--white); }
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd__info {
  background: var(--bg);
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column;
  gap: 20px;
}
.pd__cat { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver-2); }
.pd__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 0.95;
  text-transform: uppercase;
  font-size: clamp(32px, 3.5vw, 56px);
}
.pd__price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  display: flex; gap: 12px; align-items: baseline;
}
.pd__price del { color: var(--silver-3); }
.pd__sale-pct {
  font-size: 10px;
  font-family: var(--font-body);
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  letter-spacing: 0.14em;
  color: var(--silver-1);
}

.opt-group { display: flex; flex-direction: column; gap: 10px; }
.opt-group__label {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--silver-2);
}
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.opt:hover { border-color: var(--silver-1); }
.opt.is-selected { border-color: var(--white); background: var(--white); color: var(--bg); }
.opt.is-disabled { opacity: 0.3; pointer-events: none; text-decoration: line-through; }

.pd__cta { display: flex; gap: 10px; }
.pd__desc {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
  color: var(--silver-1);
  line-height: 1.7;
  white-space: pre-wrap;
}

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-2);
  height: 44px;
}
.qty button {
  width: 44px; height: 100%;
  color: var(--white);
  font-size: 16px;
  transition: background var(--t-fast);
}
.qty button:hover { background: var(--bg-1); }
.qty input {
  width: 40px;
  height: 100%;
  background: transparent;
  border: 0;
  text-align: center;
  font-size: 14px;
  font-family: var(--font-mono);
  outline: none;
}

/* ---------- Cart / Checkout ---------- */

.cart {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding-block: 32px;
}
.cart__items {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item__media {
  width: 88px; height: 110px;
  background: var(--bg-1);
  overflow: hidden;
}
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { display: flex; flex-direction: column; gap: 4px; }
.cart-item__name { font-size: 14px; font-weight: 500; }
.cart-item__variant { font-size: 11px; color: var(--silver-2); letter-spacing: 0.14em; text-transform: uppercase; }
.cart-item__remove {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-3);
  margin-top: 6px;
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.cart-item__remove:hover { color: var(--white); border-color: var(--white); }
.cart-item__price { font-size: 14px; font-family: var(--font-mono); font-weight: 500; text-align: right; }

.cart__summary {
  border: 1px solid var(--line);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--bg-1);
  display: flex; flex-direction: column;
  gap: 16px;
}
.cart__summary h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 4px;
}
.cart__row {
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--silver-1);
}
.cart__row span:last-child { font-family: var(--font-mono); }
.cart__row--total {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 6px;
  letter-spacing: 0;
}
.cart__row--total span { font-family: var(--font-mono); }

.empty {
  padding: 72px 24px;
  text-align: center;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 12px; align-items: center;
}
.empty h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.empty p { color: var(--silver-2); font-size: 13px; }

/* ---------- Steps ---------- */

.steps {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.step {
  flex: 1;
  padding: 14px 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-3);
  border-bottom: 2px solid transparent;
  text-align: center;
}
.step.is-active { color: var(--white); border-color: var(--white); }
.step.is-done   { color: var(--silver-1); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--white);
  color: var(--bg);
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast--err { background: var(--error); color: var(--white); }

/* ---------- Mobile ---------- */

@media (max-width: 879px) {
  .menu-toggle {
    display: inline-flex !important;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    color: var(--silver-1);
    margin-left: auto;        /* push menu toggle to the right of the brand on mobile */
    order: 2;
  }
  .menu-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
  /* Hide the inline nav by default; the .is-open class on the body of the
     <nav> toggles it back. We use display:none rather than transform tricks
     so there's no chance the links leak into the inline flex flow. */
  .nav--main {
    display: none !important;
  }
  .nav--main.is-open {
    display: flex !important;
    position: fixed;
    inset: calc(var(--header-h) + var(--announce-h)) 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 24px;
    border-bottom: 1px solid var(--line);
    z-index: 49;
  }
  .nav--main .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }
  .nav--right { order: 3; }
  /* Tighten the right cluster on narrow screens — "Sign In" gets a smaller
     letter-spacing so the cart icon never gets pushed off. */
  .nav--right .nav__link { font-size: 10px; letter-spacing: 0.12em; padding: 10px 6px; }
  .hero, .hero__slide { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero__media { aspect-ratio: 16 / 9; max-height: 280px; height: auto; }
  .hero__copy { border-left: 0; border-top: 1px solid var(--line); padding: 24px; }
  .pd { grid-template-columns: 1fr; }
  .cart { grid-template-columns: 1fr; }
  .cart__summary { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .s-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
  :root { --pad: 16px; }
}

/* ---------- Account / orders ---------- */
.account-order-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
@media (max-width: 600px) {
  .account-order-row {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }
  /* Hide the redundant status cell on the smallest screens; status is in the order detail */
  .account-order-row > :nth-child(2) { grid-column: 1; font-size: 11px; }
  .account-order-row > :nth-child(3) { grid-column: 1; }
  .account-order-row > :nth-child(4) { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
}

/* ---------- Utility ---------- */

.flex { display: flex; }
.fcol { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.text-center { text-align: center; }
.hide { display: none !important; }

/* ---------- Long-form info / legal pages ---------- */
/* Shared body style for /shipping, /returns, /faq, /legal/* — keeps the
   inline style soup out of the markup. */
.info-body {
  margin-top: 32px;
  color: var(--silver-1);
  line-height: 1.75;
  font-size: 15px;
}
.info-body p { margin: 0 0 14px; }
.info-body ul, .info-body ol { padding-left: 20px; margin: 0 0 14px; }
.info-body li { margin-bottom: 6px; }
.info-body strong { color: var(--white); }
.info-h3 {
  color: var(--white);
  margin: 32px 0 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.info-h3:first-child { margin-top: 0; }
.info-link {
  color: var(--white);
  border-bottom: 1px solid var(--line-2);
  transition: border-color var(--t-fast);
}
.info-link:hover { border-bottom-color: var(--white); }
