/**
 * Giner & Colomer Plugin – Frontend Styles
 * Version: 6.0
 *
 * Estilos por defecto para los shortcodes y widgets del plugin.
 * Diseñados para ser sobrescribibles por Elementor / el tema activo.
 */

/* ============================================================
 * 1. SHORTCODES DE TAXONOMÍA
 *    [xufa_estancia] [xufa_coleccion] [xufa_forma] [xufa_capacidad]
 *    [xufa_jerarquia]
 * ============================================================ */

.xufa-estancia,
.xufa-coleccion,
.xufa-forma,
.xufa-capacidad,
.xufa-jerarquia {
    display: inline;
}

.xufa-estancia a,
.xufa-coleccion a,
.xufa-forma a,
.xufa-capacidad a,
.xufa-jerarquia a,
.xufa-jerarquia-estancia,
.xufa-jerarquia-coleccion {
    color: inherit;
    text-decoration: none;
}

.xufa-estancia a:hover,
.xufa-coleccion a:hover,
.xufa-forma a:hover,
.xufa-capacidad a:hover,
.xufa-jerarquia a:hover {
    text-decoration: underline;
}

/* ============================================================
 * 2. WIDGETS ELEMENTOR
 *    G&C Meta / G&C Taxonomía / G&C Jerarquía
 * ============================================================ */

.xufa-meta-content,
.xufa-taxonomy-content {
    display: block;
}

.xufa-taxonomy-content a,
.xufa-taxonomy-content-inner {
    color: inherit;
    text-decoration: none;
}

.xufa-taxonomy-content a:hover {
    text-decoration: underline;
}

.xufa-hierarchy {
    display: block;
}

.xufa-hierarchy a {
    color: inherit;
    text-decoration: none;
}

.xufa-hierarchy a:hover {
    text-decoration: underline;
}

.xufa-hierarchy-separator {
    margin: 0 4px;
    opacity: 0.6;
}

.xufa-hierarchy-estancia,
.xufa-hierarchy-coleccion {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
 * 3. CARRUSEL DE COLECCIONES  [xufa_colecciones_slider]
 *    Nota: la altura por defecto (320px) viene de aquí porque
 *    el PHP no inyecta inline-style con $atts['height'].
 * ============================================================ */

.xufa-cs-wrap {
    position: relative;
    width: 100%;
}

.xufa-cs-swiper {
    width: 100%;
}

.xufa-cs-slide {
    height: auto;
}

.xufa-cs-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    height: 320px;
    border-radius: 4px;
}

.xufa-cs-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.xufa-cs-img--placeholder {
    background: #2c2c2c;
}

.xufa-cs-card:hover .xufa-cs-img {
    transform: scale(1.04);
}

.xufa-cs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.xufa-cs-card:hover .xufa-cs-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.xufa-cs-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xufa-cs-name {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
}

.xufa-cs-sub {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.3;
}

.xufa-cs-count {
    font-size: 0.78rem;
    opacity: 0.7;
    margin-top: 2px;
}

.xufa-cs-prev,
.xufa-cs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
    padding: 0;
}

.xufa-cs-prev { left: 10px; }
.xufa-cs-next { right: 10px; }

.xufa-cs-prev:hover,
.xufa-cs-next:hover {
    background: #fff;
    opacity: 1;
}

.xufa-cs-pagination {
    text-align: center;
    margin-top: 10px;
}

/* ============================================================
 * 4. GRID DE COLECCIONES  [xufa_grid_colecciones]
 *    El PHP no emite grid-template-columns inline, por lo que
 *    aquí definimos un grid responsivo por defecto.
 * ============================================================ */

.xufa-grid-wrap {
    width: 100%;
}

.xufa-grid__search-wrap {
    margin-bottom: 16px;
}

.xufa-grid__search {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.xufa-grid__search:focus {
    border-color: #888;
}

.xufa-grid__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .xufa-grid__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .xufa-grid__grid { grid-template-columns: 1fr; }
}

