.product {
    display: flex;
    flex-direction: row;
    padding: 0px 18px 18px 18px;
}
.product-media {
    display: flex;
    flex-direction: row;
    max-width: 730px;
    max-height: 530px;
}
.product-tape {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-width: 150px;
    max-height: 600px;
    min-height: 90px;
}

.product-preview-in-tape {
    overflow: hidden;
    position: relative;
    max-width: 150px;
    max-height: 150px;
    flex-shrink: 0;
}
.product-preview-in-tape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    padding: 8px;
}
.product-tape > :first-child > img {
    padding-top: 0px;
    padding-right: 8px;
}
.product-preview {
    order: 2;
    height: 100%;
}
.product-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    padding-left: 8px;
}
.product-texts {
    padding-left: 18px;
    flex-basis: 400px;
    padding: 8px;
}
.product-texts {
    padding-left: 18px;
    padding-right: 18px;
}
.product-name,
.product-description,
.product-scale,
.product-price {
    margin: 0;
}
.product-name h1 {
    font-size: 24px;
}
.product-description {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    opacity: 0.7;
}
.product-scale,
.product-price {
    margin-top: 10px;
}
.product-cart-button {
    cursor: pointer;
    margin-top: 20px;
    font-size: 0.9rem;
    background-color: #d000ff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border 0.2s ease;
}
.product-cart-button:hover {
    color: #d000ff;
    background-color: #fff;
    border: 1px solid #d000ff;
}
dialog {
    max-width: 95dvw;
    max-height: 95dvh;
    margin: auto;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(31, 31, 31, 0.446);
    -ms-overflow-style: none;
    scrollbar-width: none;
}
dialog::-webkit-scrollbar {
    display: none;
}
#modalImage {
    max-width: 95dvw;
    max-height: 95dvh;
}
.product-0-quantity {
    color: rgb(219, 0, 0);
}
#prevButton,
#nextButton {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    border: none;
    cursor: pointer;
    outline: none; /* Убирает контур при фокусе */
}
#nextButton {
    width: 75%;
    right: 0;
}
#prevButton {
    width: 25%;
    left: 0;
}
.add-to-cart-2.hidden {
    display: none;
}
