
@media (max-width: 1369px) {
    .h_bg_searh {
        flex: 0 1 430px;
    }
}
@media (max-width: 1179px) {
    .prod_b_price {
        flex-wrap: wrap;
    }
    .h_bg_searh {
        flex: 0 1 330px;
    }
    .head_a_phone {
        font-size: 17px;
    }
    .h_bg_btnsale {
        flex: 0 1 135px;
    }
    .h_bg_btnphone {
        margin: 0 5px;
    }
    .h_bg_btnsale {
        margin: 0 5px;
    }
    .h_bg_searh {
        margin: 0 10px;
    }
}




@media (max-width: 1099px) {
    .codruup-btn {
        right: 20px;
    }
    .bks_prod_el .modal_header_data_price_norm {
        font-size: 16px;
    }
    .bks_prod_el .modal_header_data_countprice {
        gap: 10px;
    }
    .catalog-menu {
        top: 180px;
    }
    .main-categories {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mgo-widget-call_pulse {
        width: 50px;
        height: 50px;
    }

    .h_bg_logo img {
        position: relative;
        left: -2px;
    }
    .catalog-row {
        gap: 20px;
    }
    .l_mnu_left,
    .lm_head_location {
        display: none;
    }
    .burger_mobile_menu {
        display: block;
    }

    .h_bg_mob_search {
        flex: 1 1 30px;
        display: flex;
        position: relative;
        height: 22px;
    }
    .h_bg_logo {
        flex: 0 1 100px;
        /* margin-right: 20px; */
    }
    .h_bg_btnsale {
        display: none;
    }
    .h_bg_btnphone {
        display: none;
    }
    .h_bg_btnbask {
        flex: 0 1 40px;
        margin: 0 5px;
    }
    .h_bg_logo {
        margin-right: 0px;
    }
    .h_bg_search_inpt {
        height: 22px;
    }
    .h_bg_searh {
        display: none;
    }
    .inpt_search_btn {
        top: 0;
    }
    .header_bg {
        height: 50px;
    }
    .h_bg_logo {
        flex: 0 1 156px;
    }
    .head_bsk_count {
        top: -7px;
        right: -9px;
        width: 23px;
        height: 23px;
    }

    .btndiv-main-menu.fixed .catalog-row {
        padding: initial;
    }
    .btndiv-main-menu.fixed {
        top: 50px;
    }
    .line_menu {
        height: 45px;
    }
    .div-main-menu-scroll {
        height: 50px;
        display: none;
    }

    .mobile_m_b {
        position: fixed;
        top: 0;
        width: 80%;
        height: 100%;
        right: 0;
        z-index: 350;
        padding-left: 30px;
        padding-right: 30px;
        max-height: 100%;
        overflow-y: auto;
        background: url(/images/mobmd/footer_bg.svg) #421913;
    }
    .mobile_m_b.active {
        display: block;
    }
    .mobile_m_b .l_mnu_a {
        color: #fff;
        margin-bottom: 25px;
        font-size: 18px;
    }
    .mobile_n_close {

    }
    .mobile_m_content {
        margin-top: 40px;
    }
    .mobile_n_close img {
        height: 25px;
        width: 25px;
    }
    .mobile_n_close {
        color: #fff;
        font-size: 26px;
        position: absolute;
        right: 30px;
        top: 10px;
    }


    .mobile_m_content .h_bg_btnsale {
        display: flex;
        margin: 10px 0px;
        width: 100%;
    }
    .mobile_m_content .head_btn_sale {
        width: 100%;
    }
    .mobile_m_content .h_bg_btnphone {
        display: flex;
    }
    .mobile_m_content .l_mnu_left,
    .mobile_m_content .lm_head_location {
        display: flex;
        margin-bottom: 10px;
        color: #fff;
    }


    .h_bg_searh.active {
        display: block;
        position: fixed;
        top: 0;
        background: #421A13;
        z-index: 250;
        left: 0;
        width: 100%;
        padding: 10px;
        height: 100px;
        right: 0;
        margin: 0;
    }
    .h_bg_searh.active .h_bg_search_inpt {
        height: 40px;
    }
    .h_bg_searh.active .inpt_search_btn {
        top: 9px;
    }
    .h_bg_searh.active .h_bg_searh_close {
        text-align: center;
        font-size: 25px;
        color: #fff;
        cursor: pointer;
        display: block;
        margin-bottom: 10px;
    }
}


@media (max-width: 960px) {
    .page_cat_head {
        margin-top: 30px;
        margin-bottom: 25px;
    }
    .cont_right_b, .cont_left_b {
        padding: 15px;
    }
    .pp_framemap iframe {
        max-width: 100%;
    }
    .prod_labels_credit {
        top: 60px;
    }
    .page_head_1 {
        font-size: 25px;
    }
    .line_add_prod, .add_fav_btn {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .prod_img img {
        margin: 0 auto;
    }
    .block_filter_cat {
        max-width: 220px;
        flex: 0 1 220px;
    }
    .sc_range_inptel {
        max-width: 105px;
    }
    .catalog_page {
        gap: 15px;
    }
    .cat_icons_slider {
        padding: 0 40px;
    }
    .slider_h_txt_tl {
        font-size: 38px;
    }
    .slid_h_txt {
        font-size: 18px;
    }
    .ft_column {
        margin-bottom: 40px;
    }

    .modal_bottom_block {
        flex-direction: column;
    }
    .modal_bottom_left, .modal_bottom_right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .catalog-panel {
        flex-direction: column;
        width: 100%;
        max-width: none;
    }
    .catalog-right {
        display: none;
    }

    .catalog-left {
        width: 96%;
    }
}

@media (max-width: 599px) {
    .topsale_slider .swiper-slide,
    .prodsale_slider  .swiper-slide,
    .newprod_slider .swiper-slide {
        width: 100% !important;
    }
    .topsale_slider .swiper-button-next ,
    .prodsale_slider .swiper-button-next {
        top: 38%;
    }
    .topsale_slider,
    .prodsale_slider {
        padding: 0 15px;
    }




    .modal_block {
        padding: 15px 15px;
    }
    .modal_credit_line {
        width: calc(50% - 8px);
    }
    .modal_header_data_title{
        font-size: 15px;
    }
    .prod_imgs ul li img {
        height: auto;
    }
    .btn_filter_mob {
        display: block;
        padding: 8px 12px;
        background: #fff;
        border: 1px solid #ccc;
        cursor: pointer;
        border-radius: 6px;
        font-size: 20px;
        text-align: center;
        margin-bottom: 15px;
    }
    .block_filter_cat {
        display: none;
    }
    .block_filter_cat.active {
        display: block;
        position: fixed;
        top: 0;
        z-index: 5500;
        background: #fff;
        max-height: 100%;
        overflow-y: auto;
        width: 280px;
        left: 0;
        padding-left: 15px;
        max-width: inherit;
        padding-right: 15px;
        padding-top: 45px;
        padding-bottom: 45px;
        border-right: 1px solid #ccc;
        height: 100%;

    }
    .close_f_mob {
        padding-left: 30px;
        background: url("/images/mobmd/close_filter.svg") left center no-repeat;
        cursor: pointer;
        color: #000;
        font-size: 14px;
        position: absolute;
        top: 10px;
        right: 10px;
    }
    .block_filter_cat.active .close_f_mob{
        display: block;
    }
    .my-slider .slider-button {
        display: none;
    }
    .slider_h_txt_tl {
        font-size: 20px;
    }
    .slid_h_txt {
        display: none;
    }

    .graphic_header {
        display: flex;
        flex-wrap: wrap;
    }
    .line_menu {
        height: 45px;
    }

    .l_mnu_right {
        display: flex;
        justify-content: space-between;
        float: none;
    }

    .footermenu {
        text-align: center;
    }
    .col_ft_line {
        justify-content: center;
    }
    .col_ft_socline {
        justify-content: center;
    }
    .logo-footer {
        margin: 0 auto;
    }

    .prod_imgs .lSSlideOuter .lSPager.lSGallery img{
        height:  auto;
    }
}




/* ── Пункт 6: Мобильные улучшения ── */
@media (max-width: 599px) {
    /* Цена на странице товара */
    .prodpage_b_price {
        font-size: 26px;
    }

    /* Заголовок страницы товара */
    .page_head_1 {
        font-size: 22px;
        line-height: 1.3;
    }

    /* Кнопки корзины — полная ширина на мобильном */
    .det_bsk_b,
    .det_bsk_one_b {
        padding: 14px 10px;
    }

    /* Селектор размеров — 2 колонки на узком экране */
    .prodet_sizes {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Вкладки: текст меньше */
    .det_tab_navitem {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Полоса доставки — в 2 строки */
    .det_delivery_strip {
        gap: 10px 16px;
    }

    /* Карточка товара — кнопки всегда видны */
    .line_add_prod {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    /* Название товара в карточке: чуть меньше на планшете */
    .prod_b_tl {
        font-size: 14px;
    }
}
