/* ============================================================
   NORF END THREADS — minimal streetwear (goat.com inspired)
   Palette:
     --bg-cream:  #F5F2EB   page background
     --ink:       #0A0A0A   text / borders
     --pink:      #EF8591   primary accent — CTAs, sale tags
     --silver:    #D2EBED   secondary accent — info chips, hover fills
     --muted:     #888888   secondary text
     --line:      #E6E2D8   hairline borders on cream
     --ink-soft:  #2A2A2A   secondary text on cream
   ============================================================ */

:root {
  --bg-cream: #F5F2EB;
  --bg-white: #FBFAF6;
  --ink: #0A0A0A;
  --ink-soft: #2A2A2A;
  --pink: #EF8591;
  --pink-hot: #F26A7E;
  --silver: #D2EBED;
  --silver-deep: #B8DBE0;
  --muted: #888888;
  --line: #E6E2D8;
  --line-strong: #C9C4B5;

  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --max-width: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { max-width: 100%; display: block; }
select, input, textarea { font-family: inherit; }

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

/* ============================================================
   NAV — clean, sticky, minimal
   ============================================================ */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gutter);
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.brand-text {
  position: absolute;
  left: -9999px;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transition: right 0.2s ease;
}
.nav-links a:hover::after { right: 0; }
/* Highlight the Preorder link as the primary nav action */
.nav-links a[href="preorder.html"] { color: var(--pink); font-weight: 700; }
.nav-links a[href="preorder.html"]::after { background: var(--pink); }
@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem var(--gutter);
    gap: 0.85rem;
  }
  .nav.is-open .nav-links { display: flex; }
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--bg-cream);
  transition: background 0.15s, color 0.15s;
}
.cart-btn:hover { background: var(--ink); color: var(--bg-cream); }
.cart-btn__label { display: inline-block; }
.cart-count,
.cart-btn__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  background: var(--pink);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.68rem;
}
/* Hide the "0" count badge until Snipcart hydrates and puts a real number in */
.cart-btn__count:empty { display: none; }
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.55rem;
}
.menu-btn span { width: 20px; height: 1.5px; background: var(--ink); }
@media (max-width: 760px) { .menu-btn { display: inline-flex; } }

/* ============================================================
   BUTTONS — flat, no drop shadow
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--bg-cream);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  border: 1px solid var(--ink);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn:hover { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.btn:active { background: var(--pink-hot); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg-cream); border-color: var(--ink); }
.btn--full { width: 100%; }
.btn--pink {
  background: var(--pink);
  color: var(--ink);
  border-color: var(--pink);
}
.btn--pink:hover { background: var(--ink); color: var(--bg-cream); border-color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: wait; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 7rem) var(--gutter) clamp(3.5rem, 10vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  background: var(--silver);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 10vw, 7.5rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-transform: none;
}
.hero h1 .pink { color: var(--pink); }
.hero h1 .silver-bg {
  background: var(--pink);
  padding: 0 0.15em;
}
/* Home-page brand h1 — image logo centered, ~/~ swatch alongside */
.hero h1.brand-headline {
  font-style: italic;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  line-height: 1;
  width: 100%;
  margin: 0 auto 1.75rem;
  text-align: center;
}
.hero h1.brand-headline .brand-logo-mark {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: min(720px, 88vw);
  max-height: clamp(7rem, 18vw, 14rem);
  object-fit: contain;
}
.hero h1.brand-headline .silver-bg {
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 1;
  display: inline-block;
  padding: 0.05em 0.18em;
  vertical-align: middle;
}
@media (max-width: 560px) {
  .hero h1.brand-headline { gap: 0.4rem; }
  .hero h1.brand-headline .silver-bg { font-size: clamp(1.75rem, 9vw, 3.25rem); }
}
.hero-sub {
  max-width: 60ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 2rem;
}
.hero-sub p { margin: 0 0 0.6rem 0; }
.hero-sub p:last-child { margin-bottom: 0; }

