/* Fix product page layout - flexbox for reliable side-by-side */
/* Prevent header overflow from causing viewport shrink (logged-in users have more header items) */
.m-top-bar .logo-main .b-wrap {
    min-width: 0;
}
.p-product-card .product-contens {
    display: flex !important;
    flex-wrap: wrap !important;
    padding-right: 0 !important;
}
/* Фото и данные по товару — уже по ширине */
.p-product-card .product-leftside {
    flex: 0 1 640px !important;
    min-width: 480px !important;
    max-width: 680px !important;
    padding-right: 20px !important;
    margin-right: 0 !important;
    width: auto !important;
}
.p-product-card .rightside-info {
    flex: 0 0 420px !important;
    width: 420px !important;
    margin-left: 32px !important;
    min-width: 0 !important;
}
/* Плашка звоните — колонка справа */
.p-product-card .m-just-call {
    flex: 0 0 260px !important;
    width: 260px !important;
    min-width: 260px !important;
    margin-left: auto !important;
}
/* Lower breakpoint */
@media only screen and (max-width: 1050px) {
    .p-product-card .product-contens {
        flex-direction: column !important;
    }
    .p-product-card .product-leftside {
        min-width: 100% !important;
        max-width: none !important;
        flex: 1 1 100% !important;
    }
    .p-product-card .rightside-info {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    .p-product-card .m-just-call {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }
}
@media only screen and (max-width: 720px) {
    .p-product-card .product-leftside {
        min-width: 100% !important;
    }
}


/* Вкладки Описание/Оплата/Доставка на мобильных — не вылезают за экран */
@media only screen and (max-width: 768px) {
    .p-product-card .m-tabs-selection {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .p-product-card .m-tabs-selection .selectors-list {
        display: flex !important;
        flex-wrap: nowrap;
        min-width: 0;
    }
    .p-product-card .m-tabs-selection .selectors-list li {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }
    .p-product-card .m-tabs-selection .selectors-list li a {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Fix: Callibri popup overlaps Мой кабинет/Избранное when logged in */
.m-top-bar .store-main-links {
    position: relative;
    z-index: 2147483647;
}
