/* Style the selling price - make it green, larger, and bold */
span.tp-product-details-price.new-price[data-bb-value="product-price"],
.tp-product-details-price-wrapper span.tp-product-details-price.new-price {
    color: #059668 !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* Style the price in sticky action bar */
.sticky-actions-content span.tp-product-price.new-price[data-bb-value="product-price"],
.sticky-actions-content .tp-product-price.new-price {
    color: #059668 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
}

/* Hide the unwanted widgets */
.tp-product-details-msg.mb-15,
.tp-product-details-payment {
    display: none !important;
}


/*-----------------------*/



/* Hide the side banner column */
.row .col-xl-4.col-lg-4.col-md-6:has(.tp-product-side-banner-thumb) {
    display: none !important;
}

/* Make the product section take full width */
.row .col-xl-8.col-lg-8.col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Arrange the three product sections in a row */
.row .col-xl-8.col-lg-8.col-md-6 .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.row .col-xl-8.col-lg-8.col-md-6 .row .col-md-6 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
}

/* For tablets - show 2 columns */
@media (max-width: 991px) {
    .row .col-xl-8.col-lg-8.col-md-6 .row .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* For mobile - show 1 column */
@media (max-width: 767px) {
    .row .col-xl-8.col-lg-8.col-md-6 .row .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/*-------------------*/

/* Compact Mobile-Friendly Discount Badge - RIGHT SIDE */
.tp-product-badge .product-sale {
    background: #0c55aa !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    padding: 3px 6px 6px 6px !important;
    border-radius: 2px 2px 0 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    line-height: 1.1 !important;
    box-shadow: 0 1px 4px rgba(12, 85, 170, 0.3) !important;
    position: relative !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* Smaller serrated edge for mobile */
.tp-product-badge .product-sale::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: 
        linear-gradient(135deg, transparent 33.33%, #0c55aa 33.33%, #0c55aa 66.67%, transparent 66.67%),
        linear-gradient(45deg, transparent 33.33%, #0c55aa 33.33%, #0c55aa 66.67%, transparent 66.67%);
    background-size: 5px 6px;
    background-position: 0 0, 2.5px 0;
    background-repeat: repeat-x;
}

/* Position on RIGHT side */
.tp-product-badge {
    position: absolute !important;
    left: auto !important;
    right: 0.375rem !important;
    top: 0.375rem !important;
    z-index: 50 !important;
    max-width: 35% !important;
    text-align: right !important;
}

/* Tablet and Desktop */
@media (min-width: 640px) {
    .tp-product-badge .product-sale {
        font-size: 12px !important;
        padding: 5px 9px 9px 9px !important;
        border-radius: 3px 3px 0 0 !important;
        letter-spacing: 0.4px !important;
    }
    
    .tp-product-badge .product-sale::after {
        bottom: -4px;
        height: 4px;
        background-size: 7px 8px;
        background-position: 0 0, 3.5px 0;
    }
    
    .tp-product-badge {
        right: 0.5rem !important;
        top: 0.5rem !important;
        max-width: 45% !important;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    .tp-product-badge .product-sale {
        font-size: 13px !important;
        padding: 6px 10px 10px 10px !important;
        border-radius: 4px 4px 0 0 !important;
        letter-spacing: 0.5px !important;
    }
    
    .tp-product-badge .product-sale::after {
        bottom: -5px;
        height: 5px;
        background-size: 8px 10px;
        background-position: 0 0, 4px 0;
    }
    
    .tp-product-badge {
        right: 0.625rem !important;
        top: 0.625rem !important;
        max-width: 50% !important;
    }
    
    /* Hover effect */
    .tp-product-item:hover .tp-product-badge .product-sale {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(12, 85, 170, 0.4) !important;
        transition: all 0.2s ease;
    }
}

/*-----------------------*/