/* Quiet Cross store — plain static CSS, no build step. */
:root {
  --bg: #f3efe6;
  --bg-raised: #faf7f1;
  --photo-bg: #faf7f1; /* = --bg-raised; product photo backdrops are baked to this color */
  --bg-dark: #1c1a16;
  --ink: #1c1a16;
  --ink-soft: #5a564c;
  --line: #d4cdc0;
  --accent: #4a4a32;
  --accent-soft: #656344;
  --draft: #8a3b1e;
  --ok: #2f4a32;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow: 0 18px 40px rgba(28, 26, 22, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, .brand-word {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 38em; }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Pledge banner + header stick together at the top, banner above the nav. */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 50;
}
.giving-banner {
  background: var(--ink);
  color: var(--bg-raised);
  text-align: center;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.9vw, 1.08rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.giving-banner p {
  margin: 0 auto;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
/* Header */
.site-header {
  position: relative;
  background: rgba(243, 239, 230, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.logo {
  display: flex; align-items: center; gap: 0.65rem;
  color: inherit; text-decoration: none; flex-shrink: 0;
}
.logo svg { width: 14px; height: 21px; color: var(--accent); }
.logo-word {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.nav {
  display: flex; align-items: center; gap: 0.2rem 1.15rem;
  flex-wrap: wrap; justify-content: flex-end;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--ink); color: var(--bg-raised) !important;
  text-decoration: none !important;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--accent); }
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  padding: 0.35rem 0.6rem; font: inherit; cursor: pointer;
}

/* Hero */
.hero { padding: 3.6rem 0 3rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.hero-giving {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 1.15rem 0 0;
  max-width: 18em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg-raised);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg-raised); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg-raised); }
.btn[disabled], .btn.is-disabled {
  opacity: 0.55; cursor: not-allowed;
}

/* Mockup */
.mockup-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: var(--shadow);
}
.mockup-stage {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.4rem 1.1rem 0.2rem;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.7), transparent 60%),
    var(--bg);
}
.mockup-card { min-width: 0; }
.mockup-stage { min-width: 0; }
.mockup-stage svg { width: min(320px, 100%); max-width: 100%; height: auto; min-width: 0; flex: 0 1 auto; }
.mockup-stage:has(.product-photo) {
  padding: 0;
  background: var(--photo-bg);
  min-height: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.mockup-stage:has(.product-photo) picture {
  display: block;
  width: 100%;
  height: 100%;
}
.product-photo {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  margin: 0 auto;
  background: var(--photo-bg);
}
.mockup-caption {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}
.swatches {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin: 1rem 0 0;
  justify-content: center;
}
.swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(28,26,22,0.25);
  padding: 0;
  cursor: pointer;
  background: var(--swatch);
  box-shadow: inset 0 0 0 2px var(--bg-raised);
}
.swatch[aria-pressed="true"], .swatch:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.color-name {
  text-align: center;
  font-size: 0.9rem;
  margin: 0.65rem 0 0;
}

/* Sections */
section { padding: 3rem 0; }
.section-rule { border-top: 1px solid var(--line); }
.mission-line {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
  max-width: 22em;
  margin: 0 auto;
  line-height: 1.35;
}
.center { text-align: center; }
.muted { color: var(--ink-soft); }

