/* ==========================================================================
   Crownwork — page sections: home, category, product, checkout, order,
   help and search. Every value comes from tokens.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Home
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 64px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-size: var(--cw-size-hero); line-height: 1.02; }
.hero__body {
  font-size: var(--cw-size-lead);
  line-height: 1.55;
  color: var(--cw-text-muted);
  max-width: 520px;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 4px; }
.hero__note { font-size: var(--cw-size-meta); color: var(--cw-text-muted); }
.hero__photo { min-height: 560px; }
/* Photo boxes sized only by min-height: pin the photo so it fills the box
   whatever its shape (a percentage height can't resolve against min-height). */
.hero__photo img,
.category-card__photo img,
.split-feature__photo img { position: absolute; inset: 0; }
.hero__photo.photo--placeholder { padding: 20px; }

@media (max-width: 640px) {
  .hero { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .hero__photo { min-height: 420px; }
}

.band { background: var(--cw-band); padding: 88px 0 96px; }
.band__inner { display: flex; flex-direction: column; gap: 40px; }

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}
.category-card { display: flex; flex-direction: column; gap: 20px; color: var(--cw-text); text-decoration: none; }
.category-card:hover { opacity: 1; }
.category-card__photo { min-height: 380px; }
.category-card__body { display: flex; flex-direction: column; gap: 6px; }
.category-card__title {
  font-family: var(--cw-font-display);
  font-weight: 600;
  font-size: var(--cw-size-h3);
  line-height: 1.15;
}
.category-card__text { color: var(--cw-text-muted); text-wrap: pretty; }
.category-card__cta { font-weight: 600; color: var(--cw-accent); }
.category-card:hover .category-card__cta { text-decoration: underline; text-underline-offset: 4px; }

.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

.dark-band { background: var(--cw-ink); color: var(--cw-text-on-dark); padding: 96px 0; }
.dark-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 64px;
}
.dark-band__col { display: flex; flex-direction: column; gap: 28px; }
.dark-band__title {
  font-family: var(--cw-font-display);
  font-weight: 600;
  font-size: var(--cw-size-h2-dark);
  line-height: 1.1;
  letter-spacing: var(--cw-tracking-h2);
}
.link-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--cw-line-on-dark); }
.link-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-top: 1px solid var(--cw-line-on-dark);
  color: var(--cw-text-on-dark);
  text-decoration: none;
  font-size: var(--cw-size-intro);
}
.link-list__item svg { width: 20px; height: 20px; transition: transform var(--cw-transition); }
.link-list__item:hover { opacity: 1; }
.link-list__item:hover svg { transform: translateX(4px); }

.trust {
  padding-top: 80px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
}
.trust__item { display: flex; flex-direction: column; gap: 6px; }
.trust__title { font-size: var(--cw-size-card-title); font-weight: 600; }
.trust__text { color: var(--cw-text-muted); font-size: var(--cw-size-small); }

/* --------------------------------------------------------------------------
   2. Category page
   -------------------------------------------------------------------------- */
.page { padding-top: 32px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }

.breadcrumb {
  font-size: var(--cw-size-meta);
  color: var(--cw-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: flex; gap: 8px; }
.breadcrumb li + li::before { content: "/"; }
.breadcrumb a { color: var(--cw-text-muted); }
.breadcrumb [aria-current] { color: var(--cw-text); }

.page-intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.page-intro__text { font-size: var(--cw-size-intro); color: var(--cw-text-muted); text-wrap: pretty; }

.listing { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }

.filters { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 28px; }
.filters legend { padding: 0 0 8px; }
.filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.filters__toggle { display: none; }

.filters__panel { display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 860px) {
  .filters { max-width: none; flex-basis: 100%; }
  .filters__panel { display: none; }
  .filters[data-open="true"] .filters__panel { display: flex; }
  .filters__toggle { display: inline-flex; }
}

.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.results__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cw-line);
}
.results__count { font-size: var(--cw-size-small); color: var(--cw-text-muted); }
.sort { display: flex; align-items: center; gap: 10px; font-size: var(--cw-size-small); }
.sort .field__input { min-height: var(--cw-touch); width: auto; background-color: var(--cw-bg); font-size: var(--cw-size-small); }

