.ilmh-catalog-page {
    position: relative;
    padding-top: 24px;
    padding-bottom: 48px;
}

.ilmh-catalog-sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    z-index: 40;
    color: #111;
}

.ilmh-catalog-sidebar-toggle::before {
    content: "";
    width: 24px;
    height: 17px;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg width='24' height='17' viewBox='0 0 24 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4L24 4' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M0 14H24' stroke='black' stroke-width='1.5'/%3E%3Ccircle cx='8.5' cy='3.5' r='2.75' fill='white' stroke='black' stroke-width='1.5'/%3E%3Ccircle cx='16.5' cy='13.5' r='2.75' fill='white' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='17' viewBox='0 0 24 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4L24 4' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M0 14H24' stroke='black' stroke-width='1.5'/%3E%3Ccircle cx='8.5' cy='3.5' r='2.75' fill='white' stroke='black' stroke-width='1.5'/%3E%3Ccircle cx='16.5' cy='13.5' r='2.75' fill='white' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.ilmh-catalog-layout {
    display: block;
}

.ilmh-catalog-sidebar {
    display: none;
    position: absolute;
    top: 0;
    left: -15px;
    right: 0;
    z-index: 33;
    margin-bottom: 0;
    width: calc(100% + 30px);
}

.ilmh-catalog-sidebar.is-open {
    display: block;
}

.ilmh-catalog-main {
    min-width: 0;
}

.ilmh-catalog-description {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.ilmh-catalog-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 31;
}

.ilmh-catalog-title {
    margin: 0;
    font-size: 30px;
    line-height: 1;
    text-transform: uppercase;
}

.ilmh-catalog-sort {
    position: relative;
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.ilmh-catalog-sort--mobile {
    margin-bottom: 24px;
}

.ilmh-catalog-sort--desktop {
    display: none;
}

.ilmh-catalog-sort.is-open {
    z-index: 40;
}

.ilmh-catalog-sort__summary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ilmh-catalog-sort__label {
    color: #111;
}

.ilmh-catalog-sort__value {
    position: relative;
    padding-right: 22px;
    color: #999;
}

.ilmh-catalog-sort__value::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 6L8 11L13 6' stroke='black' stroke-width='1.5'/%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='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 6L8 11L13 6' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    transition: transform .2s ease;
}

.ilmh-catalog-sort.is-open .ilmh-catalog-sort__value::after {
    transform: translateY(-50%) rotate(180deg);
}

.ilmh-catalog-sort__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: -6px;
    padding: 18px 0;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    display: none;
}

.ilmh-catalog-sort.is-open .ilmh-catalog-sort__dropdown {
    display: block;
}

.ilmh-catalog-sort__option {
    display: block;
    padding: 10px 28px;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.ilmh-catalog-sort__option.is-active,
.ilmh-catalog-sort__option:hover {
    color: #111;
}

.ilmh-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
}

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

.main-product-card__media {
    position: relative;
    height: 0;
    padding-bottom: 132%;
    border: 1px solid #d6d6d6;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

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

.main-product-card__media img {
    position: absolute;
    inset: 18px 14px 34px;
    width: calc(100% - 28px);
    height: calc(100% - 52px);
    object-fit: contain;
    z-index: 1;
}

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

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

.main-product-card__favorite::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-color: #a0a0a0;
    -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: 10px;
    bottom: 10px;
    z-index: 4;
}

.main-product-card__basket {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d4d4d4;
    cursor: pointer;
}

.main-product-card__basket::before {
    content: "";
    position: absolute;
    inset: 8px;
    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: 8px;
    display: inline-flex;
    gap: 3px;
    line-height: 1;
}

.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: #777;
}

.main-product-card__name-link {
    display: block;
    margin-bottom: 8px;
}

.main-product-card__name {
    font-size: 16px;
    line-height: 1.25;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.9em;
}

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

.main-product-card__price-old {
    font-size: 13px;
    color: #7c7c7c;
    text-decoration: line-through;
}

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

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

.main-product-card__added-banner {
    position: absolute;
    inset: auto -1px -1px -1px;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px;
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.ilmh-catalog-pagination {
    margin: 48px auto;
}

.ilmh-catalog-more {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.ilmh-catalog-more__button {
    min-width: 280px;
    min-height: 42px;
    padding: 12px 28px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .2s ease;
}

.ilmh-catalog-more__button:hover {
    opacity: .88;
}

.ilmh-catalog-more__button:disabled {
    opacity: .6;
    cursor: wait;
}

.ilmh-catalog-pagination .navigation-pages,
.ilmh-catalog-pagination .navigation {
    display: flex;
    justify-content: center;
}

.ilmh-catalog-empty {
    padding: 32px 0;
    font-size: 16px;
}

.ilmh-catalog-sidebar-box {
    padding: 44px 15px 24px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}
.lmh-catalog-navigation.mobile{
    display: flex;
    margin-bottom: 4px;
}
@media (min-width: 768px) {
    .ilmh-catalog-page {
        padding-top: 32px;
        padding-bottom: 64px;
    }

    .ilmh-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 24px;
    }

    .main-product-card__name {
        font-size: 14px;
    }
}
.main-element.hide-mobile{
    display: none;
}
@media (min-width: 1024px) {

    .main-element.hide-mobile{
        display: block;
    }

    .ilmh-catalog-title {
        max-width: calc(100% - 230px);
        font-size: 36px;
    }
    .ilmh-catalog-sort__dropdown{
        right: -6px;
        left: unset;
    }

    .ilmh-catalog-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .lmh-catalog-navigation.mobile{
        display: none;
    }

    .ilmh-catalog-sort--mobile {
        display: none;
    }

    .ilmh-catalog-sort--desktop {
        display: flex;
    }

    .ilmh-catalog-sidebar-toggle {
        display: none;
    }

    .ilmh-catalog-layout {
        display: grid;
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 56px;
        align-items: start;
    }

    .ilmh-catalog-sidebar {
        display: block;
        position: sticky;
        top: 24px;
        left: auto;
        right: auto;
        margin-bottom: 0;
        padding-top: 0;
        z-index: auto;
    }

    .ilmh-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 44px 28px;
    }

    .favorites--four-column .ilmh-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .main-product-card__media {
        padding-bottom: 137%;
    }

    .main-product-card__sticker {
        min-width: 56px;
        font-size: 10px;
    }

    .main-product-card__basket {
        width: 40px;
        height: 40px;
    }

    .main-product-card__basket::before {
        inset: 11px;
    }

    .main-product-card__name {
        font-size: 18px;
    }

    .ilmh-catalog-more {
        margin-top: 36px;
    }

    .ilmh-catalog-sidebar-box {
        padding: 28px 24px 20px;
        border-radius: 24px;
        background: #f7f7f7;
        box-shadow: none;
    }
}

@media screen and (min-width: 1256px) {
    .ilmh-catalog-layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}
@media screen and (min-width: 1368px) {
    .ilmh-catalog-layout {
        grid-template-columns: 350px minmax(0, 1fr);
    }
}
.ilmh-catalog-nav__item.is-active{
    color: #aa0303;
}
