/* ===== Precio en naranja ===== */
.single-product .elementor-widget-woocommerce-product-price .price,
.single-product .elementor-widget-woocommerce-product-price .price .woocommerce-Price-amount,
.single-product .elementor-widget-woocommerce-product-price .price bdi {
    color: #FF4900 !important;
}

/* ===== Variaciones: estado normal (azul) ===== */
.single-product .cfvsw-swatches-option.cfvsw-label-option,
.single-product .cfvsw-swatches-option.cfvsw-label-option .cfvsw-swatch-inner {
    background-color: #3572B1 !important;
    border-color: #3572B1 !important;
    color: #FFFFFF !important;
    font-weight: 700;
}

/* Hover (solo en los no seleccionados) */
.single-product .cfvsw-swatches-option.cfvsw-label-option:not(.cfvsw-selected-swatch):hover,
.single-product .cfvsw-swatches-option.cfvsw-label-option:not(.cfvsw-selected-swatch):hover .cfvsw-swatch-inner {
    background-color: #2B5E94 !important;
    border-color: #2B5E94 !important;
}
/* ===== Variaciones: seleccionado (naranja) ===== */
.single-product .cfvsw-swatches-option.cfvsw-selected-swatch,
.single-product .cfvsw-swatches-option.cfvsw-selected-swatch .cfvsw-swatch-inner {
    background-color: #FF4900 !important;
    border-color: #FF4900 !important;
    color: #FFFFFF !important;
}
/* ==========================================================
   RELACIONADOS — fila con scroll horizontal en mobile
   Requiere la clase "mosca-related" en el widget Loop Grid
   (Avanzado → Clases CSS).
   ========================================================== */
@media (max-width: 767px) {

    /* La grilla pasa a ser una fila que se desliza con el dedo */
    .mosca-related .elementor-loop-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        gap: 12px !important;

        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;          /* Firefox */
        padding-bottom: 4px;
    }

    .mosca-related .elementor-loop-container::-webkit-scrollbar {
        display: none;                  /* Chrome / Safari */
    }

    /* Cada tarjeta ocupa ~62% del ancho: se ve la siguiente asomando,
       que es la pista visual de que se puede deslizar */
    .mosca-related .e-loop-item {
        flex: 0 0 62% !important;
        max-width: 62% !important;
        min-width: 0;
        scroll-snap-align: start;
    }

    /* Textos acordes al tamaño de la tarjeta (igual criterio que la tienda) */
    .mosca-related .e-loop-item .elementor-heading-title {
        font-size: 14px !important;
        line-height: 1.3 !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mosca-related .e-loop-item .price,
    .mosca-related .e-loop-item .woocommerce-Price-amount {
        font-size: 18px !important;
        white-space: nowrap;
    }
}
