/* Hallmark · component: showcase product card · genre: editorial · theme: Industrial Artisan
 * states: default · hover · focus · active · visited
 * pre-emit critique: P5 H5 E5 S5 R5 V4 · contrast: pass (40–41)
 */
/* Hallmark · macrostructure: equal-weight collection gateway and shelves · genre: industrial artisan · tone: technical · anchor hue: electric blue
 * contrast: pass (40–41) · nav: preserved PM3D · footer: preserved PM3D · slop: pass (42–49) · mobile: pass (34, 49–57)
 */
.flash-message {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  background: #dde1ff;
  color: #001257;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.flash-message.alert {
  background: #ffdad6;
  color: #93000a;
}

.local-catalog-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid var(--accent-orange);
  border-top: 0;
  background: #fff6e8;
  color: #111a2b;
  font: 600 11px/1.45 var(--font-mono);
}

.local-catalog-notice strong {
  color: #a83c00;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.catalog-local-notice {
  margin-top: 16px;
  border-top: 1px solid var(--accent-orange);
}

.home-showcase {
  padding-block: var(--home-space-16);
  border-top: var(--home-rule-hair) solid var(--home-color-rule-strong);
  background: var(--home-color-surface-cool);
}

.home-showcase__header {
  max-width: 760px;
  margin-bottom: var(--space-6);
}

