/* ============================================================
   Probar Customer System — Frontend
   Catalog cards · Product page · Mini-cart · Cart · Checkout
   ============================================================ */

/* ===== 1. CATALOG CARDS ===== */

/* Anchor for absolute positioning of corner badge.
   Verified Flatsome DOM: <div class="product-small box"> wraps both
   the image (.box-image) and the text (.box-text). Making this box
   position:relative pins the corner badge to the card's top-left,
   which equals the image's top-left because the image sits at top. */
.product-small.box,
.products .product-small.box,
ul.products li.product .product-small.box {
    position: relative !important;
}

/* Also anchor on the image wrap itself in case Flatsome variants differ */
.products .box-image,
ul.products li.product .box-image {
    position: relative !important;
    overflow: hidden !important;
}

/* The corner badge — small red box, top-left corner of image */
.pcs-corner-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    background: #e63946 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    min-width: 0 !important;
    height: auto !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
    z-index: 10 !important;
    display: inline-block !important;
    text-align: center !important;
    letter-spacing: 0.3px !important;
    pointer-events: none !important;
    margin: 0 !important;
}

/* Hide the inline -X% badge inside the price on catalog cards
   (corner badge is the only one shown) */
.products .price .onsale,
.products .price .pcs-loyalty-badge,
ul.products li.product .price .onsale,
ul.products li.product .price .pcs-loyalty-badge {
    display: none !important;
}

/* Stacked prices on catalog cards: old above (strikethrough), new below (orange) */
.products .price,
ul.products li.product .price {
    display: block !important;
    line-height: 1.3 !important;
    text-align: center !important;
}
.products .price del,
ul.products li.product .price del {
    display: block !important;
    color: #888 !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
    font-size: 0.9em !important;
    margin: 0 0 2px 0 !important;
    opacity: 1 !important;
}
.products .price del bdi { display: inline !important; }
.products .price ins,
ul.products li.product .price ins {
    display: block !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    color: #d35400 !important;
}

/* ===== 2. SINGLE PRODUCT PAGE ===== */

.single-product .summary .price,
.product-page-wrapper .price {
    line-height: 1.3 !important;
}
.single-product .summary .price del,
.product-page-wrapper .price del {
    display: block !important;
    color: #888 !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
    margin: 0 0 4px 0 !important;
}
.single-product .summary .price ins,
.product-page-wrapper .price ins {
    display: inline-block !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    color: #d35400 !important;
    vertical-align: middle !important;
}

/* Badge sits INLINE on the RIGHT of the orange price */
.single-product .summary .price .onsale,
.single-product .summary .price .pcs-loyalty-badge,
.product-page-wrapper .price .onsale,
.product-page-wrapper .price .pcs-loyalty-badge {
    display: inline-block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    background: #e63946 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    margin: 0 0 0 10px !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    letter-spacing: 0.3px !important;
}

/* ===== 3. MINI-CART · CART · CHECKOUT — line strikethrough styling ===== */

.woocommerce-mini-cart del,
.widget_shopping_cart_content del,
.woocommerce-cart .product-subtotal del,
.woocommerce-cart .product-price del,
.woocommerce-checkout .product-total del,
.woocommerce-checkout .product-subtotal del,
table.cart .product-subtotal del,
table.cart .product-price del,
table.shop_table del {
    color: #888 !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
    margin-right: 6px !important;
    opacity: 1 !important;
}

.woocommerce-mini-cart ins,
.widget_shopping_cart_content ins,
.woocommerce-cart .product-subtotal ins,
.woocommerce-cart .product-price ins,
.woocommerce-checkout .product-total ins,
.woocommerce-checkout .product-subtotal ins,
table.cart .product-subtotal ins,
table.cart .product-price ins,
table.shop_table ins {
    text-decoration: none !important;
    font-weight: 700 !important;
    color: #d35400 !important;
}
