/* Updated sticker styling - horizontal bar at bottom */
.oos-sticker {
    position: absolute;
    bottom: 30px; /* Space from bottom */
    left: 0;
    right: 0;
    width: 100%; /* Full width of parent container */
    background: rgba(200, 0, 0, 0.85); /* Slightly more opaque */
    color: white;
    padding: 10px 0; /* More vertical padding */
    text-align: center;
    font-weight: bold;
    z-index: 10;
    font-size: 14px;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 2px solid rgba(255,255,255,0.2);
    border-bottom: 2px solid rgba(0,0,0,0.2);
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

/* Container for product page - needs width adjustment */
.oos-sticker-container {
    display: none;
    position: relative;
    margin-top: 15px;
    text-align: center;
    width: 100%; /* Ensure full width */
}

/* Ensure parent containers have positioning and overflow */
.woocommerce-product-gallery__image,
.woocommerce-loop-product__link,
.oos-sticker-container {
    position: relative;
    display: block;
    overflow: hidden; /* Contain sticker within image */
}

/* Specific adjustment for shop page items */
.woocommerce-loop-product__link {
    overflow: visible; /* Reset for shop page */
}

/* Make sticker responsive on smaller screens */
@media (max-width: 768px) {
    .oos-sticker {
        font-size: 12px;
        padding: 8px 0;
        bottom: 10px;
    }
}