/* Pastilla azul del cartel (porcentaje o texto fijo) */
.dob-offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #3154ff;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    line-height: 1.2;
    white-space: nowrap;
}

.dob-badge-percentage,
.dob-badge-text {
    display: inline-block;
}



/* Aseguramos posicionamiento correcto del contenedor del producto */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce div.product,
.woocommerce-page div.product {
    position: relative;
}

/* En Elementor, el contenedor de la imagen de producto */
.elementor-widget-theme-post-featured-image .elementor-widget-container {
    position: relative;
}

/* Ocultar el SALE! original de WooCommerce (si existiera) */
.woocommerce span.onsale {
    display: none !important;
}


/* El badge entero debe medir siempre 10x10 px y NO AGRANDARSE JAMÁS */
.dob-offer-badge.dob-offer-badge-logoonly {
    position: absolute !important;
    top: 50px !important;
    left: 50px !important;

    width: 50px !important;
    height: 50px !important;

    max-width: 50px !important;
    max-height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    display: block !important;
    overflow: hidden !important;
}

/* El IMG se adapta al contenedor 10x10 */
.dob-offer-badge-logoonly .dob-badge-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}
