/* =====================================================================
   PATANG · Design System
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Neutrals */
  --bone:    #F4EFE6;
  --paper:   #FAF6EF;
  --carbon:  #1A1A1A;
  --smoke:   #6B645A;
  --mist:    #D9D3C7;
  --shadow:  rgba(26, 26, 26, 0.08);

  /* Accents */
  --saffron: #E8743C;
  --indigo:  #2E3A66;
  --moss:    #7A8C5C;
  --ochre:   #C19A4B;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', monospace;

  /* Scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;
  --space-11: 12rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --max-width: 1440px;
  --content-pad: clamp(1.25rem, 4vw, 3rem);
}

/* =====================================================================
   Reset
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--carbon);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* =====================================================================
   Type system
   ===================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
}

.display-xl {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.display-l  { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.display-m  { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.display-s  { font-size: clamp(1.25rem, 2vw, 1.625rem); }

p { margin: 0 0 var(--space-4); max-width: 60ch; }
.lede { font-size: 1.125rem; color: var(--smoke); }

.price {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* =====================================================================
   Buttons
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--saffron);
  color: var(--bone);
}
.btn-primary:hover { background: #D26229; }

.btn-outline {
  background: transparent;
  color: var(--carbon);
  border-color: var(--carbon);
}
.btn-outline:hover { background: var(--carbon); color: var(--bone); }

.btn-outline-saffron {
  background: transparent;
  color: var(--saffron);
  border-color: var(--saffron);
}
.btn-outline-saffron:hover { background: var(--saffron); color: var(--bone); }

.btn-outline-indigo {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}
.btn-outline-indigo:hover { background: var(--indigo); color: var(--bone); }

.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-large { padding: 1.125rem 2rem; font-size: 1rem; }

.link-underline {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-weight: 500;
  transition: opacity 0.18s ease;
}
.link-underline:hover { opacity: 0.65; }

/* =====================================================================
   Navigation
   ===================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--content-pad);
  background: transparent;
  color: var(--bone);
  transition: background 0.3s ease, color 0.3s ease;
}
.nav.scrolled {
  background: var(--bone);
  color: var(--carbon);
  border-bottom: 1px solid var(--mist);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.nav-logo .kite { font-size: 1.25rem; color: var(--saffron); }
.nav-links {
  display: flex;
  gap: var(--space-6);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* =====================================================================
   Layout
   ===================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}
.section { padding: var(--space-10) 0; }
.section-tight { padding: var(--space-8) 0; }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =====================================================================
   Hero
   ===================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-11) var(--content-pad) var(--space-8);
  color: var(--bone);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(26,26,26,0.35) 0%, rgba(26,26,26,0) 30%, rgba(26,26,26,0.6) 100%),
    url('assets/h-01.webp') center 30%/cover no-repeat;
}
@media (max-width: 700px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(26,26,26,0.35) 0%, rgba(26,26,26,0) 30%, rgba(26,26,26,0.65) 100%),
      url('assets/h-02.webp') center/cover no-repeat;
  }
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { color: var(--bone); margin-bottom: var(--space-5); }
.hero .lede { color: var(--bone); opacity: 0.92; max-width: 620px; margin-bottom: var(--space-6); }
.hero-scroll-cue {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--bone);
  opacity: 0.7;
}

/* Placeholder banner inside the hero */
.placeholder-note {
  position: absolute;
  top: var(--space-7);
  right: var(--content-pad);
  z-index: 3;
  padding: var(--space-2) var(--space-3);
  background: rgba(244, 239, 230, 0.9);
  color: var(--carbon);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
}

/* =====================================================================
   The Wedge section
   ===================================================================== */

