/* Блок маркетплейсов в футере */
.footer__marketplaces {
    margin-bottom: 20px;
}

/* Заголовок */
.footer__marketplaces .footer__title {
    margin-bottom: 12px;
}

/* Список */
.footer__marketplaces-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Убираем маркеры Aspro */
.footer__marketplaces-list li,
.footer__marketplaces-list li::before,
.footer__marketplaces-list li::after {
    list-style: none !important;
    content: none !important;
    display: none;
}

/* Элементы списка */
.footer__marketplaces-list li {
    display: block;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ссылки */
.footer__marketplaces-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0 !important;
    margin: 0;

    border: none;
    border-radius: 8px;
    overflow: hidden;

    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Иконки */
.footer__marketplaces-link img {
    display: block;
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    object-fit: contain;
    border-radius: 8px;
}

/* Наведение */
.footer__marketplaces-link:hover {
    transform: scale(1.13);
}

/* Фокус */
.footer__marketplaces-link:focus-visible {
    outline: 2px solid var(--theme-base-color);
    outline-offset: 2px;
}

/* Цена в товарных плитках каталога */
.catalog-block__item .price__new-val {
    font-size: 18px;
    line-height: 1.3;
}

/* Покупка в один клик рядом с корзиной на экранах шире 600 px */
.custom-one-click-bottom {
    display: none;
}

@media (min-width: 601px) {
    .catalog-block__info-bottom-wrapper:has(.custom-one-click-bottom .item-action--ocb) {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .catalog-block__item:has(.custom-one-click-bottom .item-action--ocb) .image-list .item-action--ocb {
        display: none;
    }

    .custom-one-click-bottom:has(.item-action--ocb) {
        display: block;
        flex: 0 0 36px;
    }

    .custom-one-click-bottom .side-icons {
        position: static;
    }

    .custom-one-click-bottom .side-icons__wrapper {
        display: flex;
    }

    .custom-one-click-bottom .item-action:not(.item-action--ocb) {
        display: none;
    }

    .custom-one-click-bottom .item-action--ocb .ocb-button-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 1px solid var(--stroke_black, #ddd);
        border-radius: 4px;
    }
}

/* Надпись вместо иконки, когда ширина плитки позволяет */
@media (min-width: 601px) {
    .catalog-block__item {
        container-name: product-tile;
        container-type: inline-size;
    }
}

@container product-tile (min-width: 280px) {
    .custom-one-click-bottom:has(.item-action--ocb) {
        flex-basis: auto;
    }

    .custom-one-click-bottom .item-action--ocb .ocb-button-icon {
        width: auto;
        min-width: max-content;
        padding: 0 12px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        white-space: nowrap;
    }

    .custom-one-click-bottom .ocb-button-icon .svg {
        display: none;
    }

    .custom-one-click-bottom .ocb-button-icon::after {
        content: attr(title);
    }
}

/* Убираем контейнеры кнопок и их отступы в заголовках брендов */
.topic__heading:has(.rss a[href="/info/brands/rss/"]) > .heading-icons:has(.share),
.topic__heading > .heading-icons:has(.rss a[href="/info/brands/rss/"]) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Заголовок занимает освободившееся место */
.topic__heading:has(.rss a[href="/info/brands/rss/"]) > #pagetitle {
    flex: 1 1 auto;
    min-width: 0;
}

/* Покупка в один клик рядом с корзиной */
.custom-one-click-bottom {
    display: none;
}

@media (min-width: 601px) {

    /* Общий контейнер кнопок */
    .catalog-block__info-bottom-wrapper:has(.custom-one-click-bottom .item-action--ocb) {
        display: flex;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    /* Купить в 1 клик — слева */
    .catalog-block__info-bottom-wrapper > .custom-one-click-bottom:has(.item-action--ocb) {
        display: flex;
        order: 0;
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
    }

    /* В корзину — справа, занимает все оставшееся пространство */
    .catalog-block__info-bottom-wrapper > .js-btn-state-wrapper {
        order: 1;
        flex: 1 1 0 !important;
        width: auto;
        min-width: 0;
    }

    /* Скрываем исходную иконку покупки в 1 клик над изображением */
    .catalog-block__item:has(.custom-one-click-bottom .item-action--ocb)
    .image-list .item-action--ocb {
        display: none;
    }

    /* Контейнеры дополнительной кнопки */
    .custom-one-click-bottom .side-icons {
        position: static;
        width: 100%;
    }

    .custom-one-click-bottom .side-icons__wrapper {
        display: flex;
        width: 100%;
    }

    /* Убираем избранное и сравнение из нижнего блока */
    .custom-one-click-bottom .item-action:not(.item-action--ocb) {
        display: none;
    }

    /* Кнопка покупки в 1 клик */
    .custom-one-click-bottom .item-action--ocb {
        display: flex;
        flex: 0 0 auto;
    }

    .custom-one-click-bottom .item-action--ocb .ocb-button-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
        box-sizing: border-box;
        border: 1px solid var(--stroke_black, #ddd);
        border-radius: 4px;
    }

    /* Растягиваем кнопку корзины и ее внутренние контейнеры */
    .js-btn-state-wrapper .buy_block,
    .js-btn-state-wrapper .buttons,
    .js-btn-state-wrapper .line-block,
    .js-btn-state-wrapper .line-block__item,
    .js-btn-state-wrapper .item-action--basket,
    .js-btn-state-wrapper .item-action--basket .to_cart,
    .js-btn-state-wrapper .in_cart {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

/* 11.11.26 - стили для кнопок карточек товаров */
@media (min-width: 601px) {
    .catalog-block__item {
        container-name: product-tile;
        container-type: inline-size;
    }
}

@container product-tile (min-width: 280px) {

    .custom-one-click-bottom:has(.item-action--ocb) {
        flex-basis: auto;
    }

    .custom-one-click-bottom .item-action--ocb .ocb-button-icon {
        width: max-content;
        min-width: max-content;
        height: 36px;
        padding: 0 12px;
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        white-space: nowrap;
    }

    .custom-one-click-bottom .ocb-button-icon .svg {
        display: none;
    }

    .custom-one-click-bottom .ocb-button-icon::after {
        content: attr(title);
    }
}

.company-item__heading.flexbox.flexbox--justify-between.outer-rounded-x.relative.flex-50.bordered {
    background: #F8F8FC;
}