/* Stacked all-caps variant — every line on its own, display-weight type */
.hero-sub--stacked {
  max-width: 72ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.45vw, 1.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.35;
}
.hero-sub--stacked p { margin: 0 0 0.35rem 0; }
.hero-sub--stacked p:last-child {
  margin-top: 0.6rem;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
  margin-bottom: 0.15rem;
}

/* Centered hero variant — heading + subheading + CTAs + stats all centered */
.hero-inner--centered { text-align: center; }
.hero-inner--centered .hero-eyebrow { margin-left: auto; margin-right: auto; }
.hero-inner--centered .hero-sub {
  margin-left: auto;
  margin-right: auto;
}
.hero-inner--centered .hero-cta-row { justify-content: center; }
.hero-inner--centered .hero-meta { justify-content: center; }

/* Compact hero — used on shop pages so the product grid appears near the
   top of the viewport. Slim vertical padding, tighter spacing, smaller mark. */
.hero.hero--compact {
  padding-top: clamp(1.75rem, 3.5vw, 3rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.hero.hero--compact .hero-inner {
  gap: 0.9rem;
}
.hero.hero--compact .hero-eyebrow {
  margin-bottom: 0.5rem;
}
.hero.hero--compact h1.brand-headline {
  margin: 0 auto 0.9rem;
}
.hero.hero--compact h1.brand-headline .brand-logo-mark {
  max-height: clamp(4.5rem, 10vw, 8rem);
}
.hero.hero--compact .hero-sub {
  margin-bottom: 0;
}

/* ============================================================
   SECTION (shared)
   ============================================================ */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
}
.section-head h2 .pink { color: var(--pink); }
.section-head h2 small {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
  margin-left: 1rem;
}
.section-head .head-meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: 38ch;
  text-align: right;
}
.section-head .head-meta a { color: var(--ink); border-bottom: 1px solid var(--ink); }
@media (max-width: 720px) {
  .section-head .head-meta { text-align: left; }
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product-card {
  position: relative;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.product-card:hover { background: #ffffff; }
.product-card:hover .add-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-cream);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-img svg { width: 100%; height: 100%; display: block; }
.product-img > img.product-gallery__active { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Multi-photo gallery (when image_2..image_6 are populated) */
.product-gallery { position: relative; width: 100%; height: 100%; }
.product-gallery__main { position: relative; width: 100%; height: 100%; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery__thumbs {
  position: absolute;
  bottom: 0.55rem;
  left: 0.55rem;
  right: 0.55rem;
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  z-index: 2;
  pointer-events: auto;
}
.product-gallery__thumb {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(245, 242, 235, 0.92);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery__thumb:hover { transform: scale(1.06); }
.product-gallery__thumb.is-active {
  border: 2px solid var(--pink);
  background: var(--bg-cream);
}
@media (max-width: 560px) {
  .product-gallery__thumb { width: 2rem; height: 2rem; }
}
.product-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--silver);
  padding: 0.3rem 0.55rem;
  z-index: 1;
}
.product-stock {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--pink);
  padding: 0.3rem 0.55rem;
  z-index: 1;
}
.product-body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.product-meta-row {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 0.9rem;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.15;
}
.product-name-id {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
  margin-right: 0.3rem;
  vertical-align: middle;
  position: relative;
  top: -0.1em;
}
.product-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.product-size {
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 0.55rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  outline: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s;
}
.product-size:hover, .product-size:focus { border-color: var(--ink); }
.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.4rem;
}
/* Thrift dual-button wrapper (Thrift Buy + Custom Order) */
.product-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
  flex-shrink: 0;
}
.product-buttons > .btn {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  text-align: center;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.add-btn {
  background: var(--ink);
  color: var(--bg-cream);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ink);
  opacity: 0;
  transform: translateY(4px);
  transition: background 0.15s, color 0.15s, opacity 0.2s, transform 0.2s;
  cursor: pointer;
}
.add-btn:hover { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.add-btn.added { background: var(--silver); color: var(--ink); border-color: var(--silver); opacity: 1; transform: none; }
@media (hover: none) {
  .add-btn { opacity: 1; transform: none; }
}

/* ============================================================
   QUOTE FORM SECTION
   ============================================================ */
.quote-section {
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  background: var(--bg-white);
  border-bottom: 1px solid var(--line);
}
.quote-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 880px) { .quote-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.quote-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.quote-copy h2 .pink { color: var(--pink); }
.quote-copy .tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.quote-copy p {
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.submit-form {
  display: grid;
  gap: 1.25rem;
}
.submit-form label,
.field-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
}
.field-label em { color: var(--pink); font-style: normal; font-weight: 500; }
.field-hint {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}
.submit-form input,
.submit-form textarea,
.submit-form select {
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.7rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
  margin-top: 0.35rem;
}
.submit-form input::placeholder,
.submit-form textarea::placeholder { color: #b5b1a3; }
.submit-form input[type="file"] {
  padding: 0.65rem 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.submit-form input:focus,
.submit-form textarea:focus,
.submit-form select:focus { border-color: var(--ink); }
.submit-form textarea {
  min-height: 110px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  padding: 0.85rem 0.95rem;
}
.submit-form textarea:focus { border-color: var(--ink); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-cream);
}

.toggle-group {
  border: 0;
  display: grid;
  gap: 0.6rem;
}
.toggle-group legend {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.radio-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.radio-row input {
  width: auto !important;
  margin-top: 0 !important;
}
.radio-row em {
  color: var(--pink);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
}

/* Payout toggle — the big "store credit vs cash offer" choice at the top of
   the donate/sell form. Two side-by-side card-style radio buttons. */
.payout-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.radio-row--payout {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg-cream);
  align-items: flex-start;
  gap: 0.7rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio-row--payout:hover { border-color: var(--ink); }
.radio-row--payout:has(input:checked) {
  border-color: var(--pink);
  background: rgba(239, 133, 145, 0.09);
}
.radio-row--payout > span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.35;
}
.radio-row--payout strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.radio-row--payout small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}
@media (max-width: 560px) {
  .payout-toggle { grid-template-columns: 1fr; }
}

.conditional {
  border-left: 2px solid var(--silver);
  padding-left: 1rem;
  margin-top: 0.4rem;
  background: var(--bg-cream);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.6rem;
  padding: 0.6rem;
  background: var(--bg-cream);
  border: 1px dashed var(--line-strong);
}
.file-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: var(--bg-white);
}
.file-preview-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  word-break: break-all;
}

