/* ==========================================================================
   OOS Alternatives — Banner under product button (orange banner style)
   ========================================================================== */

/* ---------- A. Badges ---------- */

.oos-grid-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    padding: 0;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.4;
    pointer-events: none;
}

.badge-oos {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.badge-max {
    background: linear-gradient(135deg, #ff9f43, #e67e22);
    display: none;
}

.oos-grid-img-grayscale img {
    filter: grayscale(60%);
    transition: filter 0.3s ease;
}

/* ---------- B. Banner (compact, inside card, sample layout) ---------- */

.oos-grid-alt-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 3px;
    margin: 0;
    border-radius: 6px 6px 0 0;
    animation: oosGridBannerIn 0.25s ease-out;
    cursor: pointer;
    text-decoration: none;
    z-index: 4;
}

@keyframes oosGridBannerIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.oos-grid-alt-top-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.oos-grid-alt-label {
    font-weight: 700;
    font-size: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.oos-grid-alt-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.oos-grid-alt-thumb {
    flex-shrink: 0;
}

.oos-grid-alt-thumb img {
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.oos-grid-alt-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: inherit;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oos-grid-alt-price {
    flex-shrink: 0;
    font-weight: bold;
    font-size: inherit;
}

.oos-grid-alt-box:hover .oos-grid-alt-name {
    color: #e67e22;
}