.xufa-grid__card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 320px;
    transition: transform 0.3s ease;
}

.xufa-grid__card:hover {
    transform: scale(1.015);
}

.xufa-grid__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    z-index: 1;
}

.xufa-grid__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px 18px 16px;
}

.xufa-grid__title {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
    color: inherit;
}

.xufa-grid__subtitle {
    margin: 0 0 4px;
    font-size: 0.85rem;
    opacity: 0.85;
}

.xufa-grid__desc {
    margin: 0 0 4px;
    font-size: 0.78rem;
    opacity: 0.75;
    line-height: 1.4;
}

.xufa-grid__count {
    font-size: 0.75rem;
    opacity: 0.65;
    display: block;
    margin-top: 4px;
}

.xufa-grid__empty,
.xufa-grid__no-results {
    text-align: center;
    color: #666;
    padding: 24px 0;
    font-size: 0.95rem;
}

/* ============================================================
 * 5. BUSCADOR DE COLECCIONES  [xufa_buscador_colecciones]
 * ============================================================ */

.xufa-buscador-colecciones {
    width: 100%;
}

.xufa-buscador__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.xufa-buscador__inner input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.xufa-buscador__inner input[type="search"]:focus {
    border-color: #888;
}

.xufa-buscador__btn {
    padding: 10px 20px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.xufa-buscador__btn:hover {
    background: #444;
}

.xufa-buscador__clear {
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.xufa-buscador__clear:hover {
    color: #333;
    text-decoration: underline;
}

.xufa-buscador__aviso {
    margin: 10px 0 0;
    width: 100%;
    font-size: 0.85rem;
    color: #555;
}

/* ============================================================
 * 6. IMÁGENES DE COLECCIÓN  [xufa_col_imagen] [xufa_col_imagen_h2]
 * ============================================================ */

.xufa-col-imagen,
.xufa-col-imagen-h2 {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
 * 7. BLOQUE DE PRECIOS  (filter woocommerce_get_price_html)
 *
 * Estructura HTML generada:
 *
 *  Sin oferta:
 *    .xufa-precio
 *      .xufa-precio__pvp-line   → "PVP" + <del>1.539€</del>
 *      .xufa-precio__normal     → 809,99€
 *
 *  Con oferta:
 *    .xufa-precio.xufa-precio--con-oferta
 *      .xufa-precio__pvp-line   → "PVP" + <del>1.539€</del>
 *      .xufa-precio__oferta-row → [-10%] <del>809,99€</del> 728,99€
 *
 *  B2B:
 *    .xufa-precio.xufa-precio--b2b
 *      .xufa-precio__label      → "Precio profesional"
 *      .xufa-precio__valor      → 399€
 * ============================================================ */

/* Contenedor base */
.xufa-precio {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.2;
    width: auto;
    max-width: 100%;
}

/* ── Línea PVP (referencia de mercado) ── */
.xufa-precio__pvp-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.xufa-precio__label-pvp {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b8b8b8;
    line-height: 1;
}

.xufa-precio__pvp-line del {
    font-size: 0.84rem;
    font-weight: 400;
    color: #b8b8b8;
    text-decoration: line-through;
    text-decoration-color: #c4c4c4;
}

/* ── Precio normal (sin oferta) ── */
.xufa-precio__normal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.24rem;
    font-weight: 700;
    color: inherit;
    letter-spacing: -0.02em;
}

/* ── Fila de oferta ── */
.xufa-precio__oferta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Badge de descuento */
.xufa-precio__badge-dto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d96445;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.01em;
    line-height: 1.35;
    flex-shrink: 0;
}

/* Badge con el nombre de la campaña activa (p.ej. "Verano 2026") */
.xufa-precio__campana {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    background: #f5e6d7;
    border: 1px solid #ebd0b7;
    color: #9a5a2d;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.2;
    margin-bottom: 2px;
    box-shadow: none;
    white-space: nowrap;
}

/* Precio normal tachado (cuando hay oferta) */
.xufa-precio__normal-tachado {
    font-size: 0.92rem;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
    text-decoration-color: #aaa;
}

/* Precio de oferta activo */
.xufa-precio__oferta-valor {
    font-size: 1.32rem;
    font-weight: 800;
    color: #d85c3b;
    letter-spacing: -0.02em;
}

@media (max-width: 767px) {
    .xufa-precio__campana {
        font-size: 0.62rem;
        padding: 3px 8px;
    }

    .xufa-precio__oferta-valor,
    .xufa-precio__normal {
        font-size: 1.15rem;
    }

    .xufa-precio__badge-dto {
        font-size: 0.66rem;
        padding: 2px 6px;
    }
}

/* Compatibilidad con clases antiguas (por si Elementor las referencia) */
.xufa-precio__pvp del,
.xufa-precio__pvp-ref del { color: #bbb; font-weight: 400; font-size: 0.82rem; }
.xufa-precio__oferta ins   { text-decoration: none; font-weight: 700; font-size: 1.15rem; color: #e74c3c; background: transparent; }

/* ── Precio profesional B2B ── */
.xufa-precio__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    display: block;
    margin-bottom: 2px;
}

.xufa-precio__valor {
    font-size: 1.1rem;
    font-weight: 600;
}

.xufa-precio--b2b {
    border-top: 1px solid #eee;
    margin-top: 6px;
    padding-top: 6px;
}

.xufa-precio__valor--profesional {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c6ba0;
}

/* ============================================================
 * 8. DISPONIBILIDAD B2B
 *    [xufa_b2b_disponible] y filter de precio cuando no disponible
 * ============================================================ */

.xufa-b2b-no-disponible {
    display: inline-block;
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
}

/* ============================================================
 * 8b. AVISO B2B  [xufa_aviso_b2b]  (NUEVO v6.0)
 * ============================================================ */

.xufa-aviso-b2b {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 12px 0;
    border-radius: 4px;
    font-size: 0.92rem;
    line-height: 1.4;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.xufa-aviso-b2b--banner {
    margin: 0 0 16px;
    border-radius: 0;
    padding: 14px 20px;
    font-size: 0.95rem;
}

.xufa-aviso-b2b--fixed {
    position: sticky;
    top: 32px;
    z-index: 50;
}

.xufa-aviso-b2b__icono {
    font-size: 1.1em;
    flex-shrink: 0;
}

.xufa-aviso-b2b__texto {
    flex: 1;
}

.xufa-aviso-b2b__close {
    background: transparent;
    border: 0;
    font-size: 1.4em;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 4px;
}

.xufa-aviso-b2b__close:hover {
    opacity: 1;
}

/* ============================================================
 * 9. BOTÓN DESCARGA PDF MONTAJE  [xufa_pdf_montaje]
 * ============================================================ */

.xufa-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #2c2c2c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: background 0.2s ease, transform 0.15s ease;
}

.xufa-btn-pdf:hover {
    background: #444;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.xufa-btn-pdf__icon {
    font-size: 1.05em;
    line-height: 1;
}

.xufa-btn-pdf__label {
    font-weight: 500;
}

/* ============================================================
 * 7.1 AJUSTE VISUAL PRECIO EN LISTADOS (v5.4)
 *    Afinado para WooCommerce + widgets de precio de Elementor
 * ============================================================ */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.elementor-widget-woocommerce-products .price,
.elementor-products-grid .price,
.elementor-widget-woocommerce-product-price .price,
.elementor-widget-theme-product-price .price {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
    min-height: 0;
    line-height: 1.2;
}

.woocommerce ul.products li.product .xufa-precio,
.woocommerce-page ul.products li.product .xufa-precio,
.elementor-widget-woocommerce-products .xufa-precio,
.elementor-products-grid .xufa-precio,
.elementor-widget-woocommerce-product-price .xufa-precio,
.elementor-widget-theme-product-price .xufa-precio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 4px;
    text-align: center;
    line-height: 1.15;
}

.woocommerce ul.products li.product .xufa-precio__pvp-line,
.woocommerce-page ul.products li.product .xufa-precio__pvp-line,
.elementor-widget-woocommerce-products .xufa-precio__pvp-line,
.elementor-products-grid .xufa-precio__pvp-line,
.elementor-widget-woocommerce-product-price .xufa-precio__pvp-line,
.elementor-widget-theme-product-price .xufa-precio__pvp-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin: 0;
    opacity: .78;
}

