/*Прибрати плашку "Розроблено на платформі Хорошопа" [пк\моб]*/
.footer__development, .footer__bottom {
    display: none !important;
}

/*Змінити колір та градієнт на підвалі сайту*/
.footer {
    color: #333 !important;
    font-size: 12px !important;
    background: rgb(214 234 244) !important;
    background: linear-gradient(180deg, rgb(214 234 244) 0%, rgba(255, 255, 255, 0) 100%) !important;
}

/*Фікс плашки Рекапчі [пк\моб]*/
.grecaptcha-badge {
    width: 256px;
    height: 60px;
    display: block;
    transition: right 0.3s;
    position: fixed;
    bottom: 14px;
    right: -186px;
    box-shadow: gray 0px 0px 5px;
    border-radius: 2px;
    overflow: hidden;
    visibility: visible !important;
}


/*Карточка товару: Фікс блоку Google-рейтинг [пк\моб]*/
.es-badge-title {
    text-wrap: auto !important;
    word-break: break-word !important;
}

.es-badge-container {
    padding: 0 !important;
}


/*Банері від Володі: Фікс пріоритетності відображення банеру*/
.ant-modal-wrap {
    z-index: 99999 !important;
}

/*Бітрікс24: Фікс кнопки відкриття віджета*/
.b24-widget-button-wrapper{
    scale: 0.7!important;
    right: 6px!important;
    bottom: 6px!important;
}

body[site-type="desktop"] {
    /*Карточка товару*/

    .product-section {
        .productSticker {

        }
    }


    /*Шапка сайту: фікс меню сайту*/

    .header {
        .header__container {
            /*Шапка сайту: фікс блоку телефонів*/

            .header__section.header__section--contacts {
                padding-top: 14px !important;
            }

            /*Шапка сайту: фікс блоку Графік роботи*/
            .header__column--right{
                height: 100%;
            }
            .header__column--right > .header__section{
                display: flex;
            }
            .header__section .timetable{
                /*margin-top: 32px;*/
            }
            .timetable .timetable__text > div:first-child {
                text-align: left !important;
            }

            .header__bottom {
                background: #fff !important;
                padding-top: 18px !important;
            }
        }
    }

    /*Категорії: фікс розташування шоб було рівненько*/

    .catalog-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        margin: 0 !important;
        padding: 0 !important;

        .catalog-item {
            box-sizing: border-box !important;
            border-style: solid;
            border-width: 1px;
            border-color: #0000000d;

            .catalogCard {
                padding: 0 !important;
            }
        }
    }

    /*Категорії: Фікс блоку меню фільтрів*/

    .filterMenu {
        .filterMenu-a {
            width: 100%;
        }
    }

    /*Головна сторінка: Фікс блоку брендів*/

    .frontBrands {
        .frontBrands-list {
            height: auto !important;
        }

        .frontBrands-expander {
            display: none !important;
        }
    }

    /*Адаптивність для карточок товарів для кнопки Купить шоб була внизу блоку [START]*/

    #special_offers_homepage-showcase-default {
        .promo-slider-list {
            .promo-slider-i {
                height: auto !important;
            }
        }
    }

    /*Категорії: Карточка товару*/

    .catalogCard {
        height: 100% !important;

        /*Категорії: В карточці товару розтягнути блок кнопки "Купити"*/

        .catalogCard-purchase {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }

        .catalogCard-purchase:after {
            content: unset !important;
        }

        .catalogCard-order:before {
            content: unset !important;
        }

        /*Категорії: В карточці товару стікер товару */

        .productSticker {
            display: flex;
            flex-direction: row;
            justify-content: end;
            align-items: end;
            gap: 2px;

            .productSticker-image {
                display: flex;
                justify-content: center;
                align-content: center;
                align-items: center;
            }

            .productSticker-item {
                display: flex;
                justify-content: end;
                align-content: end;
                align-items: end;
            }

            .productSticker-item::before, .productSticker-item::after {
                content: none !important;
            }
        }

        /*Категорії: В карточці товару розтягнути блоки по висоті шоб кнопка була завжди внизу блоку батька */

        .catalogCard-box {
            height: 100% !important;

            .catalogCard-main {
                height: 100% !important;

                .catalogCard-main-b {
                    height: 100% !important;
                    display: flex;
                    flex-direction: column;
                    justify-content: stretch;

                    .catalogCard-info {
                        height: 100%;
                        align-self: end;
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                    }
                }
            }
        }
    }

    /*Головна сторінка: Блок про сайт*/

    .frontInfo {
        .frontInfo-about .frontInfo-text {
            .text > p:nth-child(1) {
                display: flex;
                flex-direction: row;
                justify-content: center;
                flex-wrap: wrap;
                gap: 6px;
                font-size: 0px !important;
                margin-bottom: 12px !important;
            }

            .text > p:nth-child(1) > a {
                margin: 0 !important;
                width: calc(20% - 12px) !important;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-content: center;
                align-items: center;
            }
        }

        .frontInfo-about .frontInfo-text .text > p:nth-child(1) > a {
            border-bottom: unset !important;
        }
    }
}