.empty {
  padding: 48px 32px;
  border-radius: var(--cw-radius-lg);
  background: var(--cw-band);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.empty__title { font-family: var(--cw-font-display); font-weight: 600; font-size: var(--cw-size-panel-title); }

/* --------------------------------------------------------------------------
   3. Product page
   -------------------------------------------------------------------------- */
.product {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: 56px;
  align-items: start;
}

.gallery { display: flex; flex-direction: column; gap: 16px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery__thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--cw-radius);
  border: 1px solid var(--cw-line);
  background-color: var(--tone);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}
.gallery__thumb[aria-current="true"] { border: 2px solid var(--cw-accent); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.buy-box { display: flex; flex-direction: column; gap: 28px; }
.buy-box__head { display: flex; flex-direction: column; gap: 10px; }
.buy-box__title { font-size: var(--cw-size-product-title); line-height: 1.05; }
.buy-box__price { font-size: var(--cw-size-price-lg); font-weight: 600; }
.buy-box__unit { font-size: var(--cw-size-small); font-weight: 400; color: var(--cw-text-muted); }
.buy-box__summary { color: var(--cw-text-muted); max-width: 520px; text-wrap: pretty; }

.option { display: flex; flex-direction: column; gap: 12px; }
.option legend { padding: 0 0 12px; font-size: var(--cw-size-small); }
.option__chosen { font-weight: 400; }
.option__list { display: flex; flex-wrap: wrap; gap: 12px; }

/* Choices are real radio buttons, styled; the input stays focusable. */
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }

.swatch {
  display: block;
  width: var(--cw-touch);
  height: var(--cw-touch);
  border-radius: 50%;
  border: 1px solid var(--cw-line-strong);
  background: var(--swatch);
}
.choice input:checked + .swatch { box-shadow: var(--cw-ring); }
.choice input:focus-visible + .swatch { outline: 2px solid var(--cw-accent); outline-offset: 6px; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: var(--cw-field-height);
  padding: 0 20px;
  border-radius: var(--cw-radius);
  border: 1px solid var(--cw-line-strong);
  background: var(--cw-bg);
  color: var(--cw-text);
  font-weight: 600;
}
.choice input:checked + .pill { border-color: var(--cw-accent); background: var(--cw-accent); color: var(--cw-text-on-dark); }
.choice input:focus-visible + .pill { outline: 2px solid var(--cw-accent); outline-offset: 3px; }
.choice input:disabled + .pill { opacity: 0.45; text-decoration: line-through; cursor: not-allowed; }

.stepper {
  display: flex;
  align-items: center;
  width: max-content;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-radius);
}
.stepper__btn {
  width: var(--cw-field-height);
  height: var(--cw-field-height);
  border: 0;
  background: transparent;
  color: var(--cw-text);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}
.stepper__input {
  width: 48px;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 600;
  color: var(--cw-text);
  -moz-appearance: textfield;
}
.stepper__input::-webkit-inner-spin-button,
.stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.buy-box__cta { display: flex; flex-direction: column; gap: 14px; }
.buy-box__note { font-size: var(--cw-size-meta); color: var(--cw-text-muted); }

.added {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--cw-band);
  border-radius: var(--cw-radius-md);
}
.added__title { font-weight: 600; }
.added__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.accordion { border-top: 1px solid var(--cw-line); }
.accordion details { border-bottom: 1px solid var(--cw-line); }
.accordion summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 22px; font-weight: 400; }
.accordion details[open] summary::after { content: "−"; }
.accordion__body { margin: 0 0 20px; font-size: var(--cw-size-small); color: var(--cw-text-muted); }

.spec { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: var(--cw-size-small); margin: 0 0 20px; }
.spec dt { color: var(--cw-text-muted); }

/* --------------------------------------------------------------------------
   4. Checkout
   -------------------------------------------------------------------------- */