.wedge {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
.wedge-vignettes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.vignette {
  aspect-ratio: 1;
  background: var(--mist);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--smoke);
  background-image: linear-gradient(135deg, #E8D9C7 0%, #C7B299 100%);
}
.vignette:nth-child(2) { background-image: linear-gradient(135deg, #D9D3C7 0%, #8B5A38 100%); color: var(--bone); }
.vignette:nth-child(3) { background-image: linear-gradient(135deg, #C97C4A 0%, #8B3F1A 100%); color: var(--bone); }
.vignette:nth-child(4) { background-image: linear-gradient(135deg, #FAF6EF 0%, #E8D9C7 100%); color: var(--smoke); }

@media (max-width: 800px) {
  .wedge { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* =====================================================================
   Capsule preview
   ===================================================================== */

.capsule-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.product-card {
  display: block;
  cursor: pointer;
}
.product-card-image {
  aspect-ratio: 4 / 5;
  background: var(--mist);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-image { transform: scale(1.02); }
.product-card-image::after {
  content: attr(data-prompt);
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  padding: 4px 8px;
  background: rgba(26,26,26,0.6);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover .product-card-image::after { opacity: 1; }

.product-card-name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--space-1);
}
.product-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--smoke);
  font-size: 0.875rem;
}
.product-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--moss);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
}

/* Placeholder gradients per SKU */
.sku-tee-bone   { background-image: linear-gradient(135deg, #FAF6EF 0%, #E8D9C7 50%, #C7B299 100%); }
.sku-trouser    { background-image: linear-gradient(135deg, #2A2A2A 0%, #FAF6EF 50%, #2A2A2A 100%); }
.sku-beanie     { background-image: linear-gradient(135deg, #6B4424 0%, #3A2818 100%); }
.sku-tee-salmon { background-image: linear-gradient(135deg, #E8A589 0%, #C97C4A 100%); }
.sku-trouser-stripe { background-image: repeating-linear-gradient(90deg, #6B7A48 0 8px, #FAF6EF 8px 16px); }
.sku-beanie-bone { background-image: linear-gradient(135deg, #FAF6EF 0%, #D9D3C7 100%); }

/* =====================================================================
   The Loop band
   ===================================================================== */

.loop-band {
  background: var(--indigo);
  color: var(--bone);
  padding: var(--space-10) 0;
}
.loop-band .eyebrow { color: rgba(244, 239, 230, 0.7); }
.loop-band h2 { color: var(--bone); }
.loop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.loop-diagram {
  aspect-ratio: 1;
  background: rgba(244, 239, 230, 0.05);
  border: 1px dashed rgba(244, 239, 230, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 230, 0.5);
  text-align: center;
  padding: var(--space-5);
}
@media (max-width: 800px) {
  .loop-grid { grid-template-columns: 1fr; }
}
.loop-band .btn-outline {
  color: var(--bone);
  border-color: var(--bone);
}
.loop-band .btn-outline:hover { background: var(--bone); color: var(--indigo); }

/* =====================================================================
   Makers section
   ===================================================================== */

.makers-image {
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, #6B645A 0%, #FAF6EF 50%, #C19A4B 100%);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  position: relative;
  background-size: cover;
  background-position: center;
}
.image-caption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
  margin-bottom: var(--space-5);
}
.makers-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* =====================================================================
   Journal preview
   ===================================================================== */

.journal-card { display: block; }
.journal-card-image {
  aspect-ratio: 3 / 2;
  background: var(--mist);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.journal-card-date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
  margin-bottom: var(--space-2);
}
.journal-card-title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: var(--space-2);
}
.journal-card-dek {
  color: var(--smoke);
  font-size: 0.9375rem;
}

/* =====================================================================
   Newsletter
   ===================================================================== */

.newsletter {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  padding: var(--space-8) 0;
}
.newsletter h3 {
  font-size: 1.5rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  margin-bottom: var(--space-5);
}
.newsletter-form {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}
.newsletter-form input:focus {
  outline: 0;
  border-color: var(--carbon);
}
.newsletter-fine {
  font-size: 0.8125rem;
  color: var(--smoke);
}

/* =====================================================================
   Footer
   ===================================================================== */

.footer {
  background: var(--paper);
  border-top: 1px solid var(--mist);
  padding: var(--space-9) 0 var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-variation-settings: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: var(--space-4);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.9375rem;
}
.footer-badges {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.footer-badge {
  padding: 4px 10px;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--smoke);
}
.footer-legal {
  padding-top: var(--space-5);
  border-top: 1px solid var(--mist);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--smoke);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; gap: var(--space-3); }
}

/* =====================================================================
   PDP — Product Detail Page
   ===================================================================== */

.pdp {
  padding-top: 6rem;
}
.pdp-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-8);
  padding: var(--space-7) 0;
}
@media (max-width: 1000px) {
  .pdp-layout { grid-template-columns: 1fr; }
}

.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.pdp-gallery-image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  position: relative;
}
.pdp-gallery-image.square { aspect-ratio: 1; }
.pdp-gallery-image::before {
  content: attr(data-prompt);
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 4px 8px;
  background: rgba(244, 239, 230, 0.9);
  color: var(--carbon);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
}

.pdp-info {
  position: sticky;
  top: 6rem;
  align-self: start;
}
@media (max-width: 1000px) {
  .pdp-info { position: static; }
}

.pdp-title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: var(--space-2) 0;
}
.pdp-subtitle {
  color: var(--smoke);
  font-size: 0.9375rem;
  margin-bottom: var(--space-6);
}

.option-row {
  margin-bottom: var(--space-5);
}
.option-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
  text-transform: uppercase;
}
.option-buttons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.option-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--paper);
  transition: all 0.18s ease;
}
.option-btn.active {
  border-color: var(--carbon);
  background: var(--carbon);
  color: var(--bone);
}
.option-btn:hover:not(.active) { border-color: var(--carbon); }

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--mist);
  cursor: pointer;
  transition: border-color 0.18s ease;
}
.color-swatch.active { border-color: var(--carbon); }

/* The dual-CTA cards */
.purchase-card {
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-3);
  background: var(--paper);
}
.purchase-card-buy-new {
  border-color: var(--carbon);
}
.purchase-card-pre-loved {
  border-color: var(--indigo);
  background: rgba(46, 58, 102, 0.04);
}
.purchase-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}
.purchase-card-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
}
.purchase-card-buy-new .purchase-card-label { color: var(--carbon); }
.purchase-card-pre-loved .purchase-card-label { color: var(--indigo); }
.loop-glyph {
  font-size: 1rem;
  color: var(--indigo);
  margin-right: 4px;
}

.purchase-card-price {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.purchase-card-availability {
  color: var(--smoke);
  font-size: 0.8125rem;
  margin-bottom: var(--space-4);
}
.condition-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.condition-pill {
  padding: 4px 10px;
  background: var(--bone);
  border: 1px solid var(--indigo);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--indigo);
}

/* Trade-in module */
.tradein {
  margin-top: var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}
.tradein-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.tradein-header span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--indigo);
  text-transform: uppercase;
}
.tradein-body {
  font-size: 0.875rem;
  color: var(--smoke);
  margin-bottom: var(--space-3);
}

