.product_badges .badge_gift_purchase {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product_badges .badge_gift_icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    opacity: .95;
}

.product_badges .badge_coupon_discount {
    background: #111;
    color: #fff;
}

/* Product badges Container */
ul.product_badges {
    position: absolute;
    top: 10px;
    right: 10px;
    list-style: none;
    padding-right: 0;
    margin: 0;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1;
}

/* Base Badge Style */
ul.product_badges li {
    padding: 0;
    width: fit-content;
    font-size: 13px;
    color: #171719;

    /* Flexbox centering */
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;

    line-break: auto;
    line-height: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    padding: 0;
    border-radius: 25px;
}
li.text-badge {
    padding: 5px 15px !important;
}

/* Specific Badge Colors */
/* ul.product_badges li.badge_new {
    background: #0A2D59;
    color: #FFF;
}

ul.product_badges li.badge_onsale {
    background: #24D377;
    color: #0A2D59;
} */

/* Stock Status overrides (moved from style.css reference if needed, but keeping scoped here) */
p.stock.stock_in,
p.stock.out-of-stock {
    padding: 0;
    border-radius: 0;
    width: fit-content;
    font-size: 13px;
    color: #171719;
}

/* --- Icon Badge & Text Badge Specifics --- */

/* Text Badges: Keep standard padding */
/* already handled by base li style */

/* Icon Badges (Images): Remove right padding */
ul.product_badges li.icon-badge:not(.text-badge) {
    padding: 0 !important;
    background: transparent;
    /* Assuming image badges don't need background */
}

/* Image Scaling */
ul.product_badges li.icon-badge img {
    display: block;
    width: auto;
    height: auto;
    height: 40px;
    max-height: 40px;
    object-fit: contain;
}

/* Mobile Adjustments */
@media(max-width:768px) {
    ul.product_badges li {
        font-size: 13px !important;
        line-height: 11px;
        margin-bottom: 2px;
    }

    /* Reduce image size on mobile */
    ul.product_badges li.icon-badge img {
        max-height: 30px;
    }

    .uc_title {
        min-height: 47px;
        max-height: 47px;
        overflow: hidden;
    }
}