/**
 * Custom CSS for PakBearings Platform
 * Extends Nest theme with B2B-specific styles
 */

/* ===================================
   Stock Status Badges (US-034)
   =================================== */

/* Stock badges in product card */
.product-cart-wrap .product-badges span.in-stock {
    background-color: #3BB77E; /* Green - same as Nest success color */
    color: #fff;
}

.product-cart-wrap .product-badges span.low-stock {
    background-color: #FFA500; /* Orange for low stock */
    color: #fff;
}

.product-cart-wrap .product-badges span.out-stock {
    background-color: #F74B81; /* Red - same as Nest 'hot' badge color */
    color: #fff;
}

/* Stock badges should be stacked vertically with other badges */
.product-cart-wrap .product-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.product-cart-wrap .product-badges span {
    margin-bottom: 0; /* Remove bottom margin since we're using gap */
}


/* ===================================
   Toast Notifications (US-047)
   =================================== */

/* Toast container positioning */
.toast-container {
    z-index: 9999;
}

/* Base toast styling */
.toast {
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 0.75rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Toast body */
.toast-body {
    padding: 1rem;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
}

/* Toast close button */
.toast .btn-close {
    opacity: 0.8;
}

.toast .btn-close:hover {
    opacity: 1;
}

/* Toast type variations */
.toast-success {
    background: linear-gradient(135deg, #3BB77E 0%, #2fa568 100%);
}

.toast-error {
    background: linear-gradient(135deg, #F74B81 0%, #e63768 100%);
}

.toast-warning {
    background: linear-gradient(135deg, #FDC040 0%, #f5b32d 100%);
}

.toast-info {
    background: linear-gradient(135deg, #29B3F5 0%, #1a9ee0 100%);
}

/* Toast icons */
.toast-body i {
    font-size: 20px;
    margin-right: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .toast-container {
        left: 50% !important;
        right: auto !important;
        top: 10px !important;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-width: 400px;
    }

    .toast {
        width: 100%;
        min-width: auto;
        transform: translateY(-100%);
    }

    .toast.show {
        transform: translateY(0);
    }
}