.home-showcase__eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--home-color-accent);
  font: 800 12px/1.2 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-showcase__header h2 {
  margin: 0;
  color: var(--home-color-ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 48px);
  font-style: normal;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.home-showcase__header p {
  max-width: 62ch;
  margin: var(--space-4) 0 0;
  color: var(--home-color-ink-soft);
  font-size: var(--text-base);
  line-height: 1.6;
}

.home-showcase__products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

.home-showcase-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: clip;
  border: var(--home-rule-hair) solid var(--home-color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--home-color-surface);
  color: var(--home-color-ink);
  text-decoration: none;
  transition: border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.home-showcase-product:hover {
  border-color: var(--home-color-accent);
  transform: translateY(-2px);
}

.home-showcase-product:active {
  transform: translateY(0);
}

.home-showcase-product:focus-visible {
  outline: 3px solid var(--home-color-signal);
  outline-offset: 3px;
}

.home-showcase-product__media {
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: clip;
  border-bottom: var(--home-rule-hair) solid var(--home-color-rule-strong);
  background: var(--home-color-surface-cool);
}

.home-showcase-product__media--2,
.home-showcase-product__media--3 {
  grid-template-columns: minmax(0, 2fr) minmax(96px, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.home-showcase-product__image {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: clip;
}

.home-showcase-product__image--primary {
  grid-row: 1 / -1;
}

.home-showcase-product__media--2 .home-showcase-product__image--secondary {
  grid-row: 1 / -1;
}

.home-showcase-product__image--secondary {
  border-left: var(--home-rule-hair) solid var(--home-color-rule-strong);
}

.home-showcase-product__image--secondary + .home-showcase-product__image--secondary {
  border-top: var(--home-rule-hair) solid var(--home-color-rule-strong);
}

.home-showcase-product__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-showcase-product__fallback {
  display: grid;
  place-items: center;
  color: var(--home-color-accent);
  font: 800 12px/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-showcase-product__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.home-showcase-product__body > span:first-child {
  color: var(--home-color-ink-soft);
  font: 700 12px/1.3 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.home-showcase-product__body h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.1;
  letter-spacing: -.025em;
}

/* Price and dispatch mirror the product card commercial block. */
.home-showcase-product__price {
  color: var(--theme-text-strong);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.home-showcase-product__price small {
  color: var(--theme-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.home-showcase-product__price > small:first-child {
  margin-right: 3px;
  text-transform: uppercase;
}

.home-showcase-product__tax {
  margin-left: 6px;
}

.home-showcase-product__dispatch {
  color: var(--theme-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-showcase-product__cta {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid color-mix(in oklab, var(--theme-action-text), transparent 72%);
  border-radius: var(--radius-sm);
  background: var(--theme-action);
  color: var(--theme-action-text);
  font: 800 12px/1 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out);
}

.home-showcase-product__cta-arrow {
  display: inline-block;
  transition: transform var(--dur-micro) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .home-showcase-product:hover .home-showcase-product__cta {
    background: var(--theme-action-hover);
  }

  .home-showcase-product:hover .home-showcase-product__cta-arrow {
    transform: translateX(3px);
  }
}

.home-showcase-product:active .home-showcase-product__cta {
  background: var(--theme-action-active);
}

@media (min-width: 48rem) {
  .home-showcase__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Four-up on desktop keeps the showcase to roughly one row; the lead image carries each tile. */
@media (min-width: 64rem) {
  .home-showcase__products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .home-showcase-product__media,
  .home-showcase-product__media--2,
  .home-showcase-product__media--3 {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .home-showcase-product__image--secondary {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-showcase-product,
  .home-showcase-product__cta,
  .home-showcase-product__cta-arrow {
    transition: none;
  }
}

.policy-draft-banner {
  margin-block: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 2px solid #9a6700;
  border-radius: var(--radius-md);
  background: #fff8c5;
  color: #3f2d00;
}

.policy-draft-banner strong {
  display: block;
  font-size: 1.05rem;
}

.policy-draft-banner p {
  margin: var(--space-2) 0 0;
}

.home-collection-gateway,
.home-collection-shelf {
  background: var(--home-color-surface);
  scroll-margin-top: var(--home-space-18);
}

.home-collection-gateway {
  padding-block: var(--home-space-16) var(--home-space-18);
}

.home-collection-heading,
.home-collection-shelf__header {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: var(--home-rule-hair) solid var(--home-color-rule);
}

.home-collection-heading h2,
.home-collection-shelf__header h2 {
  min-width: 0;
  margin: 0 0 var(--space-2);
  overflow-wrap: anywhere;
  color: var(--home-color-ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 48px);
  font-style: normal;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.home-collection-heading p,
.home-collection-shelf__header p {
  max-width: 62ch;
  margin: 0;
  color: var(--home-color-ink-soft);
  font-size: var(--text-base);
  line-height: 1.6;
  text-wrap: pretty;
}

.home-collection-heading .collection-text-link,
.home-collection-shelf__header .collection-text-link {
  flex: 0 0 auto;
  min-height: 44px;
  align-content: center;
  white-space: nowrap;
}

.home-collection-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.home-collection-item {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: clip;
  border: var(--home-rule-hair) solid var(--home-color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--home-color-surface);
  color: var(--home-color-ink);
  text-decoration: none;
  transition: border-color var(--dur-micro) var(--ease-out);
}

.home-collection-item:hover {
  border-color: var(--home-color-accent);
}

.home-collection-item:active {
  border-color: var(--home-color-accent-hover);
}

.home-collection-item:focus-visible {
  outline: 3px solid var(--home-color-signal);
  outline-offset: 3px;
}

.home-collection-item__media {
  position: relative;
  display: grid;
  min-width: 0;
  margin: 0;
  overflow: clip;
  aspect-ratio: 4 / 3;
  border-bottom: var(--home-rule-hair) solid var(--home-color-rule-strong);
  background: var(--home-color-surface-cool);
  gap: var(--home-rule-hair);
}

.home-collection-item__media--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-collection-item__media--3 {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.home-collection-item__media--3 img:first-child {
  grid-row: 1 / -1;
}

.home-collection-item__media--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.home-collection-item__media img {
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-collection-item__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: var(--space-6);
  color: var(--home-color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.home-collection-item__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: var(--space-5);
}

.home-collection-item h3 {
  min-width: 0;
  margin: 0 0 var(--space-2);
  overflow-wrap: anywhere;
  color: var(--home-color-ink);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.home-collection-item p {
  display: -webkit-box;
  max-width: 56ch;
  margin: 0 0 var(--space-5);
  overflow: hidden;
  color: var(--home-color-ink-soft);
  font-size: var(--text-base);
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-collection-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: var(--home-rule-hair) solid var(--home-color-rule);
  color: var(--home-color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.home-collection-item__arrow {
  font-size: var(--text-base);
  line-height: 1;
  white-space: nowrap;
}

.home-collection-shelf {
  padding-block: var(--home-space-16);
  border-top: var(--home-rule-hair) solid var(--home-color-rule-strong);
}

.home-collection-shelf:nth-of-type(even) {
  background: var(--home-color-surface-cool);
}

.home-collection-shelf__products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

@media (min-width: 30rem) {
  .home-collection-shelf__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .home-collection-heading,
  .home-collection-shelf__header {
    align-items: flex-end;
    flex-direction: row;
  }

  .home-collection-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-collection-index--1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-collection-index--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 68.75rem) {
  .home-collection-gateway {
    padding-block: var(--home-space-18) var(--home-space-24);
  }

  .home-collection-index--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-collection-shelf__products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-collection-item {
    transition: none;
  }
}

/* Truthful ecommerce product card contract. */
.product-card {
  min-width: 0;
  height: 100%;
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  background: var(--theme-surface);
  color: var(--theme-text);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--theme-shadow) 72%, transparent);
  transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}

@media (prefers-reduced-motion: no-preference) {
  [data-controller~="section-reveal"].is-section-reveal-pending {
    opacity: 0;
    transform: translateY(8px);
    will-change: opacity, transform;
  }

  [data-controller~="section-reveal"].is-section-reveal-transitioning {
    transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  [data-controller~="section-reveal"].is-section-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  border-color: var(--theme-control-border);
  box-shadow: 0 16px 38px var(--theme-shadow);
}

.product-card .product-media {
  aspect-ratio: 1;
  border-bottom: 1px solid var(--theme-border);
  background: var(--theme-surface-muted);
}

.product-card .product-image {
  object-fit: contain;
  object-position: center;
  transform: none;
  transition: none;
}

.product-card:hover .product-image,
.product-card:focus-within .product-image {
  transform: none;
}

.product-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.product-card__label {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-card__label--customisable {
  border-color: var(--theme-yellow-border);
  background: var(--theme-yellow);
  color: var(--theme-yellow-text);
}

.product-card__label--fast-dispatch {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--theme-link);
}

.product-card__label--enquiry {
  border-color: var(--theme-yellow-border);
  background: color-mix(in srgb, var(--theme-yellow) 34%, var(--theme-surface));
  color: var(--theme-text);
}

.product-card__label--unavailable {
  border-color: var(--theme-control-border);
  background: var(--theme-surface-muted);
  color: var(--theme-text-muted);
}

.product-card__favorite-target {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
}

.product-card__favorite-form {
  display: contents;
}

.product-favorite-form {
  margin: 0;
}

.product-card__heart {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--theme-control-border) 60%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--theme-surface) 90%, transparent);
  color: var(--theme-text);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}

.product-card__heart {
  position: relative;
}

/* Keeps the 40px visual control a full 44px tap target. */
.product-card__heart::before {
  content: "";
  position: absolute;
  inset: -2px;
}

.product-card__heart svg,
.product-detail__favorite-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.product-card__heart.is-favorite {
  border-color: color-mix(in srgb, var(--theme-favorite) 62%, var(--theme-control-border));
  color: var(--theme-favorite);
}

.product-card__heart.is-favorite svg {
  fill: currentColor;
}

.product-card__heart:hover {
  border-color: var(--theme-favorite);
  color: var(--theme-favorite);
}

.product-card__heart:active {
  transform: scale(.94);
}

.product-card__heart:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 2px;
}

.product-detail__favorite-target {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
}

.product-purchase-summary > .product-detail__favorite-target:last-child {
  margin-bottom: 20px;
}

.product-detail__favorite-form {
  display: contents;
}

.product-detail__favorite-button {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--theme-control-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--theme-text);
  cursor: pointer;
  font: 800 10px/1 var(--font-mono);
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}

.product-detail__favorite-button.is-favorite {
  border-color: color-mix(in srgb, var(--theme-favorite) 62%, var(--theme-control-border));
  color: var(--theme-favorite);
}

.product-detail__favorite-button.is-favorite svg {
  fill: currentColor;
}

.product-detail__favorite-button:hover {
  border-color: var(--theme-favorite);
  color: var(--theme-favorite);
}

.product-detail__favorite-button:active {
  transform: translateY(1px);
}

.product-detail__favorite-button:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 2px;
}

.product-card .product-body {
  gap: 9px;
  padding: 14px;
}

.product-card .product-category-label {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--theme-link);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .product-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--theme-text-strong);
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.22;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__comparison {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-start;
}

.product-card__specs,
.product-card__swatches {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card__specs {
  flex: 1 1 150px;
  gap: 5px 0;
  color: var(--theme-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-card__specs li:not(:last-child)::after {
  content: "·";
  margin-inline: 7px;
  color: var(--theme-control-border);
}

.product-card__swatches {
  flex: 0 0 auto;
  gap: 7px;
}

.product-card__swatches li {
  display: flex;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border: 1px solid var(--theme-control-border);
  border-radius: 50%;
  background: var(--theme-surface-muted);
}

.product-card__swatches li > span {
  flex: 1 1 50%;
}

.product-card__commercial {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid var(--theme-border-soft);
}

.product-card__price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  justify-content: flex-start;
}

.product-card__price {
  color: var(--theme-text-strong);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.product-card__price small,
.product-card__tax {
  color: var(--theme-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.product-card__price small {
  margin-right: 3px;
  text-transform: uppercase;
}

.product-card__fulfilment {
  margin: 5px 0 0;
  color: var(--theme-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-card__details {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  margin-top: 2px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--theme-action-text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

.product-card__details-label {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 3px;
  background: var(--theme-action);
  transition: background-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}

.product-card__details:hover .product-card__details-label {
  background: var(--theme-action-hover);
}

.product-card__details:active .product-card__details-label {
  background: var(--theme-action-active);
  transform: translateY(1px);
}

.product-card__details:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 3px;
}

/* Whole-card link: the details anchor stretches over the card; the favourite stays above it. */
.product-card--linked {
  position: relative;
}

.product-card--linked .product-card__details::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}

.product-card--linked .product-card__favorite-target {
  z-index: 2;
}

.product-card--linked:hover .product-card__details-label {
  background: var(--theme-action-hover);
}

.product-card--linked .product-card__details:focus-visible {
  outline: 0;
}

.product-card--linked:has(.product-card__details:focus-visible) {
  outline: 3px solid var(--theme-focus);
  outline-offset: 3px;
}

@media (max-width: 47.99rem) {
  .product-card .product-body {
    gap: 8px;
    padding: 12px;
  }

  .product-card__favorite-target {
    top: 0;
    right: 0;
  }

  .product-card__heart {
    width: 44px;
    height: 44px;
  }

  .product-card__heart svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card__details-label,
  .product-card__heart,
  .product-detail__favorite-button {
    transition: none;
  }
}

/* Request, support, and post-purchase journeys */
.request-container { max-width: 1180px; }
.request-response-note { align-self: end; border-left: 3px solid var(--accent); padding: 12px 16px; font-weight: 700; }
.request-layout, .support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; align-items: start; }
.request-form-sections { display: grid; gap: 20px; }
.request-section { background: var(--surface); border: 1px solid var(--border); padding: clamp(22px, 4vw, 40px); }
.request-step, .checkout-section-heading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.request-step > span, .checkout-section-heading > span { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; background: var(--accent); color: var(--accent-on); font: 700 12px/1 var(--font-mono); }
.request-step h2, .checkout-section-heading h2 { margin: 0; }
.request-step p, .checkout-section-heading p { margin: 4px 0 0; color: var(--text-muted); }
.request-aside { position: sticky; top: 100px; background: var(--ink); color: white; padding: 28px; }
.request-aside .technical-label, .request-aside p, .request-aside li span { color: rgba(255,255,255,.72); }
.request-aside ol { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 22px; }
.request-aside li { display: grid; gap: 4px; border-left: 2px solid var(--accent); padding-left: 14px; }
.request-context, .support-order-context { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; background: var(--surface-soft); border: 1px solid var(--border); padding: 16px; margin-bottom: 22px; }
.request-errors { border: 2px solid var(--danger); background: var(--surface); padding: 18px 22px; margin-bottom: 22px; }
.request-errors ul { margin: 8px 0 0; }
.request-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.request-checks { display: grid; gap: 10px; margin: 0 0 24px; padding-left: 22px; }
.request-confirmation { max-width: 760px; margin: 0 auto; border: 1px solid var(--border); background: var(--surface); padding: clamp(28px, 6vw, 64px); text-align: center; }
.confirmation-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; background: var(--accent); color: var(--accent-on); font-size: 28px; }
.request-confirmation dl, .request-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); margin: 28px 0; }
.request-confirmation dl > div, .request-detail-grid > div { background: var(--surface); padding: 16px; text-align: left; }
.request-confirmation dt, .request-detail-grid dt { font: 700 11px/1.3 var(--font-mono); text-transform: uppercase; color: var(--text-muted); }
.request-confirmation dd, .request-detail-grid dd { margin: 6px 0 0; }
.request-list { display: grid; gap: 12px; }
.request-list-card { display: flex; justify-content: space-between; gap: 20px; align-items: center; border: 1px solid var(--border); background: var(--surface); padding: 20px; color: inherit; text-decoration: none; min-height: 88px; }
.request-list-card:hover { border-color: var(--ink); }
.support-form { display: grid; gap: 20px; }
.proof-change-form { display: grid; gap: 8px; width: min(100%, 420px); }
.proof-feedback { margin-top: 14px; padding: 12px; background: var(--surface-soft); }
.proof-revision-history { margin-top: 12px; }
.proof-revision-history summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.proof-revision-history ol, .shipment-event-list { display: grid; gap: 10px; padding-left: 20px; }
.shipment-event-list li { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 10px; }
.order-help-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; }

@media (max-width: 760px) {
  .request-layout, .support-layout { grid-template-columns: 1fr; }
  .request-aside { position: static; }
  .request-response-note { align-self: auto; }
  .request-confirmation dl, .request-detail-grid { grid-template-columns: 1fr; }
  .request-list-card, .order-help-panel { align-items: stretch; flex-direction: column; }
  .shipment-event-list li { grid-template-columns: 1fr; gap: 2px; }
  .account-tabs { gap: 0; }
  .account-tabs a { flex: 1 1 20%; justify-content: center; min-width: 0; padding-inline: 4px; text-align: center; white-space: normal; }
}

.product-gallery-strip-frame {
  position: relative;
  min-width: 0;
  margin-top: 10px;
}

.product-gallery-strip {
  display: flex;
  gap: 8px;
  padding-bottom: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
}

.product-gallery-strip-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
  color: var(--fg);
  cursor: pointer;
  transform: translateY(-50%);
}

.product-gallery-strip-arrow[hidden] {
  display: none;
}

.product-gallery-strip-arrow--previous {
  left: 4px;
}

.product-gallery-strip-arrow--next {
  right: 4px;
}

.product-gallery-strip-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (hover: hover) and (pointer: fine) {
  .product-gallery-strip-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
}

.product-gallery-strip-arrow:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-gallery-strip-arrow:active {
  background: var(--surface-warm);
  transform: translateY(calc(-50% + 1px));
}

.product-gallery-thumbnail {
  display: block;
  flex: 0 0 calc((100% - 24px) / 4);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: 2px solid transparent;
  background: var(--surface);
  cursor: pointer;
  scroll-snap-align: start;
}

@media (hover: hover) and (pointer: fine) {
  .product-gallery-thumbnail:hover {
    border-color: var(--accent);
  }
}

.product-gallery-thumbnail:focus-visible {
  border-color: var(--accent);
  outline-color: var(--accent);
  outline-offset: 2px;
}

.product-gallery-thumbnail:active {
  background: var(--surface-warm);
}

.product-gallery-thumbnail:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.product-gallery-thumbnail.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.product-gallery-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-secondary-collections {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.product-secondary-collections span,
.product-secondary-collections a {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.4;
  text-transform: uppercase;
}

.product-secondary-collections span {
  color: var(--muted);
}

.product-secondary-collections a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

.product-secondary-collections a:hover {
  text-decoration: underline;
}

.product-secondary-collections a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.product-secondary-collections a:active {
  color: var(--fg);
}

@media (max-width: 640px) {
  .product-gallery-thumbnail {
    flex: 0 0 88px;
  }
}

@media (min-width: 641px) and (max-width: 75rem) {
  .product-gallery-thumbnail {
    flex-basis: 72px;
  }
}

@media (min-width: 641px) and (max-width: 47.99rem) {
  .product-gallery-thumbnail { flex-basis: 96px; }
}

.cart-count {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  margin-left: -16px;
  align-self: flex-start;
  border: 1px solid #a83c00;
  border-radius: 2px;
  background: var(--accent-orange);
  color: #111a2b;
  font: 800 10px/1 var(--font-mono);
}

.commerce-page,
.auth-page {
  min-height: 65vh;
  padding: 72px 0 96px;
}

.commerce-page-header {
  margin-bottom: 42px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.commerce-page-header h1,
.auth-intro h1,
.auth-card h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -.03em;
}

.split-header,
.section-rule,
.collection-category-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.commerce-principle-panel,
.commerce-empty-state,
.auth-card,
.summary-panel {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
}

.commerce-principle-panel {
  align-self: center;
  padding: 32px;
  border-top: 4px solid var(--accent-orange);
}

.commerce-principle-panel > span,
.technical-label,
.section-rule > span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.commerce-principle-panel strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.15;
}

.commerce-empty-state {
  padding: clamp(28px, 6vw, 64px);
  border-left: 4px solid var(--accent);
}

.commerce-empty-state.compact {
  padding: 24px;
}

/* Hallmark · component: catalogue filter rail · genre: editorial · theme: Industrial Artisan
 * states: default · hover · focus · active · disabled · loading · error · success
 * contrast: preserved project tokens
 */
.catalog-discovery {
  margin-top: 34px;
}

.catalog-discovery-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.catalog-search-field,
.catalog-sort-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.catalog-search-field label,
.catalog-sort-field label {
  color: var(--fg);
  font: 800 10px/1.4 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.catalog-search-control {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.catalog-search-field input,
.catalog-sort-field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface-warm);
  color: var(--fg);
  font: inherit;
}

.catalog-search-field input:focus-visible,
.catalog-sort-field select:focus-visible,
.catalog-filter-option:has(input:focus-visible) {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 24%, transparent);
  outline-offset: 2px;
}

.catalog-search-submit,
.catalog-filter-toggle,
.catalog-filter-close {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-on);
  cursor: pointer;
  font: 800 11px/1 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  transition:
    background var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}

.catalog-search-submit:hover,
.catalog-filter-toggle:hover,
.catalog-filter-close:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.catalog-search-submit:active,
.catalog-filter-toggle:active,
.catalog-filter-close:active {
  border-color: var(--fg);
  background: var(--fg);
}

.catalog-search-submit:disabled,
.catalog-filter-toggle:disabled,
.catalog-filter-close:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.catalog-search-submit:focus-visible,
.catalog-filter-toggle:focus-visible,
.catalog-filter-close:focus-visible,
.catalog-filter-chip:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
}

.catalog-search-submit svg,
.catalog-filter-toggle svg,
.catalog-filter-close svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.catalog-filter-toggle {
  align-self: end;
  min-width: 148px;
}

.catalog-sort-submit {
  min-height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
}

.catalog-discovery-layout {
  display: grid;
  grid-template-columns: minmax(0, 252px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 28px;
  transition:
    grid-template-columns 210ms var(--ease-standard),
    gap 210ms var(--ease-standard);
}

.catalog-filter-panel {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 108px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 28px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  opacity: 1;
  transition:
    opacity 150ms var(--ease-standard),
    visibility 150ms var(--ease-standard);
}

.catalog-filter-header {
  display: flex;
  min-width: 220px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--border);
}

.catalog-filter-header h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}

.catalog-filter-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-filter-close {
  width: 44px;
  min-height: 44px;
  padding: 0;
}

.catalog-filter-summary {
  display: flex;
  min-width: 220px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.catalog-clear-link {
  color: var(--accent);
  font: 800 12px/1.4 var(--font-mono);
  letter-spacing: .05em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.catalog-clear-link {
  position: relative;
}

.catalog-clear-link::before {
  content: "";
  position: absolute;
  inset: -13px -8px;
}

.catalog-filter-form {
  min-width: 220px;
}

.catalog-filter-group {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.catalog-filter-group legend {
  width: 100%;
  margin-bottom: 8px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
}

.catalog-filter-option {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.35;
}

.catalog-filter-option:hover {
  background: var(--surface-warm);
  color: var(--fg);
}

.catalog-filter-option:active {
  border-color: var(--accent);
  background: var(--surface-warm);
  color: var(--fg);
}

.catalog-filter-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: .55;
}

.catalog-filter-option:has(input:checked) {
  color: var(--fg);
  font-weight: 700;
}

.catalog-filter-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.catalog-filter-actions {
  padding-top: 20px;
}

.catalog-filter-actions .btn {
  width: 100%;
}

.catalog-filter-status {
  margin: 16px 0 0;
  color: var(--muted);
  font: 700 11px/1.4 var(--font-mono);
  letter-spacing: .04em;
}

.catalog-discovery.is-enhanced .catalog-filter-actions {
  display: none;
}

.catalog-discovery.is-submitting .catalog-filter-form,
.catalog-discovery.is-submitting .catalog-discovery-toolbar {
  cursor: wait;
  opacity: .68;
  pointer-events: none;
}

.catalog-results-panel {
  min-width: 0;
}

.catalog-results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.catalog-results-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 18px;
}

.catalog-sort-form {
  width: min(220px, 100%);
}

.catalog-results-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 40px);
}

.catalog-results-heading p,
.catalog-no-results p {
  color: var(--muted);
}

.catalog-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.catalog-filter-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: #fff;
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.catalog-filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.catalog-filter-chip svg {
  width: 16px;
  height: 16px;
}

.catalog-results-grid {
  margin-top: 24px;
}

.catalog-results-grid .product-card[id^="catalog-product-"] {
  scroll-margin-top: 80px;
}

.catalog-pagination {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: 30px;
}

.catalog-result-progress {
  margin: 0;
  color: var(--muted);
  font: 700 11px/1.4 var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.catalog-show-more {
  min-width: min(260px, 100%);
  text-align: center;
}

.catalog-no-results {
  margin-top: 24px;
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
}

.catalog-no-results h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.catalog-no-results .actions {
  margin-top: 24px;
}

.catalog-filter-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  border: 0;
  background: rgba(17, 26, 43, .52);
}

body.catalog-filter-drawer-open {
  overflow: hidden;
}

@media (min-width: 981px) {
  .catalog-discovery.is-enhanced:not(.is-open) .catalog-discovery-layout {
    grid-template-columns: 0 minmax(0, 1fr);
    gap: 0;
  }

  .catalog-discovery.is-enhanced:not(.is-open) .catalog-filter-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

.collection-text-link,
.text-action,
.auth-links a {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

/* Text links keep their compact look but get a 44px hit area. */
.collection-text-link {
  position: relative;
}

.collection-text-link::before {
  content: "";
  position: absolute;
  inset: -13px -8px;
}

.text-action.danger {
  color: #93000a;
}

.product-config-form,
.product-variant-picker {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.customisable-badge {
  position: absolute;
  z-index: 2;
  top: 52px;
  left: 12px;
  padding: 7px 9px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--surface);
  color: var(--accent);
  font: 800 9px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-customisable-signal {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #b88000;
  border-radius: 2px;
  background: var(--yellow);
  color: #332400;
  font: 800 11px/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-configuration-intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-config-form.is-configurable {
  gap: 0;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.product-config-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
}

.product-config-header h2 {
  margin: 4px 0 0;
  font-size: 24px;
  text-transform: none;
}

.product-option-group {
  min-width: 0;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.product-option-requirement {
  margin: -5px 0 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-option-group legend {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  color: var(--fg);
  font: 800 11px/1.3 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-option-group legend strong {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.product-colour-options,
.product-choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-colour-choice,
.product-choice-button {
  position: relative;
  display: grid;
  min-height: 44px;
  cursor: pointer;
}

.product-colour-choice {
  min-width: 62px;
  justify-items: center;
  gap: 6px;
  color: var(--fg);
  font-size: 11px;
}

.product-purchase-workspace span.product-colour-choice {
  cursor: default;
}

.product-colour-choice input,
.product-choice-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.product-colour-swatch {
  display: block;
  width: 44px;
  height: 44px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  outline: 1px solid var(--border);
  background: var(--swatch-background, var(--surface-warm));
}

.product-colour-swatch.is-dual {
  background: var(--swatch-background, linear-gradient(135deg, var(--swatch-color) 0 49%, var(--swatch-color-secondary) 51% 100%));
}

.product-colour-swatch.is-text-only {
  border-radius: 2px;
  background: linear-gradient(135deg, var(--surface-warm) 50%, var(--surface) 50%);
}

.product-colour-choice:has(input:checked) .product-colour-swatch {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.product-colour-choice:focus-within .product-colour-swatch,
.product-choice-button:focus-within span {
  outline: 3px solid rgba(0, 53, 198, .28);
  outline-offset: 3px;
}

.product-choice-button span {
  display: grid;
  min-width: 58px;
  min-height: 44px;
  place-items: center;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  color: var(--fg);
  font: 800 12px/1.2 var(--font-mono);
}

.product-choice-button input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-on);
}

.product-option-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.product-option-group small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.45;
}

.product-text-option {
  position: relative;
}

.product-text-option .form-input {
  padding-right: 76px;
}

.product-character-count {
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  color: var(--muted);
  font: 700 10px/1 var(--font-mono);
}

.product-config-form.is-configurable .quantity-field {
  max-width: none;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.product-quantity-control {
  display: grid;
  width: 142px;
  grid-template-columns: 44px 54px 44px;
}

.product-quantity-control button,
.product-quantity-control input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  text-align: center;
}

.product-quantity-control button {
  color: var(--fg);
  font-size: 19px;
  cursor: pointer;
}

.product-quantity-control input {
  border-right: 0;
  border-left: 0;
  padding-inline: 4px;
}

.product-config-form.is-configurable .product-purchase-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.product-config-form.is-configurable .product-purchase-actions .btn {
  width: 100%;
  min-height: 48px;
  white-space: nowrap;
}

.product-configured-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.product-configured-total span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-configured-total strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
}

.product-quote-escape {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.product-quote-escape .text-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  white-space: nowrap;
}

.product-config-form.is-configurable .btn,
.product-config-form.is-configurable .text-action,
.product-config-form.is-configurable input,
.product-config-form.is-configurable button {
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    transform 100ms var(--ease-standard);
}

.product-config-form.is-configurable .btn:focus-visible,
.product-config-form.is-configurable .text-action:focus-visible,
.product-config-form.is-configurable input:focus-visible,
.product-config-form.is-configurable button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.product-config-form.is-configurable .btn:active,
.product-config-form.is-configurable button:active {
  transform: translateY(1px);
}

.product-config-form.is-configurable .btn:disabled,
.product-config-form.is-configurable button:disabled,
.product-config-form.is-configurable input:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.product-config-form.is-configurable [aria-invalid="true"] {
  border-color: var(--danger);
  background: color-mix(in oklab, var(--danger), var(--surface) 94%);
}

.product-config-form.is-configurable[data-state="loading"] .btn-primary {
  cursor: wait;
  opacity: .72;
}

.product-config-form.is-configurable[data-state="success"] .btn-primary {
  border-color: var(--accent-active, var(--accent-hover));
  background: var(--accent-active, var(--accent-hover));
}

.product-configuration-assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.product-configuration-assurances span::before {
  content: "✓";
  margin-right: 5px;
  color: var(--accent);
  font-weight: 900;
}

.admin-help-copy,
.admin-empty-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-option-list,
.admin-option-values {
  display: grid;
  gap: 12px;
}

.admin-option-list {
  margin-top: 22px;
}

.admin-option-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--surface-warm);
}

.admin-option-card > header,
.admin-option-value,
.admin-inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-option-card > header {
  justify-content: space-between;
}

.admin-option-card strong,
.admin-option-card small {
  display: block;
}

.admin-option-card small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-option-value {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.admin-option-value > div {
  flex: 1;
  min-width: 0;
}

.admin-swatch {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  outline: 1px solid var(--border);
  background: var(--swatch-color);
}

.admin-swatch.is-dual {
  background: linear-gradient(135deg, var(--swatch-color) 0 49%, var(--swatch-color-secondary) 51% 100%);
}

@media (max-width: 640px) {
  .admin-option-card > header,
  .admin-option-value {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-inline-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .customisable-badge {
    top: 48px;
  }

  .product-config-form.is-configurable {
    padding: 16px;
  }

  .product-configured-total,
  .product-quote-escape {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-quote-escape {
    justify-content: flex-start;
    gap: 3px;
  }

  .product-option-group legend {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .product-colour-options {
    justify-content: space-between;
  }

  .product-choice-button {
    flex: 1 1 72px;
  }

  .product-choice-button span {
    width: 100%;
  }
}

.product-attribution-section {
  background: var(--surface);
}

.product-source-credit {
  padding-block: 24px;
  border-top: 1px solid var(--border);
}

.product-source-credit .technical-label,
.product-source-credit p {
  margin: 0;
}

.product-source-credit p {
  max-width: 70ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.product-source-credit > div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.product-variant-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-link {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--fg);
  font: 700 12px/1.2 var(--font-mono);
  text-decoration: none;
}

.variant-link.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-label {
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.4 var(--font-body);
}

.form-input:focus,
.form-textarea:focus {
  outline: 2px solid rgba(0, 53, 198, .2);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.quantity-field {
  max-width: 130px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper .form-input {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  border-radius: 2px;
  transition: color 0.15s ease;
}

.password-toggle-btn:hover {
  color: var(--fg);
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.inline-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.cart-page {
  --cart-attention-bg: #fff4c9;
  --cart-attention-fg: #5b4100;
  --cart-issue-bg: #fff7f5;
  --cart-issue-border: #c9352b;
}

.cart-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(34px, 6vw, 70px) 0 28px;
  border-bottom: 1px solid var(--border);
}

.cart-page-header h1 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 62px);
  letter-spacing: -.03em;
}

.cart-page-header p {
  max-width: 64ch;
  margin-top: 8px;
  color: var(--muted);
}

.cart-page-header > span {
  flex: 0 0 auto;
  padding-bottom: 8px;
  color: var(--fg);
  font-weight: 800;
}

.cart-review-alert {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #d5a000;
  background: var(--cart-attention-bg);
  color: var(--cart-attention-fg);
}

.cart-review-alert h2 {
  margin: 0;
  color: inherit;
  font-size: 17px;
}

.cart-review-alert p {
  color: inherit;
  font-size: 13px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr);
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

.cart-items-container {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.commerce-line-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 156px;
  gap: 22px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
}

.commerce-line-item.has-issue {
  border-color: var(--cart-issue-border);
  background: var(--cart-issue-bg);
}

.commerce-line-media {
  align-self: start;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-warm);
}

.commerce-line-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commerce-line-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  place-items: center;
  color: color-mix(in oklab, var(--accent), transparent 25%);
}

.commerce-line-placeholder svg {
  width: min(42%, 58px);
  stroke: currentColor;
  stroke-width: 2;
}

.commerce-line-main {
  min-width: 0;
}

.commerce-line-main h2 {
  margin: 6px 0 4px;
  font-size: clamp(20px, 2.3vw, 25px);
}

.commerce-line-main h2 a {
  color: inherit;
  text-decoration: none;
}

.commerce-line-main h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.commerce-line-variant,
.commerce-line-estimate {
  color: var(--muted);
  font-size: 13px;
}

.commerce-line-estimate {
  margin-top: 4px;
  color: var(--fg);
  font-weight: 700;
}

.commerce-line-actions {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  flex-direction: column;
  gap: 14px;
}

.commerce-line-price {
  color: var(--fg);
  font-size: 18px;
}

.quantity-update {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.quantity-update > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-update .form-input {
  width: 72px;
  min-height: 44px;
  padding: 8px 10px;
}

.cart-page select.form-input {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 40%, currentColor 40%, currentColor 60%, transparent 60%),
    linear-gradient(135deg, transparent 40%, currentColor 40%, currentColor 60%, transparent 60%);
  background-position: right 18px center, right 12px center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.cart-colour-update {
  margin-top: 16px;
}

.cart-colour-group {
  min-width: 0;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.cart-colour-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  margin-bottom: 10px;
}

.cart-colour-summary strong {
  font-size: 14px;
}

.cart-colour-update--independent {
  margin-top: 7px;
}

.cart-colour-update--independent .cart-colour-group > legend,
.cart-colour-update--independent .cart-colour-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cart-colour-update--independent .cart-colour-slot {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 2px 7px;
  min-height: 44px;
}

.cart-colour-update--independent .cart-colour-slot__swatch {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.cart-colour-update--independent .cart-colour-slot__text {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-wrap: anywhere;
}

.cart-colour-update--independent .cart-colour-slot__text strong {
  white-space: normal;
}

.cart-colour-slot__meta {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 5px;
  min-width: 0;
}

.cart-colour-update--independent .cart-colour-slot .text-button {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  margin-left: 0;
}

.cart-colour-update--independent .cart-colour-slot__fixed {
  grid-column: 3;
  grid-row: 1 / span 2;
  max-width: 70px;
}

.cart-colour-slot__price {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.cart-colour-summary > span,
.cart-colour-slot__fixed {
  color: var(--muted);
  font-size: 12px;
}

.cart-colour-default {
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--accent) !important;
}

.cart-colour-slots {
  display: grid;
  gap: 7px;
}

.cart-colour-slot {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.cart-colour-slot__swatch {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.cart-colour-slot__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  gap: 2px 7px;
  font-size: 12px;
}

.cart-colour-slot__text strong {
  white-space: nowrap;
}

.cart-colour-slot .text-button,
.cart-colour-whole-change,
.cart-colour-panel > .text-button,
.cart-colour-actions .text-button {
  min-height: 44px;
}

.cart-colour-panel {
  margin-top: 9px;
}

.cart-colour-panel > .text-button {
  margin-top: 8px;
}

.cart-colour-actions {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.cart-colour-summary[hidden],
.cart-colour-slots[hidden],
.cart-colour-slot[hidden],
.cart-colour-slot .text-button[hidden],
.cart-colour-slot__fixed[hidden],
.cart-colour-whole-change[hidden],
.cart-colour-panel[hidden],
.cart-colour-choice[hidden],
.cart-colour-actions[hidden],
.cart-colour-default[hidden] {
  display: none;
}

.cart-colour-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.cart-colour-choice {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  min-height: 92px;
  padding: 10px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
}

.cart-colour-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cart-colour-choice:has(input:checked) {
  border: 2px solid var(--accent);
  padding: 9px 5px;
}

.cart-colour-choice:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.cart-colour-choice__swatch {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-warm);
}

.cart-colour-choice__swatch.is-text-only {
  border-radius: 4px;
  background: var(--surface-warm);
}

.cart-colour-choice__name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.cart-colour-choice__price,
.cart-colour-choice__suggestion,
.cart-colour-saved {
  color: var(--muted);
  font-size: 11px;
}

.cart-colour-update > .text-button {
  min-height: 44px;
}

.cart-finish-editor > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}

.cart-finish-editor > summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.quantity-update .text-button,
.cart-remove-form .text-button,
.cart-clear-action {
  min-height: 44px;
  padding: 8px 2px;
}

.cart-remove-form {
  margin: 0;
}

.configuration-list {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  font-size: 13px;
}

.configuration-list > div {
  display: grid;
  grid-template-columns: minmax(90px, .5fr) 1fr;
  gap: 12px;
}

.configuration-list dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cart-item-issue {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid color-mix(in oklab, var(--cart-issue-border), transparent 55%);
  background: #fff;
  color: #78130d;
}

.cart-item-issue strong {
  color: inherit;
  font-size: 13px;
}

.cart-item-issue p {
  margin-top: 3px;
  color: inherit;
  font-size: 12px;
}

.cart-item-issue .text-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 4px;
}

.summary-panel {
  position: sticky;
  top: 84px;
  padding: 24px;
}

.cart-summary {
  padding: 28px;
}

.cart-summary h2 {
  margin: 0;
  font-size: 25px;
}

.summary-rows {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.summary-row.total {
  padding-top: 8px;
  color: var(--fg);
  font-size: 17px;
}

.cart-summary-blocked {
  padding: 14px;
  background: var(--cart-attention-bg);
  color: var(--cart-attention-fg);
}

.cart-summary-blocked strong {
  color: inherit;
}

.cart-summary-blocked p {
  margin-top: 4px;
  color: inherit;
  font-size: 12px;
}

.commerce-primary-action {
  width: 100%;
  margin: 14px 0 12px;
}

.cart-clear-action {
  margin-top: 2px;
}

.commerce-help-text {
  margin-top: 18px;
  font-size: 12px;
}

.cart-mobile-checkout {
  display: none;
}

.cart-empty-state {
  margin-top: clamp(36px, 7vw, 84px);
  border-left-width: 1px;
}

.cart-empty-state h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
}

.checkout-stepper { margin: 0 0 30px; }
.checkout-stepper ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; }
.checkout-stepper li { display: flex; align-items: center; gap: 9px; min-height: 44px; color: var(--muted); font-size: 13px; }
.checkout-stepper li span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; font: 800 11px/1 var(--font-mono); }
.checkout-stepper li.is-current, .checkout-stepper li.is-complete { color: var(--fg); }
.checkout-stepper li.is-current span, .checkout-stepper li.is-complete span { border-color: var(--accent); background: var(--accent); color: #fff; }
.product-auth-actions { margin-top: 26px; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(32px, 8vw, 100px);
  align-items: start;
}

.auth-shell.single {
  grid-template-columns: minmax(320px, 620px);
  justify-content: center;
}

.auth-intro {
  padding-top: 32px;
}

.auth-card {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 5vw, 42px);
  border-top: 4px solid var(--accent);
}

.auth-card form {
  display: grid;
  gap: 18px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.form-errors {
  padding: 16px;
  border-left: 4px solid #ba1a1a;
  background: #ffdad6;
  color: #93000a;
  font-size: 13px;
}

.form-errors ul {
  margin: 8px 0 0 18px;
}

.field-errors {
  margin: 6px 0 0 18px;
  color: #93000a;
  font-size: 12px;
}

.form-input[aria-invalid="true"] {
  border-color: #ba1a1a;
}

.section-rule {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.account-order-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
}

.account-order-row > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.checkout-layout,
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, .65fr);
  gap: 28px;
  align-items: start;
}

.checkout-form-sections,
.order-main {
  display: grid;
  gap: 24px;
}

.checkout-section,
.order-section {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
}

.checkout-section h2 {
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface-warm);
  color: var(--fg);
  font: 800 10px/1 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.status-paid,
.status-delivered {
  border-color: #4f7200;
  background: #e5ffc2;
  color: #2e4400;
}

.order-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .4fr) auto;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.order-item-row:last-child {
  border-bottom: 0;
}

.order-item-row > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.order-item-row small {
  color: var(--muted);
}

.order-timeline {
  display: grid;
  gap: 0;
  list-style: none;
}

.order-timeline li {
  display: grid;
  grid-template-columns: 120px 160px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.order-timeline span {
  font: 700 10px/1.4 var(--font-mono);
  text-transform: uppercase;
}

.shipment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.payment-truth-card {
  padding: 16px;
  border-left: 4px solid var(--accent-orange);
  background: var(--surface-warm);
}

.payment-truth-card.success {
  border-color: #4f7200;
  background: #e5ffc2;
}

.payment-truth-card p {
  margin-top: 4px;
  font-size: 12px;
}

.payment-error {
  padding: 12px;
  border-left: 4px solid #ba1a1a;
  background: #ffdad6;
  color: #93000a;
  font-size: 12px;
}

.proof-review-card,
.account-claim-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--surface-warm);
}

.proof-review-card code {
  overflow-wrap: anywhere;
  font: 600 11px/1.5 var(--font-mono);
}

.proof-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.narrow-container {
  max-width: 760px;
}

/* Customer account */
.account-page {
  --account-success-bg: #eaf7d5;
  --account-success-fg: #315100;
  --account-attention-bg: #fff1b8;
  --account-attention-fg: #5f4600;
  --account-issue-bg: #ffdad6;
  --account-issue-fg: #93000a;
}

.account-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
}

.account-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.account-identity h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.025em;
}

.account-identity p {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.account-avatar {
  display: grid;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.account-avatar svg {
  width: 32px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.account-masthead-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
}

.account-masthead-action,
.text-button {
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font: 800 11px/1.3 var(--font-mono);
  letter-spacing: .05em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-masthead-action:hover,
.text-button:hover {
  text-decoration-color: currentColor;
}

.text-button.danger {
  color: #93000a;
}

.account-tabs {
  display: flex;
  align-items: stretch;
  gap: 34px;
  border-bottom: 1px solid var(--border);
}

.account-favorites-grid {
  padding-bottom: clamp(40px, 7vw, 72px);
}

.account-tabs a {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--muted);
  font: 800 11px/1.3 var(--font-mono);
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}

.account-tabs a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.account-tabs a:hover,
.account-tabs a.is-active {
  color: var(--accent);
}

.account-tabs a.is-active::after {
  background: var(--accent);
}

.account-page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(32px, 6vw, 62px) 0 26px;
}

.account-page-title h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -.025em;
}

.account-page-title p {
  max-width: 68ch;
  margin-top: 8px;
  color: var(--muted);
}

.account-section-heading,
.account-summary-heading,
.account-address-card-heading,
.account-order-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.account-section-heading {
  margin-bottom: 16px;
}

.account-section-heading h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 30px);
}

.account-section-heading > span {
  color: var(--accent);
  font: 800 11px/1 var(--font-mono);
}

.account-order-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
}

