/*
 * SAS Product Carousel — carousel mechanics only.
 * Nothing here sets card sizing or spacing — those stay exactly
 * whatever the theme's default product-grid CSS says at the
 * current breakpoint (that's the whole point: the carousel should
 * look and size itself identically to a normal product section,
 * responsive breakpoints included). The only structural change is
 * turning the product list into a non-wrapping row so it can
 * slide; the JS measures the theme's own rendered card width/gap
 * at runtime rather than this file guessing at pixel values.
 */

.sas-carousel {
    position: relative;
}

.sas-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.sas-carousel-viewport ul.products {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.4s ease;
    will-change: transform;
}

.sas-carousel-viewport ul.products li.product,
.sas-carousel-viewport ul.products li.sas-carousel-clone {
    flex: 0 0 auto;
}

/* Arrows */
.sas-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sas-carousel-arrow:hover {
    background: #fff;
}

.sas-carousel-arrow::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
}

.sas-carousel-prev {
    left: 8px;
}

.sas-carousel-prev::before {
    transform: rotate(-135deg);
    margin-right: -3px;
}

.sas-carousel-next {
    right: 8px;
}

.sas-carousel-next::before {
    transform: rotate(45deg);
    margin-left: -3px;
}