.woocommerce ul.products li.product .xufa-precio__label-pvp,
.woocommerce-page ul.products li.product .xufa-precio__label-pvp,
.elementor-widget-woocommerce-products .xufa-precio__label-pvp,
.elementor-products-grid .xufa-precio__label-pvp,
.elementor-widget-woocommerce-product-price .xufa-precio__label-pvp,
.elementor-widget-theme-product-price .xufa-precio__label-pvp {
    font-size: 10px;
    font-weight: 600;
    color: #9d9d9d;
    letter-spacing: .04em;
}

.woocommerce ul.products li.product .xufa-precio__pvp-line del,
.woocommerce-page ul.products li.product .xufa-precio__pvp-line del,
.elementor-widget-woocommerce-products .xufa-precio__pvp-line del,
.elementor-products-grid .xufa-precio__pvp-line del,
.elementor-widget-woocommerce-product-price .xufa-precio__pvp-line del,
.elementor-widget-theme-product-price .xufa-precio__pvp-line del {
    font-size: 11px;
    color: #9d9d9d;
    opacity: 1;
}

.woocommerce ul.products li.product .xufa-precio__main,
.woocommerce-page ul.products li.product .xufa-precio__main,
.elementor-widget-woocommerce-products .xufa-precio__main,
.elementor-products-grid .xufa-precio__main,
.elementor-widget-woocommerce-product-price .xufa-precio__main,
.elementor-widget-theme-product-price .xufa-precio__main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

