* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "PTRootUI";
    src: url("/css/PT_Root_UI_Medium.ttf");
}

body {
    font-family: PTRootUI;
}

.products {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    /*background-image: url('/img/isscreen-background.jpg');*/
    /*background-color: #F1F2F7;*/
}

.product {
    display: flex;
    flex-direction: column;
    padding: 10px 10px 10px 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
    /*background-image: url('/img/isscreen-background.jpg');*/
    /*background-color: #F1F2F7;*/
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

h2 {
    font-weight: 100;
}

.product-body {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* Основные стили продукта */
.product-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    align-self: center;
    position: relative;
    /* Для позиционирования пагинации */
    width: 220px;
    /* Задайте нужную ширину */
}

.product-image .swiper {
    width: 100%;
    height: 100%;
}

.product-image .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 220px !important;
    /* Приоритет оригинального размера */
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    mix-blend-mode: multiply !important;
    padding: 15px;
    /* Добавляем пространство вокруг изображения */
}

/* Кастомизация пагинации */
.product-image .swiper-pagination {
    bottom: 0px !important;
}

.product-image .swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    width: 8px;
    height: 8px;
}

.product-image .swiper-pagination-bullet-active {
    background: #000 !important;
}

/* Прогресс-бар */
.product-image .swiper-autoplay-progress {
    background: rgba(0, 0, 0, 0.1);
    height: 2px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.title {
    text-decoration: none;
    cursor: pointer;
    transition-property: color, font-weight, border-bottom;
    transition-duration: 150ms;
    transition-timing-function: ease-in-out;
    display: inline-block;
    font-size: 20px;
    line-height: 15px;
    letter-spacing: 0.02em;
    color: inherit;
}

.info-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    line-height: 15px;
    letter-spacing: 0.02em;
    font-weight: 400;
    color: rgb(21, 21, 40);
}

.gift a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c00;
    font-weight: 600;
    text-decoration: none;
}

.specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #444;
    font-size: 14px;
    line-height: 1.4;
}

.specs ul {
    list-style: none;
    font-size: 12px;
    color: black;
}

.specs ul li {
    margin-bottom: 5px;
}

.specs span {
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    letter-spacing: 0.02em;
    user-select: text;
    color: rgb(134, 134, 144);
}

.product-footer {
    display: flex;
    justify-content: end;
    gap: 20px;
    align-items: end;
    padding-top: 15px;
    margin-top: auto;
}


.price-block {
    font-size: 25px;
    font-weight: 700;
    color: #624FFF;
    line-height: 17px;
}

.cashback {
    font-size: 15px;
    text-align: center;
    flex-shrink: 0;
    color: RGB(98, 79, 255, 0.3);
}

.buy-button {
    background: linear-gradient(180deg, #9588ff 0, #665aff 100%);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    padding: 11px;
}
.buy-button:visited {
    color: white;
}

.buy-button:hover {
    background: #0056b3;
}

.seo-block {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    /*background-image: url('/img/isscreen-background.jpg');*/
    /*background-color: #F1F2F7;*/
}

.seo-text {
    padding: 10px 0px 10px 12px;
    text-wrap: pretty;
}

.seo-text p {
    color: rgb(134, 134, 144);
}

.seo-text ul {
    padding-left: 1rem;
}

.seo-text li {
    color: rgb(134, 134, 144);
}

/* Img zooming */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: default;
}

.image-modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90vh;
    animation: zoom 0.3s;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-swiper {
    width: 100%;
    height: 100%;
    padding: 20px 0;
}

.modal-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-swiper img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    scale: 0.7;
}

@keyframes zoom {
    from {
        transform: scale(0.5)
    }

    to {
        transform: scale(1)
    }
}

.modal-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-gate-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-gate {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-gate-overlay.active .modal-gate {
    transform: translateY(0);
}

.modal-gate-content {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.5;
    color: #333;
}

.promo-title {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #624fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(98, 79, 255, 0.2);
}

.modal-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.modal-gate-btn {
    display: block;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.modal-gate-btn.primary {
    background: #624fff;
    color: white;
    border: 2px solid #624fff;
}

.modal-gate-btn.primary:hover {
    background: #4a3bd1;
    border-color: #4a3bd1;
}

.modal-gate-btn.secondary {
    background: transparent;
    color: #624fff;
    border: 2px solid #e0e0e0;
}

.modal-gate-btn.secondary:hover {
    background: #f8f8f8;
    border-color: #c9c9c9;
}

/*Mixing with main*/
.isscreen {
    background-image: none !important;
}

@media (max-width: 768px) {
    .product {
        background-color: #FFF;
    }

    .products {
        background-color: #FFF;
    }

    .product-body {
        flex-direction: row;
        gap: 15px;
    }


    .product-image {
        align-self: center;
        width: 120px;
    }

    .product-image img {
        width: 70px;
    }


    .title {
        font-size: 16px;
    }

    .info-line {
        font-size: 13px;
    }

    .specs {
        font-size: 12px;
    }

    .specs span {
        font-size: 13px;
    }

    .product-footer {
        flex-direction: row;
        gap: 35px;
        justify-content: right;
        align-items: end;
    }

    .price-block {
        text-align: right;
        flex-shrink: 0;
    }

    .cashback {
        font-size: 15px;
    }

    .buy-button {
        text-align: center;
        flex-shrink: 0;
    }

    .seo-text p {
        font-size: 12px;
    }

    .seo-text li {
        font-size: 12px;
    }

    /* ZOOM*/
    .image-modal-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    /*zoom swipe*/
    .modal-swiper img {
        max-width: 95%;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 425px) {
    .isscreen {
        padding: 150px 0 30px;
    }
}