/**
 * SX1 Featured Products Carousel Styles
 * Shortcode: [sx1_new_products_carousel]
 * Displays products marked as Featured (★) in WooCommerce
 * 
 * Note: Product card styles are in sx1-product-card.css (shared with browser)
 */

/*
====== CAROUSEL WRAPPER ======
*/
.sx1-new-products-carousel-wrapper {
    margin: 0 10px;
    padding: 30px 0;
    /* Added flex params to center and hold arrows */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

/*
====== SWIPER CONTAINER ======
*/
.sx1-new-products-carousel {
    width: 100%;
    max-width: 1600px;
    margin: 0 !important;
    padding: 8px 0 !important;
    position: relative;
    overflow: hidden;
    flex-grow: 0;
}

.sx1-new-products-carousel .swiper-wrapper {
    align-items: stretch;
}

.sx1-new-products-carousel .swiper-slide {
    height: auto;
}

/*
====== NAVIGATION ARROWS ======
*/
.sx1-carousel-nav-prev,
.sx1-carousel-nav-next {
    width: 68px;
    height: 93px;
    cursor: pointer;
    background-color: transparent;
    /* Clear background */
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    border-radius: 0;
    /* Remove circle */
    margin: 0 30px;
    /* Aesthetic spacing from screen edge and carousel */
    filter: grayscale(100%);
    /* Make arrows black/white */
}

/* Remove :after content (pseudo icons) */
.sx1-carousel-nav-prev:after,
.sx1-carousel-nav-next:after {
    content: none !important;
}

.sx1-carousel-nav-prev:hover,
.sx1-carousel-nav-next:hover {
    background-color: transparent;
    transform: none;
    opacity: 0.6;
    /* 0.6 opacity on hover */
}

.sx1-carousel-nav-prev {
    background-image: url('../images/nyil-bal.png');
}

.sx1-carousel-nav-next {
    background-image: url('../images/nyil-jobb.png');
}

.sx1-carousel-nav-prev.swiper-button-disabled,
.sx1-carousel-nav-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(100%);
}

/*
====== PAGINATION DOTS ======
*/
.sx1-carousel-pagination {
    bottom: -30px !important;
}

.sx1-carousel-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #cccccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.sx1-carousel-pagination .swiper-pagination-bullet-active {
    background-color: #01a850;
    width: 30px;
    border-radius: 6px;
}

/*
====== EMPTY STATE ======
*/
.sx1-carousel-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666666;
    background-color: #f8f9fa;
    border-radius: var(--c-border-radius);
    margin: 40px 0;
}

/*
====== RESPONSIVE DESIGN ======
*/

/* Tablet (under 1024px) */
@media screen and (max-width: 1023px) {
    .sx1-new-products-carousel {
        padding: 0;
        margin: 0;
    }

    .sx1-carousel-nav-prev,
    .sx1-carousel-nav-next {
        width: 45px;
        height: 45px;
    }
}

/* Mobile (under 768px) */
@media screen and (max-width: 767px) {
    .sx1-new-products-carousel-wrapper {
        padding: 0px 0;
        margin: 0px 0;
    }

    .sx1-new-products-carousel {
        padding: 0 45px;
    }

    .sx1-carousel-nav-prev,
    .sx1-carousel-nav-next {
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile (under 480px) */
@media screen and (max-width: 479px) {
    .sx1-new-products-carousel {
        padding: 0 35px;
    }

    .sx1-carousel-nav-prev,
    .sx1-carousel-nav-next {
        width: 35px;
        height: 35px;
    }

    .sx1-new-products-carousel .sx1-carousel-item {
        height: auto;
    }
}