.hidden1 {
    display: none;
}

.main_page3 {}



.main_page3_wrap {
    padding: 0px 0px 0 0;
    margin-top: 0px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    overflow: hidden;
    justify-content: center;

}

.main_page3_wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    object-position: center;

}

.main_page3_gallery {}

.main_page3_gallery_item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 3fr 1fr;
    width: 100%;
    /* height: 500px; */
    /* display: flex;
    justify-content: center;
    align-items: center; */
    overflow: hidden;
    gap: 10px;
    /* aspect-ratio: 16/9; */
}

.product-img-smol-1 {
    grid-column: 1/2;
    grid-row: 2/3;
}

.product-img-smol-2 {
    grid-column: 2/3;
    grid-row: 2/3;
}

.product-img {

    grid-column: 1/-1;
    grid-row: 1/2;
}

/* .main_page3_gallery_item {
    width: 100%;
    height: 100%;
} */

.main_page3_desc {
    font-family: "Ubuntu Sans", sans-serif;
}

.main_page_title {
    font-size: 32px;
}

.main_page3_articul {
    opacity: .5;
}

.main_page3_price {
    padding: 40px 0 0 0;
    font-size: 30px;
}

.size_block {}

.button_size {
    padding: 30px 0 30px 0;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 115px);
}

.main_page3_size {
    border: 1px solid rgb(126, 122, 122);
    border-radius: 4px;
    height: 44px;

}

.add-to-cart {
    background-color: #000000;
    ;
    width: 135px;
    height: 40px;
    color: aliceblue;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.sneakers_desc {
    padding: 40px 30px 0 0;
    font-size: 20px;
    opacity: .8;
}

.specifications {
    padding-top: 50px;
}

.container {}

/* .specification_wrap {
    display: flex;
    justify-content: space-around;
    font-size: 20px;
}

.btn_spec {
    width: 400px;

} */








.hover {
    border-bottom: 1px solid #333;
}

.btn_desc {
    width: 400px;
}



.toggle_spec {
    margin-top: 50px;
}

.toggle_size {
    margin-top: 50px;
    padding: 0 0 0 60px;
}

.container {}

.toggle_spec_wrap {
    max-width: 900px;
    padding: 0 50px 50px 50px;
}

.toggle_size_wrap {
    padding: 0 20px 20px 0;
}

.tittle_toggle {
    font-size: 25px;
}

.toggle_spec_desc {
    padding: 0 0 0 20px;
}

.toggle_spec_desc_item {

    opacity: .7;
    list-style: disc;
}

.toggle_size_desc {
    opacity: .7;
    max-width: 900px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

.qty-btn:hover {
    background-color: #f0f0f0;
}













/* когда меню открыто — хедер не уезжает */
.menu-open .header {
    transform: none !important;
}

.mobile-fixed-cart-btn {
    box-sizing: border-box;
    left: 0;
    right: 0;
    width: 100%;
}

@media (max-width: 610px) {
    .mobile-fixed-cart-btn {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        padding: 10px 16px;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .mobile-cart-price {
        font-size: 18px;
        font-weight: bold;
    }

    .mobile-cart-btn {
        padding: 12px 16px;
        background: #000000;
        ;
        color: white;
        font-weight: bold;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        width: 100%;
    }

    /* Скрыть десктопную кнопку */
    .desktop-cart-btn {
        display: none;
    }
}

.btn-back {
    display: block;
    background-color: #060606;
    width: 100%;
    color: #ffffff;

}

/* модальная корзина  */






/* Скрываем кнопку возврата на экранах шире 610px */
@media (min-width: 611px) {
    .btn-back {
        display: none !important;
    }
}

/* @media (min-width: 1001px) {

    .main_page_title_under,
    .main_page3_price_under {
        display: none;
    }
} */

/* @media (max-width:1001px) {

    .main_page_title,
    .main_page3_price {
        display: none;
    }
} */

@media(max-width:1300px) {
    .main_page3_price {
        padding: 0;
    }
}

@media(max-width:1100px) {
    .main_page3_wrap {
        grid-template-columns: repeat(2, 1fr);
        padding: 0px 0;
    }

    .sneakers_desc {
        padding: 40px 30px 0 0;
        font-size: 16px;
        opacity: .8;
    }
}

@media(max-width:1000px) {
    .main_page3_wrap {
        grid-template-columns: none;
        grid-template-rows: repeat(2, auto);
        /* gap: 50px; */
    }

    .toggle_size {
        padding: 0 0 0 30px;
    }

    .main_page3_desc {
        padding: 0 20px;
    }



}

@media(max-width:620px) {
    .specifications {
        max-width: 500px;
    }

    .sneakers_desc {}

    .main_page3_desc {
        margin-bottom: 40px;

    }

    .toggle_size_desc {

        padding: 0 20px 0 20px;
    }

    .specification_wrap {
        flex-wrap: nowrap;
        /* как ты и хотел — без wrap */
        justify-content: space-between;
        gap: 8px;
    }

    .btn_spec,
    .btn_desc {
        flex: 1 1 0;
        /* делим строку пополам */
        min-width: 0;
        /* разрешаем ужиматься */
        width: auto;
        /* сброс фиксированных ширин */
        max-width: none;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media(max-width:479px) {
    .container {
        padding: 0 3px;
    }

    .main_page3_desc {
        padding: 0 15px;
    }



    .main_page3_wrap {
        /* padding: 50px 0px 0;
        margin-top: 100px;
        display: flex;
        flex-direction: column;

        gap: 30px; */
        grid-template-columns: none;
        grid-template-rows: repeat(2, auto);
        gap: 30px;
        /* padding-top: 30px; */

    }

    .main_page3_gallery {
        /* width: 380px;
        height: 380px; */
    }

    .sneakers_desc {
        font-size: 16px;
    }

    .toggle_spec_wrap {
        width: 400px;
        padding: 0 20px 40px 20px;
    }

    .tittle_toggle {
        font-size: 18px;
    }

    .toggle_size_desc {
        width: 360px;
        padding: 0 20px 0 20px;
    }

    .toggle_size {

        padding: 0 0 0 10px;
    }





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

}

@media(max-width:433px) {
    .specifications {
        max-width: 390px;
        padding: 0;
    }
}

/* Кнопки в один ряд, без переноса */
.specification_wrap {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    /* принципиально: без wrap */
}

/* Резиновые кнопки 50/50, учитывая gap */
.btn_spec,
.btn_desc {
    flex: 1 1 0;
    /* растягиваются поровну */
    min-width: 0;
    /* разрешаем ужиматься */
    box-sizing: border-box;
    /* учитываем padding/border */
    width: auto;
    /* убираем фикс. ширины */
    max-width: none;
    padding: 12px 16px;
    white-space: nowrap;
    /* не переносим текст */
    overflow: hidden;
    /* если совсем тесно */
    text-overflow: ellipsis;
    /* троеточие вместо ломания вёрстки */
    /* (опционально) размер шрифта адаптивный:
  font-size: clamp(14px, 3.8vw, 20px); */
}

/* Удали/закомментируй ВСЕ старые width: 400px/390px для .btn_spec/.btn_desc */
.btn_spec {
    /* width: 400px;  <-- убрать */
}

.btn_desc {
    /* width: 400px;  <-- убрать */
}