.at-home-products {
    padding-block: 45px;
}

.at-home-products + .at-home-products {
    border-top: 1px solid #e5e8e0;
}

.at-home-products-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 27px;
}

.at-home-products-heading h2 {
    margin: 0;
    color: #23332a;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.8px;
}

.at-home-products-heading p {
    max-width: 650px;
    margin: 10px 0 0;
    color: #87907d;
    font-size: 12px;
    line-height: 1.8;
}

.at-home-products-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.at-home-products-actions > a {
    color: #244f38;
    font-size: 11px;
    white-space: nowrap;
}

.at-home-products-arrows {
    display: flex;
    gap: 7px;
}

.at-home-products-arrows button {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 1px solid #e0e5d9;
    border-radius: 3px;
    color: #244f38;
    background: white;
    font-size: 17px;
}

.at-home-products-arrows button:hover {
    color: white;
    background: #244f38;
    border-color: #244f38;
}

.at-home-products-arrows button:disabled {
    color: #b5beaa;
    background: white;
    border-color: #edf0e7;
    cursor: default;
}

.at-home-products-items.is-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
}

.at-home-products-items.is-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 72px) / 4);
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5c0 transparent;
}

.at-home-products-items.is-slider > article {
    scroll-snap-align: start;
}

@media (max-width: 1050px) {
    .at-home-products-items.is-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .at-home-products-items.is-slider {
        grid-auto-columns: calc((100% - 48px) / 3);
    }
}

@media (max-width: 760px) {
    .at-home-products {
        padding-block: 30px;
    }

    .at-home-products-heading {
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }

    .at-home-products-heading h2 {
        font-size: 22px;
        letter-spacing: -.5px;
    }

    .at-home-products-heading p {
        margin-top: 8px;
        font-size: 11px;
    }

    .at-home-products-actions {
        align-items: flex-end;
        flex-direction: column;
        gap: 10px;
    }

    .at-home-products-actions > a {
        font-size: 10px;
    }

    .at-home-products-arrows button {
        width: 29px;
        height: 29px;
    }

    .at-home-products-items.is-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 14px;
    }

    .at-home-products-items.is-slider {
        grid-auto-columns: 44%;
        gap: 14px;
    }
}