:root {
    --swiper-pagination-bullet-horizontal-gap: 3px;
}

.product-item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    min-height: 405px;
}

.product-item__gallery .swiper {
    width: 100%;
    height: 265px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.swiper-product-img {
    width: 100%;
    height: 265px;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--gray-3);
}

.product-item .swiper-product-img img {
    display: block;
    margin: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item__title {
    width: 100%;
    height: 40px;
    margin-top: 16px;
    align-self: flex-start;
    font-size: var(--p2-size);
    color: var(--gray-black);
    font-weight: 600;
    line-height: 125%;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    transition: all .15s ease-in;
}

.product-item__title:hover {
    color: var(--main-color);
}

.product-item .prod-avail {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.product-item .prod-avail > span {
    font-size: 14px;
    line-height: 129%;
    font-weight: 600;
    color: var(--green);
}

.product-item .prod-avail--few > span {
    color: var(--orange);
}

.product-item .prod-avail--few > svg circle {
    fill: var(--orange);
}

.product-item .product-price {
    align-self: flex-end;
    width: 100%;
    font-size: 20px;
    line-height: 120%;
    font-weight: 700;
    color: var(--gray-black);
}

.product-item__percent,
.product-item__price-old {
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: var(--gray-1);
}

.product-item__percent {
    display: inline-block;
    color: var(--main-color);
    margin-left: 8px;
}

.swiper-product-pagination-hover {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    bottom: 0;
}

.swiper-product-pagination-hover .swiper-pagination-bullet {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 27px;
    height: 100%;
    background: transparent;
}

.swiper-product-pagination-hover .swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background-color: #FFFFFF99;
}

.swiper-product-pagination-hover .swiper-pagination-bullet-active::before {
    background: var(--main-color);
}

.swiper-product-pagination-hover .swiper-pagination-bullet::after {
    content: '';
    height: 100%;
    position: absolute;
    left: 0;
    width: 100%;
}

.product-item--not-available .product-item__title {
    color: var(--gray-1);
}

.product-item--not-available .swiper-product-img::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--gray-3);
    z-index: 2;
    opacity: 0.6;
}

.btn-not-available {
    display: block;
    width: 100%;
    padding: 16px 22px;
    border-radius: 38px;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: var(--white-color);
    background-color: var(--main-color);
    cursor: pointer;
}

.product-item-hidden {
    align-self: end;
    width: 100%;
}

.product-item__favorites-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0;
    background: none;
    z-index: 5;
    transition: .15s ease-in;
}

.product-item__favorites-btn.added,
.product-item:hover .product-item__favorites-btn {
    opacity: 1;
}

.favorite-btn {
    fill: var(--gray-black);
}

@media screen and (max-width: 1200px) {
    .product-item {
        min-height: 310px;
    }

    .swiper-product-img {
        height: 193px;
    }
    .product-item__title {
        height: 36px;
        margin-top: 12px;
        font-size: 14px;
    }
    .product-item .prod-avail {
        gap: 4px;
    }
    .product-item .prod-avail span {
        font-size: 12px;
    }
    .prod-avail svg {
        width: 2px;
        height: 2px;
    }

    .btn-not-available {
        padding: 14px 5px;
        border-radius: 23px;
        font-size: 14px;
    }
}

@media screen and (max-width: 769px) {
    .swiper-product-pagination-hover {
        display: none;
        pointer-events: none;
    }

    .product-item .swiper-product-img {
        align-items: center;
        background-color: var(--white-color);
    }

    .product-item .swiper-product-img .swiper-slide {
        display: flex;
    }

    .product-item .swiper-product-img img {
        height: auto;
    }

    .product-item .product-price {
        font-size: 18px;
    }

    .product-item__percent, .product-item__price-old {
        font-size: 14px;
    }
}