.account-order-card.is-featured {
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
}

.account-order-media {
  min-height: 170px;
  overflow: hidden;
  background: var(--surface-warm);
}

.is-featured .account-order-media {
  min-height: 330px;
}

.account-order-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-order-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  place-items: center;
  color: color-mix(in oklab, var(--accent), transparent 25%);
}

.account-order-placeholder svg {
  width: min(38%, 74px);
  stroke: currentColor;
  stroke-width: 2;
}

.account-order-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(20px, 4vw, 34px);
}

.account-order-heading .technical-label {
  overflow-wrap: anywhere;
}

.account-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 2px;
  background: var(--surface-warm);
  color: var(--fg);
  font: 800 10px/1.25 var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.account-status-success {
  background: var(--account-success-bg);
  color: var(--account-success-fg);
}

.account-status-attention {
  background: var(--account-attention-bg);
  color: var(--account-attention-fg);
}

.account-status-issue {
  background: var(--account-issue-bg);
  color: var(--account-issue-fg);
}

.account-status-progress {
  background: #e4ecff;
  color: #002b78;
}

.account-order-title {
  margin-top: 20px;
}

.account-order-title h3 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
}

.account-order-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.account-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 22px;
}

.account-order-meta > div {
  min-width: 130px;
  padding: 0 22px;
  border-right: 1px solid var(--border);
}

