/* ==========================================================================
   MrStove Discount - Estilos de Etiquetas y Precios Rebajados
   ========================================================================== */

.woocommerce ul.products li.product,
.wc-block-grid__product,
.woocommerce-product-gallery {
    position: relative !important;
}

.mrstove-img-anchor {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
    line-height: 0 !important;
}

.mrstove-badge-wrap {
    position: absolute !important;
    z-index: 25 !important;
    pointer-events: none !important;
    max-width: calc(100% - 16px) !important;
}

.mrstove-single-summary-badge {
    margin: 6px 0 10px 0 !important;
    display: block !important;
}

/* Posiciones superiores */
.mrstove-pos-top-right {
    top: 8px !important;
    right: 8px !important;
}

.mrstove-pos-top-left {
    top: 8px !important;
    left: 8px !important;
}

.mrstove-pos-top-center {
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
}

/* Posiciones inferiores */
.mrstove-pos-bottom-right {
    bottom: 8px !important;
    right: 8px !important;
}

.mrstove-pos-bottom-left {
    bottom: 8px !important;
    left: 8px !important;
}

.mrstove-pos-bottom-center {
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
}

/* Etiqueta visual Negro, Amarillo y Rojo */
.mrstove-top-badge {
    display: inline-block !important;
    background: linear-gradient(135deg, #111111 78%, #d90429 100%) !important;
    color: #ffd000 !important;
    border: 1.5px solid #d90429 !important;
    border-left: 4px solid #d90429 !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25) !important;
}

/* ==========================================================================
   Precios: Tachado y Rebajado (Incluye .woocom-list-content .price)
   ========================================================================== */

.woocom-list-content .price .mrstove-del-price,
.woocom-list-content .price .mrstove-del-price *,
body .mrstove-highlighted-price s.mrstove-del-price,
body .mrstove-highlighted-price s.mrstove-del-price * {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--mrstove-del-color, #d90429) !important;
    font-size: var(--mrstove-del-size, 16px) !important;
    font-weight: 600 !important;
    text-decoration: line-through !important;
    text-decoration-color: var(--mrstove-del-color, #d90429) !important;
    text-decoration-thickness: 2px !important;
    margin-right: 8px !important;
    background: transparent !important;
}

.woocom-list-content .price .mrstove-is-highlighted .mrstove-ins-price,
.woocom-list-content .price .mrstove-is-highlighted .mrstove-ins-price *,
body .mrstove-highlighted-price.mrstove-is-highlighted ins.mrstove-ins-price,
body .mrstove-highlighted-price.mrstove-is-highlighted ins.mrstove-ins-price * {
    display: inline-block !important;
    color: var(--mrstove-sale-color, #198754) !important;
    font-size: var(--mrstove-sale-size, 20px) !important;
    font-weight: var(--mrstove-sale-weight, 800) !important;
    text-decoration: none !important;
    background: transparent !important;
    line-height: 1.3 !important;
}

/* Escalado en ficha individual de producto */
body.single-product .summary .mrstove-highlighted-price.mrstove-is-highlighted ins.mrstove-ins-price,
body.single-product .summary .mrstove-highlighted-price.mrstove-is-highlighted ins.mrstove-ins-price * {
    color: var(--mrstove-sale-color, #198754) !important;
    font-size: var(--mrstove-single-sale-size, 26px) !important;
    font-weight: var(--mrstove-sale-weight, 800) !important;
}

body.single-product .summary .mrstove-highlighted-price s.mrstove-del-price,
body.single-product .summary .mrstove-highlighted-price s.mrstove-del-price * {
    color: var(--mrstove-del-color, #d90429) !important;
    font-size: var(--mrstove-single-del-size, 20px) !important;
}