/* Каталог */
.cat-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 18px; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--color-border); }
.cat-filter button {
  appearance: none; border: 0; background: none; cursor: pointer; position: relative;
  padding: 12px 14px; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-muted);
}
.cat-filter button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: transparent; transition: background-color .2s; }
.cat-filter button[aria-pressed="true"] { color: var(--color-text); }
.cat-filter button[aria-pressed="true"]::after { background: var(--color-primary); }
@media (hover: hover) { .cat-filter button:hover { color: var(--color-text); } }
.cat-search { flex: 0 1 340px; }
.cat-search .input { min-height: 44px; }
.cat-count { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 22px; }

.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.prod[hidden] { display: none; }
.prod__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-background); }
.prod__img img { width: 100%; height: 100%; object-fit: cover; }
.prod__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(var(--text-rgb), .12), transparent 70%); }
.prod__cat { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.prod__name { font-size: 19px; font-weight: 700; line-height: 1.25; }
.prod__spec { font-size: 12.5px; color: var(--color-text-muted); }
.cat-empty { display: grid; gap: 12px; justify-items: start; padding: 40px 0; }
@media (max-width: 1000px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cat-filter { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .cat-filter button { white-space: nowrap; }
  .cat-search { flex: 1 1 100%; }
  .prod-grid { grid-template-columns: 1fr; gap: 22px; }
}