.account-order-meta > div:first-child {
  padding-left: 0;
}

.account-order-meta > div:last-child {
  border-right: 0;
}

.account-order-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.account-order-meta dd {
  margin-top: 5px;
  color: var(--fg);
  font-weight: 750;
}

.account-order-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: auto 0 0;
  padding: 34px 0 0;
  list-style: none;
}

.account-order-progress li {
  position: relative;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.account-order-progress li::before {
  position: absolute;
  z-index: 0;
  top: 14px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--border);
  content: "";
}

.account-order-progress li:first-child::before {
  left: 14px;
}

.account-order-progress li:last-child::before {
  right: calc(100% - 14px);
}

.account-order-progress li.is-complete::before,
.account-order-progress li.is-current::before {
  background: var(--accent);
}

.account-progress-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font: 800 10px/1 var(--font-mono);
}

.is-complete .account-progress-marker,
.is-current .account-progress-marker {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.is-current .account-progress-marker {
  box-shadow: 0 5px 14px rgba(0, 61, 219, .22);
}

.account-order-progress .is-complete,
.account-order-progress .is-current {
  color: var(--fg);
}

.account-order-actions,
.account-empty-actions,
.account-form-actions,
.account-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-order-actions {
  margin-top: 26px;
}

.account-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: 28px;
  margin-top: 44px;
  align-items: start;
}

