/**
 * Mesaj Stoc Emoționant - Styles
 * Version: 1.0.0
 */

/* Base stock message styling */
.stock, .in-stock {
    display: block!important;
    width:100%!important;
    text-align:center;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0;
    transition: all 0.3s ease;
    max-width:100%!important;
}

/* Critical urgency - 1 product left */
.stock.stock-urgency-critical {
    color: #ffffff;
    border: 2px solid #bd2130;
}

/* High urgency - 2-5 products */
.stock.stock-urgency-high {
    color: #ffffff;
    border: 1px solid #dc6502;
}



/* Medium urgency - 6-10 products */
.stock.stock-urgency-medium {
    color: #856404;
    border: 2px solid #ffc107;
}

.stock.stock-urgency-medium:hover {
    background: #ffe69c;
    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.3);
}

/* Normal urgency - 10+ products */
.stock.stock-urgency-normal {
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.stock.stock-urgency-normal:hover {
    background: #bee5eb;
}

/* Out of stock styling */
.stock.out-of-stock {
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Responsive design */
@media (max-width: 768px) {
    .stock {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Additional styling for product pages */
.single-product .stock {
    display: block;
    max-width: fit-content;
    margin: 15px 0;
}

/* Styling for product listing pages */
.woocommerce ul.products li.product .stock {
    margin: 8px 0;
    font-size: 13px;
    padding: 6px 12px;
}

/* Icon support (optional - can add icons before text) */
.stock.stock-urgency-critical::before {
    content: "⚠️ ";
    margin-right: 4px;
}

.stock.stock-urgency-high::before {
    content: "🔥 ";
    margin-right: 4px;
}

.stock.stock-urgency-medium::before {
    content: "📦 ";
    margin-right: 4px;
}

.stock.stock-urgency-normal::before {
    content: "✅ ";
    margin-right: 4px;
}

/* Accessibility improvements */
.stock {
    position: relative;
}

.stock:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .stock {
        border: 1px solid #000;
        box-shadow: none;
        animation: none;
    }
}