/* Tabs / accordion */
.pdp-tabs {
  margin-top: var(--space-7);
  border-top: 1px solid var(--mist);
}
.pdp-tab {
  border-bottom: 1px solid var(--mist);
  padding: var(--space-4) 0;
}
.pdp-tab summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.125rem;
  font-weight: 500;
  list-style: none;
}
.pdp-tab summary::-webkit-details-marker { display: none; }
.pdp-tab summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--smoke);
  transition: transform 0.2s;
}
.pdp-tab[open] summary::after { transform: rotate(45deg); }
.pdp-tab-body {
  padding-top: var(--space-4);
  color: var(--smoke);
  font-size: 0.9375rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--mist);
  font-size: 0.875rem;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row .label { color: var(--smoke); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* PDP fabric story below the fold */
.fabric-story {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--mist);
}
.fabric-story-image {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #C7B299 0%, #FAF6EF 50%, #6B645A 100%);
  margin-bottom: var(--space-6);
}
.compliance-row {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}
.compliance-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--moss);
  border-radius: var(--radius-sm);
  color: var(--moss);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* =====================================================================
   Real image bindings — generated assets
   ===================================================================== */

/* Each .img-* class is a 1:1 map to a prompt code in /assets/. */
.img-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.img-h-01  { background: url('assets/h-01.webp')  center/cover no-repeat; }
.img-h-02  { background: url('assets/h-02.webp')  center/cover no-repeat; }
.img-h-03  { background: url('assets/h-03.webp')  center/cover no-repeat; }

.img-c-01  { background: url('assets/c-01.webp')  center/cover no-repeat; }
.img-c-02  { background: url('assets/c-02.webp')  center/cover no-repeat; }
.img-c-03  { background: url('assets/c-03.webp')  center/cover no-repeat; }
.img-c-04  { background: url('assets/c-04.webp')  center/cover no-repeat; }

.img-p-01  { background: url('assets/p-01.webp')  center/cover no-repeat; }
.img-pa-01 { background: url('assets/pa-01.webp') center/cover no-repeat; }
.img-pa-05 { background: url('assets/pa-05.webp') center/cover no-repeat; }
.img-v-01  { background: url('assets/v-01.webp')  center/cover no-repeat; }
.img-pl-01 { background: url('assets/pl-01.webp') center/cover no-repeat; }
.img-pl-03 { background: url('assets/pl-03.webp') center/cover no-repeat; }

.img-pm-01 { background: url('assets/pm-01.webp') center/cover no-repeat; }
.img-pm-02 { background: url('assets/pm-02.webp') center/cover no-repeat; }
.img-pm-03 { background: url('assets/pm-03.webp') center 30%/cover no-repeat; }

.img-ps-01 { background: url('assets/ps-01.webp') center/cover no-repeat; }
.img-ps-02 { background: url('assets/ps-02.webp') center/cover no-repeat; }
.img-ps-03 { background: url('assets/ps-03.webp') center/cover no-repeat; }
.img-ps-04 { background: url('assets/ps-04.webp') center/cover no-repeat; }

