/* berezin: каталог Figma 1091:20257/20204. Только представление newsite;
 * названия, цены и SEO-адреса приходят из Shop-Script. */
.wite-newsite .wite-seo-filters,
.wite-newsite .wite-catalog-toolbar,
.wite-newsite .sidebar-filters {
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 17px rgba(0,0,0,.05);
}
.wite-newsite .wite-seo-filters { display: flex; align-items: flex-start; gap: 16px; padding: 16px; margin-bottom: 8px; min-width: 0; }
.wite-newsite .wite-seo-filters__links { display: flex; flex: 1 1 0; flex-wrap: wrap; gap: 8px; min-width: 0; }
/* Без JS все ссылки доступны. Сворачиваем лишь после подключения кнопки. */
.wite-newsite .wite-seo-filters[data-ready="true"]:not(.is-expanded) .wite-seo-filters__links { max-height: 32px; overflow: hidden; }
.wite-newsite .wite-seo-filters__link { display: inline-flex; align-items: center; min-height: 32px; max-width: 100%; padding: 8px 16px; background: #f2f2f2; color: #000; border-radius: 4px; font-size: 16px; line-height: 16px; text-decoration: none; overflow-wrap: anywhere; }
.wite-newsite .wite-seo-filters__link:hover,
.wite-newsite .wite-seo-filters__link_current { background: #eaf5e2; color: var(--wite-green-dark); }
.wite-newsite .wite-seo-filters__toggle,
.wite-newsite .wite-filter-values-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none; padding: 8px 0; border: 0; background: none; color: #06f; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 16px; letter-spacing: .42px; text-transform: uppercase; cursor: pointer; }
.wite-newsite .wite-seo-filters__toggle[hidden],
.wite-newsite .wite-filter-values-toggle[hidden] { display: none; }
.wite-newsite .wite-seo-filters__toggle[aria-expanded="true"] .wite-kit-icon,
.wite-newsite .wite-filter-values-toggle[aria-expanded="true"] .wite-kit-icon { transform: rotate(180deg); }
/* berezin: один белый блок с общими отступами. Вложенная тень NovaShop
 * создавала серую полосу под плашками и визуально «съедала» отступы. */
.wite-newsite .wite-catalog-toolbar { margin-bottom: 16px; padding: 20px; border: 0; }
.wite-newsite .wite-catalog-toolbar .products-bar { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.wite-newsite .wite-catalog-toolbar .products-bar__content { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.wite-newsite .wite-catalog-toolbar .products-bar__main { display: flex; flex: 1 1 0; min-width: 0; flex-wrap: wrap; align-items: center; gap: 16px; }
.wite-newsite .wite-catalog-toolbar .products-bar__sorting { flex: 0 1 auto; width: auto; min-width: 0; margin: 0; }
.wite-newsite .wite-catalog-toolbar .products-bar-sorting { display: flex; gap: 4px; align-items: center; margin: 0; font-size: 16px; line-height: 24px; }
.wite-newsite .wite-sorting-label { flex: none; color: #000; }
.wite-newsite .wite-catalog-toolbar .products-bar-sorting > .inline-field__content { margin: 0; min-width: 0; }
.wite-newsite .wite-catalog-toolbar .products-bar-sorting__select { width: auto; min-width: 0; border: 0; background: none; box-shadow: none; }
.wite-newsite .wite-catalog-toolbar .products-bar-sorting__select .select__box { min-height: 24px; height: auto; padding: 0; border: 0; background: transparent; box-shadow: none; color: #06f; font-size: 16px; line-height: 24px; }
.wite-newsite .wite-catalog-toolbar .select__content { padding: 0; min-width: 0; }
.wite-newsite .wite-catalog-toolbar .select__arrow { padding: 0; margin-left: 4px; }
.wite-newsite .wite-catalog-toolbar .select__dropdown { min-width: 240px; max-width: calc(100vw - 48px); }
.wite-newsite .wite-catalog-toolbar .products-bar__controls { flex: none; margin: 0; }
.wite-newsite .wite-catalog-toolbar .products-view-types { display: flex; gap: 8px; margin: 0; }
.wite-newsite .wite-catalog-toolbar .products-view-types__item { padding: 0; margin: 0; }
/* Два режима из макета. Третий дубль «крупная сетка» больше не занимает место. */
.wite-newsite .wite-catalog-toolbar .products-view-types__item:has([data-view_type="big-thumbs"]) { display: none; }
.wite-newsite .wite-catalog-toolbar .products-view-type { width: 24px; height: 24px; min-width: 24px; padding: 0; border: 0; background: none; opacity: .55; }
.wite-newsite .wite-catalog-toolbar .products-view-type_active { opacity: 1; }
.wite-newsite .wite-catalog-toolbar .products__search_bar { flex: 1 1 180px; min-width: 160px; max-width: 260px; margin: 0; }
.wite-newsite .wite-catalog-toolbar .products-search__input-text { min-height: 32px; height: 32px; padding-top: 4px; padding-bottom: 4px; }
/* berezin: поле стало ниже, а NovaShop оставила старые отрицательные отступы
 * лупы и крестика. Центрируем их относительно поля, а не «на глаз минус 4px». */
.wite-newsite .wite-catalog-toolbar .products__search_bar .products-search,
.wite-newsite .wite-catalog-toolbar .products__search_bar .products-search__input { width: 100%; min-width: 0; }
.wite-newsite .wite-catalog-toolbar .products__search_bar .products-search__input-text { width: 100%; padding-right: 68px; }
.wite-newsite .wite-catalog-toolbar .products__search_bar .products-search__header-input-search,
.wite-newsite .wite-catalog-toolbar .products__search_bar .products-search__header-input-close { top: 50%; bottom: auto; width: 24px; height: 24px; margin: 0; padding: 0; transform: translateY(-50%); align-items: center; justify-content: center; }
.wite-newsite .wite-catalog-toolbar .products__search_bar .products-search__header-input-search { right: 8px; }
.wite-newsite .wite-catalog-toolbar .products__search_bar .products-search__header-input-close { right: 36px; }
.wite-newsite .wite-catalog-selected { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.wite-newsite .wite-catalog-selected .products__filters-button,
.wite-newsite .wite-catalog-selected .products__filters-reset { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; max-width: 100%; margin: 0; padding: 8px 16px; border: 0; border-radius: 4px; background: #f2f2f2; color: #000; font: inherit; font-size: 16px; font-weight: 600; line-height: 24px; cursor: pointer; }
.wite-newsite .wite-catalog-selected .products__filters-reset { background: transparent; }
.wite-newsite .wite-catalog-selected .icon-box { display: flex; align-items: center; gap: 4px; min-width: 0; }
.wite-newsite .wite-catalog-selected .icon-box__content,
.wite-newsite .wite-catalog-selected .icon-box__icon { margin: 0; padding: 0; }
.wite-newsite .wite-catalog-selected .products__filters-button-text { white-space: normal; overflow-wrap: anywhere; }
.wite-newsite .wite-catalog-selected__empty { color: #808080; font-size: 14px; line-height: 24px; }

/* Боковая колонка: отступ 20px, строка 24px и 12px между значениями. */
.wite-newsite .sidebar-filters__header { display: none; }
.wite-newsite .filters:not(.filters_horizontal) .filters__filter { border-bottom: 1px solid #f0f0f0; }
.wite-newsite .filters:not(.filters_horizontal) .filter__header { min-height: 60px; padding: 20px 0 16px; }
.wite-newsite .filters .filter__header > .icon-box { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; }
.wite-newsite .filters .filter__header .icon-box__content,
.wite-newsite .filters .filter__header .icon-box__icon { margin: 0; padding: 0; }
.wite-newsite .filters .accordion-block_open .filter__toggle-icon { transform: rotate(180deg) !important; }
.wite-newsite .filters .filter__search { margin-bottom: 16px; }
.wite-newsite .filters .filter__search-field { height: 40px; min-height: 40px; font-size: 16px; }
.wite-newsite .filters .filter__values:not(.filter__values_horizontal) { display: flex; flex-direction: column; gap: 12px; }
.wite-newsite .filters .filter__value .checkbox { display: flex; align-items: center; min-height: 24px; gap: 12px; padding: 0 4px; }
.wite-newsite .filters .filter__value .checkbox__mark { width: 16px; height: 16px; min-width: 16px; flex-basis: 16px; margin: 0; }
.wite-newsite .filters .filter__value .checkbox__label { padding: 0; margin: 0; }
.wite-newsite .filters .wite-filter-values_limited { max-height: 240px !important; }
.wite-newsite .filters .wite-filter-values_limited.is-expanded,
.wite-newsite .filters .wite-filter-values_limited.is-searching { max-height: none !important; }
.wite-newsite .wite-filter-values-toggle { margin-top: 12px; }
.wite-newsite .filters .range-slider__bounds { gap: 12px; }
.wite-newsite .filters .range-slider__bound { display: flex; flex-direction: row; align-items: center; gap: 4px; min-width: 0; height: 40px; padding: 0 8px; border: 1px solid #e5e5e5; border-radius: 4px; background: #fff; box-shadow: 0 4px 17px rgba(0,0,0,.05); }
.wite-newsite .filters .range-slider__label,
.wite-newsite .wite-price-currency { flex: none; color: #a0a0a0; font-size: 12px; line-height: 16px; }
.wite-newsite .filters .range-slider__input-wrapper { flex: 1 1 0; min-width: 0; width: auto; }
.wite-newsite .filters .range-slider__input { height: 38px; min-height: 38px; padding: 0; border: 0; box-shadow: none; font-size: 14px; line-height: 24px; background: none; text-align: left; }
.wite-newsite .filters .filters__footer { padding-top: 20px; gap: 12px; }
.wite-newsite .filters .filters__footer .button { min-height: 40px; font-size: 14px; text-transform: uppercase; letter-spacing: .42px; }
.wite-newsite .filters .filters__reset-button { border: 1px solid #e5e5e5; background: #fff; color: #000; }

@media (max-width: 1023px) {
    .wite-newsite .wite-catalog-toolbar .products-bar__content { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
    .wite-newsite .wite-catalog-toolbar .products-bar__main { grid-column: 1 / -1; grid-row: 1; width: 100%; }
    .wite-newsite .wite-catalog-toolbar .products-bar__filters { grid-column: 1; grid-row: 2; width: 100%; }
    .wite-newsite .wite-catalog-toolbar .products-bar__controls { grid-column: 2; grid-row: 2; }
    .wite-newsite .wite-catalog-toolbar .r-filters__toggle .wite-kit-icon { --wite-icon-color: var(--wite-green) !important; }
    .wite-newsite .wite-catalog-toolbar .sorting-select__icon,
    .wite-newsite .wite-catalog-toolbar .sorting-select__sorting { display: none; }
    .wite-newsite .wite-catalog-toolbar .products-bar-sorting__select { max-width: calc(100vw - 160px); }
    .wite-newsite .wite-catalog-toolbar .products-bar-sorting__select .select__box { font-size: 14px; }
    .wite-newsite .wite-seo-filters { flex-wrap: wrap; gap: 8px; padding: 12px; }
    .wite-newsite .wite-seo-filters__links { flex-basis: 100%; }
    .wite-newsite .wite-seo-filters__toggle { margin-left: auto; }
    .wite-newsite .wite-seo-filters__link { font-size: 14px; padding-left: 12px; padding-right: 12px; }
    .wite-newsite .wite-catalog-toolbar { padding: 16px; }
    .wite-newsite .wite-catalog-selected { gap: 8px; }
    .wite-newsite .wite-catalog-selected .products__filters-button,
    .wite-newsite .wite-catalog-selected .products__filters-reset { font-size: 14px; padding: 8px; }
    .wite-newsite .filters .filter__value .checkbox { min-height: 32px; }
    .wite-newsite .filters .range-slider__bound { min-height: 44px; }
    .wite-newsite .filters .range-slider__input { min-height: 42px; height: 42px; font-size: 16px; }
}
