/* ============================================================
   PRECIO + BADGE DE DESCUENTO - estilo Kirach
   Todo escopado a body.single-product: SOLO la ficha de producto
   único, nunca la tienda/categorías/listados.
   ============================================================ */

/* Precio activo (el que se cobra): grande, blanco, bien marcado. */
body.single-product .woocommerce .price ins,
body.single-product .price ins {
    text-decoration: none !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.6em !important;
    margin-right: 8px !important;
}

/* Precio original tachado: chico, gris, discreto — al lado, no arriba. */
body.single-product .woocommerce .price del,
body.single-product .price del {
    color: rgba(255, 255, 255, 0.45) !important;
    font-weight: 500 !important;
    font-size: 0.95em !important;
    text-decoration: line-through !important;
    margin-right: 10px !important;
}

/* Cuando NO hay oferta (precio único, sin <del>). */
body.single-product .woocommerce p.price:not(:has(del)),
body.single-product .woocommerce span.price:not(:has(del)) {
    font-weight: 800 !important;
    font-size: 1.6em !important;
    color: #ffffff !important;
}

body.single-product .woocommerce .price,
body.single-product .price {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

/* Badge "-XX%": pill outline celeste, como el de Kirach. */
body.single-product .yh-discount-badge {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #2ec2e8;
    color: #2ec2e8;
    background: transparent;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 0.55em;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    white-space: nowrap;
    vertical-align: middle;
}

/* En la ficha de producto único el precio suele ser más grande
   todavía que en las cards del listado — lo agrandamos un poco más
   ahí específicamente. */
body.single-product .woocommerce div.product .summary .price ins,
body.single-product .woocommerce div.product .summary p.price:not(:has(del)) {
    font-size: 1.9em !important;
}
body.single-product .woocommerce div.product .summary .yh-discount-badge {
    font-size: 0.5em;
}

/* Mobile: el precio grande de la ficha de producto se iba afuera de
   la pantalla. Achicamos con un tamaño fijo (no relativo) y forzamos
   que el precio + tachado + badge puedan pasar a la línea de abajo
   en vez de desbordar hacia la derecha. */
@media (max-width: 480px) {
    body.single-product .woocommerce .price,
    body.single-product .price {
        flex-wrap: wrap !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }

    body.single-product .woocommerce .price ins,
    body.single-product .price ins,
    body.single-product .woocommerce p.price:not(:has(del)),
    body.single-product .woocommerce span.price:not(:has(del)) {
        font-size: 28px !important;
    }

    body.single-product .woocommerce div.product .summary .price ins,
    body.single-product .woocommerce div.product .summary p.price:not(:has(del)) {
        font-size: 30px !important;
    }

    body.single-product .woocommerce .price del,
    body.single-product .price del {
        font-size: 15px !important;
    }

    body.single-product .yh-discount-badge {
        font-size: 12px !important;
        padding: 2px 7px;
    }
}