.img-pcc-03 { background: url('assets/pcc-03.webp') center/cover no-repeat; }

.img-u-01a { background: url('assets/u-01a.webp') center/cover no-repeat; }
.img-u-01b { background: url('assets/u-01b.webp') center/cover no-repeat; }
.img-u-01c { background: url('assets/u-01c.webp') center top/cover no-repeat; }
.img-u-01d { background: url('assets/u-01d.webp') center top/cover no-repeat; }
.img-u-02  { background: url('assets/u-02.webp')  center/cover no-repeat; }

.img-b-02  { background: url('assets/b-02.webp')  center/cover no-repeat; }
.img-b-03  { background: url('assets/b-03.webp')  center/cover no-repeat; }

.img-ig-01 { background: url('assets/ig-01.webp') center/cover no-repeat; }
.img-ig-02 { background: url('assets/ig-02.webp') center/cover no-repeat; }
.img-ig-07 { background: url('assets/ig-07.webp') center/cover no-repeat; }
.img-ig-09 { background: url('assets/ig-09.webp') center/cover no-repeat; }

.img-d-01  { background: url('assets/d-01.webp')  center/cover no-repeat; }
.img-d-04  { background: url('assets/d-04.webp')  center/cover no-repeat; }
.img-d-02  { background: url('assets/d-02.webp')  center/cover no-repeat; }
.img-d-03  { background: url('assets/d-03.webp')  center/cover no-repeat; }

/* Product — PDP gallery (new) */
.img-p-02  { background: url('assets/p-02.webp')  center/cover no-repeat; }
.img-p-03  { background: url('assets/p-03.webp')  center/cover no-repeat; }
.img-p-03-b { background: url('assets/p-03-b.webp') center/cover no-repeat; }
.img-p-04  { background: url('assets/p-04.webp')  center/cover no-repeat; }
.img-p-05  { background: url('assets/p-05.webp')  center 20%/cover no-repeat; }
.img-p-06  { background: url('assets/p-06.webp')  center/cover no-repeat; }
.img-p-07  { background: url('assets/p-07.webp')  center/cover no-repeat; }
.img-p-10  { background: url('assets/p-10.webp')  center/cover no-repeat; }
.img-p-11  { background: url('assets/p-11.webp')  center 15%/cover no-repeat; }
.img-p-12  { background: url('assets/p-12.webp')  center/cover no-repeat; }
.img-p-13  { background: url('assets/p-13.webp')  center/cover no-repeat; }
.img-p-15  { background: url('assets/p-15.webp')  center/cover no-repeat; }

/* Product — angles */
.img-pa-03 { background: url('assets/pa-03.webp') center/cover no-repeat; }
.img-pa-06 { background: url('assets/pa-06.webp') center/cover no-repeat; }
.img-pa-08 { background: url('assets/pa-08.webp') center 15%/cover no-repeat; }

/* Product — colorway comparisons */
.img-pcc-01 { background: url('assets/pcc-01.webp') center/cover no-repeat; }
.img-pcc-02 { background: url('assets/pcc-02.webp') center/cover no-repeat; }

/* Product — construction macros */
.img-pd-01 { background: url('assets/pd-01.webp') center/cover no-repeat; }
.img-pd-02 { background: url('assets/pd-02.webp') center/cover no-repeat; }
.img-pd-04 { background: url('assets/pd-04.webp') center/cover no-repeat; }
.img-pd-06 { background: url('assets/pd-06.webp') center/cover no-repeat; }
.img-pd-08 { background: url('assets/pd-08.webp') center/cover no-repeat; }

/* Product — hanging garment */
.img-ph-01 { background: url('assets/ph-01.webp') center/cover no-repeat; }

/* Packaging */
.img-pkg-01 { background: url('assets/pkg-01.webp') center/cover no-repeat; }
.img-pkg-03 { background: url('assets/pkg-03.webp') center/cover no-repeat; }

/* Email heroes */
.img-e-01  { background: url('assets/e-01.webp')  center/cover no-repeat; }
.img-e-02  { background: url('assets/e-02.webp')  center/cover no-repeat; }
.img-e-03  { background: url('assets/e-03.webp')  center/cover no-repeat; }

/* Editorial cutaways */
.img-n-01  { background: url('assets/n-01.webp')  center/cover no-repeat; }
.img-n-03  { background: url('assets/n-03.webp')  center/cover no-repeat; }
.img-n-05  { background: url('assets/n-05.webp')  center/cover no-repeat; }

