/**
 * Витрина /wheels/ (wheels_market). Классы ap-home-* совместимы с панелью запчастей.
 */
.ap-home-feed-title__more {
    margin-left: 10px;
    font-size: 0.78em;
    font-weight: 600;
    color: #E23737;
    text-decoration: none;
}
.ap-home-feed-title__more:hover { text-decoration: underline; }

.wm-size-suggest {
    width: 100%;
    margin-top: 4px;
}
/* SERP sticky: отодвинуть чипы от строки поиска */
.mp-sf__sticky-search .wm-size-suggest.wm-serp-size-chips {
    margin-top: 18px;
}
.mp-sf__sticky-search .wm-size-suggest.wm-serp-size-chips .wm-size-suggest__note {
    margin-top: 8px;
    margin-bottom: 0;
}
.wm-size-suggest__hint {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6b6562;
}
.wm-size-suggest__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wm-size-suggest__note {
    margin: 24px 0 0;
    font-size: 13px;
    color: #5f6b76;
}
.wm-size-suggest__chip {
    border: 1px solid #d5dadc;
    background: #fff;
    color: #353433;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.1;
    cursor: pointer;
}
.wm-size-suggest__chip:hover {
    border-color: #E23737;
    color: #E23737;
}
.wm-size-suggest__chip.is-oem {
    border-color: #5bb98c;
    box-shadow: inset 0 0 0 1px rgba(91, 185, 140, 0.25);
}
.wm-size-suggest__chip.is-active {
    border-color: #E23737;
    color: #E23737;
    box-shadow: 0 0 0 1px rgba(226, 55, 55, 0.35);
}
.wm-size-suggest__chip.is-oem.is-active {
    border-color: #E23737;
    color: #E23737;
    box-shadow: 0 0 0 1px rgba(226, 55, 55, 0.35);
}

/* SERP: кнопка «Назад» не должна сжиматься чипами (у .wm-size-suggest width:100%). */
.wm-serp-back-panel.ap-home-search-panel--serp-back {
    align-items: flex-start;
    gap: 0;
    padding: 14px 16px;
}
.wm-serp-back-panel .wm-serp-size-chips.wm-size-suggest {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
}
.wm-serp-back-panel .wm-size-suggest__note {
    margin-top: 12px;
}
.js-wm-params-block .ap-home-field--searchable {
    min-width: 150px;
    flex: 1 1 150px;
}
.js-wm-params-block[hidden],
.js-wm-car-block[hidden] {
    display: none !important;
}

.wm-offer-tabs {
    display: flex;
    gap: 0;
    margin: 0 0 14px;
    border-bottom: 1px solid #e6e2df;
}
/* Mobile: табы дублируют «Разделы» в фильтрах и уезжают под fixed-поиск */
@media (max-width: 900px) {
    .wm-offer-tabs {
        display: none !important;
    }
}
.wm-offer-tabs__item {
    padding: 10px 18px;
    text-decoration: none;
    color: #6b6562;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.wm-offer-tabs__item.is-active {
    color: #E23737;
    border-bottom-color: #E23737;
}

.ap-home-field--full {
    flex: 1 1 100%;
    min-width: 100%;
}

.wm-filter-chips-wrap {
    margin-top: 4px;
}
.wm-filter-chips-wrap--icons {
    width: 100%;
}
.wm-filter-chips__label,
.wm-sort-bar__label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #6b6562;
    margin-bottom: 16px;
}
.wm-filter-chips,
.wm-sort-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wm-filter-chips--icons {
    gap: 10px 18px;
    align-items: center;
}
.wm-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d5dadc;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    background: #fff;
    color: #353433;
    position: relative;
}
.wm-filter-chip--icon {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 2px 0;
    gap: 8px;
    box-shadow: none;
}
/* Сайдбар sticky: .ap-home-field label { display:block } ломал ряд чипов */
.mp-sf__sidebar .wm-filter-chip:not([hidden]),
.mp-sf__sidebar label.wm-filter-chip.wm-filter-chip--icon:not([hidden]) {
    display: inline-flex !important;
    align-items: center;
    flex-direction: row;
    width: auto;
    max-width: 100%;
}
.mp-sf__sidebar .wm-filter-chip[hidden],
.mp-sf__sidebar label.wm-filter-chip[hidden] {
    display: none !important;
}
.wm-filter-chip--icon.is-active,
.wm-filter-chip--icon:has(input:checked) {
    border: 0;
    color: #353433;
    box-shadow: none;
}
.wm-filter-chip__box {
    width: 16px;
    height: 16px;
    border: 1.5px solid #9aa3ab;
    border-radius: 3px;
    background: #fff;
    flex: 0 0 auto;
    position: relative;
}
.wm-filter-chip--icon.is-active .wm-filter-chip__box,
.wm-filter-chip--icon:has(input:checked) .wm-filter-chip__box {
    border-color: #E23737;
    background: #E23737;
}
.wm-filter-chip--icon.is-active .wm-filter-chip__box::after,
.wm-filter-chip--icon:has(input:checked) .wm-filter-chip__box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.wm-filter-chip__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: block;
}
.wm-filter-chip__text {
    font-size: 14px;
    line-height: 1.2;
}
.wm-filter-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.wm-filter-chip.is-active,
.wm-filter-chip:has(input:checked) {
    border-color: #E23737;
    color: #E23737;
    box-shadow: inset 0 0 0 1px rgba(226, 55, 55, 0.15);
}