.product-grid, .bundle-grid, .page-grid {
  display: grid;
  gap: 1.4rem;
}
.product-grid { grid-template-columns: repeat(3, 1fr); }
.bundle-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 1.4rem;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1.15rem;
}
.product-card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
}
.product-card h2, .product-card h3, .product-card .product-card-btn {
  position: relative;
  z-index: 2;
}
.product-card .swatches,
.product-card .color-name {
  position: relative;
  z-index: 2;
}
.product-card .swatches { margin-top: 0.7rem; }
.product-card .color-name { margin: 0.4rem 0 0.75rem; }
.product-card .card-price,
.product-card .kit-card-save,
.product-card .muted {
  position: relative;
  z-index: 2;
}
.card-price {
  margin: 0.15rem 0 0;
  font-size: 1.02rem;
  font-weight: 600;
}
.kit-card-save {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.product-card .muted { margin: 0.2rem 0 0; }
.product-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover,
.product-card:focus-within {
  border-color: #c4bcae;
  box-shadow: 0 10px 28px rgba(28, 26, 22, 0.1);
}
.product-card-hit:focus { outline: none; }
.product-card-hit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.product-card-btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}
.product-card p:last-of-type { margin-bottom: 0.85rem; }
.product-grid .card-photo,
.product-grid .product-photo {
  width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  background: var(--photo-bg);
  margin: 0;
}
.product-grid .mockup-stage:has(.product-photo) {
  min-height: 0;
  background: var(--photo-bg);
  margin: 0 0 0.7rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.product-grid .mockup-stage:has(.product-photo) picture {
  display: block;
  width: 100%;
  height: 100%;
}
.product-grid picture:has(.card-photo) {
  display: block;
  width: 100%;
}
.product-grid .mockup-stage { min-height: 0; padding: 0; }
.product-grid .card h2 { font-size: 1.25rem; margin: 0 0 0.25em; }
.product-grid .card .muted { font-size: 0.88rem; margin-bottom: 0.35rem; }

.card h3 { margin-top: 0; }
.price {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0.2em 0 0.15em;
}
.price-note, .placeholder-flag, .draft-flag {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.placeholder-flag { color: var(--accent); }
.draft-flag {
  display: inline-block;
  color: var(--draft);
  border: 1px solid var(--draft);
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.8rem;
}

/* Product page layout */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: start;
  padding: 2.4rem 0 3rem;
}
.facts { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.facts li {
  display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0;
  font-size: 0.95rem;
}
.facts li span:first-child { color: var(--ink-soft); flex-shrink: 0; }
.facts li span:last-child { text-align: right; min-width: 0; overflow-wrap: break-word; }

/* Forms */
.form {
  display: grid; gap: 0.85rem;
  margin-top: 1rem;
}
label { display: grid; gap: 0.3rem; font-size: 0.92rem; }
input, select, textarea {
  font: inherit;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-status {
  display: none;
  padding: 0.9rem 1rem;
  border: 1px solid var(--accent);
  background: #eeeee4;
  color: var(--ink);
}
.form-status.is-visible { display: block; }
.preorder-notice {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--accent);
  background: #eeeee4;
  color: var(--ink);
}
.form-terms {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
}
.tiny { font-size: 0.82rem; color: var(--ink-soft); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--bg-raised); }
th, td { padding: 0.65rem 0.8rem; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: #ece7dc; }
caption { text-align: left; font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--ink-soft); }

/* About / policy */
.prose { max-width: 42em; }
.prose h2 { margin-top: 1.6em; }
.source-list { font-size: 0.88rem; color: var(--ink-soft); }
.source-list a { overflow-wrap: break-word; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.8rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: var(--ink); margin-bottom: 0.6rem; }
.footer-brand svg { width: 12px; height: 18px; color: var(--accent); }
.footer-links { display: grid; gap: 0.35rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-giving {
  margin-top: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  max-width: 28em;
  line-height: 1.4;
}
.footer-giving a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.footer-giving a:hover { color: var(--ink); }
.giving-bundles {
  max-width: 42em;
  margin: 0 0 1.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.card-giving, .product-giving {
  font-weight: 600;
  color: var(--ink);
  margin: 0.7rem 0 0.55rem;
  font-size: 1.02rem;
  line-height: 1.4;
}
.giving-lead {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.qty-giving-line {
  font-weight: 600;
  color: var(--ink);
  margin: 0.85rem 0 0.55rem;
  font-size: 1rem;
  line-height: 1.35;
}
.giving-bundles a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.giving-bundles a:hover { color: var(--ink); }

/* Quantity pricing */
.pricing-tools {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem 2rem;
  align-items: start;
  margin: 0.4rem 0 1.2rem;
}
.price-table caption {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.qty-calc {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem 1.2rem;
}
.qty-calc h3 { margin-bottom: 0.7rem; }
.qty-line { margin-bottom: 0.65rem; }
.qty-line label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  margin-bottom: 0.6rem;
}
.qty-stepper button {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--ink);
  background: var(--bg-raised);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.qty-stepper button:hover:not(:disabled) { background: var(--ink); color: var(--bg-raised); }
.qty-stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.qty-stepper input[type="number"] {
  width: 5.5rem;
  height: 2.4rem;
  text-align: center;
  font: inherit;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.qty-calc-status {
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--draft);
  margin: 0 0 0.6rem;
}
.qty-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem;
  margin: 0 0 0.8rem;
}
.qty-results div { margin: 0; }
.qty-results dt {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.15rem;
}
.qty-results dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 860px) {
  .hero-grid, .product-layout, .product-grid, .bundle-grid, .footer-inner, .form-row, .pricing-tools, .qty-results {
    grid-template-columns: 1fr;
  }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .nav.is-open { display: flex; }
  .hero { padding: 2.2rem 0 1.6rem; }
  section { padding: 2.2rem 0; }
  .mockup-stage { min-height: 300px; }
  .mockup-stage:has(.product-photo) { min-height: 0; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .header-inner { min-height: 3.7rem; }
}

/* Product photo on home cards */
.card-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--photo-bg); margin: 0 0 0.9rem; }


/* Cart badge in the nav */
.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  background: var(--ink);
  color: var(--bg-raised);
  font-size: 0.72rem;
  letter-spacing: 0;
  line-height: 1;
}
.cart-badge[hidden] { display: none; }

