/* Product-page-only carousel for every list rendered by Saida ProductCard. */
.sg-product-carousel {
    --sg-carousel-columns: 4;
    --sg-carousel-gap: 15px;
    --sg-carousel-item-width: calc((100% - 45px) / 4);
    position: relative;
    width: 100%;
}

.sg-product-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

html body .sg-product-carousel .sg-product-list .sg-product-grid {
    align-items: stretch !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: var(--sg-carousel-gap) !important;
    grid-auto-rows: unset !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
}

html body .sg-product-carousel .sg-product-list .sg-product-grid::-webkit-scrollbar {
    display: none;
}

html body .sg-product-carousel .sg-product-grid > .sg-product-grid__item {
    flex: 0 0 var(--sg-carousel-item-width) !important;
    max-width: var(--sg-carousel-item-width) !important;
    scroll-snap-align: start;
    width: var(--sg-carousel-item-width) !important;
}

.sg-product-carousel__arrow {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 1px solid rgba(32, 19, 15, .16);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(32, 19, 15, .16);
    color: #74411f;
    cursor: pointer;
    display: flex;
    height: 44px;
    justify-content: center;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
    width: 44px;
    z-index: 4;
}

.sg-product-carousel__arrow--previous {
    left: -18px;
}

.sg-product-carousel__arrow--next {
    right: -18px;
}

.sg-product-carousel__arrow svg {
    fill: none;
    height: 21px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 21px;
}

.sg-product-carousel__arrow:hover,
.sg-product-carousel__arrow:focus-visible {
    background: #74411f;
    border-color: #74411f;
    box-shadow: 0 7px 20px rgba(32, 19, 15, .22);
    color: #fff;
}

.sg-product-carousel__arrow:focus-visible {
    outline: 3px solid rgba(211, 168, 74, .5);
    outline-offset: 3px;
}

.sg-product-carousel__arrow:disabled {
    cursor: default;
    opacity: .32;
    pointer-events: none;
}

.sg-product-carousel:not(.is-ready) .sg-product-carousel__arrow,
.sg-product-carousel.is-static .sg-product-carousel__arrow {
    display: none;
}

.sg-product-carousel__status {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .sg-product-carousel {
        --sg-carousel-columns: 2;
        --sg-carousel-item-width: calc((100% - 15px) / 2);
    }

    .sg-product-carousel__arrow--previous {
        left: 6px;
    }

    .sg-product-carousel__arrow--next {
        right: 6px;
    }
}

@media (max-width: 767px) {
    .sg-product-carousel {
        --sg-carousel-columns: 1;
        --sg-carousel-gap: 13px;
        --sg-carousel-item-width: 100%;
    }

    .sg-product-carousel__arrow {
        height: 40px;
        width: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .sg-product-carousel .sg-product-list .sg-product-grid {
        scroll-behavior: auto;
    }

    .sg-product-carousel__arrow {
        transition: none;
    }
}