.account-past-panel {
  min-width: 0;
}

.account-past-panel .account-order-card + .account-order-card,
.account-order-list .account-order-card + .account-order-card {
  margin-top: 14px;
}

.account-summary-stack {
  display: grid;
  gap: 14px;
}

.account-summary-block,
.account-settings-section,
.account-address-book,
.account-empty-state {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
}

.account-summary-block {
  padding: 24px;
}

.account-summary-heading {
  align-items: flex-start;
  margin-bottom: 18px;
}

.account-summary-heading h2 {
  margin: 0;
  font-size: 18px;
}

.account-summary-block address,
.account-address-card address {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.account-summary-block address strong,
.account-address-card address strong,
.account-summary-block > strong {
  color: var(--fg);
}

.account-summary-block > p + p {
  margin-top: 3px;
}

.account-inline-empty,
.account-empty-state {
  color: var(--muted);
}

.account-inline-empty {
  padding: 24px;
  border: 1px dashed var(--border);
}

.account-empty-state {
  padding: clamp(30px, 6vw, 60px);
  background: var(--surface-warm);
}

.account-empty-state h2,
.account-empty-state h3 {
  margin: 0;
}

.account-empty-state p {
  max-width: 58ch;
  margin-top: 10px;
}

.account-empty-state.compact {
  padding: 28px;
}

.account-empty-actions {
  margin-top: 24px;
}

.account-order-group + .account-order-group {
  margin-top: 48px;
}

.account-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 28px;
  align-items: start;
}

