/* NOTE: This file is intended for programmers. Aspro technical support is not advised to work with him.*/

/* Footer Custom Styles */
.footer-1 .footer__main-part-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start;
    flex-wrap: nowrap; /* Запрещаем перенос, чтобы сохранить ряд */
}


.catalog-detail__main-part .grid-list__item.char-side,
#bx-composite-banner{
    display: none;
}




.footer-1 .footer__part--left {
    display: flex !important;
    flex-direction: row;
    flex: 1;
    align-items: flex-start;
    gap: 80px; /* Увеличено расстояние между лого и меню */
}

.footer-1 .footer__part-item--logo {
    min-width: 250px;
    flex-shrink: 0;
}

.footer-1 .footer__logo img {
    max-width: 210px;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.footer-1 .footer__logo-text {
    line-height: 1.4;
    max-width: 180px;
}

.footer-1 .footer__main-part-menu {
    flex: 1;
    display: flex !important;
    gap: 30px; /* Уменьшил gap, чтобы освободить место для ширины колонок */
}

/* Увеличиваем ширину ПЕРВОЙ колонки меню, где "ИНТЕРНЕТ-МАГАЗИН" */
.footer-1 .footer__main-part-menu .footer__part-item:first-child {
    min-width: 200px; /* Достаточно места для "ИНТЕРНЕТ-МАГАЗИН" */
    flex-shrink: 0;
}

.footer-1 .footer__part-item .title {
    white-space: nowrap !important;
    display: block;
}

.footer-1 .footer__part--right {
    width: 318px;
    margin-left: 30px; 
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .footer-1 .footer__part--left {
        gap: 40px;
    }
    .footer-1 .footer__part--right {
        margin-left: 40px;
    }
}

@media (max-width: 991px) {
    .footer-1 .footer__main-part-inner {
        flex-wrap: wrap;
    }
    .footer-1 .footer__part--left {
        flex-direction: column;
        gap: 30px;
    }
    .footer-1 .footer__part--right {
        margin-left: 0;
        margin-top: 30px;
        width: 100%;
    }
}


/* search title */
.search .dropdown-select.searchtype {
    margin: 0 16px 0 0;
    width: 80px;
}

/* custom css btn general catalog */
.btn.btn-default.to_cart {
    background: transparent !important;
    color: var(--theme-more-color) !important;
    border: 1px solid var(--theme-more-color) !important;
}

.btn.btn-default.to_cart:hover {
    background: var(--theme-more-color) !important;
    color: #fff !important;
}

.btn.btn-default.to_cart * {
    fill: var(--theme-more-color) !important;
}
.btn.btn-default.to_cart:hover * {
    fill: #fff !important;
}

/* */
/* Контейнер блоков (используем Flexbox для жесткого выравнивания) */
.custom-categories-block {
    display: flex;
    flex-wrap: nowrap; /* Жестко запрещаем перенос на вторую строку для ПК */
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 32px;
    width: 100%;
}

/* Скрываем возможный мусор от визуального редактора Битрикс */
.custom-categories-block br,
.custom-categories-block p {
    display: none !important;
}

/* Карточка отдельной категории */
.custom-category-item {
    flex: 1 1 0; /* Заставляет все 4 блока быть идеально одинаковой ширины */
    min-width: 0; /* Важно: не дает блокам распирать контейнер */
    display: flex;
    align-items: center;
    background-color: #F8F9FB;
    border-radius: 12px;
    padding: 16px 20px;
    gap: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.custom-category-item:hover {
    background-color: #f1f3f6;
    transform: translateY(-2px);
}

/* Квадрат с иконкой */
.custom-category-icon {
    width: 56px;
    height: 56px;
    background-color: #F7F7F7;
    border-radius: 12px;
    border: 1px solid #F7F7F7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Размер иконки, которую вы загрузите */
.custom-category-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

/* Название категории */
.custom-category-name {
    font-size: 15px;
    font-weight: 700;
    color: #383838;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap; /* Название в 1 строку */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -- АДАПТИВНОСТЬ -- */
@media (max-width: 991px) {
    .custom-categories-block {
        flex-wrap: wrap; /* Разрешаем перенос на планшете */
        gap: 16px;
    }
    .custom-category-item {
        flex: 1 1 calc(50% - 16px); /* По 2 в ряд */
    }
}

@media (max-width: 767px) {
    .custom-categories-block {
        flex-direction: column; /* На телефоне строго друг под другом */
        gap: 12px;
        margin-top: 24px;
        margin-bottom: 24px;
    }
    .custom-category-item {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* Stretch brand logos to full width on desktop */
@media (min-width: 992px) {
    /* Ensure the slider container takes full available width */
    .brands-list .swiper,
    .brands-list .brands_drag,
    .brands_drag.swiper {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Force the wrapper to be a full-width flexbox and disable JS-driven positioning */
    .brands-list .swiper-wrapper,
    .brands_drag .swiper-wrapper {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        transform: translate3d(0, 0, 0) !important;
    }

    /* Distribute the 6 slides evenly across the 100% width */
    .brands-list .swiper-slide,
    .brands_drag .swiper-slide {
        width: calc(100% / 6) !important; /* Perfect 6-column distribution */
        flex: 1 0 auto !important;
        margin-right: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Ensure the links inside slides are also centered */
    .brands-list .swiper-slide a,
    .brands_drag .swiper-slide a {
        display: flex !important;
        justify-content: center !important;
        width: 100%;
    }
}

/* bold text product */
.properties__title {
    font-weight: bold;
}


/* */
.partner-detail__image {
  width: 142px;
  height: 142px;
  position: relative;
  vertical-align: top;
  display: inline-block;
  overflow: hidden;
}



