/**
 * IMB Free Lubricant Product Badge - Frontend Styles
 */

:root {
    --imb-lube-bg: #f377ae;
    --imb-lube-color: #ffffff;
}

/* Badge Wrap - Positions over the image */
.imb-free-lube-badge-wrap {
    position: absolute !important;
    z-index: 8 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Position variants */
.imb-free-lube-badge-wrap.imb-pos-top-left {
    top: 12px !important;
    left: 12px !important;
}

.imb-free-lube-badge-wrap.imb-pos-bottom-left {
    bottom: 12px !important;
    left: 12px !important;
}

.imb-free-lube-badge-wrap.imb-pos-top-right {
    top: 12px !important;
    right: 12px !important;
}

.imb-free-lube-badge-wrap.imb-pos-bottom-right {
    bottom: 12px !important;
    right: 12px !important;
}

/* Hover effect on product card */
ul.products li.product:hover .imb-free-lube-badge-wrap {
    transform: translateY(-2px);
}

/* The Badge Pill */
.imb-free-lube-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: linear-gradient(135deg, var(--imb-lube-bg, #f377ae) 0%, #d8568f 100%) !important;
    color: var(--imb-lube-color, #ffffff) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    padding: 6px 12px 6px 10px !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 14px rgba(243, 119, 174, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.28) !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.imb-free-lube-badge .imb-lube-icon {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.imb-free-lube-badge .imb-lube-text {
    line-height: 1 !important;
    position: relative !important;
    top: 0.5px !important;
}

/* Single Product Main Image Specifics */
.single-product .woocommerce-product-gallery__image {
    position: relative !important;
}

.imb-badge-single {
    position: absolute !important;
    z-index: 12 !important;
    margin: 0 !important;
}

.imb-badge-single.imb-pos-top-left {
    top: 14px !important;
    left: 14px !important;
}

.imb-badge-single.imb-pos-bottom-left {
    bottom: 14px !important;
    left: 14px !important;
}

.imb-badge-single.imb-pos-top-right {
    top: 14px !important;
    right: 14px !important;
}

.imb-badge-single.imb-pos-bottom-right {
    bottom: 14px !important;
    right: 14px !important;
}

.imb-badge-single .imb-free-lube-badge {
    font-size: 12.5px !important;
    padding: 8px 15px 8px 12px !important;
    box-shadow: 0 6px 18px rgba(243, 119, 174, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.35) !important;
}

.imb-badge-single .imb-lube-icon {
    font-size: 14px !important;
}

/* ==========================================================================
   Single Product Offer Callout Box (under price/summary)
   ========================================================================== */
.imb-lube-offer-box {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%) !important;
    border: 1px solid #fecdd3 !important;
    border-left: 4px solid var(--imb-lube-bg, #f377ae) !important;
    border-radius: 12px !important;
    padding: 13px 18px !important;
    margin: 16px 0 20px 0 !important;
    box-shadow: 0 4px 15px rgba(243, 119, 174, 0.08) !important;
    box-sizing: border-box !important;
}

.imb-offer-icon-bubble {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    background: #ffe4e6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(243, 119, 174, 0.2) !important;
}

.imb-offer-text-col {
    flex: 1 !important;
}

.imb-offer-title {
    margin: 0 0 3px 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.2px !important;
    line-height: 1.3 !important;
}

.imb-offer-desc {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    color: #475569 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    .imb-free-lube-badge-wrap.imb-pos-top-left,
    .imb-free-lube-badge-wrap.imb-pos-bottom-left {
        left: 8px !important;
    }

    .imb-free-lube-badge-wrap.imb-pos-top-right,
    .imb-free-lube-badge-wrap.imb-pos-bottom-right {
        right: 8px !important;
    }

    .imb-free-lube-badge-wrap.imb-pos-top-left,
    .imb-free-lube-badge-wrap.imb-pos-top-right {
        top: 8px !important;
    }

    .imb-free-lube-badge-wrap.imb-pos-bottom-left,
    .imb-free-lube-badge-wrap.imb-pos-bottom-right {
        bottom: 8px !important;
    }

    .imb-free-lube-badge {
        font-size: 9.5px !important;
        padding: 4.5px 9px 4.5px 8px !important;
        letter-spacing: 0.4px !important;
    }

    .imb-free-lube-badge .imb-lube-icon {
        font-size: 10.5px !important;
    }

    .imb-lube-offer-box {
        padding: 10px 14px !important;
        gap: 10px !important;
    }

    .imb-offer-icon-bubble {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: 15px !important;
    }

    .imb-offer-title {
        font-size: 13px !important;
    }

    .imb-offer-desc {
        font-size: 11.5px !important;
    }
}