.wm-sort-bar {
    margin: 0 0 16px;
}
.wm-sort-chip {
    display: inline-block;
    border: 1px solid #d5dadc;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    text-decoration: none;
    color: #353433;
    background: #fff;
}
.wm-sort-chip:hover {
    border-color: #E23737;
    color: #E23737;
}
.wm-sort-chip.is-active {
    border-color: #E23737;
    background: #E23737;
    color: #fff;
}

.wm-mode-toggle-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.wm-mode-toggle {
    display: inline-flex;
    border: 1px solid #d5dadc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
}
.wm-mode-toggle__btn {
    border: 0;
    background: #fff;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #353433;
}
.wm-mode-toggle__btn.is-active {
    background: #E23737;
    color: #fff;
}
.wm-more-filters-btn {
    flex: 0 0 auto;
    height: var(--ap-ctrl-h, 40px);
    border: 1px solid #E23737 !important;
    color: #E23737 !important;
    background: #fff !important;
    border-radius: 10px !important;
    font-weight: 600;
    white-space: nowrap;
}
.wm-more-filters {
    display: none;
    flex-direction: column;
    gap: 12px;
}
.wm-more-filters.is-open {
    display: flex;
}

.ap-home-search-panel {
    --ap-ctrl-h: 32px;
    --ap-ctrl-radius: 8px;
    --ap-ctrl-border: #d5dadc;
    --ap-ctrl-fs: 14px;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 18px;
}
.ap-home-search-grid { display: flex; flex-direction: column; gap: 12px; }
.ap-home-search-box__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ap-home-field {
    flex: 1 1 160px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ap-home-field label {
    font-size: 12px;
    color: #6b6562;
}
.wm-assembly-params .wm-assembly-param-label {
    color: #1a1a1a;
}
.ap-home-search-panel .ap-home-field input,
.ap-home-search-panel .ap-home-field select {
    box-sizing: border-box;
    height: var(--ap-ctrl-h);
    border: 1px solid var(--ap-ctrl-border);
    border-radius: var(--ap-ctrl-radius);
    padding: 0 12px;
    font-size: var(--ap-ctrl-fs);
    background: #fff;
    width: 100%;
    color: #353433;
}
.ap-home-search-panel .ap-home-field input::placeholder {
    color: #6b6562;
    opacity: 1;
}
.ap-home-search-panel .ap-home-search-box--attrs select option {
    color: #353433;
}
.ap-home-search-panel .ap-home-search-box--attrs select:has(> option[value=""]:checked) {
    color: #6b6562;
}
.ap-home-search-panel .ap-home-search-box--attrs .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #353433;
}
.ap-home-search-panel .ap-home-search-box--attrs .select2-container--default .select2-selection--single .select2-selection__placeholder,
.ap-home-search-panel .ap-home-search-box--attrs .select2-container.wm-select-empty .select2-selection--single .select2-selection__rendered {
    color: #6b6562 !important;
}
.ap-home-search-panel__submit.wm-search-actions {
    display: block;
    flex: 1 1 100% !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    align-items: stretch !important;
    margin-top: 12px;
}
.wm-picked-size-msg {
    margin: 0 0 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #14532d;
    background: #ecfdf3;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12);
}
.wm-picked-size-msg::before {
    content: "\2192";
    display: inline-block;
    margin-right: 8px;
    color: #16a34a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    vertical-align: -1px;
}
.wm-search-actions__row {
    position: relative;
    display: flex;
    width: 100% !important;
    justify-content: center;
    align-items: center;
    min-height: 44px;
}
.wm-search-submit {
    min-width: 220px;
}
/* Как в запчастях (sticky footer): Сбросить — светлый, Подобрать — красный */
.mp-sf__sidebar-footer .ap-home-search-reset,
.mp-sf__sidebar .ap-home-filter-actions--footer .ap-home-search-reset {
    position: static !important;
    right: auto !important;
    top: auto !important;
    background: #fff !important;
    color: #353433 !important;
    border-color: #cfc9c4 !important;
    text-decoration: none;
}
.mp-sf__sidebar-footer .ap-home-search-find.btn-secondary,
.mp-sf__sidebar .ap-home-filter-actions--footer .ap-home-search-find.btn-secondary {
    background: #E23737 !important;
    color: #fff !important;
    border-color: #E23737 !important;
}
.mp-sf__sidebar-footer .ap-home-search-find.btn-secondary:hover,
.mp-sf__sidebar .ap-home-filter-actions--footer .ap-home-search-find.btn-secondary:hover {
    background: #c92f2f !important;
    border-color: #c92f2f !important;
}
/* Legacy вне sticky-футера (перекрывается правилами .mp-sf__sidebar-footer выше) */
.ap-home-search-find.btn-secondary {
    background: #fff;
    color: #E23737;
    border-color: #E23737;
}
.ap-home-search-reset {
    background: #E23737 !important;
    color: #fff !important;
    border-color: #E23737 !important;
}
.ap-home-search-reset.is-loading {
    pointer-events: none;
    opacity: 0.96;
}
.ap-home-search-reset.is-loading::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-top-color: #ffffff;
    border-radius: 50%;
    vertical-align: -2px;
    animation: wm-spin 0.8s linear infinite;
}
body.wm-is-busy,
body.wm-is-busy * {
    cursor: progress !important;
}
@keyframes wm-spin {
    to {
        transform: rotate(360deg);
    }
}