.submit-form button[type="submit"],
.form-submit {
  background: var(--ink);
  color: var(--bg-cream);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.1rem 1.7rem;
  border: 1px solid var(--ink);
  justify-self: start;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.submit-form button[type="submit"]:hover,
.form-submit:hover {
  background: var(--pink);
  color: var(--ink);
  border-color: var(--pink);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.form-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  min-height: 1.2em;
  color: var(--muted);
}
.form-status.is-success, .form-status.ok { color: var(--ink); border-bottom: 1px solid var(--pink); }
.form-status.is-error, .form-status.error { color: #C0392B; }

/* ============================================================
   LOCAL LINE — silver-blue band, minimal coming-soon
   ============================================================ */
.local-line {
  background: var(--silver);
  color: var(--ink);
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--silver-deep);
}
.local-line-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.local-line .stamp {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--silver);
  padding: 0.45rem 0.8rem;
  margin-bottom: 1.75rem;
}
.local-line h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.local-line p.body-text {
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 auto 2rem;
  max-width: 48ch;
  color: var(--ink-soft);
}
.interest-form {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.interest-form input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.95rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--ink);
  background: var(--bg-white);
  color: var(--ink);
  outline: none;
}
.interest-form input:focus { background: #ffffff; }
.interest-form button {
  padding: 0.95rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--silver);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.interest-form button:hover { background: var(--pink); color: var(--ink); }
.signup-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.about-copy h2 .pink { color: var(--pink); }
.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.65;
}
.about-side {
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--line);
}
.about-side dt {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}
.about-side dt:first-child { margin-top: 0; }
.about-side dd {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.about-side dd:last-child { border-bottom: 0; padding-bottom: 0; }
.about-side dd .pink { color: var(--pink); }
.about-side dd a { color: var(--ink); border-bottom: 1px solid var(--pink); }
.about-side dd a:hover { color: var(--pink); }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem;
  background: var(--ink);
  color: var(--bg-cream);
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo {
  max-width: 280px;
  background: var(--bg-cream);
  padding: 1rem 1.25rem;
}
.footer-logo img { width: 100%; height: auto; display: block; }
.footer-blurb {
  font-size: 0.85rem;
  color: rgba(245, 242, 235, 0.7);
  max-width: 38ch;
  line-height: 1.55;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a {
  font-size: 0.85rem;
  color: rgba(245, 242, 235, 0.65);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--pink); }
.footer-small {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 242, 235, 0.12);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(245, 242, 235, 0.55);
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   CART DRAWER — light theme
   ============================================================ */
.cart-drawer { position: fixed; inset: 0; z-index: 200; }
.cart-drawer[hidden] { display: none; }
.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(2px);
}
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--bg-white);
  color: var(--ink);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 32px rgba(0,0,0,0.08);
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.cart-close {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cart-close:hover { color: var(--pink); }

.cart-items { flex-grow: 1; overflow-y: auto; padding: 0.5rem 1.4rem; }
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-thumb {
  width: 70px;
  height: 70px;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cart-item-thumb svg { width: 100%; height: 100%; display: block; }
.cart-item-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.cart-item-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
}
.cart-item-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  margin-top: 0.45rem;
  border: 1px solid var(--line-strong);
}
.cart-qty button {
  background: none;
  border: 0;
  padding: 0.25rem 0.55rem;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}
