/* Product catalog and detail pages */
.catalog-hero {
  background: var(--brand-gradient);
  color: #fff;
}

.catalog-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
  padding-block: clamp(26px, 3.5vw, 46px);
}

.catalog-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #c7d5eb;
  font-size: 13px;
}

.catalog-home-link:hover { color: #fff; }

.catalog-hero h1 {
  margin: 6px 0 12px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.catalog-hero p {
  max-width: 56ch;
  margin: 0;
  color: #d5e1f1;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.65;
}

.catalog-hero-image {
  display: block;
  width: 100%;
  height: clamp(158px, 15vw, 212px);
  object-fit: cover;
  border-radius: 22px;
}

.catalog-filters {
  display: grid;
  gap: 11px;
  padding-block: 23px;
  border-bottom: 1px solid var(--line);
}

.catalog-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.catalog-filter {
  min-height: 42px;
  padding: 8px 15px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 13px/1.2 var(--type-ui);
}

.catalog-filter:hover { background: var(--tint); border-color: #b9c8df; }
.catalog-filter[aria-pressed="true"] { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.catalog-filter-subrow .catalog-filter { min-height: 36px; padding-inline: 13px; }
.catalog-filter-subrow .catalog-filter[aria-pressed="true"] {
  background: var(--brand-amber-wash);
  border-color: #e8ce9f;
  color: var(--brand-amber-ink);
}

.product-center > .catalog-content { padding-top: clamp(22px, 3.5vw, 44px); }
.product-center .product-results-heading {
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 19px;
  padding: 0;
  border: 0;
}

.product-center .product-results-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); }
.product-center .product-results-heading > span { color: var(--muted); }
.product-center .wood-collection-note { padding: 15px 20px; margin: 22px 0 0; }
.wood-collection-note .wood-collection-kicker { display: none; }
.wood-collection-note .wood-collection-copy h3 { margin-bottom: 4px; }
.wood-collection-note .wood-collection-description { margin: 0; }

.product-center .product-grid {
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-center .product-card { display: flex; flex-direction: column; }
.product-center .product-card-image { aspect-ratio: 8 / 5; }
.product-center .product-card-image img { transition: transform 320ms var(--ease-out); }
.product-center .product-card-image:hover img { transform: scale(1.035); }
.product-center .product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(16px, 2vw, 24px);
}

.product-center .product-card-category {
  color: var(--brand-blue);
  background: var(--tint);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
}

.product-center .product-card h3 { font-size: clamp(17px, 2vw, 24px); line-height: 1.25; margin-bottom: 14px; }
.product-center .card-link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.product-center .card-link:hover { background: var(--brand-navy-light); color: #fff; }
.product-center .product-actions { margin-top: 12px; }

.catalog-loading {
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}

body[data-page="product"] .detail-heading {
  margin: 18px 0 24px;
  padding: clamp(24px, 4vw, 50px);
  border-radius: var(--radius-frame);
  background: var(--brand-gradient);
}

body[data-page="product"] .detail-heading h1 { color: #fff; }
body[data-page="product"] .detail-heading :is(.section-kicker, .detail-model) { color: #c7d5eb; }
body[data-page="product"] .detail-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
body[data-page="product"] .detail-image { min-height: 0; aspect-ratio: 4 / 3; }
body[data-page="product"] .detail-image img { display: block; width: 100%; height: 100%; }
body[data-page="product"] .detail-sales { margin-top: 18px; }

@media (max-width: 850px) {
  .product-center .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .catalog-hero-inner, body[data-page="product"] .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-hero-image { height: 128px; }
  .catalog-filter { font-size: 12px; padding-inline: 11px; }
  .product-center .wood-collection-note { padding: 14px 16px; }
}

@media (max-width: 460px) {
  .product-center .product-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .product-center .product-card-image:hover img { transform: none; }
}
