.catalog-shared-filter { display: grid; gap: 16px; color: var(--site-ink); min-width: 0; }
.catalog-shared-filter .catalog-filter-field, .catalog-shared-filter .catalog-filter-price label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--site-muted); }
.catalog-filter-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.catalog-filter-price input { width: 100%; min-width: 0; }
.catalog-filter-group { border-bottom: 1px solid var(--site-border); padding-bottom: 12px; }
.catalog-filter-group summary { font-weight: 700; cursor: pointer; padding: 6px 0; }
.catalog-filter-options { max-height: 250px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--accent) var(--site-surface); }
.catalog-shared-filter label.catalog-filter-choice { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 4px 0; font-size: 14px; font-weight: 400; color: var(--site-ink); cursor: pointer; }
.catalog-shared-filter .catalog-filter-choice input[type="checkbox"] { min-height: 0; width: 18px; height: 18px; padding: 0; flex: 0 0 18px; appearance: auto; accent-color: var(--accent); }
.catalog-filter-choice small { margin-left: auto; color: var(--site-muted); }
.catalog-filter-choice:has(input:disabled) { opacity: .5; }
.catalog-filter-group:not([data-option-search-active="true"]):not([data-options-expanded="true"]) .catalog-filter-options > .catalog-filter-choice:nth-child(n+8):not(:has(input:checked)) { display: none; }
.catalog-shared-filter .catalog-filter-choice[hidden], .catalog-filter-group[data-option-search-active="true"] .catalog-filter-more { display: none; }
.catalog-shared-filter .catalog-brand-search, .catalog-shared-filter .catalog-category-search { width: 100%; min-width: 0; margin: 6px 0; }
.catalog-brand-search-empty, .catalog-category-search-empty { color: var(--site-muted); padding: 8px 0; }
.catalog-shared-filter .catalog-filter-more { min-height: 40px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: var(--site-muted); font-size: 13px; font-weight: 400; text-align: left; }
.catalog-shared-filter .catalog-filter-more:hover { color: var(--accent); }
.catalog-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.catalog-filter-chips a { padding: 7px 10px; border: 1px solid var(--site-border); border-radius: 10px; color: var(--site-ink); background: var(--site-surface); text-decoration: none; font-size: 13px; }
.catalog-filter-chips a:hover { border-color: var(--accent); }
.catalog-filter-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle; }
.catalog-filter-badge[hidden] { display: none; }
.catalog-shared-sort { display: flex !important; min-width: 0; }
.catalog-shared-sort select { max-width: 220px; background-color: var(--site-surface); color: var(--site-ink); border-color: var(--site-border); }
.wb-filter, .avito-filter { height: auto; max-height: none; overflow: visible; align-self: start; }
@media(min-width: 992px) {
  aside.wb-filter, aside.avito-filter, .card.catalog-filter-card { position: static; height: auto; max-height: none; overflow: visible; }
  .catalog-filter-card .card-body { overflow: visible; }
  .catalog-filter-options { max-height: none; overflow: visible; }
}
[data-catalog-feedback]:not(:empty) { margin-bottom: 12px; color: var(--site-muted); font-size: 14px; }
[data-catalog-chips][aria-busy="true"] { pointer-events: none; opacity: .65; }
.catalog-filter-mobile-summary { position: sticky; bottom: -18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); background: var(--site-surface); z-index: 1; }
.seller-catalog-layout { display: grid; grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: 24px; align-items: start; }
.seller-catalog-filter { padding: 18px; border: 1px solid var(--site-border); border-radius: 16px; background: var(--site-surface); color: var(--site-ink); min-width: 0; }
.seller-catalog-results { min-width: 0; }
.seller-catalog-layout .seller-catalog-results .seller-products-grid.avito-feed,
.seller-catalog-layout .seller-catalog-results .seller-products-grid.wb-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seller-filter-sheet { --bs-offcanvas-height: 86dvh; border-radius: 20px 20px 0 0; background: var(--site-surface); color: var(--site-ink); }
.seller-filter-sheet .offcanvas-header { border-bottom: 1px solid var(--site-border); flex-shrink: 0; }
.seller-filter-sheet .offcanvas-body { overflow-y: auto; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
@media(min-width: 992px) { .seller-catalog-layout .catalog-product-item { width: 33.333333%; } }
@media(max-width: 991.98px) {
  .seller-catalog-layout { display: block; }
  .seller-catalog-layout .seller-catalog-results .seller-products-grid.avito-feed,
  .seller-catalog-layout .seller-catalog-results .seller-products-grid.wb-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seller-catalog-results .seller-results-head { position: sticky; top: 0; z-index: 10; }
  .seller-catalog-results .catalog-shared-sort { flex: 1; }
  .seller-catalog-results .catalog-shared-sort select { width: 100%; max-width: 100%; }
}
@media(max-width: 991.98px) { .catalog-shared-sort select { max-width: 180px; font-size: 13px; } .catalog-filter-options { max-height: none; overflow: visible; } }
@media(max-width: 991.98px) {
  .wb-toolbar > strong,.avito-toolbar > strong { display:none; }
  .wb-toolbar-actions,.avito-toolbar-actions { width:100%; min-width:0; }
  .wb-toolbar-actions .catalog-shared-sort,.avito-toolbar-actions .catalog-shared-sort { flex:1; }
  .wb-toolbar-actions .catalog-shared-sort select,.avito-toolbar-actions .catalog-shared-sort select { width:100%; max-width:100%; min-width:0; }
}