.cart-qty button:hover { color: var(--pink); }
.cart-qty span {
  display: inline-grid;
  place-items: center;
  min-width: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.cart-item-remove {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
}
.cart-item-remove:hover { color: var(--pink); }

.cart-foot {
  padding: 1.1rem 1.4rem 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--bg-cream);
}
.cart-totals {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 0.6rem;
}
.cart-note {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.95rem;
  line-height: 1.45;
}
.cart-note strong { color: var(--ink); font-weight: 600; }
.cart-empty {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 1.5rem 0;
}
.cart-drawer.is-empty #cartItems { display: none; }
.cart-drawer:not(.is-empty) #cartEmpty,
.cart-drawer:not(.is-empty) .cart-note,
.cart-drawer:not(.is-empty) #checkoutBtn { display: revert; }
.cart-drawer.is-empty #checkoutBtn,
.cart-drawer.is-empty .cart-note { display: none; }

/* ============================================================
   FOOTER 4-COLUMN VARIANT
   ============================================================ */
.footer-grid--four { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 880px) { .footer-grid--four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid--four { grid-template-columns: 1fr; } }

/* ============================================================
   INLINE PINK LINK
   ============================================================ */
.link-pink {
  color: var(--ink);
  border-bottom: 1px solid var(--pink);
  transition: color 0.15s, border-color 0.15s;
}
.link-pink:hover { color: var(--pink); border-color: var(--ink); }

/* ============================================================
   THRIFT CATALOG — same grid as product grid, with vintage hooks
   ============================================================ */
.thrift-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.thrift-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink);
  background: var(--silver);
  padding: 0.2rem 0.4rem;
  letter-spacing: 0.06em;
  display: inline-block;
}
.thrift-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.4rem;
  flex-wrap: wrap;
}
.thrift-actions .btn {
  padding: 0.65rem 0.95rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  flex: 1 1 auto;
  min-width: 0;
}

/* ============================================================
   DONATE FORM — calculator + multi-item slots
   ============================================================ */
.donate-intro {
  background: var(--silver);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--silver-deep);
  margin-bottom: 2rem;
}
.donate-intro p {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0;
  max-width: 60ch;
}
.donate-item {
  border: 1px solid var(--line);
  background: var(--bg-white);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}