.woocommerce ul.products li.product .xufa-precio__normal,
.woocommerce-page ul.products li.product .xufa-precio__normal,
.elementor-widget-woocommerce-products .xufa-precio__normal,
.elementor-products-grid .xufa-precio__normal,
.elementor-widget-woocommerce-product-price .xufa-precio__normal,
.elementor-widget-theme-product-price .xufa-precio__normal,
.woocommerce ul.products li.product .xufa-precio__oferta-valor,
.woocommerce-page ul.products li.product .xufa-precio__oferta-valor,
.elementor-widget-woocommerce-products .xufa-precio__oferta-valor,
.elementor-products-grid .xufa-precio__oferta-valor,
.elementor-widget-woocommerce-product-price .xufa-precio__oferta-valor,
.elementor-widget-theme-product-price .xufa-precio__oferta-valor {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.woocommerce ul.products li.product .xufa-precio__oferta-row,
.woocommerce-page ul.products li.product .xufa-precio__oferta-row,
.elementor-widget-woocommerce-products .xufa-precio__oferta-row,
.elementor-products-grid .xufa-precio__oferta-row,
.elementor-widget-woocommerce-product-price .xufa-precio__oferta-row,
.elementor-widget-theme-product-price .xufa-precio__oferta-row {
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.woocommerce ul.products li.product .xufa-precio__badge-dto,
.woocommerce-page ul.products li.product .xufa-precio__badge-dto,
.elementor-widget-woocommerce-products .xufa-precio__badge-dto,
.elementor-products-grid .xufa-precio__badge-dto,
.elementor-widget-woocommerce-product-price .xufa-precio__badge-dto,
.elementor-widget-theme-product-price .xufa-precio__badge-dto {
    font-size: 10px;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 2px;
}

.single-product .xufa-precio {
    gap: 6px;
}

.single-product .xufa-precio__normal,
.single-product .xufa-precio__oferta-valor {
    font-size: 1.45rem;
}


/* Ficha de producto: el HTML del precio va dentro de <p class="price">,
   por eso el bloque XUFA debe ser 100% válido inline y ocupar todo el ancho. */
.single-product .summary p.price,
.single-product .product p.price,
.elementor-widget-woocommerce-product-price .price,
.elementor-widget-theme-product-price .price {
    width: 100%;
    display: block;
    margin: 0 0 12px;
}

.single-product .summary p.price .xufa-precio,
.single-product .product p.price .xufa-precio,
.elementor-widget-woocommerce-product-price .xufa-precio,
.elementor-widget-theme-product-price .xufa-precio {
    width: 100%;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
}

.single-product .summary p.price .xufa-precio__pvp-line,
.single-product .product p.price .xufa-precio__pvp-line,
.elementor-widget-woocommerce-product-price .xufa-precio__pvp-line,
.elementor-widget-theme-product-price .xufa-precio__pvp-line {
    justify-content: flex-start;
}

.single-product .summary p.price .xufa-precio__main,
.single-product .product p.price .xufa-precio__main,
.elementor-widget-woocommerce-product-price .xufa-precio__main,
.elementor-widget-theme-product-price .xufa-precio__main {
    justify-content: flex-start;
}


/* ============================================================
 * 7.2 AJUSTE FINAL v5.9
 *    - Archivos / listados: precio centrado
 *    - Producto único: precio más grande y con mejor jerarquía
 * ============================================================ */

/* ARCHIVOS Y LISTADOS */
.post-type-archive-product .xufa-precio,
.tax-product_cat .xufa-precio,
.tax-product_tag .xufa-precio,
.woocommerce-shop .xufa-precio,
.woocommerce ul.products li.product .xufa-precio,
.woocommerce-page ul.products li.product .xufa-precio,
.elementor-widget-woocommerce-products .xufa-precio,
.elementor-products-grid .xufa-precio {
    align-items: center;
    text-align: center;
}

.post-type-archive-product .xufa-precio__pvp-line,
.tax-product_cat .xufa-precio__pvp-line,
.tax-product_tag .xufa-precio__pvp-line,
.woocommerce-shop .xufa-precio__pvp-line,
.woocommerce ul.products li.product .xufa-precio__pvp-line,
.woocommerce-page ul.products li.product .xufa-precio__pvp-line,
.elementor-widget-woocommerce-products .xufa-precio__pvp-line,
.elementor-products-grid .xufa-precio__pvp-line,
.post-type-archive-product .xufa-precio__main,
.tax-product_cat .xufa-precio__main,
.tax-product_tag .xufa-precio__main,
.woocommerce-shop .xufa-precio__main,
.woocommerce ul.products li.product .xufa-precio__main,
.woocommerce-page ul.products li.product .xufa-precio__main,
.elementor-widget-woocommerce-products .xufa-precio__main,
.elementor-products-grid .xufa-precio__main {
    justify-content: center;
}

/* PRODUCTO ÚNICO */
.single-product .summary p.price .xufa-precio,
.single-product .product p.price .xufa-precio,
.single-product .summary .xufa-precio,
.single-product .product .xufa-precio,
.single-product .elementor-widget-woocommerce-product-price .xufa-precio,
.single-product .elementor-widget-theme-product-price .xufa-precio {
    align-items: flex-start;
    text-align: left;
    gap: 7px;
}

.single-product .summary p.price .xufa-precio__pvp-line,
.single-product .product p.price .xufa-precio__pvp-line,
.single-product .summary .xufa-precio__pvp-line,
.single-product .product .xufa-precio__pvp-line,
.single-product .elementor-widget-woocommerce-product-price .xufa-precio__pvp-line,
.single-product .elementor-widget-theme-product-price .xufa-precio__pvp-line,
.single-product .summary p.price .xufa-precio__main,
.single-product .product p.price .xufa-precio__main,
.single-product .summary .xufa-precio__main,
.single-product .product .xufa-precio__main,
.single-product .elementor-widget-woocommerce-product-price .xufa-precio__main,
.single-product .elementor-widget-theme-product-price .xufa-precio__main {
    justify-content: flex-start;
}

.single-product .summary .xufa-precio__label-pvp,
.single-product .product .xufa-precio__label-pvp,
.single-product .elementor-widget-woocommerce-product-price .xufa-precio__label-pvp,
.single-product .elementor-widget-theme-product-price .xufa-precio__label-pvp {
    font-size: 11px;
}

.single-product .summary .xufa-precio__pvp-line del,
.single-product .product .xufa-precio__pvp-line del,
.single-product .elementor-widget-woocommerce-product-price .xufa-precio__pvp-line del,
.single-product .elementor-widget-theme-product-price .xufa-precio__pvp-line del {
    font-size: 14px;
}

.single-product .summary .xufa-precio__normal,
.single-product .summary .xufa-precio__oferta-valor,
.single-product .product .xufa-precio__normal,
.single-product .product .xufa-precio__oferta-valor,
.single-product .elementor-widget-woocommerce-product-price .xufa-precio__normal,
.single-product .elementor-widget-woocommerce-product-price .xufa-precio__oferta-valor,
.single-product .elementor-widget-theme-product-price .xufa-precio__normal,
.single-product .elementor-widget-theme-product-price .xufa-precio__oferta-valor {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
}

.single-product .summary .xufa-precio__badge-dto,
.single-product .product .xufa-precio__badge-dto,
.single-product .elementor-widget-woocommerce-product-price .xufa-precio__badge-dto,
.single-product .elementor-widget-theme-product-price .xufa-precio__badge-dto {
    font-size: 11px;
    padding: 4px 6px;
}


/* ============================================================
 * 7.3 HARDENING FINAL v5.9
 *    Refuerza centrado en archivos y tamaño en ficha cuando Elementor
 *    renderiza el precio dentro de widgets de plantilla.
 * ============================================================ */
body:not(.single-product) .elementor-widget-woocommerce-product-price .xufa-precio,
body:not(.single-product) .elementor-widget-theme-product-price .xufa-precio,
body:not(.single-product) .elementor-widget-woocommerce-product-price .xufa-precio__main,
body:not(.single-product) .elementor-widget-theme-product-price .xufa-precio__main,
body:not(.single-product) .elementor-widget-woocommerce-product-price .xufa-precio__pvp-line,
body:not(.single-product) .elementor-widget-theme-product-price .xufa-precio__pvp-line {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.single-product .price .xufa-precio__normal,
.single-product .price .xufa-precio__oferta-valor {
    font-size: clamp(24px, 2.1vw, 32px);
}


/* ============================================================
 * 7.4 B2B Suite 2.0.2
 *     Precio profesional con la misma jerarquía visual que la tienda normal.
 * ============================================================ */
.xufa-precio--b2b {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.xufa-precio--b2b .xufa-precio__label {
    font-size: 10px;
    line-height: 1.15;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9d9d9d;
    margin-bottom: 2px;
}

.xufa-precio--b2b .xufa-precio__main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.xufa-precio--b2b .xufa-precio__valor--profesional {
    display: inline-block;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #e74c3c;
}

.post-type-archive-product .xufa-precio--b2b,
.tax-product_cat .xufa-precio--b2b,
.tax-product_tag .xufa-precio--b2b,
.woocommerce-shop .xufa-precio--b2b,
.woocommerce ul.products li.product .xufa-precio--b2b,
.woocommerce-page ul.products li.product .xufa-precio--b2b,
.elementor-widget-woocommerce-products .xufa-precio--b2b,
.elementor-products-grid .xufa-precio--b2b {
    align-items: center;
    text-align: center;
    gap: 3px;
}

.single-product .summary .xufa-precio--b2b,
.single-product .product .xufa-precio--b2b,
.single-product .elementor-widget-woocommerce-product-price .xufa-precio--b2b,
.single-product .elementor-widget-theme-product-price .xufa-precio--b2b {
    align-items: flex-start;
    text-align: left;
    gap: 5px;
}

.single-product .summary .xufa-precio--b2b .xufa-precio__label,
.single-product .product .xufa-precio--b2b .xufa-precio__label,
.single-product .elementor-widget-woocommerce-product-price .xufa-precio--b2b .xufa-precio__label,
.single-product .elementor-widget-theme-product-price .xufa-precio--b2b .xufa-precio__label {
    font-size: 11px;
}

.single-product .summary .xufa-precio--b2b .xufa-precio__main,
.single-product .product .xufa-precio--b2b .xufa-precio__main,
.single-product .elementor-widget-woocommerce-product-price .xufa-precio--b2b .xufa-precio__main,
.single-product .elementor-widget-theme-product-price .xufa-precio--b2b .xufa-precio__main {
    justify-content: flex-start;
}

.single-product .summary .xufa-precio--b2b .xufa-precio__valor--profesional,
.single-product .product .xufa-precio--b2b .xufa-precio__valor--profesional,
.single-product .elementor-widget-woocommerce-product-price .xufa-precio--b2b .xufa-precio__valor--profesional,
.single-product .elementor-widget-theme-product-price .xufa-precio--b2b .xufa-precio__valor--profesional {
    font-size: clamp(24px, 2.1vw, 32px);
    line-height: 1.1;
    font-weight: 700;
}

/* ============================================================
 * 7.5 B2B Suite 2.0.3
 *     Carrito B2B como solicitud de pedido sin pago online.
 * ============================================================ */
.xufa-b2b-cart-note {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #5f5f5f;
}

.woocommerce a.button.xufa-b2b-add-to-cart,
.woocommerce button.button.xufa-b2b-add-to-cart,
.xufa-b2b-add-to-cart {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Pedido B2B directo desde carrito */
.xufa-b2b-direct-order {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: #f7f4ed;
  text-align: center;
}
.xufa-b2b-direct-order__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #555;
}
.xufa-b2b-direct-order__button,
.xufa-b2b-direct-order .button {
  width: 100%;
  max-width: 360px;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.xufa-b2b-cart-info {
  margin-top: 16px;
}
.xufa-b2b-direct-order__form {
  margin: 0;
}
.xufa-b2b-direct-order__obs-label {
  margin: 0 0 6px;
  text-align: left;
}
.xufa-b2b-direct-order__obs-label label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}
.xufa-b2b-direct-order__obs {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
}

/* ============================================================
 * 7.6 B2B Suite 2.0.6
 *     Carrito B2B limpio: solo precio profesional, sin PVP/descuento.
 * ============================================================ */
.xufa-b2b-cart-mode .woocommerce-cart-form del,
.xufa-b2b-cart-mode .woocommerce-cart-form ins,
.xufa-b2b-cart-mode .woocommerce-cart-form .onsale,
.xufa-b2b-cart-mode .woocommerce-cart-form .sale,
.xufa-b2b-cart-mode .woocommerce-cart-form .discount,
.xufa-b2b-cart-mode .woocommerce-cart-form .descuento,
.xufa-b2b-cart-mode .woocommerce-cart-form [class*="discount"],
.xufa-b2b-cart-mode .woocommerce-cart-form [class*="descuento"],
.xufa-b2b-cart-mode .woocommerce-cart-form [class*="ahorra"],
.xufa-b2b-cart-mode .woocommerce-cart-form [class*="saving"] {
  display: none !important;
}
.xufa-b2b-cart-price {
  display: inline-block;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #e74c3c;
}
.xufa-b2b-cart-mode .product-price .xufa-b2b-cart-price,
.xufa-b2b-cart-mode .product-subtotal .xufa-b2b-cart-price,
.xufa-b2b-cart-mode .cart_totals .xufa-b2b-cart-price {
  font-size: 17px;
}
.xufa-b2b-cart-mode .wc-proceed-to-checkout a.checkout-button,
.xufa-b2b-cart-mode .wc-proceed-to-checkout .checkout-button {
  text-transform: uppercase;
  letter-spacing: .08em;
}
