.coolmod-widget-root .cm-wrapper {
    display: flex; /* FILTERED: 1794890018.564 */ 
    gap: 16px;
    overflow-x: auto;
    padding: 10px 0;
}

.coolmod-widget-root .cm-wrapper.single {
    justify-content: center;
}

.coolmod-widget-root .cm-card {
    display: block;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none !important;
    color: black;
    background: white;
}

.coolmod-widget-root .cm-img {
    position: relative;
    padding: 12px;
    text-align: center;
}

.coolmod-widget-root .cm-img img {
    max-width: 100%;
    height: auto; /* con width/height en el <img> el navegador reserva el hueco (1:1) */
}

.coolmod-widget-root .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 16px;
}

.coolmod-widget-root .cm-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Altura fija del nombre (3 líneas) para que todas las tarjetas midan lo mismo */
.coolmod-widget-root .cm-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    height: 72px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.coolmod-widget-root .cm-price {
    color: #f32e2e;
    display: flex;
    gap: 8px;
}

.coolmod-widget-root .cm-price .cm-price-now {
    text-decoration: none;
    font-weight: 700;
    background: none;
}

.coolmod-widget-root .cm-price .old {
    text-decoration: line-through;
    color: #969696;
    font-size: 12px;
}

.coolmod-widget-root .cm-btn {
    margin-top: auto;
    background: #ff9316;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
}

.coolmod-widget-root .cm-swiper {
    width: 100%;
    padding: 10px 0 40px;
}

.coolmod-widget-root .swiper-slide {
    height: auto;
}

.coolmod-widget-root .swiper-button-next,
.coolmod-widget-root .swiper-button-prev {
    color: #ff9316;
}

.coolmod-widget-root .swiper-pagination-bullet-active {
    background: #ff9316;
}

/*
 * Antes de que Swiper inicialice (o si no llega a cargar el JS/CSS de Swiper):
 * fila con scroll horizontal y el mismo ancho de tarjeta que tendrá con Swiper
 * (1 / 2 / 3 por fila según los breakpoints del JS), para que no haya saltos.
 */
.coolmod-widget-root .cm-swiper:not(.swiper-initialized) {
    overflow: hidden;
}

.coolmod-widget-root .cm-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    transform: none;
}

.coolmod-widget-root .cm-swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .coolmod-widget-root .cm-swiper:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 16px) / 2);
    }
}

@media (min-width: 1200px) {
    .coolmod-widget-root .cm-swiper:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 32px) / 3);
    }
}

/* Sin Swiper las flechas y la paginación no hacen nada */
.coolmod-widget-root .cm-swiper:not(.swiper-initialized) .swiper-button-prev,
.coolmod-widget-root .cm-swiper:not(.swiper-initialized) .swiper-button-next,
.coolmod-widget-root .cm-swiper:not(.swiper-initialized) .swiper-pagination {
    display: none;
}
