/**
 * Product Labels CSS
 *
 * @package OM_Product_Page_Essentials
 */

/* Container positioning */
.om-ppe-product-labels {
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

/* Position variants */
.om-ppe-product-labels.position-top-left {
    top: 10px;
    left: 10px;
}

.om-ppe-product-labels.position-top-right {
    top: 10px;
    right: 10px;
}

.om-ppe-product-labels.position-bottom-left {
    bottom: 10px;
    left: 10px;
}

.om-ppe-product-labels.position-bottom-right {
    bottom: 10px;
    right: 10px;
}

.om-ppe-product-labels.position-top-center {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.om-ppe-product-labels.position-bottom-center {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Label styling */
.om-ppe-label {
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: auto;
}

/* Ensure product containers have relative positioning */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.wc-block-grid__product {
    position: relative;
}

/* Archive/loop positioning */
.woocommerce ul.products li.product .om-ppe-product-labels,
.woocommerce-page ul.products li.product .om-ppe-product-labels {
    position: absolute;
}

/* Single product positioning */
.woocommerce div.product div.images .om-ppe-product-labels {
    position: absolute;
}

/* Make sure images container is relative for single product */
.woocommerce div.product div.images,
.woocommerce div.product div.images .woocommerce-product-gallery {
    position: relative;
}

/* Hide default WooCommerce sale badge */
.woocommerce .onsale,
.wc-block-grid__product-onsale,
.wc-block-grid__product .onsale {
    display: none !important;
}
