/* ============================================= */
/* RESPONSIVE.CSS - Новая шапка (menu-type-1.new-header) */
/* ============================================= */
 .new-header .logotip {
	    display: block;
	}
.new-header .logotip_m {
	    display: none;
	}
/* Скрываем лишние элементы в виджете корзины (модалка) - для всех размеров экрана */
#shoping-cart .sc-list-products .sc-item-title,
#shoping-cart .sc-list-products .quantity-label {
    display: none !important;
}

/* Скрываем кнопки + и - в виджете корзины */
#shoping-cart .sc-list-products .sc-item-count .btn {
    display: none !important;
}

/* Оставляем только поле ввода количества */
#shoping-cart .sc-list-products .sc-item-count .form-control {
    display: inline-block !important;
    width: 50px;
    text-align: center;
}

/* Глобальные медиа-запросы */
@media (min-width: 1300px) {
    .container {
        width: 1300px;
    }   
}

@media (max-width: 1300px) {
    .social-icons {
        display: none;
    }
    .item-views.table .item .text .b_cart .add_cart {
        white-space: normal;
        margin-right: 20px;
    }

    .glide {
        height: 362px;
    }
    .glide__slides {
        height: 362px;
    }
}

@media (max-width: 1200px) {
    /* Скрываем слоган */
    .new-header .slogan-col {
        display: none;
    }
    
    /* Увеличиваем ширину блока с адресом и телефоном */
    .new-header .address-phone-col {
        flex: 1;
        min-width: auto;
    }
    
    /* Уменьшаем отступы между адресом и телефоном */
    .new-header .address-phone-col {
        gap: 15px;
    }
    
    .new-header .header-address i,
    .new-header .header-phone i {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .catalog-dropdown-content {
        max-width: 970px;
    }

    .glide {
        height: 298px;
    }
    .glide__slides {
        height: 298px;
    }

    body {
        background-size: contain;
    }
    .new-header .header-bottom-row {
        margin-top: 150px;
    }
}

@media (max-width: 1091px) {
    .new-header .header-bottom-row {
        margin-top: 120px;
    }
}

@media (min-width: 992px) {
	.new-header .mobile-cart {
	    display: none;
	}
}

@media (max-width: 991px) {

    .new-header .header-address, .new-header .header-phone {
        font-size: 15px;
    }

    .glide {
        height: 229px;
    }
    .glide__slides {
        height: 229px;
    }
    /* Логотипы */
    .new-header .logotip {
        display: none;
    }
    .new-header .logotip_m {
        display: block;
        text-align: left;
        margin: 0;
    }
    .new-header .logotip_m img {
        max-height: 130px;
        width: auto;
    }

    .new-header .logo-col {
	    flex: 0 0 25%;
	    max-width: 25%;
	    text-align: left;
	}

	.new-header .address-phone-col {
	    flex: 0 0 75%;
	    max-width: 75%;
	    display: flex;
	    justify-content: flex-end;
	    gap: 15px;
	}
    
    /* Скрываем корзину в шапке */
    .new-header .cart-col {
        display: none;
    }
    
    /* Общие */
    .manager {
        margin: 30px 0;
    }
    .item-cat-view {
        text-align: center;
        width: 100%;
    }
    #content-block.not_main {
        float: inherit !important;
    }
    .sidebar_box {
        clear: both;
        margin-top: 10px;
        float: none !important;
    }
    body {
        padding-bottom: 0;
    }
    #footer {
        position: relative;
    }
    .social-icons {
        display: none;
    }
    .search {
        display: none;
    }
    
    /* Поиск */
    .search-header, .page .search-header {
        margin-top: 0;
    }
    .search-box {
        width: 100%;
    }
    
    /* Кнопка мобильного меню */
    button.btn-responsive-nav {
        display: inline-block !important;
        float: left;
        font-size: 20px;
    }
    
    /* Слайдер */
    #carousel {
        margin-top: 0;
        top: 0;
    }
    #carousel div.img {
        display: none;
    }
    #carousel div.col-md-6.text {
        text-align: center;
    }
    
    /* Навигация */
    header .nav-main-collapse.collapse {
        display: none !important;
    }
    header .nav-main-collapse.in {
        display: block !important;
    }
    header .nav-main-collapse.in > .container {
        width: auto;
        padding-left: 0;
        padding-right: 0;
    }
    header .nav-main-collapse {
        width: 100%;
        position: relative;
        max-height: none;
        z-index: 10;
    }
    
    /* Сортировка и фильтр */
    .ordering-wrap {
        margin-bottom: 10px;
    }
    .__show_type {
        text-align: right !important;
    }
    .__show_type .lb_type_show_products {
        display: none;
    }
    .item-views.table .__list .item .text {
        border-left: 0;
    }
    .contacts .styled-block {
        background-size: cover;
    }
    
    /* Фиксированное меню */
    .subnav.fixed-menu {
        top: 42px !important;
        width: 100%;
    }
    
    /* Кнопка обратного звонка */
    header .hidable {
        display: none;
    }
    
    /* Верхняя навигация */
    .top-responsive-nav {
        display: inline-block;
    }
    .top-responsive-nav.fixed-button {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
        border-radius: 0;
    }
    
    /* Изображения */
    .img-width {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    /* Фильтр товаров */
    .product_filter_box {
        position: fixed;
        top: 0;
        background: #fff;
        left: 2px;
        right: 2px;
        z-index: 1100;
        display: none;
        height: 100%;
        overflow: scroll;
        margin-top: 0;
        padding-bottom: 90px;
    }
    .product_filter_box.in {
        display: block;
    }
    .product_filter_box .action-buttons .view-btn {
        display: inline-block;
    }
    .product_filter_box .action-buttons {
        display: block;
        position: fixed;
        bottom: 0;
        text-align: center;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px 0;
    }
    .button-filter {
        display: block;
    }
    
    /* Mega menu */
    .mega-menu {
        margin-top: 0;
    }
    
    /* Категории */
    .item.item_category .text {
        height: auto !important;
    }
    
    /* Товары в плитке */
    .group-content.row_products .__tiles .item .text {
        height: auto !important;
        text-align: center;
    }
    .group-content.row_products .__tiles .item .text .b_cart {
        position: relative;
        bottom: auto;
        margin-top: 10px;
    }
    .group-content.row_products .__tiles .item .text .price > div {
        display: inline-block;
        margin: 0 10px;
    }
    
    /* Заголовки товаров */
    .item-views.table .item .title a {
        font-size: 18px;
    }
    .item-views.table .item .label {
        position: absolute;
        top: -187px;
        left: 13px;
    }
    
    /* Детальная страница */
    .detail .img-responsive {
        max-width: 100%;
    }
    
    /* Стилизованные блоки */
    .styled-block {
        padding: 28px 22px;
    }
    
    /* Отзывы */
    .carousel-reviews .review-item {
        padding: 25px 10px 25px 25px;
    }
    
    /* Сетка каталога на планшетах - 2 колонки */
    .list-main-category .group-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .list-main-category__item.lg6 {
        grid-column: span 1;
    }
    
    /* Новая шапка - мобильная версия (верхняя строка) */
    .new-header .header-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .new-header .logo-col {
        flex: 1;
        text-align: left;
    }
    
    .new-header .address-phone-col {
        display: flex;
        justify-content: flex-end;
        gap: 15px;
    }
    
    .new-header .slogan-col {
        display: none;
    }

    /* Нижняя строка - фикс */
    .new-header .bottom-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px 15px 10px;
    }
    
    /* Кнопка каталога */
    .new-header .catalog-button-wrap {
        flex: 0 0 auto;
    }

    .catalog-dropdown-content {
        max-width: 750px;
    }

    .catalog-button-wrap {
        display: inline-block;
    }

    .catalog-dropdown {
        position: relative;
        display: inline-block;
        width: auto;
    }
        
    .catalog-dropdown-content:before {
        display: none;
    }
    
    .catalog-menu-level-1 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Поиск - ограниченная ширина, чтобы не отталкивать корзину */
    .new-header .search-header {
        flex: 1;
        min-width: 0;
    }
     .catalog-dropdown-content {
        z-index: 10000;
    }

     .mobile-cart .shoping-cart-info .sc-total {
        font-size: 12px;
        color: #fff;
    }

    .block-with-products .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -10px;
    }
    
    .block-with-products .col-md-3 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        padding: 0 10px;
    }

    .new-header .cart-col {
        display: none;
    }
    .new-header .header-bottom-row {
        margin-top: 150px;
    }
}

