/* =====================================================================
   GT Dynamics — products.html (catalog)
   Layout only: sticky filter bar, results bar, "can't find it" plaque.
   Cards, chips, segmented, inputs, empty state come from components.css.
   Owner: web-pages (B). Tokens only.
   ===================================================================== */

/* ---------- Page head ---------- */
.pr-head__specs { margin-top: var(--sp-8); }

/* ---------- Sticky filter bar (direct child of <main> → sticks for the whole page) ---------- */
.pr-filters {
  position: sticky;
  top: var(--header-h);
  z-index: calc(var(--z-header) - 1);
  border-bottom: 1px solid var(--line-1);
  background: color-mix(in srgb, var(--bg-0) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pr-filters__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3) var(--sp-6);
  min-height: calc(var(--sp-16) - var(--sp-2));
  padding-block: var(--sp-3);
}
.pr-filters__chips { flex: 1 1 auto; min-width: 0; }
.pr-filters__tools {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.pr-search { width: 240px; }
.pr-search .input { padding-right: var(--sp-10); }
.pr-search .input-wrap__end { right: 4px; }

/* fade the right edge of the scrolling chip row */
.pr-filters__chips {
  -webkit-mask-image: linear-gradient(to right, var(--bg-0) calc(100% - var(--sp-6)), transparent);
  mask-image: linear-gradient(to right, var(--bg-0) calc(100% - var(--sp-6)), transparent);
  padding-right: var(--sp-6);
}

/* lead: chips get their own row at every width — 7 categories / 5 regions never fit beside the tools in the 1200px container */
@media all {
  .pr-filters__inner { flex-wrap: wrap; }
  .pr-filters__chips { flex-basis: 100%; }
  .pr-filters__tools { flex: 1 1 100%; justify-content: space-between; }
  .pr-search { flex: 0 1 300px; }
}
@media (max-width: 720px) {
  .pr-filters { position: relative; top: auto; }  /* two-row bar would eat a small screen */
  .pr-filters__tools { flex-direction: column; align-items: stretch; }
  .pr-filters__tools .segmented { align-self: flex-start; }
  .pr-search { flex: 1 1 auto; width: 100%; }
}

/* ---------- Results ---------- */
.pr-results { padding-top: var(--sp-8); }
.pr-results__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--sp-8);
  margin-bottom: var(--sp-5);
}
.pr-results__count { margin: 0; }

/* product card foot: dealer count (translated → body font in JA) */
.pr-card__meta { text-align: right; }
html[lang="ja"] .pr-card__meta { font-family: var(--font-body); letter-spacing: 0.04em; }

/* ---------- "Can't find what you need?" plaque ---------- */
.pr-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-8);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--bg-2);
  background-image: var(--dot-grid);
  background-size: var(--grid-size) var(--grid-size);
}
.pr-cta__icon { background: var(--bg-4); }
.pr-cta__body { min-width: 0; }
.pr-cta__body .h3 { margin: 0; }
.pr-cta__text { margin-top: var(--sp-2); max-width: 62ch; font-size: var(--fs-sm); color: var(--text-2); }
.pr-cta__actions { justify-content: flex-end; }

@media (max-width: 960px) {
  .pr-cta { grid-template-columns: auto minmax(0, 1fr); }
  .pr-cta__actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .pr-cta { grid-template-columns: minmax(0, 1fr); padding: var(--sp-6); gap: var(--sp-4); }
  .pr-cta__actions .btn { flex: 1 1 auto; }
}

/* ---------- Lite performance tier (GTD.perf, DESIGN.md §13) — added by web-design-system, phase 5A ---------- */
html[data-perf="lite"] .pr-filters { background: var(--bg-0); } /* solid instead of blur */