.donate-item legend {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding: 0 0.5rem;
  background: var(--bg-white);
}
.donate-item .donate-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 640px) { .donate-item .donate-row { grid-template-columns: 1fr; } }
.calc-panel {
  position: sticky;
  top: 5rem;
  background: var(--ink);
  color: var(--bg-cream);
  padding: 1.5rem;
  display: grid;
  gap: 0.8rem;
}
.calc-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
}
.calc-amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--bg-cream);
}
.calc-amount .calc-currency { color: var(--pink); margin-right: 0.1em; }
.calc-breakdown {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(245,242,235,0.7);
  line-height: 1.55;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(245,242,235,0.18);
}
.calc-disclaimer {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(245,242,235,0.6);
  line-height: 1.5;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(245,242,235,0.18);
}
.donate-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 880px) {
  .donate-grid { grid-template-columns: 1fr; gap: 2rem; }
  .calc-panel { position: static; }
}

/* ============================================================
   FAST FASHION REPORT
   ============================================================ */
.report {
  max-width: 78ch;
  margin: 0 auto;
}
.report p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.report h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.report h3 .pink { color: var(--pink); }
.report .lede {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 2rem;
}
.report blockquote {
  background: var(--silver);
  border-left: 4px solid var(--ink);
  padding: 1.1rem 1.25rem;
  margin: 1.75rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 1.75rem 0;
}
.stat-cell {
  background: var(--bg-white);
  padding: 1.25rem 1.1rem;
}
.stat-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-cell strong .pink { color: var(--pink); }
.stat-cell span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.4;
  display: block;
}
.report .sources {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 2.5rem;
}
.report .sources li { list-style: none; margin-bottom: 0.4rem; word-break: break-word; }
.report .sources a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.report .sources a:hover { color: var(--pink); border-color: var(--pink); }

/* Page-level CTA strip used on report pages */
.cta-strip {
  background: var(--ink);
  color: var(--bg-cream);
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
  text-align: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
  color: var(--bg-cream);
}
.cta-strip h2 .silver { color: var(--silver); }
.cta-strip p {
  max-width: 50ch;
  margin: 0 auto 1.5rem;
  color: rgba(245,242,235,0.75);
  font-size: 1rem;
}
.cta-strip .btn {
  background: var(--pink);
  color: var(--ink);
  border-color: var(--pink);
}
.cta-strip .btn:hover { background: var(--bg-cream); color: var(--ink); border-color: var(--bg-cream); }
.cta-strip .btn--ghost-light {
  background: transparent;
  color: var(--bg-cream);
  border-color: rgba(245,242,235,0.4);
}
.cta-strip .btn--ghost-light:hover { background: var(--bg-cream); color: var(--ink); border-color: var(--bg-cream); }

/* File-input row styling for donate */
.upload-row {
  border: 1px dashed var(--line-strong);
  padding: 0.85rem;
  background: var(--bg-cream);
}

/* ============================================================
   CATALOG FILTER — search + category chips for reworks / thrift
   ============================================================ */
.catalog-filter {
  border: 1px solid var(--line);
  background: var(--bg-white);
  margin-bottom: 1.5rem;
}
.catalog-filter__search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.catalog-filter__search label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}
.catalog-filter__input {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.5rem 0.25rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.catalog-filter__input:focus {
  border-bottom-color: var(--ink);
}
.catalog-filter__input::placeholder {
  color: var(--muted);
  font-style: italic;
}
.catalog-filter__clear {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 0.35rem 0.6rem;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.catalog-filter__clear:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.catalog-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.9rem 1.25rem;
}
.cat-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-cream);
  color: var(--pink);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  user-select: none;
}
.cat-chip:hover {
  border-color: var(--pink);
  color: var(--pink-hot);
}
.cat-chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--pink);
  border-color: var(--ink);
}
.cat-chip[aria-pressed="true"]:hover {
  background: var(--pink);
  color: var(--ink);
  border-color: var(--pink);
}

.catalog-filter__status {
  padding: 0.6rem 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.catalog-filter__status strong {
  color: var(--pink);
  font-weight: 700;
}

.product-card[hidden] { display: none !important; }

.catalog-empty {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--line-strong);
  background: var(--bg-white);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-top: 1rem;
}
.catalog-empty[hidden] { display: none; }