/* Studio / makers */
.img-s-02  { background: url('assets/s-02.webp')  center/cover no-repeat; }
.img-s-03  { background: url('assets/s-03.webp')  center/cover no-repeat; }
.img-s-04  { background: url('assets/s-04.webp')  center/cover no-repeat; }
.img-s-05  { background: url('assets/s-05.webp')  center 20%/cover no-repeat; }

/* When a real image is in place, hide the prompt-code overlay on cards / gallery */
.product-card-image.has-real-image::after,
.pdp-gallery-image.has-real-image::before { display: none; }

/* Wedge vignette real-image overrides
   The :nth-child(n) gradient rules have specificity 0,2,0 which beats the
   individual .img-* classes (0,1,0). These combined selectors match or exceed
   that specificity and come later in the source, so real photos win. */
.vignette.img-ig-07 { background-image: url('assets/ig-07.webp'); background-size: cover; background-position: center; }
.vignette.img-ps-04 { background-image: url('assets/ps-04.webp'); background-size: cover; background-position: center; }
.vignette.img-pm-01 { background-image: url('assets/pm-01.webp'); background-size: cover; background-position: center; }
.vignette.img-b-02  { background-image: url('assets/b-02.webp');  background-size: cover; background-position: center; }

/* =====================================================================
   Page-specific: type-led hero (no image)
   ===================================================================== */

.hero-type {
  background: var(--bone);
  color: var(--carbon);
  padding: 10rem var(--content-pad) var(--space-9);
  text-align: left;
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero-type .container { width: 100%; }
.hero-type .eyebrow { color: var(--smoke); margin-bottom: var(--space-5); }
.hero-type h1 { color: var(--carbon); margin-bottom: var(--space-5); max-width: 16ch; }
.hero-type .lede { color: var(--smoke); max-width: 60ch; margin-bottom: var(--space-6); }

/* =====================================================================
   Page-specific: editorial article body
   ===================================================================== */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-9) var(--content-pad);
}
.article p, .article ul, .article ol {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--carbon);
  margin-bottom: var(--space-5);
  max-width: none;
}
.article h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: var(--space-8) 0 var(--space-4);
  font-variation-settings: "SOFT" 60, "WONK" 0;
}
.article h3 {
  font-size: 1.375rem;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  margin: var(--space-6) 0 var(--space-3);
}
.article ul, .article ol { padding-left: 1.25rem; }
.article li { margin-bottom: var(--space-2); }
.article a { color: var(--saffron); border-bottom: 1px solid var(--saffron); }

/* Pull quote */
.pull-quote {
  margin: var(--space-8) 0;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--carbon);
}
.pull-quote-attr {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--smoke);
  text-transform: uppercase;
}

/* Inline figure */
.figure {
  margin: var(--space-7) 0;
}
.figure-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  margin-bottom: var(--space-3);
}
.figure-image.tall { aspect-ratio: 4 / 5; }
.figure-image.wide { aspect-ratio: 16 / 9; }
.figure-caption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* =====================================================================
   Page-specific: The Loop — step cards
   ===================================================================== */

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding: var(--space-9) 0;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.step-image {
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
}
.step-body { padding: var(--space-5); }
.step-num {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--saffron);
  margin-bottom: var(--space-3);
  font-variant-numeric: tabular-nums;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.step-body p { color: var(--smoke); font-size: 0.9375rem; margin: 0; }

/* =====================================================================
   Page-specific: data tables (Sizing, Loop math)
   ===================================================================== */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--mist);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 500;
}
.data-table td {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
}
.data-table td.size-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-weight: 500;
}

/* =====================================================================
   Page-specific: sizing reference cards
   ===================================================================== */

.size-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1000px) {
  .size-cards { grid-template-columns: 1fr 1fr; }
}
.size-card-image {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--mist);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.size-card-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 500;
  margin-bottom: 4px;
}
.size-card-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
  text-transform: uppercase;
}

/* Pending size card placeholder */
.size-card-pending .size-card-image {
  background: var(--paper);
  border: 1px dashed var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* =====================================================================
   Page-specific: care icons row
   ===================================================================== */

.care-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
@media (max-width: 700px) {
  .care-icons { grid-template-columns: 1fr 1fr; }
}
.care-icon {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.care-icon-glyph {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--carbon);
  display: block;
  margin-bottom: var(--space-2);
}
.care-icon-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
}

/* =====================================================================
   Page-specific: Journal index grid
   ===================================================================== */