.ap-home-feed-title {
    margin: 8px 0 14px;
    font-size: 1.15rem;
}
/* Размер/стрелка заголовков — из ap_site_chrome.css */
.wm-wrap .ap-home-feed-title {
    margin: 12px 0 16px;
}
.wm-wrap .ap-home-feed-title__more {
    font-size: 0.72em;
}
.wm-wrap .ap-home-section-title {
    margin: 28px 0 14px;
}
/* Популярные марки — лого сверху, название капсом снизу */
.wm-wrap .ap-home-marks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@media (min-width: 700px) {
    .wm-wrap .ap-home-marks-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .wm-wrap .ap-home-marks-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.wm-wrap .ap-home-marks-grid .ap-home-mark-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    min-height: 92px;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
    border-radius: 10px;
}
.wm-wrap .ap-home-marks-grid .ap-home-mark-card .wm-popular-mark-logo,
.wm-wrap .ap-home-marks-grid .ap-home-mark-card img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin: 0;
    object-fit: contain;
}
.wm-wrap .ap-home-marks-grid .ap-home-mark-card .wm-popular-mark-logo.is-empty {
    visibility: hidden;
}
.wm-wrap .ap-home-marks-grid .wm-popular-mark-name {
    display: block;
    width: 100%;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wm-wrap .ap-home-seo-mark__name {
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.wm-wrap .ap-home-seo-mark {
    align-items: center;
}
.wm-wrap .ap-home-seo-mark__logo {
    margin-top: 0;
    align-self: center;
}
.wm-wrap .ap-home-seo-mark__body {
    align-self: center;
    justify-content: center;
}
/* Сетка ленты — home_vitrine.css (.ap-home-feed-grid) */
.wm-feed-empty { grid-column: 1 / -1; }
.wm-feed-empty-box {
    padding: 28px 20px;
    background: #f6f5f4;
    border-radius: 8px;
    color: #6b6562;
}
.wm-feed-empty-box p {
    margin: 0;
}

/* Карточки ленты — плашки как на AP (mp_ads_listing_card.css). */

/* В ряду сетки — одна высота (по самой высокой карточке) */
.wm-wrap .ap-home-feed-grid {
    align-items: stretch;
}
.wm-wrap .ap-home-feed-grid > li {
    align-self: stretch;
}
.wm-wrap .ap-home-feed-grid > li > .mp-ads-listing-card.wm-card {
    flex: 1 1 auto;
    height: 100%;
    max-width: none;
}
.wm-wrap .ap-home-feed-grid .wm-card.catalog__items {
    height: 100%;
}
.wm-wrap .ap-home-feed-grid .wm-card .catalog__items-link {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}
.wm-wrap .ap-home-feed-grid .wm-card .catalog__items-block {
    flex: 1 1 auto;
}
.wm-wrap .ap-home-feed-grid .wm-card .catalog__items-tab {
    margin-top: auto;
    flex-wrap: wrap !important;
    overflow: hidden;
    max-width: 100%;
    row-gap: 4px;
}

/* AP-карточки в блоке «Запчасти для …»: не даём extend/style.css (width:462px / height:100%)
   обрезать текст через overflow:hidden у .mp-ads-listing-card */
.wm-wrap .ap-home-feed-grid > li > .mp-ads-listing-card:not(.wm-card) {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}
.wm-wrap .ap-home-feed-grid .mp-ads-listing-card:not(.wm-card) .catalog__items-link {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
}
/* cart.css раньше ставил height:100% на photo-link — клип текста */
.wm-wrap .ap-home-feed-grid .mp-ads-listing-card:not(.wm-card) .mp-ads-listing-card__photo-link,
.wm-wrap .ap-home-feed-grid .mp-ads-listing-card:not(.wm-card) a.catalog-item-pictures {
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    max-height: none !important;
}
.wm-wrap .ap-home-feed-grid .mp-ads-listing-card:not(.wm-card) .catalog__items-picture {
    width: 100% !important;
    height: 148px !important;
    max-height: 148px !important;
    flex: 0 0 148px !important;
}
.wm-wrap .ap-home-feed-grid .mp-ads-listing-card:not(.wm-card) .catalog__items-block {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #353433 !important;
    padding: 10px 12px 12px !important;
    gap: 6px !important;
    background: #fff !important;
}
.wm-wrap .ap-home-feed-grid .mp-ads-listing-card:not(.wm-card) .catalog__items-title,
.wm-wrap .ap-home-feed-grid .mp-ads-listing-card:not(.wm-card) .catalog__items-price,
.wm-wrap .ap-home-feed-grid .mp-ads-listing-card:not(.wm-card) .mp-ads-listing-card__vehicle,
.wm-wrap .ap-home-feed-grid .mp-ads-listing-card:not(.wm-card) .mp-ads-listing-card__color {
    color: #353433 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 14px !important;
    white-space: normal !important;
}
.wm-wrap .ap-home-feed-grid .mp-ads-listing-card:not(.wm-card) .catalog__items-price {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

.wm-price-nowrap {
    white-space: nowrap;
}

.wm-wrap .wm-card .catalog__items-price,
.wm-wrap .wm-card .wm-card-price,
.wm-wrap .wm-card .catalog__items-price .wm-price-nowrap {
    color: #E23737 !important;
}
.wm-wrap .wm-card.mp-ads-listing-card--special .catalog__items-price,
.wm-wrap .wm-card.mp-ads-listing-card--special .wm-card-price,
.wm-wrap .wm-card.mp-ads-listing-card--special .catalog__items-price .wm-price-nowrap {
    color: #E23737 !important;
}

.wm-gallery-placeholder {
    background: #f8f8f7;
    border: 1px dashed #d6d3d1;
    border-radius: 12px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.ap-home-section-title { margin: 24px 0 12px; font-size: 1.15rem; }
.wm-marks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.ap-home-mark-card {
    display: block;
    padding: 8px 12px;
    border: 1px solid #e6e2df;
    border-radius: 8px;
    background: #fff;
    color: #353433;
    text-decoration: none;
    font-size: 14px;
}
.wm-catalog-stub { margin: 0 0 28px; }
.wm-catalog-abc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    font-size: 13px;
}
.wm-catalog-abc a { color: #E23737; text-decoration: none; }
.wm-offer__img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 0 16px;
}
.wm-offer__price { font-size: 1.4rem; font-weight: 700; color: #E23737; }
.breadcrumb-wrap { padding: 0 0 12px; font-size: 13px; }
.breadcrumb-wrap a { color: #E23737; text-decoration: none; }

.ap-home-field--searchable .select2-container { width: 100% !important; }
.ap-home-field--searchable .select2-container .select2-selection--single {
    height: 40px;
    border-color: #d5dadc;
}
.ap-home-field--searchable .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
}
.ap-home-search-panel .ap-home-field--searchable .select2-selection__rendered .ap-home-mark-opt,
.ap-home-search-panel .ap-home-field--searchable .select2-selection__rendered .ap-home-mark-opt__name {
    font-size: var(--ap-ctrl-fs, 14px);
    font-weight: inherit;
    line-height: inherit;
}
.ap-home-field--seller .select2-container--default .select2-selection--multiple {
    min-height: 40px;
    border-color: #d5dadc;
}
/* Select2 4.1: × абсолютно слева — padding-left, иначе наезжает на имя */
.ap-home-field--seller .select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding: 0 8px 0 22px !important;
    position: relative;
}
.ap-home-field--seller .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100%;
    width: 20px;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-right: 1px solid #cbd5e1 !important;
    border-radius: 6px 0 0 6px !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1 !important;
}
.ap-home-search-box--attrs .ap-home-search-box__row--deal {
    margin-top: 8px;
}
.ap-home-search-box--attrs .ap-home-field--price {
    flex: 0 1 118px;
    max-width: 130px;
    min-width: 100px;
}
.ap-home-search-box--attrs .ap-home-field--manufacturer {
    flex: 0 1 168px;
    max-width: 200px;
    min-width: 140px;
}
.ap-home-search-box--attrs .ap-home-field--seller {
    flex: 0 1 176px;
    max-width: 220px;
    min-width: 140px;
}
.wm-attrs--deal-inline .ap-home-search-box__row {
    flex-wrap: wrap;
    gap: 8px;
}
.wm-attrs--deal-inline .ap-home-search-box__row > .ap-home-field {
    flex: 1 1 0;
    min-width: 112px;
    max-width: none;
}
.ap-home-search-box--attrs:not(.wm-attrs--deal-inline) > .ap-home-search-box__row:first-child {
    flex-wrap: nowrap;
    gap: 8px;
}
.ap-home-search-box--attrs:not(.wm-attrs--deal-inline) > .ap-home-search-box__row:first-child > .ap-home-field--compact {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}
.ap-home-search-box--attrs:not(.wm-attrs--deal-inline) .ap-home-search-box__row--deal {
    flex-wrap: nowrap;
    gap: 8px;
}
.ap-home-search-box--attrs:not(.wm-attrs--deal-inline) .ap-home-search-box__row--deal > .ap-home-field {
    flex: 1 1 0;
    min-width: 120px;
    max-width: none;
}

@media (min-width: 1200px) {
    .ap-home-search-box--attrs .ap-home-search-box__row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .ap-home-search-box--attrs .ap-home-field {
        min-width: 0;
    }
    .ap-home-search-box--attrs .ap-home-field--compact {
        flex: 0 1 132px;
    }
    .ap-home-search-box--attrs:not(.wm-attrs--deal-inline) > .ap-home-search-box__row:first-child > .ap-home-field--compact {
        flex: 1 1 0;
        max-width: none;
    }
    .ap-home-search-box--attrs .ap-home-search-box__row--deal {
        flex-wrap: nowrap;
        margin-top: 2px;
    }
    .ap-home-search-box--attrs:not(.wm-attrs--deal-inline) .ap-home-search-box__row--deal > .ap-home-field--price,
    .ap-home-search-box--attrs:not(.wm-attrs--deal-inline) .ap-home-search-box__row--deal > .ap-home-field--manufacturer,
    .ap-home-search-box--attrs:not(.wm-attrs--deal-inline) .ap-home-search-box__row--deal > .ap-home-field--seller {
        flex: 1 1 0;
        max-width: none;
    }
    .ap-home-search-box--attrs.wm-attrs--deal-inline .ap-home-field--price,
    .ap-home-search-box--attrs.wm-attrs--deal-inline .ap-home-field--manufacturer,
    .ap-home-search-box--attrs.wm-attrs--deal-inline .ap-home-field--seller {
        flex: 1 1 0;
        max-width: none;
    }
}

@media (max-width: 899px) {
    .wm-search-actions__row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        min-height: 0;
    }
    .wm-search-submit,
    .ap-home-search-find,
    .ap-home-search-reset {
        width: 100%;
        min-width: 0;
    }
}

/* Старый absolute reset рядом с «Подобрать» — только вне sticky-футера */
@media (min-width: 900px) {
    .wm-search-actions__row .ap-home-search-reset {
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
    }
    .mp-sf__sidebar-footer .ap-home-search-reset,
    .mp-sf__sidebar .ap-home-filter-actions--footer .ap-home-search-reset {
        position: static !important;
        right: auto !important;
        top: auto !important;
    }
}

.wm-serp-breadcrumb {
    margin: 0 0 12px;
    font-size: 14px;
}
.wm-serp-empty {
    margin: 0 0 24px;
}
.wm-serp-geo-refine {
    margin: 16px 0 8px;
    font-size: 15px;
    text-align: center;
}
.wm-serp-search-fold {
    margin: 0 0 16px;
}
.wm-serp-search-fold[data-collapsed="1"] .ap-home-catalog-fold__viewport {
    max-height: 220px;
}
.wm-serp-search-fold[data-collapsed="0"] .ap-home-catalog-fold__viewport {
    max-height: none;
}
.wm-serp-search-fold .ap-home-search-panel {
    margin-bottom: 0;
}
.wm-serp-context {
    margin: 8px 0 22px;
}
.wm-serp-context__line {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #16a34a !important;
    letter-spacing: -0.02em;
}
.wm-serp-context__line:last-child {
    margin-bottom: 0;
}
.wm-serp-results {
    margin-top: 8px;
}

/* Mobile SERP: H1/крошки над fixed-поиском раздували дыру — в потоке не занимают место (SEO/a11y остаются). */
@media (max-width: 900px) {
    body.wm-page .wm-serp-h1,
    body.wm-page .wm-page-title-row--crumb:has(.wm-serp-breadcrumb),
    body.wm-page .wm-serp-breadcrumb {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    body.wm-page .mp-sf__content {
        padding-top: 4px;
    }
    body.wm-page .wm-serp-context {
        margin-top: 4px;
        margin-bottom: 14px;
    }
}
.wm-serp-interest.is-loading .wm-serp-interest-hint {
    margin: 0 0 16px;
}

/* SEO size catalog (tyre/rim) */
.wm-size-catalog {
    padding-bottom: 32px;
}
.wm-size-catalog__h1 {
    margin: 8px 0 20px;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
}
.wm-size-catalog-bc {
    margin: 0 0 12px;
}
.wm-size-catalog-nav {
    margin: 0 0 28px;
}
.wm-size-catalog-tiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.wm-size-catalog-tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e1dc;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wm-size-catalog-tile:hover {
    border-color: #c45c4a;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.wm-size-catalog-tile__img {
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}
.wm-size-catalog-tile__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
}
.wm-size-catalog-tile__label {
    display: block;
    padding: 10px 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #2b2724;
    background: aliceblue;
}

/* Кросс-лента запчастей: спокойный вес шрифта на карточках */
.wm-parts-cross-gallery .ap-wheels-fitment-card__headline,
.wm-parts-cross-gallery .ap-wheels-fitment-card__size,
.wm-parts-cross-gallery .ap-wheels-fitment-card__price {
    font-weight: 400;
}

/* Крестик очистки в sticky-поиске — красный (не системный синий) */
body.wm-page .mp-sf__sticky-q::-webkit-search-decoration {
    -webkit-appearance: none;
}
body.wm-page .mp-sf__sticky-q::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    background: center / 14px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 4l8 8M12 4L4 12' stroke='%23E23737' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Подсказки текстового поиска в sticky-баре */
.mp-sf__sticky-search--suggest {
    position: relative;
}
.wm-sf-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    max-height: min(320px, 50vh);
    overflow: auto;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(35, 32, 30, 0.12);
}
.wm-sf-suggest__item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    font-size: 14px;
    color: #353433;
    cursor: pointer;
}
.wm-sf-suggest__item:hover,
.wm-sf-suggest__item.is-active {
    background: #f3f6f9;
}
.wm-sf-suggest__item b {
    font-weight: 600;
    color: #1f1c1a;
}
