/* Кастомные правила. Этот файл грузится напрямую в header.php */

/* Убираем кнопку каталога "Одежда" из шапки */
.intec-header.standard-11 .header-bottom-block {
    display: none !important;
}

/* Текст главного баннера — на всю ширину левой части */
.intec-banners.main .item-main-content-wrapper {
    width: 100% !important;
    max-width: none !important;
}
.intec-banners.main .item-main-content.template-container {
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.intec-banners.main .item-text {
    max-width: none !important;
    width: 100% !important;
}

/* Маленькие боковые баннеры — меньший шрифт */
.intec-banners.additional .item-header {
    font-size: 1.70rem !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}



/* Мобильная версия: текст поверх картинки баннера */
@media (max-width: 768px) {
    .intec-banners.main .blocks-standard-1 .item-main-content-wrapper {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Мобильная версия: цвет текста бейджа "ЦЕНЫ УДИВЛЯЮТ!" */
@media (max-width: 768px) {
    .intec-banners.main .blocks-standard-1 .item-header-over {
        color: #ffffff !important;
    }
}

/* Мобильная версия: описание баннера — белый цвет и центровка */
@media (max-width: 768px) {
    .intec-banners.main .blocks-standard-1[data-mobile-view="separately"] .item[data-scheme] .item-description {
        color: #ffffff !important;
        text-align: center !important;
    }
    .intec-banners.main .blocks-standard-1 .item-text {
        text-align: center !important;
    }
    .intec-banners.main .blocks-standard-1 .item-buttons {
        justify-content: center !important;
    }
}

/* Мобильная версия: центруем сам блок описания */
@media (max-width: 768px) {
    .intec-banners.main .blocks-standard-1 .item-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
}

/* Наличие по складам — показывается при наведении на карточку товара */
.product-quantity .warehouse-tooltip {
    display: none;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #888;
}
.bitrix.catalog-section-static-blocks .standard-1 .product:hover .warehouse-tooltip {
    display: block;
}

/* Блок "О компании" — ограничение высоты картинки */
.intec-about.standard .block-extended-2 .item-picture>picture img {
    max-height: 500px;
}

/* Ссылки внутри контента — чёрный цвет (кроме кнопок) */
.template-container a:not(.ui-button) {
    color: #000000 !important;
}

/* Крестик закрытия плашки ошибки корзины */
.snab-basket-error-close {
    display: inline-block;
    margin-left: 16px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    vertical-align: middle;
    opacity: 0.8;
}
.snab-basket-error-close:hover {
    opacity: 1;
}

/* Ссылка "Посмотреть остатки по складам" — цвет как у кнопки "В корзину", жирный */
a[href="#stores"] {
    color: var(--ui-button-scheme, #e0145a) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Фиксированная шапка: сдвигаем содержимое вправо на ширину сайдбара каталога */
.intec-header-fixed .header-middle-block-wrapper {
    padding-left: var(--cat-sidebar-width, 240px) !important;
}

/* Скрываем кнопку мобильного меню на десктопе */
@media (min-width: 1025px) {
    .c-menu-popup-1 {
        display: none !important;
    }
}

/* Скрываем служебные поля самовывоза из обычной формы заказа */
[data-property-id-row="59"],
[data-property-id-row="60"],
[data-property-id-row="61"] {
    display: none !important;
}

/* Убираем aspect-ratio у баннера на странице "О компании" */
.news-detail-banner.ui-ratio-16x9 {
    aspect-ratio: unset !important;
}

/* Логотип в шапке: PNG вместо SVG — img заполняет контейнер по ширине */

/* Детальная страница статьи: картинка полного размера */
.news-detail-content-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Детальная страница статьи: боковые отступы */
.template-container.bitrix-news-detail.news {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Детальная страница статьи: боковой блок прилипает при прокрутке */
.bitrix-news.news .layout-column-aside {
    position: sticky;
    top: 150px;
    align-self: flex-start;
}

/* Футер: убираем SVG-фильтр с логотипа (теперь PNG) */
.footer-logotype-link,
.footer-logotype-link img {
    filter: none !important;
}

/* Футер: скрываем копирайт */
.footer-copyright.right {
    display: none !important;
}

/* Поиск: категории в подсказках — выделяем цветом сайта */
.snab-search-section .search-title-item-all-link {
    color: var(--color-primary-base) !important;
    font-weight: 600 !important;
}
.snab-search-section .search-title-item-all-link::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
    background-color: var(--color-primary-base);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}
.snab-search-section .search-title-item-all-link-svg-container .search-title-item-all-link-line {
    background-color: var(--color-primary-base) !important;
}
.snab-search-section .search-title-item-all-link svg {
    stroke: var(--color-primary-base) !important;
}

/* Страница подтверждения заказа: ссылки «Оплатить заказ» и «Скачать счёт» */
.ns-bitrix.c-sale-order-ajax.c-sale-order-ajax-simple-1 .bx-soa-page-confirm .bx-soa-page-payment-addition a {
    font-weight: 700 !important;
    text-decoration: underline !important;
    color: var(--color-primary-base) !important;
}

/* Быстрый заказ: уменьшаем textarea комментария */
.ns-intec-kosmos.c-sale-order-fast.c-sale-order-fast-default .sale-order-fast-comment textarea {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    rows: 2;
}