.journal-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-7);
  padding: var(--space-7) 0;
  align-items: center;
}
@media (max-width: 800px) {
  .journal-featured { grid-template-columns: 1fr; }
}
.journal-featured-image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
}
.journal-featured-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding: var(--space-6) 0 var(--space-9);
}
@media (max-width: 800px) {
  .journal-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   FAQ accordion (reuse pdp-tab styling but stand-alone)
   ===================================================================== */

.faq {
  border-top: 1px solid var(--mist);
  margin: var(--space-7) 0;
}
.faq details {
  border-bottom: 1px solid var(--mist);
  padding: var(--space-4) 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.125rem;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--smoke);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding-top: var(--space-3);
  color: var(--smoke);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 60ch;
}

/* =====================================================================
   404 layout
   ===================================================================== */

.error-screen {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: var(--space-9) var(--content-pad);
}
.error-screen .container { width: 100%; }
.error-num {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(8rem, 20vw, 16rem);
  line-height: 1;
  color: var(--saffron);
  margin-bottom: var(--space-4);
}

/* =====================================================================
   Utilities
   ===================================================================== */

.text-center { text-align: center; }
.mt-7 { margin-top: var(--space-7); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-5 { margin-bottom: var(--space-5); }
.spacer { height: var(--space-8); }

/* =====================================================================
   Product card — interactive (quick-add on hover)
   ===================================================================== */

.product-card-interactive {
  position: relative;
  text-decoration: none;
  display: flex; flex-direction: column;
}
.product-card-interactive .product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
/* Re-apply product-card styles to the interactive variant */
.product-card-interactive .product-card-image {
  aspect-ratio: 4/5;
  background-color: var(--paper);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card-interactive:hover .product-card-image {
  transform: scale(1.02);
}
.product-card-interactive .product-card-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
  margin-bottom: var(--space-2);
}
.product-card-interactive .product-card-meta {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

/* Quick-add strip (shows below name/price) */
.product-card-quick-add {
  padding-top: var(--space-3);
  border-top: 1px solid var(--mist);
}
.quick-add-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.quick-add-sizes {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
}
.quick-add-size {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--mist);
  padding: 6px 10px;
  background: none;
  cursor: pointer;
  color: var(--carbon);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-transform: uppercase;
}
.quick-add-size:hover { background: var(--carbon); color: var(--paper); border-color: var(--carbon); }
.quick-add-size.quick-add-added { background: var(--saffron); color: var(--paper); border-color: var(--saffron); }

/* Studio makers 3-column image grid */
.studio-makers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-7) 0;
}
@media (max-width: 600px) {
  .studio-makers-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Cart Drawer
   ===================================================================== */

/* Overlay */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 26, 26, 0.5);
  z-index: 900;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

/* Drawer panel */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--mist);
  z-index: 901;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.cart-drawer.open { transform: translateX(0); }

/* Header */
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--mist);
  flex-shrink: 0;
}
.cart-drawer-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--smoke);
}
.cart-close {
  background: none; border: none;
  color: var(--carbon); cursor: pointer;
  padding: 6px; display: flex; align-items: center; justify-content: center;
  opacity: 0.7; transition: opacity 0.15s;
}
.cart-close:hover { opacity: 1; }

/* Items area */
.cart-items {
  flex: 1; overflow-y: auto;
  padding: 0 var(--space-5);
  scroll-behavior: smooth;
}

/* Single cart item */
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr 80px;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--mist);
  align-items: start;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-image-wrap {
  width: 76px; height: 96px;
  background: var(--bone);
  overflow: hidden; flex-shrink: 0;
}
.cart-item-image {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
  line-height: 1.3;
  margin-bottom: var(--space-1);
}
.cart-item-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--smoke);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.cart-preloved-tag { color: var(--indigo); }

.cart-item-controls {
  display: flex; align-items: center; gap: var(--space-4);
}
.cart-item-qty {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--mist);
}
.qty-btn {
  background: none; border: none;
  width: 28px; height: 28px;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--carbon);
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--bone); }
.cart-item-qty span {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  width: 26px; text-align: center;
  border-left: 1px solid var(--mist);
  border-right: 1px solid var(--mist);
  line-height: 26px;
}
.cart-item-remove {
  background: none; border: none;
  color: var(--smoke);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.cart-item-price {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  text-align: right;
  padding-top: 2px;
}

/* Empty state */
.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--space-10) var(--space-6);
  text-align: center; gap: var(--space-4);
  height: 100%;
}
.cart-empty-glyph {
  font-size: 2.5rem;
  color: var(--mist);
  line-height: 1;
}
.cart-empty-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-variation-settings: 'SOFT' 60, 'WONK' 0;
  margin: 0;
}
.cart-empty-sub {
  color: var(--smoke);
  font-size: 0.9375rem;
  margin: 0;
  max-width: 22ch;
}

