.im-home-page {
    padding-top: 24px;
    padding-bottom: 6px;
    color: #050505;
    background: #ffffff;
}

.im-home-page *,
.im-home-page *::before,
.im-home-page *::after {
    box-sizing: border-box;
}

.im-home-page a {
    color: inherit;
    text-decoration: none;
}

.im-home-hero {
    position: relative;
    height: 309px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(ellipse at center, #2d2d2d 0, #111315 30%, #050607 72%);
    border-radius: 7px;
}

.im-home-slides,
.im-home-slide {
    position: absolute;
    inset: 0;
}

.im-home-slide {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
}

.im-home-slide.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.im-home-hero-copy {
    position: absolute;
    z-index: 2;
    top: 30px;
    left: 7.2%;
}

.im-home-eyebrow {
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.im-home-hero-title {
    margin: 20px 0 12px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    line-height: 41px;
}

.im-home-slide.is-dark-text .im-home-eyebrow,
.im-home-slide.is-dark-text .im-home-hero-title,
.im-home-slide.is-dark-text .im-home-hero-copy p {
    color: #050505;
}

.im-home-slide.is-dark-text .im-home-button {
    color: #ffffff;
    background: var(--theme-primary-color);
}

.im-home-hero-copy p {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
}

.im-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    margin-top: 18px;
    padding: 0 24px;
    color: #fff;
    background: var(--theme-primary-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
}

.im-home-hero-product {
    position: absolute;
    top: 8%;
    right: 8%;
    width: 42%;
    height: 84%;
    object-fit: contain;
}

.im-home-hero-product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.im-home-hero-arrow {
    position: absolute;
    z-index: 3;
    top: 43%;
    display: grid;
    place-items: center;
    width: 34px;
    height: 44px;
    padding: 8px;
    background: none;
    border: 0;
    cursor: pointer;
}

.im-home-hero-arrow img {
    width: 17px;
    height: 27px;
}

.im-home-hero-arrow--left {
    left: 10px;
}

.im-home-hero-arrow--right {
    right: 10px;
}

.im-home-dots {
    position: absolute;
    bottom: 17px;
    left: 50%;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.im-home-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    background: #777777;
    border-radius: 50%;
    cursor: pointer;
}

.im-home-dots button.is-active {
    background: #ffffff;
}

.im-home-hero.is-dark-text .im-home-dots button.is-active {
    background: #050505;
}

.im-home-section {
    margin-top: 18px;
}

.im-home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.im-home-section-head h2 {
    margin: 0;
    color: #050505;
    font-size: 20px;
    font-weight: 700;
    line-height: 31px;
}

.im-home-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #555555;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
}

.im-home-view-all span {
    font-size: 15px;
}

.im-home-category-row,
.im-home-product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.im-home-category-card {
    height: 142px;
    padding: 13px;
    background: #f7f7f7;
    border-radius: 8px;
    text-align: center;
}

.im-home-category-card img {
    width: 86px;
    height: 76px;
    margin: 0 auto;
    object-fit: contain;
}

.im-home-category-card b {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
}

.im-home-category-card small {
    display: block;
    color: #777777;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.im-home-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 12px 13px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
}

.im-home-product-image {
    display: block;
    align-self: center;
    width: 116px;
    height: 103px;
}

.im-home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.im-home-product-title {
    margin: 20px 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 400;
    line-height: 14px;
    text-overflow: ellipsis;
}

.im-home-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
    font-size: 10px;
    font-weight: 400;
    line-height: 12px;
}

.im-home-rating span {
    color: #333333;
}

.im-home-rating .product-rating {
    display: inline-flex;
    align-items: center;
    gap: 0;
    line-height: 0;
}

.im-home-rating .product-rating svg {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.im-home-product-price {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.im-home-product-price strong {
    color: #050505;
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
}

.im-home-product-price del {
    color: #9a9fa7;
    font-size: 10px;
    line-height: 15px;
}

.im-home-product-buy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.im-home-product-buy {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #ffffff;
    background: var(--theme-primary-color);
    border: 0;
    border-radius: 7px;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    cursor: pointer;
}

.im-home-product-buy img {
    width: 14px;
    height: 14px;
}

.im-home-product-buy:hover,
.im-home-product-buy:focus-visible {
    background: #333333;
}

.im-home-product-buy.is-loading {
    opacity: .65;
    cursor: wait;
}

.im-home-product-buy.is-added {
    background: var(--theme-primary-color);
}

.im-home-heart {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 5px;
    background: none;
    border: 0;
    cursor: pointer;
}

.im-home-heart img {
    width: 18px;
    height: 18px;
}

.im-home-heart.is-active {
    background: var(--theme-primary-color);
    border-radius: 50%;
}

.im-home-heart.is-active img {
    filter: brightness(0) invert(1);
}

.im-home-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 22px 0 40px;
    padding: 19px 30px;
    border: 1px solid #dddddd;
    border-radius: 8px;
}

.im-home-benefit {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 38px;
    gap: 18px;
    padding: 0 24px;
    border-left: 1px solid #e8e8e8;
    font-size: 12px;
}

.im-home-benefit:first-child {
    padding-left: 0;
    border-left: 0;
}

.im-home-benefit img {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.im-home-benefit b {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.im-home-benefit small {
    display: block;
    color: #777777;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
}

@media (max-width: 1100px) {
    .im-home-category-row,
    .im-home-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .im-home-category-card:nth-child(n+4),
    .im-home-product-card:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 760px) {
    .im-home-page {
        padding-top: 16px;
    }

    .im-home-hero {
        height: 370px;
    }

    .im-home-hero-product {
        right: -4%;
        width: 60%;
        opacity: .55;
    }

    .im-home-hero-copy {
        left: 24px;
    }

    .im-home-hero-title {
        font-size: 30px;
        line-height: 36px;
    }

    .im-home-category-row,
    .im-home-category-row {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .im-home-category-card {
        flex: 0 0 160px;
    }

    .im-home-product-card {
        display: flex !important;
    }

    .im-home-product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
    }

    .im-home-benefits {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 28px;
        padding: 18px;
    }

    .im-home-benefit {
        padding: 12px;
        border: 0;
    }
}

@media (max-width: 480px) {
    .im-home-hero-product {
        right: -22%;
        width: 82%;
    }

    .im-home-hero-copy p {
        max-width: 170px;
    }

    .im-home-product-grid {
        gap: 8px;
    }

    .im-home-product-card {
        padding: 10px;
    }

    .im-home-product-image {
        width: 100%;
        height: 125px;
    }

    .im-home-product-title {
        margin: 12px 0;
    }

    .im-home-product-price {
        gap: 5px;
    }

    .im-home-product-price strong {
        font-size: 16px;
    }

    .im-home-benefits {
        grid-template-columns: 1fr;
    }

    .im-home-benefit {
        padding: 10px 0;
    }

    .im-home-eyebrow {
        font-size: 20px;
        line-height: 24px;
    }

    .im-home-hero-title {
        font-size: 16px;
        line-height: 20px;
        font-weight: 400;
    }

}