@media (max-width: 640px) {
  .catalog-filter__search {
    flex-wrap: wrap;
  }
  .catalog-filter__search label {
    width: 100%;
  }
  .catalog-filter__input {
    flex: 1 1 100%;
  }
  .catalog-filter__clear {
    margin-left: auto;
  }
}

/* ============================================================
   PLACEHOLDER-SITE ADDITIONS
   - Italic, standard-capitalization home hero description
   - Text page titles ("Reworks" / "Thrift") in the brand display
     font, replacing the old heading image files
   ============================================================ */

/* Home hero description: sentence case + italic (replaces the
   all-caps stacked variant). Inherits base .hero-sub sizing/color. */
.hero-sub--italic {
  font-style: italic;
  max-width: 68ch;
}
.hero-sub--italic p {
  margin: 0 0 0.5rem 0;
}
.hero-sub--italic p:last-child {
  margin-bottom: 0;
}

/* Accessible hidden headline (keeps the H1 for SEO / screen readers
   while the visual hero is the sliding carousel). */
.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;
}

/* ============================================================
   HERO CAROUSEL — abstract, continuously-sliding showcase of
   real Norf End pieces. Replaces the static logo on the home
   hero to grab attention the moment a visitor lands.
   ============================================================ */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: min(1280px, 94vw);
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

/* Salmon-pink bold-italic brand wordmark, sits directly under the carousel. */
.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  color: var(--pink);
  font-size: clamp(2.1rem, 6.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0.35rem auto 1.15rem;
}
.hero-carousel__track {
  display: flex;
  width: max-content;
  gap: clamp(0.75rem, 1.6vw, 1.35rem);
  padding: 0.5rem 0;
  will-change: transform;
  animation: heroCarouselSlide 42s linear infinite;
}
.hero-carousel:hover .hero-carousel__track,
.hero-carousel:focus-within .hero-carousel__track {
  animation-play-state: paused;
}
.hero-carousel__slide {
  flex: 0 0 auto;
  width: clamp(180px, 23vw, 300px);
  height: clamp(240px, 31vw, 400px);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.14);
  transform: rotate(-1.4deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
/* Gentle alternating tilt gives it the "abstract" collage feel. */
.hero-carousel__slide:nth-child(even) { transform: rotate(1.8deg); }
.hero-carousel__slide:nth-child(3n)   { transform: rotate(-0.6deg) translateY(-6px); }
.hero-carousel__slide:nth-child(4n)   { transform: rotate(2.4deg) translateY(4px); }
.hero-carousel__slide:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 14px 32px rgba(10, 10, 10, 0.22);
}
.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Soft cream edge-fades that blend the strip into the hero. */
.hero-carousel__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 8%, 110px);
  pointer-events: none;
  z-index: 2;
}
.hero-carousel__fade--left  { left: 0;  background: linear-gradient(90deg, var(--bg-cream), transparent); }
.hero-carousel__fade--right { right: 0; background: linear-gradient(270deg, var(--bg-cream), transparent); }
@keyframes heroCarouselSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 560px) {
  .hero-carousel__track { animation-duration: 30s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track { animation: none; }
  .hero-carousel {
    overflow-x: auto;
    -webkit-mask-image: none; mask-image: none;
  }
}

/* ============================================================
   HOME SALE FLAG — eye-popping "over 50% off" banner that
   links to the preorder page.
   ============================================================ */
.sale-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.6rem auto 0.4rem;
  padding: 0.7rem 1.15rem 0.7rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--pink) 0%, #f5a4ae 55%, var(--silver) 140%);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: saleFlagPulse 2.2s ease-in-out infinite;
}
.sale-flag:hover,
.sale-flag:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  animation-play-state: paused;
  outline: none;
}
.sale-flag__blast {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 2.4vw, 1.35rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}
.sale-flag__cta {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-cream);
  white-space: nowrap;
}
@keyframes saleFlagPulse {
  0%, 100% { box-shadow: 4px 4px 0 var(--ink); }
  50%      { box-shadow: 4px 4px 0 var(--ink), 0 0 0 6px rgba(239, 133, 145, 0.28); }
}
@media (max-width: 520px) {
  .sale-flag {
    flex-direction: column;
    gap: 0.55rem;
    border-radius: 22px;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sale-flag { animation: none; }
}

/* Styled text page title, matches the brand's display type. */
.hero h1.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 10vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-transform: none;
  text-align: center;
  margin: 0 auto 0.9rem;
}
/* Slightly tighter on the compact shop-page hero. */
.hero.hero--compact h1.page-title {
  font-size: clamp(2.25rem, 8vw, 5.5rem);
  margin: 0 auto 0.4rem;
}

