.product-image-badges-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    pointer-events: none;
}

.product-badge {
    display: inline-block;
    margin-bottom: 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: var(--text-s);
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.free-shipping-badge {
    background: #6cecf9;
    color: var(--blue);
    padding: 6px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse-badge 2s infinite;
}

.badge-text {
    display: block;
    font-size: var(--text-s);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes pulse-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* Responsive adjustments - only positioning since font-size uses CSS variable */
@media (max-width: 768px) {
    .product-image-badges-container {
        top: 8px;
        left: 8px;
    }
    
    .product-badge {
        padding: 4px 8px;
    }
    
    .badge-text {
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    .product-image-badges-container {
        top: 6px;
        left: 6px;
    }
    
    .product-badge {
        padding: 3px 6px;
        border-radius: 4px;
    }
    
    .badge-text {
        letter-spacing: 0.2px;
    }
}

/* Integration with WooCommerce product gallery */
.woocommerce-product-gallery {
    position: relative;
}

.woocommerce-product-gallery .product-image-badges-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 15;
}

/* For Bricks theme compatibility */
.brxe-product-gallery {
    position: relative;
}

.brxe-product-gallery .product-image-badges-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 15;
}

/* Ensure badges don't interfere with image interactions */
.woocommerce-product-gallery__image:hover .product-image-badges-container,
.brxe-product-gallery .woocommerce-product-gallery__image:hover .product-image-badges-container {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Additional styles for better visibility */
.product-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    z-index: -1;
}