.w-home__banner {
    width: 100%;
    margin-top: 1.875rem;
}
.w-home__mock {
    height: 30rem;
    width: 100%;
    margin-top: 5rem;
    margin-bottom: 5rem;
}
.w-home__slidernav {
    position: absolute;
    display: flex;
    bottom: .875rem;
    left: 50%;
    transform: translateX(-50%);
    gap: 1.25rem;
}
.w-home__slidernav__navdot {
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    height: 1.25rem;
    margin: .3125rem;
    position: relative;
    width: 1.25rem;
}
.w-home__slidernav__navdot.--is-active:before {
    background: var(--color-red);
    border-radius: 50%;
    content: "";
    height: .625rem;
    left: .3125rem;
    position: absolute;
    top: .3125rem;
    width: .625rem;
}
.w-home__slidernav__navdot:focus-visible {
    background-color: lightgrey;
}
.w-home__sliderprevbutton, .w-home__slidernextbutton {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: white;
    display: flex;
    z-index: 2;

    svg {
        fill: white;
        height: 1.5rem;
        width: 1.5rem;
        align-self: center;
        margin: 0 auto;
    }
}
.w-home__sliderprevbutton:hover, .w-home__slidernextbutton:hover {
    background: black;
}
.w-home__sliderprevbutton {
    left: 2rem;
    content: '<';
}
.w-home__slidernextbutton {
    right: 2rem;
    content: '>';
}
.w-home__slidescontainer {
    display: flex;
    width: 100%;
    height: 100%;
}
.w-home__slider__slide {
    display: block;
    width: 100%;
    height: 100%;
    flex-basis: auto;
    flex-grow: 0;
    flex-shrink: 0;
    min-height: 1rem;
    background-color: transparent;
    scroll-snap-align: center;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}
.w-home__sliderheader {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1.625rem;
    padding-top: 2rem;
    flex-flow: row wrap;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;

    h2 {
        font-size: 1.375rem;
        font-weight: 300;
        margin-right: 0.5rem;
        color: var(--w-color-text-offblack);
    }

    button {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media (min-width: 768px) {
    .w-home__sliderheader--sale {
        padding-top: 0;
    }
}

.w-sales-image--mobile {
    padding-left: 1rem;
    padding-right: 1rem;
}
.w-sales-image--desktop {
    margin-left: 1rem;
}

.w-sales-container-image-buttons {
    display: flex;
    flex-direction: column;
    padding-top: 3.5rem;
    width: 100%;
}
.w-sales-container-image-buttons a img {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}
@media (min-width: 768px) {
    .w-sales-container-image-buttons {
        flex-direction: row;
        padding-bottom: 3.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .w-sales-container-image-buttons a {
        width: calc(50% - 0.5rem);

        &:first-child {
            margin-right: 0.5rem;
        }
        &:last-child {
            margin-left: 0.5rem;
        }

        img {
            padding-left: 0;
            padding-right: 0;
            width: 100%;
        }
    }

}

.w-productslider__wrapper:first-of-type {
    margin-top: 2rem;
}
.w-productslider__wrapper:nth-of-type(odd) {
    background-color: var(--w-color-section);
}
.w-productslider__wrapper__inner {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 2rem;
}
.w-home__productslider .w-subproduct {
    border: unset;
}
.w-home__productslider:has(.w-product-card:hover, .w-product-card:focus-within) {
    overflow-y: visible;
    margin-bottom: -100%;
    z-index: 10;

    .w-home__productslider__container {
        padding-bottom: 100%;
    }
}
.w-home__productslider__container {
    display: grid;
    column-gap: unset;
    transform: translateZ(0); /* Forces hardware acceleration */
    will-change: transform;
    overflow: scroll hidden;
    grid-template-columns: repeat(6, 70%);
    padding-left: 1rem;
    padding-right: 0.5rem;
}
.w-home__productslider__container--sale {
    grid-template-columns: repeat(5, 70%);
}

@media (min-width: 768px) {
    .w-home__productslider__container {
        grid-template-columns: repeat(6, 50%);
        padding-right: 1rem;
    }
    .w-home__productslider__container--sale {
        grid-template-columns: repeat(5, 50%);
    }
}

.w-home__productslider__slide {
    flex-grow: 0;
    flex-shrink: 1;
    scroll-snap-align: center;
}
.w-home__productslider__slide:not(:first-child) {
    padding-left: 1rem;
}

@media (min-width: 1024px) {
    .w-home__productslider__container {
        grid-template-columns: repeat(6, 25%);
    }
    .w-home__productslider__container--sale {
        grid-template-columns: repeat(5, 33.3%);
    }
}
@media (min-width: 1200px) {
    .w-home__productslider__container {
        grid-template-columns: repeat(6, 16.6%);
    }
    .w-home__productslider__container--sale {
        grid-template-columns: repeat(5, 20%);
    }
}

.w-popular-categories {
    margin: 0 auto;
    max-width: 1400px;
}

.w-popular-categories-title-container {
    padding-bottom: 1.625rem;
    padding-top: 2rem;
}

.w-popular-categories-title {
    margin: 0.875rem 1rem 0;
    font-size: 1.375rem;
    font-weight: 300;
    color: var(--w-color-text-offblack);
}

.w-popular-categories-slide-container {
    display: flex;
    margin: 0 0.5rem -0.5rem;
}

.w-popular-categories-slide {
    cursor: pointer;
    padding: 0.5rem;
    transition: all 150ms ease-out;

    &:nth-child(-n + 3) {
        display: initial !important;
    }
    &:nth-child(n + 3) {
        display: none !important;
    }

    &:hover {
        transform: translateY(-0.5rem);
    }

    a {
        img {
            width: 100%;
        }
    }
}

@media (min-width: 600px) {
    .w-popular-categories-slide {
        &:nth-child(-n + 4) {
            display: initial !important;
        }
        &:nth-child(n + 4) {
            display: none !important;
        }
    }
}

@media (min-width: 800px) {
    .w-popular-categories-slide {
        &:nth-child(-n + 5) {
            display: initial !important;
        }
        &:nth-child(n + 5) {
            display: none !important;
        }
    }
}

@media (min-width: 1000px) {
    .w-popular-categories-slide {
        &:nth-child(-n + 6) {
            display: initial !important;
        }
        &:nth-child(n + 6) {
            display: none !important;
        }
    }
}

@media (min-width: 1200px) {
    .w-popular-categories-slide {
        &:nth-child(-n + 7) {
            display: initial !important;
        }
        &:nth-child(n + 7) {
            display: none !important;
        }
    }
}
