.block-product-with {
    border-top: 1px solid #e3e3e3;
    margin-bottom: clamp(40px, 6vw, 80px);
}

.block-product-with .block__inner {
    position: relative;
}

.block-product-with .section-title {
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 700;
    color: #333;
    margin-top: clamp(24px, 4vw, 64px);
    margin-bottom: clamp(24px, 4vw, 40px);
    line-height: 108%;
    letter-spacing: -0.02em;
}

.product-with-swiper {
    overflow: visible;
}

.product-with-swiper .swiper-wrapper {
    overflow: visible;
    align-items: stretch;
}

.product-with-swiper .swiper-slide {
    display: flex;
    height: auto;
    overflow: visible;
}

.block-product-with .product,
.block-product-with .product:hover {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    height: 100% !important;
    overflow: hidden !important;
    border: 1px solid #e3e3e3;
    position: relative;
    box-sizing: border-box;
}

.block-product-with .product__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
}

.block-product-with .product__header {
    flex-shrink: 0;
    width: 100%;
    height: 160px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-product-with .product__image {
    width: 100%;
    height: 160px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.block-product-with .product__content {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.block-product-with .product-with-card__category {
    color: #a2a7b1;
    font-size: 12px;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 8px;
}

.block-product-with .product__title {
    display: block;
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 3.5em;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.37;
    margin: 0;
    color: #333;
    text-decoration: none;
}

.block-product-with .product__title:hover {
    color: #2fa040;
}

.block-product-with .product-with-card__footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 12px;
}

.block-product-with .product__price {
    margin: 0;
}

.block-product-with .product__price-text {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
}

.block-product-with .product__link {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
    pointer-events: none;
}

.block-product-with .product__title,
.block-product-with .product__open {
    pointer-events: auto;
}

.block-product-with .swiper-button-next,
.block-product-with .swiper-button-prev {
    width: 70px !important;
    height: 70px !important;
    margin-top: -22px;
    background: url('/local/templates/santika/images/arrow.png') center no-repeat;
}

.block-product-with .swiper-button-next:after,
.block-product-with .swiper-button-prev:after {
    display: none;
}

.block-product-with .swiper-button-prev {
    transform: rotate(180deg);
    left: -30px !important;
}

.block-product-with .swiper-button-next {
    right: -30px !important;
}

@media (max-width: 1024px) {
    .product-with-swiper {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .block-product-with {
        border-top: unset;
        margin: 24px 0 40px;
        padding-top: 20px;
    }

	.block-product-with div.product {
        border-bottom: unset !important;
	}

    .block-product-with .block__inner {
        margin: 0 16px;
        width: auto;
    }

    .block-product-with .section-title {
        margin: 0 0 20px;
        font-size: 26px;
        font-weight: 600;
        line-height: 100%;
    }

    .block-product-with .swiper-button-next,
    .block-product-with .swiper-button-prev {
        display: none !important;
    }

    .product-with-swiper {
        padding: 0;
        overflow: hidden;
    }

    .product-with-swiper .swiper-wrapper {
        align-items: stretch;
    }

    .product-with-swiper .swiper-slide {
        width: 100%;
        max-width: 100%;
    }

    .block-product-with .product,
    .block-product-with .product:hover {
        border: none !important;
        border-bottom: 1px solid #e3e3e3 !important;
        height: auto !important;
        margin: 0;
        overflow: hidden !important;
        width: 100%;
    }

    .block-product-with .product__link {
        bottom: 0 !important;
        height: 100% !important;
    }

    .block-product-with .product__inner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-end;
        justify-content: space-between;
        flex: none;
        height: auto;
        min-height: 150px;
        padding: 27px 0 42px;
        position: relative;
        box-sizing: border-box;
    }

    .block-product-with .product-with-card__category {
        display: none;
    }

    .block-product-with .product__header {
        order: 2;
        position: absolute;
        right: 0;
        top: 35px;
        width: 80px;
        height: auto;
        margin: 0;
        flex-shrink: 0;
    }

    .block-product-with .product__image {
        width: 80px;
        height: 80px;
    }

    .block-product-with .product__content {
        order: 1;
        flex: none;
        width: calc(100% - 96px);
        max-width: 200px;
        position: relative;
        min-height: 0;
    }

    .block-product-with .product__title {
        flex: none;
        min-height: 4.2em;
        font-size: 17px;
        line-height: 1.4;
        letter-spacing: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .block-product-with .product-with-card__footer {
        margin-top: 0;
        padding-top: 0;
    }

    .block-product-with .product__price {
        margin: 38px 0 0;
    }

    .block-product-with .product__price-text {
        font-size: 17px;
        line-height: 1;
    }

    .block-product-with .product__open {
        bottom: 29px;
        display: flex !important;
        height: 42px;
        position: absolute !important;
        right: 0;
        z-index: 3;
    }

    .block-product-with .product__link {
        bottom: 0;
        z-index: 1;
    }

    .block-product-with__controls {
        border-top: 1px solid #e3e3e3;
        margin-top: 8px;
        padding: 32px 0 0;
        position: relative;
        z-index: 20;
        pointer-events: auto;
    }

    .block-product-with__controls-inner {
        align-items: center;
        display: flex;
        justify-content: space-between;
        position: relative;
        width: 100%;
    }

    .block-product-with__paginator {
        left: 50%;
        line-height: 1;
        margin: 0;
        pointer-events: none;
        position: absolute;
        text-align: center;
        transform: translateX(-50%);
        width: auto;
    }

    .block-product-with .product-with-nav__btn {
        background: #f6f7f9;
        border-radius: 0.3em;
        flex-shrink: 0;
        height: 1.4em;
        position: relative;
        z-index: 21;
        padding: 0;
        border: none;
        width: 1.4em;
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }

    .block-product-with .product-with-nav__btn:before {
        background: transparent url('/local/templates/santika/css/images/arrows/pagination/right.svg') no-repeat center;
        background-size: 0.3em 0.5em;
        content: '';
        display: block;
        height: 100%;
        opacity: 0.7;
        pointer-events: none;
        width: 100%;
    }

    .block-product-with .product-with-nav__btn_prev:before {
        background-image: url('/local/templates/santika/css/images/arrows/pagination/left.svg');
    }

    .block-product-with .product-with-nav__btn:disabled {
        background: #f6f7f9;
        cursor: default;
        filter: none !important;
        opacity: 0.35;
    }

    .block-product-with .product-with-nav__btn:disabled:before {
        filter: none;
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .block-product-with__controls.i-mobile {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .block-product-with__controls {
        display: none !important;
    }
}