@media (max-width: 872px) {
    .new-header .header-bottom-row {
        margin-top: 125px;
    }
    .new-header .header-address, .new-header .header-phone {
        margin-top: 0;
    }
    .new-header .btn-callback {
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    #page-cart .cart_list_page .sc-item-title {
        display: none;
    }
    #page-cart .cart_list_page .quantity-label {
        display: none;
    }
}

@media (max-width: 768px) {

    .container {
        padding-right: 15px;
        padding-left: 15px;
        margin-right: 15px;
        margin-left: 15px;
    }

    .block-with-products .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .logotip_m img {
        max-width: 100%;
        max-height: 170px;
    }
    .group-content.row_products .__tiles .item .text {
        text-align: center;
    }
    .group-content.row_products .__tiles .item .text .b_cart {
        left: 0;
        right: 0;
    }
    .group-content.row_products .__tiles .item .text .b_cart .btn {
        margin: 0 0 10px;
    }
    #shoping-cart .sc-list-products {
        left: -110px;
    }
    .item-views.list .item .title {
        margin: 10px 0;
    }

    .glide {
        height: 233px;
    }
    .glide__slides {
        height: 233px;
    }
    /* Мобильная версия корзины - таблица в столбик */
    #page-cart .table-responsive {
        overflow-x: visible;
    }
    
    #page-cart .cart_list_page,
    #page-cart .cart_list_page thead,
    #page-cart .cart_list_page tbody,
    #page-cart .cart_list_page tr,
    #page-cart .cart_list_page td {
        display: block;
    }
    
    #page-cart .cart_list_page thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    #page-cart .cart_list_page tr {
        border: 1px solid #ddd;
        margin-bottom: 15px;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
    }
    
    #page-cart .cart_list_page td {
        border: none;
        padding: 8px 10px !important;
        text-align: left !important;
        width: 100%;
    }
    
    #page-cart .cart_list_page td:before {
        content: none;
    }
    
    /* Изображение - строка 1 */
    #page-cart .cart_list_page .sc-item-img {
        text-align: center !important;
        padding: 10px !important;
    }
    
    #page-cart .cart_list_page .sc-item-img img {
        max-width: 100px;
        margin: 0 auto;
    }
    
    /* Товар (заголовок) - строка 2 */
    #page-cart .cart_list_page .sc-item-title {
        font-weight: bold;
        font-size: 16px;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
    
    /* Название - строка 3 (с переносом) */
    #page-cart .cart_list_page .product-name {
        padding: 5px 10px !important;
        color: #555;
        word-break: break-word;
        white-space: normal;
        line-height: 1.4;
    }
    
    /* Количество (заголовок) - строка 4 */
    #page-cart .cart_list_page .quantity-label {
        font-weight: bold;
        padding: 5px 10px 0 10px !important;
    }
    
    /* Кнопки количества - строка 5 (в одну строку) */
    #page-cart .cart_list_page .sc-item-count {
        padding: 5px 10px 10px 10px !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    #page-cart .cart_list_page .sc-item-count .form-control {
        width: 60px;
        display: inline-block;
        text-align: center;
    }
    
    #page-cart .cart_list_page .sc-item-count .btn {
        margin: 0;
        display: inline-block;
    }
    
    /* Кнопка удаления - отдельная строка 6 */
    #page-cart .cart_list_page .sc-item-action {
        text-align: center !important;
        padding: 10px !important;
    }
    
    #page-cart .cart_list_page .sc-item-action button {
        display: inline-block;
        width: auto;
    }
    
    /* Итоговая сумма и кнопки */
    #page-cart .text-right {
        text-align: center !important;
    }
    
    #page-cart .btn {
        margin: 5px 0;
        width: 100%;
        display: block;
    }
    
    #page-cart .btn-primary {
        background: #00319d !important;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    #page-cart .btn-default {
        background: #e0e0e0;
        margin-bottom: 10px;
        padding: 10px 20px;
    }

}
@media (max-width: 734px) {
    .new-header .address-phone-col .top-row {
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
    }
    .new-header .header-phone a {
        font-size: 24px;
    }

    .new-header .header-address, .new-header .header-phone {
        margin-top: 10px;
    }

    .new-header .header-bottom-row {
        margin-top: 75px;
    }
}
@media (max-width: 630px) {

    .new-header .address-phone-col .top-row {
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }
    .new-header .subnav.menu-type-1 ul.nav > li > a {
        padding: 10px 10px;
    }
    .catalog.detail .info .price .price_val {
        font-size: 42px;
    }
    .pagination a.nav_l_t,
    .pagination a.nav_l_t {
        padding: 5px 8px;
        line-height: 40px;
    }
    .detail.services.article .sidearea_ask {
        width: 100%;
        margin-bottom: 20px;
    }

    .new-header .header-top-row {
        flex-direction: column;
        align-items: center;
    }
    
    .new-header .logo-col {
        flex: 0 0 auto;
        max-width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .new-header .address-phone-col {
        flex: 0 0 auto;
        max-width: 100%;
        justify-content: center;
    }
    .catalog-menu-level-1 {
        grid-template-columns: 1fr;
    }

    .glide {
        height: 185px;
    }
    .glide__slides {
        height: 185px;
    }

    body {
        background-size: inherit;
    }
}

@media (max-width: 576px) {
    .glide {
        height: 150px;
    }
    .glide__slides {
        height: 150px;
    }

    .new-header .subnav.menu-type-1 ul.nav > li > a {
        padding: 10px 10px;
    }

    .feature-box .feature-box-icon {
        height: 70px;
        width: 70px;
        padding: 10px;
    }

    .block-with-products .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .block-with-products .image img {
        max-width: 200px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .new-header .btn-catalog .catalog-hide-mobile {
        display: none;
    }

    .new-header .btn-callback {
        margin-top: 10px;
    }
    .new-header .subnav.menu-type-1 ul.nav > li > a {
        font-size: 11px;
        padding: 5px 5px;
        border-radius: 8px;
    }
    .glide {
        height: 123px;
    }
    .glide__slides {
        height: 123px;
    }
    .catalog.detail .add_cart,
    .catalog.detail .order_buttom {
        width: 100%;
        font-size: 20px;
    }
    .pagination a {
        padding: 5px 8px;
        line-height: 42px;
    }
    #page-cart .table-total {
        width: 100%;
    }
    
    /* Сетка каталога на телефонах - 1 колонка */
    .list-main-category .group-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Перестроение нижней строки */
    .new-header .bottom-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    /* Строка 1: кнопка Каталог + поиск в одной строке */
    .new-header .bottom-content {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .new-header .catalog-button-wrap {
        order: 1;
        flex: 0 0 auto;
    }

    .new-header .search-header {
        order: 2;
        flex: 1;
        min-width: 0;
    }

    /* Строка 2: меню сайта */
    .new-header .bottom-content .nav-main-collapse {
        order: 3;
        width: 100%;
    }

    /* Строка 3: корзина по центру */
    .mobile-cart {
        order: 4;
        width: 100%;
        text-align: center;
    }

    .mobile-cart #shoping-cart {
        display: inline-block;
        margin-left: -15px;
    }

    .mobile-cart .shoping-cart-info {
        justify-content: center;
    }

    /* Фикс высоты нижней строки */
    .new-header .header-bottom-row {
        height: auto;
        overflow: visible;
        padding-bottom: 10px;
    }

    .new-header .address-phone-col {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .new-header .header-address,
    .new-header .header-phone {
        width: 100%;
        justify-content: center;
    }

    #shoping-cart .shoping-cart-info i {
        color: #00319d !important;
        background: #ffffff;
        border-radius: 8px;
        width: 35px;
        height: 35px;
        padding: 8px 9px;
    }

    .new-header .subnav.menu-type-1 ul.nav {
        gap: 0px;
    }

    /* Категории на главной — горизонтальная плитка */
    .list-main-category .group-content {
        display: block !important;
    }
    
        .list-main-category__item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        height: 120px !important;
        margin-bottom: 15px !important;
        padding: 10px !important;
        background: #fff !important;
        border-radius: 10px !important;
        text-decoration: none !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .list-main-category__item.lg3,
    .list-main-category__item.lg6 {
        grid-column: auto !important;
        width: 100% !important;
    }
    
    /* Картинка 100x100, прижата влево */
    .list-main-category__item .item-img {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        margin: 0 !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }
    
    /* Название справа от картинки */
    .list-main-category__item .item-link {
        position: static !important;
        display: block !important;
        padding: 0 0 0 15px !important;
        margin: 0 !important;
        flex: 1 !important;
        text-align: left !important;
    }
    
    .list-main-category__item .item-link span {
        padding: 0 !important;
        font-size: 14px !important;
        text-transform: none !important;
        color: #333 !important;
    }
    
}


@media (max-width: 375px) {
    .glide {
        height: 110px;
    }
    .glide__slides {
        height: 110px;
    }
    .new-header .btn-callback {
        padding: 14px 25px;
    }
    .about .btn-callback {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 360px) {
    .glide {
        height: 104px;
    }
    .glide__slides {
        height: 104px;
    }
    .new-header .address-phone-col {
        padding: 0;
    }
    
}

@media (max-width: 320px) {
    .glide {
        height: 92px;
    }
    .glide__slides {
        height: 92px;
    }
}