/* Footer */
.cart-footer {
  border-top: 1px solid var(--mist);
  padding: var(--space-5) var(--space-5) var(--space-6);
  background: var(--paper);
  flex-shrink: 0;
}
.cart-totals { margin-bottom: var(--space-4); }
.cart-total-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: var(--space-1) 0;
  color: var(--smoke);
}
.cart-total-row:last-child { color: var(--carbon); font-weight: 500; }
.cart-free-ship { color: var(--moss); font-weight: 500; }
.cart-free-ship-nudge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--saffron);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.cart-upi-nudge {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
  text-align: center;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}
.cart-checkout-btn {
  display: block; width: 100%; text-align: center;
}

/* Nav bag button */
.nav-bag-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer; padding: 0;
  color: inherit;
}
.nav-bag-btn .bag-label { letter-spacing: 0.1em; }
.bag-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--saffron); color: var(--paper);
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  line-height: 1;
}

/* Add-to-bag success */
@keyframes addSuccessIn {
  from { transform: translateY(4px); opacity: 0.7; }
  to   { transform: translateY(0);   opacity: 1; }
}
.btn-add-success {
  background: var(--carbon) !important;
  border-color: var(--carbon) !important;
  animation: addSuccessIn 0.2s ease-out;
}

/* Size required shake */
@keyframes sizeShake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}
.size-required { animation: sizeShake 0.35s ease; }

/* =====================================================================
   Checkout page
   ===================================================================== */

.checkout-page {
  padding-top: 80px;
  min-height: 100vh;
}
.checkout-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-7) var(--content-pad) var(--space-10);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-9);
  align-items: start;
}
@media (max-width: 960px) {
  .checkout-container {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

/* Breadcrumb */
.checkout-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--smoke);
  display: flex; gap: var(--space-3); align-items: center;
  margin-bottom: var(--space-7);
  text-transform: uppercase;
}
.checkout-breadcrumb a:hover { color: var(--carbon); }
.checkout-breadcrumb .active { color: var(--carbon); font-weight: 500; }

/* Sections */
.checkout-section {
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--mist);
}
.checkout-section:last-of-type { border-bottom: none; }
.checkout-section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
  margin: 0 0 var(--space-5);
}

/* Form fields */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field-full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
}
.optional { text-transform: none; font-style: italic; }
.form-field input,
.form-field select {
  width: 100%;
  padding: 12px var(--space-4);
  border: 1px solid var(--mist);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--carbon);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-field input:focus,
.form-field select:focus { border-color: var(--carbon); }
.form-field input.field-error,
.form-field select.field-error { border-color: var(--saffron); }

.input-prefix-wrap {
  display: flex; align-items: stretch;
  border: 1px solid var(--mist);
  background: var(--paper);
  transition: border-color 0.2s;
}
.input-prefix-wrap:focus-within { border-color: var(--carbon); }
.input-prefix {
  padding: 12px var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--smoke);
  border-right: 1px solid var(--mist);
  white-space: nowrap;
  display: flex; align-items: center;
}
.input-prefix-wrap input {
  border: none; flex: 1;
}
.input-prefix-wrap input:focus { outline: none; }

/* Delivery options */
.delivery-options { display: flex; flex-direction: column; gap: var(--space-3); }
.delivery-option {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--mist);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.delivery-option input[type="radio"] { display: none; }
.delivery-option.active {
  border-color: var(--carbon);
  background: var(--bone);
}
.delivery-option:hover { border-color: var(--smoke); }
.delivery-option-info {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
}
.delivery-name {
  font-weight: 500;
  font-size: 0.9375rem;
}
.delivery-days {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--smoke);
}
.delivery-price {
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

/* Payment methods */
.payment-methods { display: flex; flex-direction: column; gap: var(--space-3); }
.payment-method {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--mist);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.payment-method input[type="radio"] { display: none; }
.payment-method.active {
  border-color: var(--carbon);
  background: var(--bone);
}
.payment-method:hover { border-color: var(--smoke); }
.payment-method-info {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.payment-name { font-weight: 500; font-size: 0.9375rem; }
.payment-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--smoke);
}
.payment-logos {
  display: flex; gap: var(--space-2);
}
.pay-logo {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--mist);
  padding: 2px 6px;
  color: var(--smoke);
}

/* Notes */
.checkout-note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--smoke);
  margin-top: var(--space-4);
  text-transform: uppercase;
}
.upi-note { color: var(--saffron); }

