/**
 * Brand badge overlay on product images
 * Brezo Store Enhancements
 */

/* Loop: badge over product thumbnail (position context for absolute badge) */
.products li.product,
ul.products li.product,
.wc-block-grid__product,
.wc-block-components-product-card {
    position: relative;
}

.products .product .brezo-brand-badge--loop,
.products li.product .brezo-brand-badge--loop,
ul.products li.product .brezo-brand-badge--loop,
.wc-block-grid__product .brezo-brand-badge--loop,
.wc-block-components-product-card .brezo-brand-badge--loop {
    position: absolute;
    left: 10px;
    top: 10px;
    /* z-index: 2; */
    pointer-events: none;
}

.products .product a .brezo-brand-badge--loop,
.products li.product a .brezo-brand-badge--loop {
    left: 10px;
    top: 10px;
}

.brezo-brand-badge__text {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 3px;
    text-transform: none;
    letter-spacing: 0.02em;
}

/* Logo image badge: fixed footprint so all brands look consistent */
.brezo-brand-badge--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 76px;
    height: 36px;
    padding: 5px 8px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.brezo-brand-badge__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.single-product .brezo-brand-badge--logo {
    width: 92px;
    height: 42px;
    padding: 6px 10px;
}

/* Single product: badge over gallery */
.woocommerce-product-gallery,
.woocommerce-product-gallery__wrapper {
    position: relative;
}

.brezo-brand-badge--single {
    position: absolute;
    left: 15px;
    top: 15px;
    z-index: 10;
    pointer-events: none;
}

.single-product .brezo-brand-badge__text {
    font-size: 12px;
    padding: 5px 12px;
}
