/* Use the same card geometry in the slider and the homepage product grids. */
#vseeto .tutkarusel ul.products {
    padding: 0;
    justify-content: space-evenly !important;
}

#vseeto .tutkarusel ul.products li.product {
    /* Include the existing image borders in the shared card width. */
    width: calc(48% + 2px);
}

#vseeto ul.products li.product img,
#vseeto ul.products li.product .button {
    box-sizing: border-box;
}

#vseeto ul.products li.product .button {
    margin-right: 0;
}

#airbrushes #appendhere {
    transition-property: opacity, transform;
    transform: translateY(12px);
}

#airbrushes #appendhere.gotovo {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    #airbrushes #appendhere {
        transition-duration: 0s;
        transform: none;
    }
}

#airbrushes .legendair-slider.is-ready .legendair-slider-viewport {
    width: 100%;
    overflow: hidden;
    margin-bottom: 1em;
    touch-action: pan-y;
}

#airbrushes ul.products.legendair-slider-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start !important;
    gap: var(--legendair-slide-gap);
    margin: 0 !important;
    padding: 0 var(--legendair-slide-padding);
    box-sizing: border-box;
    list-style: none;
}

#airbrushes ul.products.legendair-slider-track > .legendair-slide {
    flex: 0 0 var(--legendair-slide-width);
    width: var(--legendair-slide-width);
    min-height: 1px;
    display: flow-root;
}

#airbrushes ul.products.legendair-slider-track li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none;
}

#airbrushes ul.products.legendair-slider-track img {
    display: block;
    width: 100%;
}

#airbrushes .legendair-slider.is-dragging {
    cursor: grabbing;
    user-select: none;
}

#airbrushes [hidden] {
    display: none !important;
}

@media (min-width: 800px) {
    #airbrushes .legendair-slider.is-ready {
        max-width: 75%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 849px) {
    #airbrushes .legendair-slider.is-ready .legendair-slider-viewport {
        width: calc(100% + 10px);
        margin-left: -5px;
        margin-right: -5px;
    }
}

@media (min-width: 850px) {
    #vseeto .tutkarusel ul.products {
        column-gap: 25px;
        justify-content: center !important;
    }

    #vseeto .tutkarusel ul.products li.product {
        width: calc((100% - 50px) / 3);
    }
}
