.main-universal-products {
    padding: 0;
}

.main-universal-products__body {
    display: block;
}

.main-universal-products__next,
.main-universal-products__prev {
    display: none;
    width: 62px;
    height: 25px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.main-universal-products__next::before,
.main-universal-products__prev::before {
    content: "";
    display: block;
    width: 62px;
    height: 25px;
    background-color: #777;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='62' height='25' viewBox='0 0 62 25' fill='none'%3E%3Cpath d='M11.6783 0.337891L0.678345 12.3379L11.6783 24.3379' stroke='black'/%3E%3Cpath d='M1.17834 12.3379H61.6783' stroke='black'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='62' height='25' viewBox='0 0 62 25' fill='none'%3E%3Cpath d='M11.6783 0.337891L0.678345 12.3379L11.6783 24.3379' stroke='black'/%3E%3Cpath d='M1.17834 12.3379H61.6783' stroke='black'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    transform: rotate(180deg);
    transition: background-color .2s ease;
}

.main-universal-products__next:hover::before,
.main-universal-products__prev:hover::before {
    background-color: #000;
}

.main-universal-products__prev::before {
    transform: none;
}

.main-product-card {
    display: block;
}

.main-universal-products__swiper {
    min-width: 0;
    display: none;
}

.main-universal-products__swiper.swiper-initialized {
    display: block;
}

.main-universal-products--search .main-universal-products__swiper {
    display: block;
}

.main-universal-products--search .main-universal-products__nav,
.main-universal-products--search .main-universal-products__pagination {
    display: none !important;
}

.main-universal-products--search .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    transform: none !important;
}

.main-universal-products--search .swiper-slide {
    width: auto !important;
    margin-right: 0 !important;
}

.main-product-card__media {
    position: relative;
    height: 0;
    padding-bottom: 128%;
    border: 1px solid #bcbcbc;
    margin-bottom: 12px;
    overflow: hidden;
    background-color: #fff;
}

.main-product-card__media-link {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.main-product-card__media img {
    position: absolute;
    inset: 16px 12px 34px;
    width: calc(100% - 24px);
    height: calc(100% - 50px);
    object-fit: contain;
    z-index: 1;
}

/*.main-universal-products--with-image .main-product-card__media-link {*/
/*    background-color: #fff;*/
/*}*/

.main-universal-products--with-image .main-product-card__media img {
    z-index: 3;
}

.main-product-card__sticker {
    position: absolute;
    top: -1px;
    left: -1px;
    z-index: 4;
    min-width: 52px;
    padding: 10px 8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.main-product-card__favorite {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 24px;
    height: 24px;
    color: #9a9a9a;
}

.main-product-card__favorite::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    -webkit-mask: url("/local/templates/ilmh2026/assets/icons/favorite.svg") center / contain no-repeat;
    mask: url("/local/templates/ilmh2026/assets/icons/favorite.svg") center / contain no-repeat;
}

.main-product-card__favorite.active::before {
    background-color: var(--color-accent);
    -webkit-mask-image: url("/local/templates/ilmh2026/assets/icons/favorite-filled.svg");
    mask-image: url("/local/templates/ilmh2026/assets/icons/favorite-filled.svg");
}

.main-product-card__basket-wrap {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
}

.main-product-card__basket {
    position: relative;
    border: 0;
    padding: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d2d2d2;
}

.main-product-card__basket::before {
    content: "";
    position: absolute;
    inset: 11px;
    background-color: #f4f4f4;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='20' viewBox='0 0 18 20' fill='none'%3E%3Cpath d='M1 5H17L15.5 18.5H2.5L1 5Z' stroke='black'/%3E%3Cpath d='M6 7V4.5C6 2.567 7.567 1 9.5 1C11.433 1 13 2.567 13 4.5V7' stroke='black'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='20' viewBox='0 0 18 20' fill='none'%3E%3Cpath d='M1 5H17L15.5 18.5H2.5L1 5Z' stroke='black'/%3E%3Cpath d='M6 7V4.5C6 2.567 7.567 1 9.5 1C11.433 1 13 2.567 13 4.5V7' stroke='black'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.main-product-card__basket.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

.main-product-card__basket.is-added {
    background: var(--color-accent);
}

.main-product-card__rating {
    margin-bottom: 10px;
    display: inline-flex;
    gap: 3px;
    line-height: 1;
    color: #000;
}

.main-product-card__rating span {
    display: inline-flex;
    width: 24px;
    height: 23px;
}

.main-product-card__rating svg {
    width: 23px;
    height: 24px;
    display: block;
}

.main-product-card__rating .is-empty {
    color: #000;
}

.main-product-card__name {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8em;
}

.main-product-card__price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.main-product-card__price-old {
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    color: #666;
    text-decoration: line-through;
}

.main-product-card__price-current {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    color: #000;
}

.main-product-card__price-current.is-discount {
    color: var(--color-accent);
}

.main-product-card__name-link {
    display: block;
    margin-top: 16px;
}

.main-universal-products__pagination {
    position: static;
    margin-top: 26px;
    text-align: center;
}

.main-universal-products__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cfcfcf;
    opacity: 1;
}

.main-universal-products__pagination .swiper-pagination-bullet-active {
    background: #8e8e8e;
}

.main-product-card__name:hover {
    text-decoration: underline;
}

.main-universal-hero {
    display: flex;
    height: 400px;
    width: 100%;
    flex-direction: column-reverse;
    position: absolute;
    left: 0;
}

.main-universal-hero__left,
.main-universal-hero__right {
    background-color: #F7F5F9;
    position: relative;
    height: 50%;
}

.main-universal-hero__right {
    background-size: cover;
    background-position: center;
}

.main-universal-hero__title {
    padding-top: 32px;
}

.main-universal-products--with-image .main-universal-products__body {
    z-index: 1;
    padding-top: 350px;
}

.main-product-card__added-banner {
    position: absolute;
    width: calc(100% + 2px);
    bottom: 0;
    z-index: 10;
    height: 64px;
    display: none;
    background-color: #000;
    color: #fff;
    font-weight: 600;
    justify-content: center;
    align-items: center;
}
.main-product-card__text {
    width: min-content;
}
@media (max-width: 1440px) {
    .main-universal-hero__title {
        padding-left: 16px;
    }
}

@media (min-width: 768px) {
    .main-product-card__price {
        font-size: 40px;
    }
}

@media (min-width: 1024px) {
    .main-product-card__sticker {
        font-size: 12px;
    }

    .main-universal-products__body {
        display: flex;
        align-items: flex-start;
        gap: 22px;
    }

    .main-universal-products__swiper {
        flex: 1 1 auto;
    }

    .main-universal-products__next,
    .main-universal-products__prev {
        display: block;
    }

    .main-universal-products__nav {
        flex: 0 0 62px;
        margin-top: 294px;
        margin-left: 20px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .main-product-card__media {
        padding-bottom: 370px;
    }

    .main-product-card__sticker {
        min-width: 58px;
        font-size: 10px;
        padding: 8px 7px;
    }

    .main-product-card__price {
        font-size: 40px;
    }

    .main-universal-products__pagination {
        display: none;
    }

    .main-universal-hero {
        height: 500px;
        flex-direction: row;
    }

    .main-universal-hero__left,
    .main-universal-hero__right {
        width: 50%;
        height: 100%;
    }

    .main-universal-hero__title {
        max-width: 720px;
        margin-left: auto;
        width: 100%;
        margin-top: 215px;
        padding-top: 0;
    }

    .main-universal-products--with-image .main-universal-products__body {
        padding-top: 440px;
        max-width: 75%;
    }
}
