/**
 * Carrusel/Swiper compartido — wrapper y flechas usados por el widget
 * "carousel_images" y, en modo slider, por testimonials/posts/woo_products/
 * wc_archive_products/product_recently_viewed. Ver Karnak_Widget_Assets: el
 * módulo "carousel" se agrega como dependencia extra de esos widgets cuando
 * su layout realmente usa modo slider (mismas comprobaciones que ya hacía
 * Karnak_Renderer::maybe_enqueue_swiper()).
 */
.karnak-carousel {
    width: 100%;
}
.karnak-carousel .swiper-slide img {
    width: 100%;
    display: block;
}

/* Transición suave para hover de flechas */
.karnak-carousel .swiper-button-prev,
.karnak-carousel .swiper-button-next,
.karnak-carousel-outer .swiper-button-prev,
.karnak-carousel-outer .swiper-button-next {
    transition: color .18s, background .18s;
}

/* Arrow style: minimal (solo ícono, sin círculo) */
.karnak-arrow-minimal .swiper-button-prev,
.karnak-arrow-minimal .swiper-button-next {
    background: none;
    width: 32px;
    height: 32px;
    color: #333;
}
.karnak-arrow-minimal .swiper-button-prev::after,
.karnak-arrow-minimal .swiper-button-next::after {
    font-size: 20px;
    font-weight: 700;
}

/* Arrow style: filled (círculo sólido) */
.karnak-arrow-filled .swiper-button-prev,
.karnak-arrow-filled .swiper-button-next {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: #fff;
}
.karnak-arrow-filled .swiper-button-prev::after,
.karnak-arrow-filled .swiper-button-next::after {
    font-size: 16px;
}

/* Arrows outside */
.karnak-carousel-outer {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.karnak-carousel-outer .karnak-carousel {
    flex: 1;
    min-width: 0;
}
.karnak-carousel-outer .swiper-button-prev,
.karnak-carousel-outer .swiper-button-next {
    position: static;
    margin: 0;
    flex-shrink: 0;
    top: auto;
    transform: none;
}

/* Arrow style: outlined (círculo con borde) */
.karnak-arrow-outlined .swiper-button-prev,
.karnak-arrow-outlined .swiper-button-next {
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: #333;
}
.karnak-arrow-outlined .swiper-button-prev::after,
.karnak-arrow-outlined .swiper-button-next::after {
    font-size: 16px;
}