/* Product-page add-to-cart builder */
.builder {
  display: grid;
  gap: 1.15rem;
}
.builder-intro { max-width: 40em; }
.builder-block h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.55rem;
}
.builder-size h3 { letter-spacing: 0.12em; }
.builder-size { max-width: 22rem; }
.builder-size .size-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
.builder-size select {
  /* Longest current option is XXL; lock the width so the Size chart link
     does not shift when the selection changes (incl. iOS Safari / Chrome).
     field-sizing: content was sizing to the selected value. */
  width: 5.75rem;
  min-width: 5.75rem;
  max-width: 5.75rem;
  padding: 0.5rem 1.6rem 0.5rem 0.55rem;
  field-sizing: fixed;
}
.builder-size .tiny { margin: 0; }
.qty-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.qty-presets button {
  font: inherit;
  min-width: 3rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--ink);
  background: var(--bg-raised);
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 0.04em;
}
.qty-presets button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg-raised);
}
.qty-presets .qty-custom {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.9rem;
}
.qty-presets .qty-custom[hidden] { display: none; }
.qty-presets .qty-custom input {
  width: 5.5rem;
  padding: 0.5rem 0.55rem;
}
.buy-live-price {
  margin: 0;
  font-size: 0.95rem;
  white-space: nowrap;
}
.builder-split {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.builder-split.is-ok { border-color: var(--ok); }
.builder-split.is-short { border-color: var(--accent); }
.builder-split.is-mismatch {
  border-color: var(--draft);
  color: var(--ink);
  background: #f6ece6;
}
.color-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
@media (min-width: 560px) {
  .color-boxes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .color-boxes { grid-template-columns: 1fr 1fr 1fr; }
}
.color-box {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.45rem 0.7rem;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 0.55rem 0.65rem;
  min-width: 0;
}
.color-box.is-filled { border-color: var(--accent); }
.color-box-swatch {
  width: 36px;
  height: 36px;
  background: var(--swatch);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.color-box-body { min-width: 0; display: grid; gap: 0.3rem; }
.color-box-name {
  font-size: 0.95rem;
  margin: 0;
  min-width: 0;
}
.color-box .qty-stepper {
  justify-content: flex-start;
  margin: 0;
  flex-wrap: nowrap;
}
.color-box .qty-stepper button {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 2.2rem;
}
.color-box .qty-stepper input[type="number"] {
  width: 3.25rem;
  height: 2.2rem;
  flex: 0 0 3.25rem;
}
.builder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.1rem;
}
.builder-status { margin: 0; min-height: 1.3em; }
.builder-status.is-error { color: var(--draft); }

/* Cart page */
.cart-list { display: grid; gap: 0.8rem; margin: 1rem 0 1.4rem; }
.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0.8rem 1rem;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 0.7rem;
}
.cart-line-photo {
  width: 80px;
  height: 106px;
  object-fit: cover;
  background: var(--photo-bg);
}
.cart-line h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  letter-spacing: 0;
  margin: 0 0 0.15rem;
}
.cart-line-meta { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.cart-line-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  justify-content: flex-end;
}
.cart-line-controls .qty-stepper { margin: 0; }
.cart-line-kit {
  grid-template-columns: 1fr auto;
}
.cart-line-kit .kit-size-label,
.kit-size-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.cart-line-kit .kit-size-label select,
.kit-size-label select {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.4rem 1.6rem 0.4rem 0.5rem;
  width: 5.75rem;
  min-width: 5.75rem;
  max-width: 5.75rem;
  field-sizing: fixed;
}
.cart-remove {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cart-remove:hover { color: var(--ink); }
.cart-empty { margin: 1rem 0 1.4rem; }
.cart-totals {
  display: grid;
  gap: 0.35rem 1.5rem;
  margin: 0 0 1.2rem;
  max-width: 28rem;
}
.cart-totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.45rem 0;
}
.cart-totals dt { color: var(--ink-soft); margin: 0; }
.cart-totals dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
}
.cart-totals .cart-total-main dd { font-size: 1.2rem; }
.cart-totals .cart-autokit { align-items: center; flex-wrap: wrap; }
.cart-totals .cart-autokit dd { font-family: inherit; font-weight: 600; }
.cart-totals .cart-total-main .buy-price-was { font-size: 0.95rem; }
@media (max-width: 860px) {
  .cart-line {
    grid-template-columns: 72px 1fr;
  }
  .cart-line-controls { justify-content: flex-start; grid-column: 1 / -1; }
}