.account-profile-main {
  display: grid;
  gap: 18px;
}

.account-settings-section,
.account-address-book {
  padding: clamp(22px, 4vw, 34px);
}

.account-settings-form {
  display: grid;
  gap: 22px;
}

.account-settings-form .btn,
.account-address-form .btn {
  justify-self: start;
}

.account-address-book > .account-section-heading {
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.account-address-book > .account-section-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.account-address-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.account-address-card:last-of-type {
  border-bottom: 0;
}

.account-address-card h3 {
  margin: 0;
  font-size: 18px;
}

.account-address-card address {
  margin-top: 14px;
}

.account-address-actions {
  align-items: center;
  margin-top: 16px;
}

.account-address-actions form {
  margin: 0;
}

.account-address-editor {
  max-width: 860px;
}

.account-address-form {
  display: grid;
  gap: 24px;
}

.account-fixed-field {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface-warm);
  color: var(--muted);
}

.account-default-choice {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  font-weight: 700;
}

.account-default-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.checkout-saved-addresses {
  margin: 0 0 26px;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.checkout-saved-addresses legend {
  margin-bottom: 12px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 800;
}

.checkout-address-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-address-option {
  display: flex;
  min-width: 0;
  min-height: 80px;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.checkout-address-option:hover,
.checkout-address-option:has(input:checked) {
  border-color: var(--accent);
  background: #f4f7ff;
}

.checkout-address-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--accent);
}