body[site-type="mobile"] {

    /*Фікс Хедеру: проблема орієнтації та розташування при зміщенні компонента*/
    .header__right{
        display: flex!important;
        flex-direction: row!important;
    }
    .header__center{
        position: absolute!important;
        left: 50% !important;
        transform: translateX(-50%)!important;
    }
    .header__button--cart{
        margin: 0!important;
        padding: 0!important;
        .j-mini-cart-total{
            display: none!important;
        }
    }

    /*Сітка товарів: Фікс*/
    .goods.goods--grid {
        .goods__item {
            box-sizing: border-box !important;
            border-style: solid;
            border-width: 1px;
            border-color: #00000008;
            margin: 0 !important;
            padding-bottom: 6px !important;
        }
    }

    /*Убрать тупорылый скрол горизонтальный [START]*/
    /*Головна сторінка*/

    section.storefront.wrapper, /*Блок Хити\Розпродаж\Новинки*/
    section.categories.wrapper, /*Блок Категорії*/
    section.brands.wrapper, /*Блок Бренди*/
    section.articles.wrapper /*Блок Новини*/
    {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        .carousel{
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
    }

    .articles.wrapper, /*Блок Новини*/
    .brands.wrapper /*Блок Бренди*/
    {
        .carousel__wrapper {
            width: 100% !important;
            display: flex;
            flex-direction: row;
            justify-content: center;
            flex-wrap: wrap;
            box-sizing: border-box !important;
            margin: 0 !important;
        }
    }

    /*Головна сторінка: Блок Переваги*/

    .benefits {
        .benefits__list {
            margin: 0 !important;
        }
    }

    /*Головна сторінка: Блок Хити\Розпродаж\Новинки*/

    .storefront.wrapper {
        .tabs > .tabs__nav {
            /*Убрать тупорылый скрол горизонтальный [END]*/
            margin: 0 !important;
        }

        .carousel {
            margin: 0 !important;
        }

        .carousel__wrapper {
            display: flex;
            flex-direction: row;
            justify-content: center;
            margin-top: 6px;

            .carousel__item {
                margin: 0!important;
                padding: 4px 4px 6px 6px;
            }

            .carousel__item .catalog-card {
                height: 100% !important;
                display: flex;
                flex-direction: column;

                .catalog-card__content {
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                }
            }
        }

        /*.carousel__wrapper .carousel__item {
            width: calc(50% - 10px) !important;
            margin: 0 !important;
        }
        @media (min-width: 768px) {
            .carousel__wrapper .carousel__item {
                width: calc(33.33% - 10px) !important;
            }
        }
        @media (min-width: 992px) {
            .carousel__wrapper .carousel__item {
                width: calc(25% - 10px) !important;
            }
        }
        @media (min-width: 1200px) {
            .carousel__wrapper .carousel__item {
                width: calc(16.66% - 10px) !important;
            }
        }
        .carousel__wrapper .carousel__item .catalog-card--promo {
            width: 100% !important;
        }*/
    }

    /*Категорії: Старе відображення плашки "Подарунок"*/
    .catalog-card__gift {
        bottom: unset !important;
        top: 2px !important;
    }

    /*Категорії: Карточка товару*/

    .catalog-card {
        .product-sticker__item {
            height: unset !important;
            line-height: unset !important;
            font-size: 8px !important;
            padding: 2px 4px !important;
        }
    }

    /*Головна сторінка: Фікс розташування тексту*/
    .categories .heading, .brands .heading, .benefits .heading, .articles .heading {
        text-align: center;
    }


    /*Головна сторінка: Блок категорій*/
    .categories.wrapper {
        --block-color: rgba(0, 139, 211, 0.62);

        .carousel {
            padding: 0 !important;
            margin: 0 !important;
        }

        .carousel__wrapper {
            width: 100% !important;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 10px;
            box-sizing: border-box !important;
            margin: 0 !important;
            justify-content: center; /* Центрирование оставшихся элементов */
        }

        /* Элементы занимают всю ширину ячейки */
        .categories__inner {
            .carousel__wrapper .carousel__item {
                width: 100% !important;
                margin: 0 !important;
            }

            .carousel__wrapper .carousel__item .catalog-card {
                width: 100% !important;
            }
        }

        .carousel__wrapper .carousel__item {
            max-width: calc(100% / 6 - 10px);
        }

        /* Адаптивность */
        @media (max-width: 923px) {
            .carousel__wrapper .carousel__item {
                max-width: calc(100% / 4 - 10px);
            }
        }

        @media (max-width: 723px) {
            .carousel__wrapper .carousel__item {
                max-width: calc(100% / 3 - 10px);
            }
        }

    }


    /* Головна сторінка: Блок брендів */
    .brands.wrapper {
        .carousel__wrapper {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            box-sizing: border-box;
            margin: 0;
            justify-content: center; /* Центрування останніх елементів */
        }

        /* Стандартна ширина елементів */
        .brands__inner .carousel__wrapper .carousel__item {
            width: calc(25% - 10px) !important; /* 3 колонки */
            margin: 0 !important;
        }

        .brands__inner .carousel__wrapper .carousel__item .brand-card {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .brands__inner .carousel__wrapper .carousel__item .brand-card img {
            max-width: unset !important;
            max-height: unset !important;
            width: 100% !important;
        }

        /* Адаптивність для різних екранів */
        @media (min-width: 724px) {
            .brands__inner .carousel__wrapper .carousel__item {
                width: calc(16.66% - 10px) !important; /* 6 колонок */
            }
        }

        @media (min-width: 920px) {
            .brands__inner .carousel__wrapper .carousel__item {
                width: calc(12.5% - 10px) !important; /* 6 колонок */
            }
        }
    }


    /*Головна сторінка: Блок переваг*/
    .benefits {
        .benefits__item {
            padding: 0 !important;
        }

        /*.benefits__item-title br {
            display: none !important;
        }*/
    }

    /*Головна сторінка: Блок новин*/
    .articles.wrapper {
        .carousel__wrapper {
            gap: 10px;
        }
        div.articles__all{
            padding-left: 10px!important;
            padding-right: 10px!important;
        }

        .carousel__wrapper .carousel__item .article-card {
            width: 100% !important;
        }

        .carousel__wrapper .carousel__item {
            width: calc(50% - 10px) !important; /* 2 колонки */
            margin: 0 !important;
        }

        @media (min-width: 768px) {
            .carousel__wrapper .carousel__item {
                width: calc(33.33% - 10px) !important; /* 3 колонки, як у вашому коді */
            }
        }
        @media (min-width: 992px) {
            .carousel__wrapper .carousel__item {
                width: calc(25% - 10px) !important; /* 4 колонки */
            }
        }
        @media (min-width: 1200px) {
            .carousel__wrapper .carousel__item {
                width: calc(16.66% - 10px) !important; /* 6 колонок */
            }
        }
    }

    /*Головна сторінка: Блок про магазин*/
    .articles .articles__text {
        .text > p:nth-child(1) {
            display: flex;
            flex-direction: row;
            justify-content: center;
            flex-wrap: wrap;
            gap: 6px;
            font-size: 0px !important;
        }

        .text > p:nth-child(1) > a {
            margin: 0 !important;
            width: calc(33% - 12px) !important;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-content: center;
            align-items: center;
        }
    }

    /*Карточка товару: Перенос слів в блоці файлів*/
    .files .files__item-name {
        text-wrap: auto !important;
        word-break: break-all !important;
    }

}


/*Прибрати блок "Консультація" в карточці товара ПК*/
.productTabs-nav[href="#consult"] {
    display: none!important;
}
.product-info .tabs__item[href="#consult"] {
    display: none!important;
}

.productSet-content{
    justify-content: center!important;
}

body[site-type="mobile"] {
    /*Стилі для карточки товара: Стиль кнопки Купити та блока ціни з кнопкою [моб]*/
    .goods--grid, .carousel__wrapper {
        .goods__item, .carousel__item {
            .catalog-card{
                display: flex;
                flex-direction: column;
                justify-content: stretch;
                align-content: stretch;
                align-items: stretch;
                height: 100%;
                .catalog-card__content{
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    .catalog-card__purchase{
                        display: flex;
                        flex-direction: row;
                        justify-content: space-between;
                        align-content: center;
                        align-items: center;
                        .catalog-card__prices{
                            display: flex;
                            flex-direction: column;
                            justify-content: center;
                            align-content: center;
                            align-items: center;
                            height: 100%;
                            white-space: normal!important;
                            margin-right: 0!important;
                            .catalog-card__price{
                                white-space: nowrap;
                            }
                        }
                        .catalog-card__buy-button{
                            margin-top: unset!important;
                            display: flex;
                            .j-buy-button-add,.j-buy-button-remove{
                                height: 22px!important;
                                display: flex;
                                flex-direction: row;
                                justify-content: end;
                                align-items: center;
                                align-content: center;
                                align-self: center;
                            }
                            .j-buy-button-add{
                                background-color: #e1fae1;
                                color: #329a1c;
                                font-weight: 600;
                                font-size: 14px !important;
                                border: unset!important;
                            }
                            .j-buy-button-remove{
                                background-color: #f5f5f5;
                                color: #329a1c;
                                font-weight: 600;
                                font-size: 14px !important;
                                border: unset!important;
                            }
                        }
                    }
                }
            }
        }
    }
}