/* Give-back line under the home hero info keywords. */
.hero-giveback {
  font-style: italic;
  max-width: 60ch;
  margin: 1.5rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.55;
}
.hero-inner--centered .hero-giveback {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   MOBILE — product catalog shows 2 per row on phones.
   Desktop/tablet layout is untouched: above 600px the grid keeps
   its original auto-fill behavior. This block only applies on
   small (phone) viewports.
   ============================================================ */
@media (max-width: 600px) {
  /* Exactly two columns across on phones. */
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Tighten card internals so two fit cleanly on a narrow screen. */
  .product-body {
    padding: 0.7rem 0.7rem 0.9rem;
    gap: 0.4rem;
  }
  .product-name { font-size: 0.9rem; line-height: 1.2; }
  .product-desc { font-size: 0.75rem; line-height: 1.4; }
  .product-meta-row { font-size: 0.56rem; gap: 0.5rem; }
  .product-price { font-size: 0.98rem; }
  .thrift-meta { font-size: 0.66rem; }

  /* Stack price above a full-width buy button so nothing is crushed. */
  .product-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .product-row .btn--buy { width: 100%; text-align: center; }

  /* Thrift dual buttons (Thrift Buy + Custom Order) go full-width stacked. */
  .product-buttons { width: 100%; }
  .product-buttons > .btn {
    flex: 1 1 100%;
    text-align: center;
    padding: 0.55rem 0.6rem;
  }

  /* Slightly smaller corner badges to suit the smaller image. */
  .product-badge, .product-stock {
    font-size: 0.55rem;
    padding: 0.25rem 0.42rem;
    top: 0.55rem;
  }
  .product-badge { left: 0.55rem; }
  .product-stock { right: 0.55rem; }

  /* Gallery thumbnails scaled down for the narrower card image. */
  .product-gallery__thumb { width: 1.7rem; height: 1.7rem; }
  .product-gallery__thumbs { bottom: 0.4rem; left: 0.4rem; right: 0.4rem; gap: 0.25rem; }
}

/* ============================================================
   FULL-SCREEN PRODUCT VIEW
   Clicking a product title opens an enlarged overlay of just
   that card — bigger images, full description, buy actions.
   Behaviour lives in product-gallery.js.
   ============================================================ */

/* Clickable product title affordance */
.product-name--clickable {
  cursor: pointer;
  transition: color 0.15s ease;
}
.product-name--clickable:hover {
  color: var(--pink-hot);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.product-name--clickable:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

/* Lock background scroll while the overlay is open */
body.modal-open { overflow: hidden; }

/* Overlay shell */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.product-modal[hidden] { display: none; }

.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.product-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  max-height: 92vh;
  background: var(--bg-white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-modal__content {
  overflow-y: auto;
  max-height: 92vh;
}

.product-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.product-modal__close:hover { background: var(--ink); transform: scale(1.05); }
.product-modal__close:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* Enlarged card layout inside the overlay */
.product-card--modal {
  flex-direction: row;
  align-items: stretch;
  background: var(--bg-white);
}
.product-card--modal:hover { background: var(--bg-white); }

.product-card--modal .product-img {
  flex: 1 1 52%;
  aspect-ratio: auto;
  height: auto;
  min-height: 58vh;
  border-bottom: none;
  border-right: 1px solid var(--line);
}
/* Show the full garment (no crop) in the enlarged view */
.product-card--modal .product-gallery__main img,
.product-card--modal .product-img > img.product-gallery__active {
  object-fit: contain;
  background: var(--bg-cream);
}
.product-card--modal .product-gallery__thumb {
  width: 3.25rem;
  height: 3.25rem;
}

.product-card--modal .product-body {
  flex: 1 1 48%;
  padding: 2rem 2rem 2.25rem;
  gap: 0.9rem;
}
.product-card--modal .product-meta-row { font-size: 0.72rem; }
.product-card--modal .product-name { font-size: 1.6rem; }
.product-card--modal .product-desc { font-size: 1rem; line-height: 1.6; }
.product-card--modal .thrift-meta { font-size: 0.9rem; }
/* Enlarged view: drop the price line and center the buy action(s) */
.product-card--modal .product-price { display: none; }
.product-card--modal .product-row { justify-content: center; }
.product-card--modal .add-btn {
  opacity: 1;
  transform: none;
}
/* Enlarged view: make the "Thrift cop" buy button larger & bolder */
.product-card--modal .product-buttons { width: 100%; }
.product-card--modal .btn--buy {
  font-size: 1.15rem;
  padding: 1rem 2.25rem;
  width: 100%;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Stack image over details on narrow screens */
@media (max-width: 820px) {
  .product-modal { padding: 0; }
  .product-modal__dialog { width: 100vw; max-height: 100vh; }
  .product-modal__content { max-height: 100vh; }
  .product-card--modal { flex-direction: column; }
  .product-card--modal .product-img {
    flex: none;
    min-height: 48vh;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .product-card--modal .product-name { font-size: 1.35rem; }
}

/* Hero shipping line — bold, under the sub-heading description */
.hero-shipping {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
}
.hero-inner--centered .hero-shipping { text-align: center; }

/* ============================================================
   DESIGN LIBRARY  (designs.html)
   ============================================================ */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.4rem);
  margin-top: 1.75rem;
}
.design-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.design-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(10, 10, 10, 0.09);
  border-color: var(--line-strong);
}
.design-card__view {
  display: block;
  padding: 0;
  border: 0;
  margin: 0;
  cursor: zoom-in;
  background: var(--bg-cream);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.design-card__view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.design-card:hover .design-card__view img { transform: scale(1.04); }
.design-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem 1rem;
  flex: 1 1 auto;
}
.design-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.design-card__cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.design-card__use {
  margin-top: auto;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
}
.design-note {
  margin: 2rem auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Lightbox (design preview) ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
  margin: 0;
  max-width: min(760px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 66vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: var(--bg-cream);
}
.lightbox__cap {
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.lightbox__cap #lbName {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.lightbox__cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
}
.lightbox__cap .design-card__use,
.lightbox__cap .btn--buy { margin-top: 0.4rem; }
.lightbox__btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.28); transform: scale(1.06); }
.lightbox__close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 46px;
  height: 46px;
  font-size: 1.7rem;
  line-height: 1;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox__prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox__next { right: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox__prev:hover,
.lightbox__next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__count {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
@media (max-width: 560px) {
  .lightbox__prev, .lightbox__next { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* ---- Selected-design banner + browse CTA (preorder.html) ---- */
.design-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 620px;
  margin: 0 auto 1.75rem;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(100deg, rgba(239, 133, 145, 0.14), rgba(210, 235, 237, 0.28));
  border: 1px solid var(--pink);
  border-radius: 14px;
}
.design-banner[hidden] { display: none; }
.design-banner__thumb {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-cream);
  flex: 0 0 auto;
}
.design-banner__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
}
.design-banner__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-hot);
}
.design-banner__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.design-banner__change {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  white-space: nowrap;
}
.design-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  max-width: 620px;
  margin: 0 auto 1.75rem;
  padding: 0.9rem 1.1rem;
  text-align: center;
}
.design-cta[hidden] { display: none; }
.design-cta__text {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
@media (max-width: 480px) {
  .design-banner { flex-wrap: wrap; }
  .design-banner__actions { width: 100%; text-align: right; }
}
