/* Каталог: табы разделов, боковые фильтры, сетка. */

.cat-page { padding-top: 34px; }
.cat-head { margin-bottom: 22px; }
.cat-head p { margin-top: 8px; max-width: 60ch; }

.cat-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  border-bottom: 1px solid var(--line); margin-bottom: 26px;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  padding: 10px 16px; border-radius: 999px 999px 0 0; font-size: 14.5px; font-weight: 500;
  color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.cat-tab:hover { color: var(--ink); }
.cat-tab.is-on { color: var(--ink); font-weight: 600; border-bottom-color: var(--hl); }

.cat-body { display: grid; grid-template-columns: 216px 1fr; gap: 34px; align-items: start; }

.cat-filters { position: sticky; top: calc(var(--head-h) + 18px); display: grid; gap: 24px; }
.filter-block h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 11px;
}
.filter-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-opts .pill { padding: 6px 12px; font-size: 13px; }
.filter-colors { gap: 8px; }
.swatch {
  width: 24px; height: 24px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: inset 0 0 0 2px #fff; transition: box-shadow .15s, transform .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-on { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ink); }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--hl); }

.cat-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.cat-bar .muted { font-size: 14px; }
.cat-sort select { padding: 9px 13px; font-size: 14px; border-radius: 999px; }

.cat-empty {
  padding: 60px 20px; text-align: center; background: var(--surface);
  border-radius: var(--r-lg); display: grid; gap: 10px; justify-items: center;
}

@media (max-width: 900px) {
  .cat-body { grid-template-columns: 1fr; gap: 20px; }
  .cat-filters {
    position: static; grid-template-columns: 1fr; gap: 16px;
    background: var(--surface); border-radius: var(--r-lg); padding: 18px;
  }
}
