@media screen and (max-width: 767px) {

    .v2-catalog-detalka-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px;
        padding: 0px 16px;
    }

    .v2-catalog-detalka-block1 {
        /* display: none; */
        /* display: none; */
        grid-column: 1 / 5;
        grid-row: 2;
        display: flex;
    }

    .v2-catalog-detalka-block2 {
        grid-column: 1 / 5;
        grid-row: 1;
        /* display: none; */
        /* height: 588px; */
        /* width: 588px; */
    }

    .v2-catalog-detalka-block3 {
        grid-column: 1 / 5;
        grid-row: 3;
        /* display: none; */
    }

    .catalog-element-purchase-action .block-5 {
        padding-top: 0px;

    }
}


@media screen and (min-width: 768px) and (max-width: 1259px) {

    .v2-catalog-detalka-grid {
        display: grid !important;
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 24px;
    }

    .v2-catalog-detalka-block1 {
        grid-column: 1 / 9;
        grid-row: 2;
        display: flex;
    }

    .v2-catalog-detalka-block2 {
        grid-column: 1 / 9;
        grid-row: 1;
        /* display: none; */
        height: 700px;
        width: 700px;
    }

    .v2-catalog-detalka-block3 {
        grid-column: 1 / 9;
        grid-row: 3;
        /* display: none; */
    }
}

@media screen and (min-width: 1260px) {
    .v2-catalog-detalka-grid {
        display: grid !important;
        grid-template-columns: repeat(12, 1fr) !important;
        gap: 24px;
    }

    .v2-catalog-detalka-block1 {
        grid-column: 1 / 3;
    }

    .v2-catalog-detalka-block2 {
        grid-column: 3 / 9;
        padding: 20px;
        background: #ffffff;
    }

    .v2-catalog-detalka-block3 {
        grid-column: 9 / 13;
    }
}


.v2-detalks-title {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 30px;
    margin-bottom: 20px;
}

.ns-bitrix.c-catalog-element.c-catalog-element-catalog-default-5 .catalog-element-buy-button {
    line-height: 3px !important;
}

.v2-detalks-minititle {
    font-size: 12px;
    text-transform: uppercase;
    padding: 20px 0px;
}

.sizetag {
    font-size: 14px;
    background: #fff;
    border-radius: 20px;
    padding: 5px 20px;
    ;

}


.detalka-hars {
    display: none;
    transition: all 0.3s ease;
    overflow: hidden;
    padding-bottom: 20px;
}

.detalka-menus-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detalka-menus-toggle.active svg {
    /* transform: rotate(45deg); */
    transition: transform 0.3s ease;
}

.mybr {
    padding-bottom: 2px;
}

.catalogcard-price {
    font-size: 24px;
    font-weight: 600;
    line-height: 26px;
}


.catalog-element-buy-container {
    display: flex;
    /* justify-content: center;
    align-items: center;
    height: auto; */
    line-height: 47px;
}

.catalogcard-buy {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;

}

.catalogcard_panels_title {
    text-transform: uppercase;
    margin-bottom: 10px;
}

.catalogcard_panels {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
}

.catalogcard_round {
    /* background-color: #ffcc00; */
    border-radius: 24px;
    height: 24px;
    width: 24px;
}

.catalogcard_round A {
    display: block;
    /* border: 1px solid #000; */
    height: 100%;
    width: 100%;
}

/* --------------------------------------------------------------- */

#catalogcard_inbasket {
    display: flex;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    justify-content: center;
    align-items: center;
    height: 48px;

}

#catalogcard_anim {
    display: none;
    text-transform: uppercase;
    justify-content: center;
    align-items: center;
    height: 48px;
}

#catalogcard_added {
    display: none;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    justify-content: center;
    align-items: center;
    height: 48px;
}

/* a[href]:hover #catalogcard_added {
    text-decoration: none;
} */

.active-border {
    border: 2px solid black !important;
    border-radius: 24px;
}


/* для галереи ... ... ... */


/* Только нужный блок — высота 588px */
.vertical-carousel {
    width: 187px;
    height: 588px;
    background: #ffffff;
    padding: 10px;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.vertical-carousel:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    will-change: transform;
    transform: translateY(0);
    transition: transform 0.15s ease-out;
}

.carousel-item {
    width: 167px;
    height: 167px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    background: #f5f5f5;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1259px) {
    .vertical-carousel {
        width: 700px;
        height: auto;
        padding: 10px;
        overflow-x: hidden;
        overflow-y: hidden;
        cursor: grab;
        white-space: nowrap;
    }

    .vertical-carousel:active {
        cursor: grabbing;
    }

    .carousel-track {
        display: inline-flex;
        flex-direction: row;
        gap: 10px;
        width: auto;
        height: 100%;
        transform: translateX(0);
        transition: transform 0.15s ease-out;
        will-change: transform;
    }

    .carousel-item {
        width: 167px;
        height: 167px;
        flex-shrink: 0;
    }

    .carousel-item img {
        pointer-events: auto;
    }
}

@media screen and (max-width: 767px) {
    .vertical-carousel {
        width: 100%;
        overflow-x: hidden;
        overflow-y: hidden;
        cursor: grab;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;

    }

    .carousel-track {
        display: inline-flex;
        flex-direction: row;
        gap: 10px;
        width: auto;
        height: 100%;
        transform: translateX(0);
        transition: transform 0.15s ease-out;
        will-change: transform;
        pointer-events: auto;

    }

    .carousel-item {
        width: 150px;
        height: 150px;
        flex-shrink: 0;
        pointer-events: auto;

    }

    .carousel-item img {
        pointer-events: auto;

        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}