.checkout { padding-top: 40px; padding-bottom: 96px; }
.checkout__layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.checkout__form { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.checkout__title { margin-bottom: 40px; font-family: var(--cw-font-display); font-weight: 600; font-size: var(--cw-size-h2); line-height: 1.1; letter-spacing: var(--cw-tracking-display); }
.checkout__section { display: flex; flex-direction: column; gap: 16px; }
.checkout__section > legend,
.checkout__heading { padding: 0; font-size: var(--cw-size-section); font-weight: 600; }
.checkout__section > legend { margin-bottom: 4px; }

.ship-option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-radius-md);
  background: var(--cw-bg);
  cursor: pointer;
}
.ship-option:has(input:checked) { border-color: var(--cw-accent); background: var(--cw-band); }
.ship-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--cw-accent); flex: none; }
.ship-option__text { display: flex; flex-direction: column; flex: 1; }
.ship-option__name { font-weight: 600; }
.ship-option__note { font-size: var(--cw-size-meta); color: var(--cw-text-muted); }
.ship-option__price { font-weight: 600; }
.ship-options { display: flex; flex-direction: column; gap: 12px; }

.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 12px; }
.pay-methods .pill { width: 100%; min-height: 56px; border-radius: var(--cw-radius-md); }

.pay-panel { padding: 20px; background: var(--cw-band); border-radius: var(--cw-radius-md); display: none; }
.pay-panel p + p { margin-top: 8px; }
.checkout__form:has(#pay-card:checked) [data-pay-panel="card"],
.checkout__form:has(#pay-paypal:checked) [data-pay-panel="paypal"],
.checkout__form:has(#pay-apple_pay:checked) [data-pay-panel="apple_pay"] { display: block; }

.pay-submit { display: none; }
.checkout__form:has(#pay-card:checked) [data-pay-submit="card"],
.checkout__form:has(#pay-paypal:checked) [data-pay-submit="paypal"],
.checkout__form:has(#pay-apple_pay:checked) [data-pay-submit="apple_pay"] { display: inline; }

.checkout__legal { font-size: var(--cw-size-label); color: var(--cw-text-muted); text-align: center; }
.checkout__legal a { color: var(--cw-text-muted); }

.summary {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--cw-band);
  border-radius: var(--cw-radius-lg);
}
@media (max-width: 960px) { .summary { max-width: none; } }
.summary__title { font-family: var(--cw-font-display); font-weight: 600; font-size: var(--cw-size-panel-title); }
.summary__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }

.bag-line { display: flex; gap: 16px; align-items: flex-start; }
.bag-line__photo { width: 72px; height: 88px; flex: none; border-radius: var(--cw-radius); padding: 0; }
.bag-line__body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bag-line__name { font-weight: 600; line-height: 1.3; }
.bag-line__meta { font-size: var(--cw-size-meta); color: var(--cw-text-muted); }
.bag-line__tools { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.bag-line__qty { min-height: 36px; width: auto; padding: 0 32px 0 10px; font-size: var(--cw-size-meta); background-position: right 10px center; }
.bag-line__remove {
  min-height: 36px;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: var(--cw-size-meta);
  color: var(--cw-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bag-line__price { font-weight: 600; }

.totals { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--cw-line-panel); margin: 0; }
.totals__row { display: flex; justify-content: space-between; gap: 16px; }
.totals__row dt { color: var(--cw-text-muted); }
.totals__row--total { align-items: baseline; padding-top: 14px; border-top: 1px solid var(--cw-line-panel); }
.totals__row--total dt { color: var(--cw-text); font-weight: 600; font-size: var(--cw-size-intro); }
.totals__row--total dd { font-weight: 600; font-size: var(--cw-size-price-lg); }
.totals__row--note { font-size: var(--cw-size-meta); margin-top: -6px; }
.summary__note { font-size: var(--cw-size-label); color: var(--cw-text-muted); }

/* --------------------------------------------------------------------------
   5. Order confirmation
   -------------------------------------------------------------------------- */
.confirmation {
  max-width: 560px;
  margin: 48px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  align-items: center;
}
.confirmation__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--cw-accent);
  color: var(--cw-text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirmation__icon--pending { background: var(--cw-band); color: var(--cw-accent); }
.confirmation__icon svg { width: 30px; height: 30px; }
.confirmation__title { font-family: var(--cw-font-display); font-weight: 600; font-size: var(--cw-size-h2); line-height: 1.1; letter-spacing: var(--cw-tracking-display); }
.confirmation__text { color: var(--cw-text-muted); font-size: var(--cw-size-intro); text-wrap: pretty; }
.confirmation__panel {
  width: 100%;
  padding: 20px;
  background: var(--cw-band);
  border-radius: var(--cw-radius-md);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.confirmation__panel .totals { border-top: 0; padding-top: 0; }
.confirmation__items { list-style: none; margin: 0 0 8px; padding: 0 0 14px; border-bottom: 1px solid var(--cw-line-panel); display: flex; flex-direction: column; gap: 6px; font-size: var(--cw-size-small); }
.confirmation__items li { display: flex; justify-content: space-between; gap: 16px; }

/* --------------------------------------------------------------------------
   6. Help and search
   -------------------------------------------------------------------------- */
.prose { max-width: 680px; display: flex; flex-direction: column; gap: 16px; font-size: var(--cw-size-intro); line-height: 1.6; }
.prose p { color: var(--cw-text-muted); }

.search-page__form { display: flex; gap: 8px; max-width: 560px; }

/* --------------------------------------------------------------------------
   9. Page sections built in the dashboard (apps/pages)
   -------------------------------------------------------------------------- */
.band--plain { background: var(--cw-bg); }
.band--dark { background: var(--cw-ink); color: var(--cw-text-on-dark); }
.band--dark .prose p,
.band--dark .category-card__text,
.band--dark .accordion__body { color: var(--cw-text-on-dark); opacity: 0.8; }
.band--dark .accordion,
.band--dark .accordion details { border-color: var(--cw-line-on-dark); }
.band--dark .category-card { color: var(--cw-text-on-dark); }
.page--head { padding-bottom: 0; }
.page--head + .band { padding-top: 40px; }
/* Text right under the page title: no band colour to separate, so keep it close. */
.page--head + .band--plain { padding-top: 16px; }
.page--foot { padding-top: 0; padding-bottom: 72px; font-size: var(--cw-size-small); }

.text-block { max-width: 760px; gap: 24px; }
/* Text-only pages: breadcrumb and title sit in the text's centred column. */
.page--reading { max-width: 760px; }
.prose h2 {
  font-family: var(--cw-font-display);
  font-weight: 600;
  font-size: var(--cw-size-section);
  line-height: 1.2;
  margin-top: 16px;
}
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; color: var(--cw-text-muted); }
.prose a { color: var(--cw-accent); text-decoration: underline; text-underline-offset: 3px; }
.hero__body p + p { margin-top: 12px; }

.split-feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}
.split-feature__photo { min-height: 460px; }
.split-feature__copy { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .split-feature--flip .split-feature__photo { order: 2; } }

.cta-band { padding: 72px 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band__copy { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.cta-band__body { opacity: 0.8; }

.faq summary { min-height: 64px; }


.draft-bar {
  background: var(--cw-accent);
  color: var(--cw-text-on-dark);
  text-align: center;
  padding: 10px 16px;
  font-size: var(--cw-size-meta);
  font-weight: 600;
}
.edit-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cw-ink);
  color: var(--cw-text-on-dark);
  font-weight: 600;
  font-size: var(--cw-size-meta);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(34, 16, 43, 0.25);
}
.edit-fab:hover { background: var(--cw-ink-hover); color: var(--cw-text-on-dark); }

/* ── Account: sign in, register, my account ── */
.account { padding-block: 40px 72px; display: flex; flex-direction: column; gap: 20px; }
.account--narrow { max-width: 480px; margin-inline: auto; }
.account__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.account__title { margin: 0; font-family: var(--cw-font-display); font-size: clamp(28px, 4vw, 36px); }
.account__lead { margin: 0; color: var(--cw-text-muted); }
.account__panel { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--cw-line); border-radius: 14px; background: var(--cw-white); }
.account__heading { margin: 0; font-size: 18px; }
.account__note { margin: 0; font-size: 14px; color: var(--cw-text-muted); }
.account__message { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fbe9ec; color: var(--cw-error); font-size: 14px; }
.account__foot { margin: 0; text-align: center; font-size: 15px; }
.account__or { display: flex; align-items: center; gap: 12px; color: var(--cw-text-muted); font-size: 14px; }
.account__or::before, .account__or::after { content: ""; flex: 1; height: 1px; background: var(--cw-line); }
.account__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; }
.account__panel--wide { grid-column: 1 / -1; }
.account__order { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 12px 0; border-top: 1px solid var(--cw-line); color: inherit; text-decoration: none; }
.account__order:hover strong { text-decoration: underline; }
.account__passkey { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--cw-line); }
.account__passkey-name { display: flex; gap: 8px; }
.account__passkey-name .field__input { flex: 1; }

/* ── Shipping prices section ── */
.rates { margin: 24px 0 0; display: flex; flex-direction: column; border-top: 1px solid var(--cw-line); }
.rates__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--cw-line); }
.rates__row dt { display: flex; flex-direction: column; gap: 2px; }
.rates__row dt span { color: var(--cw-text-muted); font-size: 14px; }
.rates__row dd { margin: 0; font-weight: 600; white-space: nowrap; }
.rates__countries { margin: 16px 0 0; color: var(--cw-text-muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   10. Phones
   Most customers shop from a phone: tighter bands, two products per row,
   the bag first at checkout, and the buy button always within reach.
   -------------------------------------------------------------------------- */
.buy-bar { display: none; }

@media (max-width: 640px) {
  .band { padding: 56px 0 64px; }
  .band__inner { gap: 28px; }
  .page--head + .band { padding-top: 28px; }
  .page--head + .band--plain { padding-top: 8px; }
  .section { padding-top: 56px; padding-bottom: 56px; gap: 28px; }
  .dark-band { padding: 56px 0; }
  .dark-band__grid { gap: 48px; }
  .dark-band__col { gap: 20px; }
  .trust { padding-top: 48px; padding-bottom: 48px; gap: 24px; }
  .cta-band { padding: 56px 0; }
  .hero__photo { min-height: 380px; }
  .category-cards { gap: 32px; }
  .category-card { gap: 14px; }
  .category-card__photo { min-height: 260px; }
  .split-feature { gap: 28px; }
  .split-feature__photo { min-height: 320px; }

  .product-grid,
  .product-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .product-card { gap: 10px; }
  .product-card__name { font-size: var(--cw-size-small); }
  .product-card__meta { font-size: var(--cw-size-label); }
  .product-card__price { font-size: var(--cw-size-small); margin-top: 2px; }
  .product-card .photo--placeholder { padding: 8px; }
  .product-card .photo__tag { font-size: 10px; padding: 4px 6px; }

  .page { padding-top: 20px; padding-bottom: 64px; gap: 24px; }
  /* The current page is the title right below: the trail only needs the way back. */
  .breadcrumb li:last-child:not(:first-child) { display: none; }
  .empty { padding: 32px 20px; }
  .results__bar { padding-bottom: 12px; }
  .sort .field__input { font-size: var(--cw-size-body); }

  .product { gap: 28px; }
  .buy-box { gap: 24px; }
  .gallery__thumbs { gap: 8px; }
  .spec { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }

  .checkout { padding-top: 24px; padding-bottom: 64px; }
  .checkout__title { margin-bottom: 20px; }
  .checkout__layout { gap: 32px; }
  .checkout__form { gap: 32px; }
  /* See what you're paying for before filling in the address. */
  .summary { order: -1; flex-basis: 100%; padding: 20px; gap: 16px; }
  .field-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid--3 > :nth-child(3):last-child { grid-column: 1 / -1; }
  .pay-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pay-methods .pill { min-width: 0; padding: 0 8px; }
  .bag-line__qty { font-size: var(--cw-size-body); min-height: 40px; }
  .bag-line__remove { min-height: 40px; }

  .confirmation { margin: 24px auto; }
  .account { padding-block: 24px 56px; }
  .account__panel { padding: 18px; }
  .edit-fab { right: 16px; bottom: 16px; }

  /* Sticky buy bar on the product page (site.js shows it while the real
     button is off screen). */
  .buy-bar:not([hidden]) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px var(--cw-gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--cw-bg);
    border-top: 1px solid var(--cw-line);
    box-shadow: 0 -8px 24px rgb(34 16 43 / 0.08);
  }
  .buy-bar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .buy-bar__name { font-size: var(--cw-size-label); color: var(--cw-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar__price { font-weight: 600; }
  .buy-bar .btn { min-height: 48px; padding-left: 20px; padding-right: 20px; flex: none; }
  body:has(.buy-bar:not([hidden])) { padding-bottom: 72px; }
  body:has(.buy-bar:not([hidden])) .edit-fab { bottom: 88px; }
}