/* Submit row */
.checkout-submit-row { padding-top: var(--space-2); }
.checkout-secure-note {
  display: flex; align-items: center; gap: var(--space-2);
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--smoke);
  text-transform: uppercase;
  margin-top: var(--space-4);
}

/* ── Checkout summary (right column) ── */
.checkout-summary {
  position: sticky;
  top: 100px;
}
.checkout-summary-inner {
  background: var(--bone);
  border: 1px solid var(--mist);
  padding: var(--space-6);
}
.summary-items { margin-bottom: var(--space-5); }

.summary-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--mist);
  align-items: center;
}
.summary-item:last-child { border-bottom: none; }
.summary-item-image-wrap {
  position: relative;
  width: 64px; height: 80px;
  background: var(--paper);
  flex-shrink: 0;
}
.summary-item-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.summary-item-qty {
  position: absolute; top: -8px; right: -8px;
  background: var(--smoke); color: var(--paper);
  width: 20px; height: 20px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  display: flex; align-items: center; justify-content: center;
}
.summary-item-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
  line-height: 1.3;
}
.summary-item-meta {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--smoke);
  text-transform: uppercase;
  margin-top: 2px;
}
.summary-item-price {
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

.summary-totals {
  border-top: 1px solid var(--mist);
  padding-top: var(--space-4);
  margin-bottom: var(--space-5);
}
.summary-total-row {
  display: flex; justify-content: space-between;
  font-size: 0.9375rem;
  padding: var(--space-2) 0;
  color: var(--smoke);
}
.summary-grand-total {
  color: var(--carbon);
  font-weight: 600;
  font-size: 1.0625rem;
  border-top: 1px solid var(--mist);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
}
.summary-discount { color: var(--moss); }

.summary-badges {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-4);
}

/* =====================================================================
   Order Confirmation
   ===================================================================== */

.confirmation-page {
  padding-top: 80px;
  min-height: 100vh;
  padding-bottom: var(--space-10);
}
.confirmation-card {
  max-width: 680px;
  margin: var(--space-8) auto 0;
  padding: var(--space-8) var(--content-pad);
}
.confirmation-glyph {
  font-size: 3rem;
  color: var(--saffron);
  text-align: center;
  margin-bottom: var(--space-5);
  animation: kiteDrift 3s ease-in-out infinite;
}
@keyframes kiteDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(3deg); }
}
.confirmation-heading {
  text-align: center;
  margin-bottom: var(--space-4);
}
.confirmation-sub {
  text-align: center;
  color: var(--smoke);
  max-width: 50ch;
  margin: 0 auto var(--space-7);
  line-height: 1.7;
}

/* Details grid */
.confirmation-details { margin-bottom: var(--space-7); }
.conf-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  background: var(--bone);
  border: 1px solid var(--mist);
  padding: var(--space-6);
}
@media (max-width: 600px) { .conf-detail-grid { grid-template-columns: 1fr; } }
.conf-detail { display: flex; flex-direction: column; gap: var(--space-2); }
.conf-detail-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--smoke);
  text-transform: uppercase;
}
.conf-detail-value {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-variation-settings: 'SOFT' 40, 'WONK' 0;
}

/* Items in confirmation */
.confirmation-items { margin-bottom: var(--space-7); }
.conf-items-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: var(--space-4);
}
.conf-item {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: var(--space-4); align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--mist);
}
.conf-item:last-child { border-bottom: none; }
.conf-item img {
  width: 56px; height: 70px; object-fit: cover;
  background: var(--bone);
}
.conf-item-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
}
.conf-item-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--smoke);
  text-transform: uppercase;
  margin-top: 3px;
}
.conf-item-price {
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

/* Loop CTA */
.confirmation-loop-cta {
  background: var(--indigo);
  color: var(--paper);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
  margin-bottom: var(--space-7);
}
.loop-cta-glyph {
  font-size: 1.5rem;
  opacity: 0.6;
}
.loop-cta-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-variation-settings: 'SOFT' 60, 'WONK' 0;
  margin-bottom: var(--space-2);
  font-weight: 400;
}
.loop-cta-text p {
  font-size: 0.9375rem;
  color: rgba(244,239,230,0.8);
  margin: 0;
  line-height: 1.6;
}
.confirmation-loop-cta .btn-outline {
  border-color: rgba(244,239,230,0.4);
  color: var(--paper);
  align-self: flex-start;
}
.confirmation-loop-cta .btn-outline:hover {
  background: rgba(244,239,230,0.1);
}

/* Action buttons */
.confirmation-actions {
  display: flex; gap: var(--space-4); flex-wrap: wrap;
  justify-content: center;
}