.checkout-address-option > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.checkout-address-option small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.checkout-address-option em {
  color: var(--accent);
  font: 800 10px/1.3 var(--font-mono);
  font-style: normal;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.checkout-saved-addresses > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .catalog-discovery-toolbar {
    grid-template-columns: minmax(190px, 220px);
  }

  .catalog-search-field {
    grid-column: 1 / -1;
  }

  .catalog-filter-toggle {
    min-width: 0;
  }

  .catalog-discovery-layout {
    display: block;
  }

  .catalog-filter-panel {
    position: static;
    max-height: none;
    padding-right: 0;
    border-right: 0;
  }

  .catalog-discovery.is-enhanced .catalog-filter-panel {
    position: fixed;
    z-index: 310;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 360px);
    max-height: none;
    overflow-y: auto;
    padding:
      max(22px, env(safe-area-inset-top))
      24px
      max(24px, env(safe-area-inset-bottom));
    border-right: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 18px 0 42px rgba(17, 26, 43, .16);
    visibility: hidden;
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
    transition:
      transform 210ms var(--ease-standard),
      opacity 150ms var(--ease-standard),
      visibility 210ms var(--ease-standard);
  }

  .catalog-discovery.is-enhanced.is-open .catalog-filter-panel {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .catalog-filter-header,
  .catalog-filter-summary,
  .catalog-filter-form {
    min-width: 0;
  }

  .catalog-filter-actions {
    position: sticky;
    z-index: 1;
    bottom: calc(-1 * max(24px, env(safe-area-inset-bottom)));
    margin: 0 -24px;
    padding: 16px 24px max(24px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
  }

  .catalog-results-panel {
    width: 100%;
  }

  .account-overview-grid,
  .account-profile-layout {
    grid-template-columns: 1fr;
  }

  .account-summary-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .cart-layout,
  .auth-shell,
  .checkout-layout,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .cart-page.has-mobile-checkout {
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
  }

  .cart-page-header {
    align-items: flex-start;
  }

  .cart-review-alert {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .commerce-line-item {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .commerce-line-actions {
    grid-column: 1 / -1;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .commerce-line-price {
    margin-right: auto;
  }

  .quantity-update {
    justify-items: start;
  }

  .cart-mobile-checkout {
    position: fixed;
    z-index: 240;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px max(20px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    border-top: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 -14px 30px rgba(17, 26, 43, .12);
  }

  .cart-mobile-checkout > span {
    display: grid;
    gap: 2px;
  }

  .cart-mobile-checkout small {
    color: var(--muted);
    font-size: 11px;
  }

  .cart-mobile-checkout strong {
    color: var(--fg);
    font-size: 19px;
  }

  .cart-mobile-checkout .btn {
    min-width: 150px;
  }

  .split-header,
  .collection-category-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-order-card,
  .account-order-card.is-featured {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .is-featured .account-order-media {
    min-height: 260px;
  }

  .account-order-progress {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .commerce-page,
  .auth-page {
    padding: 46px 0 72px;
  }

  .cart-page-header {
    flex-direction: column;
    gap: 10px;
    padding-top: 26px;
  }

  .cart-page-header > span {
    padding: 0;
  }

  .commerce-line-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .commerce-line-media {
    width: 92px;
    min-height: 92px;
    max-height: 112px;
  }

  .commerce-line-actions {
    grid-column: 1 / -1;
    align-items: center;
    flex-direction: row;
  }

  .configuration-list > div {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .cart-summary {
    padding: 22px;
  }

  .cart-mobile-checkout .btn {
    min-width: 132px;
  }

  .account-order-row,
  .account-order-row > div {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .account-masthead {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .account-masthead-actions {
    margin-left: auto;
  }

  .account-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .account-tabs {
    gap: 0;
  }

  .account-tabs a {
    flex: 1 1 20%;
    justify-content: center;
    min-width: 0;
    min-height: 56px;
    padding: 0 3px;
    font-size: 8px;
    text-align: center;
    white-space: normal;
  }

  .account-page-title,
  .account-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-order-card,
  .account-order-card.is-featured {
    grid-template-columns: 1fr;
  }

  .account-order-media,
  .is-featured .account-order-media {
    min-height: 220px;
    max-height: 280px;
  }

  .account-order-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .account-order-meta > div,
  .account-order-meta > div:first-child {
    padding: 0;
    border-right: 0;
  }

  .account-order-progress {
    gap: 4px;
  }

  .account-order-progress li {
    font-size: 9px;
  }

  .account-summary-stack,
  .checkout-address-options {
    grid-template-columns: 1fr;
  }

  .account-order-actions .btn,
  .account-empty-actions .btn,
  .account-form-actions .btn,
  .account-address-book > .account-section-heading .btn {
    width: 100%;
  }

  .account-address-book > .account-section-heading {
    align-items: stretch;
  }

  .form-grid,
  .order-item-row,
  .order-timeline li {
    grid-template-columns: 1fr;
  }

  .order-timeline li {
    gap: 6px;
  }

  .checkout-stepper ol { gap: 6px; }
  .checkout-stepper li { gap: 6px; font-size: 12px; }

  .catalog-discovery-toolbar {
    grid-template-columns: 1fr;
  }

  .catalog-search-field {
    grid-column: auto;
  }

  .catalog-filter-toggle,
  .catalog-sort-field {
    width: 100%;
  }

  .catalog-results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-results-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-sort-form {
    width: 100%;
  }

  .catalog-no-results .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-discovery-layout,
  .catalog-filter-panel,
  .product-config-form.is-configurable .btn,
  .product-config-form.is-configurable .text-action,
  .product-config-form.is-configurable input,
  .product-config-form.is-configurable button {
    transition: none;
  }

  .product-config-form.is-configurable .btn:active,
  .product-config-form.is-configurable button:active {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
 * Homepage shop layout (claude/patch1)
 *
 * Editorial hero + F6 Product Grid as separate components,
 * budget and category rails, trust strip, three order lanes, recently viewed,
 * and the mobile sticky bar.
 * ------------------------------------------------------------------------- */

/* --- shared rail furniture ----------------------------------------------- */

.home-rail-heading {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.home-rail-title {
  margin: 0;
}

.home-rail-body {
  margin: var(--space-2) 0 0;
  max-width: 60ch;
  color: var(--muted);
}

/* Rails scroll inside themselves so the page body never scrolls sideways. */
.home-category-track,
.home-recent-track {
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0 0 var(--space-3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  list-style: none;
  scrollbar-width: thin;
}

.home-category-track > li,
.home-recent-track > li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* --- budget rail --------------------------------------------------------- */

.home-budget-rail {
  padding-block: var(--space-6);
}

.home-budget-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  align-items: center;
}

.home-budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-budget-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-5);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
  transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}

.home-budget-chip:hover,
.home-budget-chip:focus-visible {
  border-color: var(--theme-yellow);
  background: var(--theme-yellow);
  color: var(--theme-yellow-text);
}

/* --- trust strip --------------------------------------------------------- */

.home-trust {
  padding-block: var(--space-5);
  border-block: 1px solid var(--theme-border);
  background: var(--home-color-surface-cool);
}

/* One row on desktop, three columns on tablet, two on mobile. Dots separate the cues. */
.home-trust .home-buying-cues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-trust .home-buying-cues li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  min-width: 0;
  color: var(--theme-text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.home-trust .home-buying-cues li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--theme-control-border);
  transform: translateY(-2px);
}

.home-trust .home-buying-cues a {
  color: var(--theme-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-trust .home-buying-cues a:hover {
  color: var(--theme-link-hover);
}

.home-trust .home-buying-cues a:focus-visible {
  outline: 2px solid var(--theme-focus);
  outline-offset: 3px;
}

@media (min-width: 48rem) {
  .home-trust .home-buying-cues {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .home-trust .home-buying-cues {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: none;
  }
}

/* --- category rail ------------------------------------------------------- */

.home-category-rail,
.home-shop-grid-section,
.home-recent {
  padding-block: var(--space-8);
}

.home-category-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: min(76vw, 280px);
  color: var(--fg);
  text-decoration: none;
}

.home-category-card__media {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-warm);
}

.home-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-category-card__fallback,
.home-recent-card__fallback {
  padding: var(--space-3);
  color: var(--muted);
  font-size: var(--text-xs);
  text-align: center;
}

.home-category-card__name {
  font-weight: 650;
}

.home-category-card__count {
  color: var(--muted);
  font-size: var(--text-xs);
}

.home-category-card:hover .home-category-card__media,
.home-category-card:focus-visible .home-category-card__media {
  border-color: var(--theme-yellow);
}

.home-category-rail .home-budget-chips {
  margin-bottom: var(--space-5);
}

.home-category-card:focus-visible,
.home-category-rail .home-budget-chip:focus-visible {
  outline: 2px solid var(--theme-yellow);
  outline-offset: 4px;
}

@media (min-width: 768px) {
  .home-category-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-category-track > li { min-width: 0; }
  .home-category-card { width: 100%; }

  /* Four tiles would leave a lone tile in a 3-column row: use 2x2, then 4 across. */
  .home-category-track:has(> li:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-category-track:has(> li:nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- product grid (F6) --------------------------------------------------- */

.home-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-5);
  min-width: 0;
}

/* --- order lanes --------------------------------------------------------- */

.home-order-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-6);
  min-width: 0;
}

.home-order-lane__label {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-order-lane .home-order-list {
  counter-reset: home-order-step;
}

.home-order-lane .home-order-list li {
  counter-increment: home-order-step;
}

.home-order-lane .home-order-list li::before {
  content: counter(home-order-step, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}

/* --- recently viewed ----------------------------------------------------- */

.home-recent[hidden] {
  display: none;
}

.home-recent-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 152px;
  color: var(--fg);
  text-decoration: none;
}

.home-recent-card__media {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 152px;
  height: 152px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-warm);
}

.home-recent-card__media img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-recent-card__fallback {
  grid-area: 1 / 1;
}

.home-recent-card__name {
  font-size: var(--text-sm);
  line-height: 1.35;
}

/* --- capture ------------------------------------------------------------- */

.home-capture {
  padding-block: var(--space-8);
}

.home-capture-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.home-capture-copy {
  max-width: 46ch;
}

.home-capture-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.home-capture-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 650;
}

.home-capture-field {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.home-capture-input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
}

.home-capture-note {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
}

/* --- zone-gated bands ---------------------------------------------------- */

.home-personalise-band,
.home-process-proof {
  padding-block: var(--space-8);
}

.home-personalise-heading,
.home-proof-heading {
  max-width: 60ch;
  margin-bottom: var(--space-5);
}

/* --- header collections dropdown ----------------------------------------- */

.nav-item--menu {
  position: relative;
}

.nav-menu {
  position: absolute;
  z-index: 40;
  top: 100%;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: var(--space-5);
  min-width: 22rem;
  margin-top: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 18px 40px rgb(0 0 0 / 12%);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-short) var(--ease-out), visibility var(--dur-short) var(--ease-out);
}

.nav-item--menu:hover .nav-menu,
.nav-item--menu:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
}

.nav-menu__title {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu__link {
  display: block;
  padding-block: var(--space-2);
  color: var(--fg);
  font-size: var(--text-sm);
  text-decoration: none;
}

.nav-menu__link:hover,
.nav-menu__link:focus-visible {
  color: var(--accent);
}

/* --- mobile sticky action bar -------------------------------------------- */

.studio-menu { position: relative; }
.studio-menu > summary { display: flex; align-items: center; gap: .4rem; cursor: pointer; list-style: none; }
.studio-menu > summary::-webkit-details-marker { display: none; }
.studio-menu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.studio-menu__arrow { width: 1rem; height: 1rem; flex: none; transition: transform 150ms ease; }
.studio-menu[open] .studio-menu__arrow { transform: rotate(180deg); }
.studio-menu > .studio-menu__links {
  position: absolute; z-index: 45; top: calc(100% + .5rem); right: 0;
  min-width: 13rem; margin: 0; padding: .75rem 1rem; list-style: none;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: 0 18px 40px rgb(0 0 0 / 12%);
}
.studio-menu .nav-menu__link[aria-current="page"] { color: var(--accent); font-weight: 650; }
@media (max-width: 760px) {
  .studio-menu > .studio-menu__links { position: static; min-width: 0; margin-top: .5rem; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-menu__arrow { transition: none; }
}

.home-sticky-bar {
  display: none;
}

/* Bar height (73px) plus breathing room: page padding, hero height and the helpbot all key off it. */
:root {
  --home-mobile-action-clearance: 88px;
}

@media (max-width: 767px) {
  .home-sticky-bar {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 -8px 24px rgb(0 0 0 / 10%);
  }

  .home-sticky-bar > * {
    flex: 1 1 0;
    justify-content: center;
    min-height: 48px;
  }

  /* Keep the last section clear of the bar. */
  .home-page {
    padding-bottom: calc(var(--home-mobile-action-clearance) + env(safe-area-inset-bottom));
  }

  /* The floating helpbot sits above the bar instead of on top of it. */
  .home-page ~ .helpbot {
    bottom: calc(var(--home-mobile-action-clearance) + env(safe-area-inset-bottom));
  }
}

/* --- mobile gutters and tap targets -------------------------------------- */

@media (max-width: 767px) {
  .topbar-inner {
    padding-inline: var(--space-4);
  }

  .topbar-inner .nav-actions {
    margin-right: 0;
  }

  .brand {
    min-height: 44px;
  }

  .nav-menu__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer-links {
    gap: 0;
  }

  .footer-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }

  .footer-brand-link {
    min-height: 44px;
    align-items: center;
  }
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 860px) {
  .home-capture-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-budget-chip,
  .nav-menu {
    transition: none;
  }

  .home-category-track,
  .home-recent-track {
    scroll-behavior: auto;
  }
}

/* Ongoing offer: discount rows, saving note and "add more" nudge */
.summary-row-discount b { font-weight: 600; }
.summary-saving, .promotion-nudge { margin: 0.5rem 0; }
.promotion-nudge strong { font-weight: 600; }
