/* Swiper.js layout integration */
.wcc-carousel-wrapper.swiper {
    position: relative;
    width: 100%;
    padding: 15px 40px 45px 40px; /* Añadido padding lateral para que las flechas no pisen el contenido */
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.wcc-carousel-wrapper.swiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    box-sizing: content-box;
}
.wcc-carousel-wrapper.swiper .swiper-slide {
    flex-shrink: 0;
    width: auto;
    height: auto;
    position: relative;
    box-sizing: border-box;
}
.wcc-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}
.wcc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.wcc-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fcfcfc;
}
.wcc-image img {
    max-width: 100%;
    max-height: 150px;
    height: auto;
    width: auto;
    object-fit: contain;
}
.wcc-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #333;
    line-height: 1.3;
}
.wcc-price {
    font-size: 15px;
    font-weight: 700;
    color: #61CE70;
    margin-bottom: 8px;
}
.wcc-excerpt {
    font-size: 12px;
    color: #7A7A7A;
    margin-bottom: 12px;
    line-height: 1.35;
}
.wcc-btn {
    display: block;
    text-align: center;
    background-color: #6EC1E4;
    color: #fff !important;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: background-color 0.2s ease;
    margin-top: auto;
}
.wcc-btn:hover {
    background-color: #54a5c7;
}

/* Swiper navigation and pagination fixes */
.wcc-carousel-wrapper .swiper-button-next,
.wcc-carousel-wrapper .swiper-button-prev {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    width: 35px !important;
    height: 35px !important;
    background-color: #ffffff !important;
    border: 1px solid #cccccc !important; /* Borde visible sutil */
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    z-index: 1000 !important; /* Forzar por encima de todo */
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 10px 16px !important;
}

.wcc-carousel-wrapper .swiper-button-prev {
    left: 5px !important;
    right: auto !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44L0 22z' fill='%23333333'/%3E%3C/svg%3E") !important;
}

.wcc-carousel-wrapper .swiper-button-next {
    right: 5px !important;
    left: auto !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22L2.9 2.1L5 0l22 22z' fill='%23333333'/%3E%3C/svg%3E") !important;
}

/* Ocultar las fuentes por defecto de Swiper para que no interfieran */
.wcc-carousel-wrapper .swiper-button-next::after,
.wcc-carousel-wrapper .swiper-button-prev::after,
.wcc-carousel-wrapper .swiper-button-next:after,
.wcc-carousel-wrapper .swiper-button-prev:after {
    display: none !important;
}

.wcc-carousel-wrapper .swiper-pagination-bullet-active {
    background: #6EC1E4;
}
