/* Descuentos en página de producto */

/* En ficha de producto la barra usa la tipografía de .product-ficha-precio-bar (product.css) */
.product-ficha-precio-bar .precio-con-descuento,
.product-ficha-precio-bar .precio-con-descuento .precio-original-tachado,
.product-ficha-precio-bar .precio-con-descuento .precio-final-descuento {
    font-size: inherit;
    font-weight: normal;
    text-transform: none;
}

.product-ficha-precio-bar .precio-con-descuento .descuento-badge {
    font-size: 0.82em;
    font-weight: inherit;
    text-transform: none;
}

.product-ficha-precio-bar .precio-con-descuento .shipping-costs {
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
}

.product-ficha-precio-bar .precio-con-descuento {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-ficha-precio-bar .precio-con-descuento > span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.product-ficha-precio-bar .precio-con-descuento .flecha-descuento {
    text-transform: none;
    height: 1.15em;
    width: 1.85em;
    line-height: 0;
}

.product-ficha-precio-bar .precio-con-descuento .flecha-descuento svg {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.precio-con-descuento {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: #000;
    padding: 0.8rem 1.2rem;
    flex-wrap: wrap;
}

.precio-original-tachado {
    text-decoration: line-through;
    text-decoration-color: #ff0000;
    text-decoration-thickness: 0.08em;
    color: #fff;
    font-size: 1.2rem;
    white-space: nowrap;
}

.descuento-badge {
    color: #ff0000;
    font-weight: bold;
    font-size: 1.4rem;
    white-space: nowrap;
}

.flecha-descuento {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ff0000;
    line-height: 1;
}

.flecha-descuento svg {
    width: 2rem;
    height: 2rem;
    display: block;
}

.precio-final-descuento {
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    white-space: nowrap;
}

.shipping-costs {
    color: #fff;
    font-size: 1rem;
    margin-left: 0.5rem;
    white-space: nowrap;
}

/* Responsive para tablets */
@media (max-width: 1024px) {
    .precio-con-descuento {
        gap: 0.6rem;
        padding: 0.7rem 1rem;
    }
    
    .precio-original-tachado {
        font-size: 1.1rem;
    }
    
    .descuento-badge {
        font-size: 1.2rem;
    }
    
    .flecha-descuento {
        font-size: 1.4rem;
    }
    
    .precio-final-descuento {
        font-size: 1.2rem;
    }
    
    .shipping-costs {
        font-size: 0.95rem;
    }
}

/* Responsive para mobile */
@media (max-width: 768px) {
    .precio-con-descuento {
        gap: 0.5rem;
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .precio-original-tachado {
        font-size: 0.95rem;
    }
    
    .descuento-badge {
        font-size: 1rem;
    }
    
    .flecha-descuento {
        font-size: 1.2rem;
    }
    
    .precio-final-descuento {
        font-size: 1.1rem;
    }
    
    .shipping-costs {
        font-size: 0.85rem;
        margin-left: 0.3rem;
    }
}

/* Responsive para mobile pequeño */
@media (max-width: 480px) {
    .precio-con-descuento {
        gap: 0.4rem;
        padding: 0.5rem 0.7rem;
        justify-content: center;
    }
    
    .precio-original-tachado {
        font-size: 0.85rem;
    }
    
    .descuento-badge {
        font-size: 0.9rem;
    }
    
    .flecha-descuento {
        font-size: 1rem;
    }
    
    .precio-final-descuento {
        font-size: 1rem;
    }
    
    .shipping-costs {
        font-size: 0.75rem;
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 0.2rem;
    }
}
