/* ====================================================
   Event Hire UK - Product Badges (v4.0)
   WooCommerce + Elementor (archive + single + gallery)
==================================================== */

/* Universal badge style (like SALE badge) */
.ehuk-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999;

    padding: 0.5em 0.8em;
    border-radius: 50px;

    font-size: 0.857em;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 1;

    pointer-events: none;
    white-space: nowrap;

    box-shadow: 0 4px 10px rgba(15,23,42,0.05);
}

.ehuk-coming-soon {
    background:#FFF4E0;
    color:#B4730E;
    border:0.5px solid rgba(180,115,14,0.6);
}

.ehuk-new-in {
    background:#E3F3EA;
    color:#0C9957;
    border:0.5px solid rgba(12,153,87,0.6);
}


/* Elementor archive badge support */
.ehuk-badge-wrapper {
    position: relative;
    display: inline-block;
}

/* Bento featured-products grid compatibility:
   make our wrapper transparent to layout so bento's image sizing
   (aspect-ratio + object-fit) still applies to the img directly,
   and promote the bento image-wrap to the badge's positioning anchor. */
.bento-item__image-wrap {
    position: relative;
}
.bento-item__image-wrap .ehuk-badge-wrapper {
    display: contents;
}

/* Elementor single product gallery support */
.ehuk-gallery-badge {
    position: absolute !important;
    top: 10px;
    left: 10px;
    z-index: 99999;
}

/* Ensure gallery wrapper is relative */
.woocommerce-product-gallery {
    position: relative !important;
}

/* WooCommerce containers */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product a,
.woocommerce div.product div.images {
    position: relative;
}