/* PDP buy box (in the column beside the photo) */
.buy-column { min-width: 0; }
.buy-box { margin-top: 0.2rem; }
.buy-box.builder { gap: 0.85rem; }
.buy-box .builder-block h3 { margin: 0 0 0.35rem; }

/* Live unit/total sits on its own line under the quantity presets. */
.buy-box .buy-live-price {
  flex: 1 0 100%;
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: normal;
  color: var(--ink);
}
.buy-box .buy-price-note {
  flex: 1 0 100%;
  margin: 0.2rem 0 0;
}
.buy-box .buy-price-note[hidden],
.buy-box .buy-tier-bar[hidden] { display: none; }

/* Compact cart-discount callout under the quantity presets. */
.buy-box .buy-live-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28rem 0.55rem;
  font-weight: 500;
}
.buy-price-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg-raised);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
  white-space: nowrap;
}
.buy-price-compare {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.28rem 0.4rem;
  font-weight: 600;
}
.buy-price-was {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--ink-soft);
}
.buy-price-now { font-weight: 700; }
.buy-price-each { font-weight: 600; }
.buy-price-next {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.buy-tier-bar {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  max-width: 13.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.buy-tier-mark.is-reached { color: var(--ink); }
.buy-tier-mark.is-now { color: var(--ink); font-weight: 700; }
.buy-tier-track {
  flex: 1 1 auto;
  height: 2px;
  background: var(--line);
  min-width: 1.4rem;
}
.buy-tier-track > i {
  display: block;
  height: 100%;
  background: var(--ink);
}

.price-line-cart { color: var(--ink-soft); }

/* Placement status: a quiet line under the color rows, above Add to cart. */
.buy-box .builder-split {
  margin: 0.65rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.buy-box .builder-split.is-ok { color: var(--ok); border: 0; }
.buy-box .builder-split.is-short { color: var(--ink-soft); border: 0; }
.buy-box .builder-split.is-mismatch {
  color: var(--draft);
  background: transparent;
  border: 0;
}

/* One swatch row per color: swatch, name, compact stepper. */
.buy-box .color-boxes {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.buy-box .color-box {
  display: grid;
  grid-template-columns: 1.15rem 1fr auto;
  gap: 0.55rem 0.7rem;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.4rem 0;
  min-width: 0;
}
.buy-box .color-box.is-filled { border-color: var(--line); }
.buy-box .color-box.is-filled .color-box-name { font-weight: 600; }
.buy-box .color-box-swatch {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid rgba(28, 24, 20, 0.2);
}
.buy-box .color-box-name {
  font-size: 0.95rem;
  margin: 0;
  min-width: 0;
}
.buy-box .color-box .qty-stepper {
  justify-content: flex-end;
  margin: 0;
  flex-wrap: nowrap;
}
.buy-box .color-box .qty-stepper button {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  padding: 0;
  line-height: 1;
}
.buy-box .color-box .qty-stepper input[type="number"] {
  width: 2.7rem;
  height: 2rem;
  flex: 0 0 2.7rem;
  padding: 0;
  line-height: 2rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.buy-box .builder-actions {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.1rem;
}
.buy-box [data-add-to-cart] {
  width: 100%;
  padding: 0.95rem 1.15rem;
}
.buy-box [data-add-to-cart][disabled],
.buy-box [data-add-to-cart].is-disabled {
  opacity: 1;
  background: #ddd8ce;
  border-color: #cfc9be;
  color: #6f6a62;
  cursor: not-allowed;
}
.buy-box [data-add-to-cart][disabled]:hover,
.buy-box [data-add-to-cart].is-disabled:hover {
  background: #ddd8ce;
  border-color: #cfc9be;
  color: #6f6a62;
}
.buy-add-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.buy-add-hint[hidden] { display: none; }
.buy-confirm {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ok);
  background: #eef2ee;
}
.buy-confirm[hidden] { display: none; }
.buy-confirm p { margin: 0; }
.buy-confirm-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.cart-to-checkout { margin: 0 0 1.2rem; }
.shop-card-title a { color: inherit; text-decoration: none; }
.shop-card-title a:hover { text-decoration: underline; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }

.price-line { margin: 0 0 0.25rem; font-size: 1.05rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }

/* Products list: keep the three cards on one 1280 desktop screen */
.product-list { padding: 1.6rem 0 2.2rem; }
.product-list h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin: 0 0 0.4em; }
.product-list .lede { margin-bottom: 1.3rem; }
.product-list .product-grid { margin-top: 0; }

/* Quick kits on the Shop page */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.2rem;
}
.kit-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.kit-card h3 {
  margin: 0;
  font-size: 1.2rem;
}
.kit-blurb, .kit-save, .kit-card .tiny { margin: 0; }
.kit-price {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.kit-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.kit-swatch {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--swatch);
  padding: 0;
  cursor: pointer;
}
.kit-swatch[aria-pressed="true"],
.kit-swatch:focus-visible {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.kit-field-label { margin: 0.2rem 0 0; font-size: 0.92rem; }
.kit-color-name { color: var(--ink-soft); }
.kit-card .btn { margin-top: 0.25rem; justify-self: start; }
@media (max-width: 860px) {
  .kit-grid { grid-template-columns: 1fr; }
  .cart-line-kit { grid-template-columns: 1fr; }
}

/* Kit product page: one color/size block per product in the kit. */
.kit-group {
  padding-bottom: 0.4rem;
}
.kit-group + .kit-group {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.kit-group .size-row {
  margin: 0 0 0.55rem;
}
.kit-group .builder-split {
  margin-top: 0.55rem;
}

