/* Color roles shared across routes; page-owned grids and interactions stay intact. */
.home-page .hero .hero-art {
  background: var(--surface-peach);
  border-color: var(--terra);
}
.home-page .story, .home-page .shop { background: var(--white); }
.home-page .why, .editorial-page .story-mission {
  background: var(--sage);
  color: var(--text-strong);
  --text-muted: var(--text-strong);
  --accent-text: var(--text-strong);
  --border: var(--border-control);
}
.home-page .philosophy {
  background: var(--peach);
  box-shadow: 0 0 0 100vmax var(--peach);
  clip-path: inset(0 -100vmax);
}
.home-page .philosophy-image span { background: var(--cream); }
.home-page .image-caption { background: var(--sage); color: var(--text-strong); }
.home-page .cta { color: var(--text-strong); }
.home-page .marquee { background: var(--surface-sage); color: var(--text-strong); }

/* A compact shop introduction with a contained, tactile geometric composition. */
.products-page .catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 32px 22px;
  min-height: 0;
  background: var(--surface-peach);
  box-shadow: 0 0 0 100vmax var(--surface-peach);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.products-page .catalog-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.03;
  margin-bottom: 18px;
}
.products-page .catalog-hero .breadcrumb { margin-bottom: 20px; }
.products-page .catalog-hero > div:first-child > p:last-child {
  max-width: 48ch;
  margin-bottom: 0;
}
.products-page .hero-dots {
  display: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.35;
  padding: 0;
  font-size: 0;
  transform: none;
  border-radius: 48% 48% 4px 4px;
  background: var(--peach);
  border: 1px solid var(--terra);
}
.products-page .hero-dots::before,
.products-page .hero-dots::after { content: ''; position: absolute; }
.products-page .hero-dots::before {
  inset: 13% 30% -14% 12%;
  background: var(--sage);
  border-radius: 48% 48% 8px 8px;
  transform: rotate(-16deg);
  box-shadow: 0 0 0 10px var(--surface-peach);
}
.products-page .hero-dots::after {
  width: 42%;
  aspect-ratio: 1;
  right: 10%;
  bottom: 12%;
  border-radius: 50%;
  background: var(--terra);
  border: 12px solid var(--cream);
}
.products-page .catalog-layout { padding-top: 36px; }
.catalog-layout > aside { background: var(--surface-sage); box-shadow: 0 0 0 16px var(--surface-sage); }
.filter-drawer { background: var(--white); }
.search-field { background: var(--white); }
.filter.active { color: var(--text-strong); background: var(--surface-sage); border-color: var(--text-strong); }
.mobile-filter-button { background: var(--surface-sage); }
.breadcrumb { color: var(--text-muted); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.product-tag, .catalog-badge { background: var(--cream); color: var(--ink); }
.catalog-card:nth-child(4n + 1) .catalog-image { background: var(--surface-peach); }
.catalog-card:nth-child(4n + 2) .catalog-image { background: var(--surface-sage); }
.catalog-card:nth-child(4n + 3) .catalog-image { background: var(--surface-sand); }
.catalog-card:nth-child(4n) .catalog-image { background: var(--cream); }
.detail-page .detail-image { background: var(--surface-peach); }
.detail-gallery { display: grid; gap: 12px; align-content: start; }
.detail-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--cream); cursor: pointer; }
.detail-thumbs button[aria-pressed="true"] { border-color: var(--text-strong); }
.detail-thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.detail-page .product-specs { background: var(--cream); box-shadow: 0 0 0 12px var(--cream); }
.detail-page .related-card:nth-child(2) img { background: var(--surface-sage); }
.detail-page .related-card:nth-child(3) img { background: var(--surface-peach); }

/* Storytelling carries color; forms and information remain on quiet surfaces. */
.editorial-page .story-portrait { background: var(--peach); }
.editorial-page .design-art { background: var(--surface-sage); }
.editorial-page .design-contours {
  border-color: var(--sage);
  box-shadow: 0 0 0 16px var(--surface-sage), 0 0 0 17px var(--sage),
    0 0 0 34px var(--surface-sage), 0 0 0 35px var(--sage),
    0 0 0 52px var(--surface-sage), 0 0 0 53px var(--sage);
}
.editorial-page .story-closing { background: var(--peach); }
.contact-editorial .contact-workspace { background: var(--surface-peach); }
.contact-editorial .message-form { background: var(--white); }
.contact-editorial .message-status { background: var(--surface-sage); }
.cart-page .cart-item-image { background: var(--surface-sand); }
.cart-page .cart-summary, .cart-page .cart-empty { background: var(--cream); }
.cart-page .cart-checkout-note { background: var(--surface-sage); }

/* Deeper action colors keep small labels readable on every brand surface. */
.button-primary, .catalog-actions button {
  background: var(--action-bg);
  color: var(--white);
}
.button-outline { color: var(--action-bg); border-color: var(--action-bg); background: var(--white); }
.button-light { color: var(--ink); background: var(--white); }
.cart-link > span { background: var(--action-bg); color: var(--white); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}
.search-field:focus-within { outline-color: var(--focus-ring); }
.site-footer a:focus-visible { outline-color: var(--white); }
.home-page .cta a:focus-visible { outline-color: var(--focus-ring); }
@media (hover: hover) {
  .button-primary:hover, .catalog-actions button:hover { background: var(--action-hover); color: var(--white); }
  .button-outline:hover, .button-light:hover, .add-button:hover,
  .heart:hover { background: var(--surface-sage); color: var(--ink); }
  .cart-quantity button:not(:disabled):hover { background: var(--surface-sage); }
  .filter:hover { color: var(--text-strong); background: var(--surface-sage); }
}
@media (min-width: 801px) {
  .products-page .catalog-hero {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
    gap: clamp(32px, 6vw, 80px);
    padding: 40px;
  }
  .products-page .hero-dots { display: block; }
  .products-page .catalog-layout { padding-top: 44px; }
}
