/**
 * Bulk Order Builder Styles
 */

.bulk-product-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.bulk-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Selected Slots */
.selected-slot {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 10px;
    min-width: 100px;
    position: relative;
    transition: all 0.3s ease;
}

.selected-slot:hover {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40,167,69,0.2);
}

.selected-slot img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.selected-slot .slot-name {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    margin: 5px 0;
    word-break: break-word;
}

.selected-slot .slot-qty {
    font-size: 11px;
    color: #6c757d;
}

.remove-slot {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-slot:hover {
    background: #c82333;
    transform: scale(1.1);
}

.empty-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    width: 100px;
    height: 120px;
    font-size: 30px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-slot:hover {
    border-color: #28a745;
    background: #f8fff9;
    transform: scale(1.05);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-content {
    padding: 1rem;
}

.product-content h3 {
    font-size: 1rem;
    margin: 0 0 10px 0;
}

.product-content h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.product-content h3 a:hover {
    color: #28a745;
}

.price del {
    color: #dc3545;
    font-size: 0.85rem;
}

.price ins {
    color: #28a745;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Quantity Controls */
.qty-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.qty-btn {
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.qty-btn:hover:not(.active) {
    background: #e9ecef;
}

.custom-qty {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-align: center;
}

.add-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.add-btn:hover:not(:disabled) {
    background: #218838;
}

.add-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Badges */
.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    z-index: 1;
}

.tier-prices {
    margin: 10px 0;
}

.tier-prices .badge {
    background: #e9ecef;
    color: #495057;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 5px;
    display: inline-block;
}

/* Selected Items List */
.selected-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.selected-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
}

.selected-item-info {
    flex: 1;
    text-align: left;
}

.selected-item-name {
    font-weight: 500;
    font-size: 14px;
}

.selected-item-qty {
    font-size: 12px;
    color: #6c757d;
}

.selected-item-price {
    font-weight: 600;
    color: #28a745;
}

.remove-item-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
}

.remove-item-btn:hover {
    background: #c82333;
}

/* Progress Bar */
.progress {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Loader */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .bulk-box {
        padding: 1rem;
    }
    
    .selected-slot {
        min-width: 70px;
        padding: 5px;
    }
    
    .selected-slot img {
        width: 40px;
        height: 40px;
    }
    
    .selected-slot .slot-name {
        font-size: 10px;
    }
    
    .empty-slot {
        width: 70px;
        height: 90px;
        font-size: 20px;
    }
    
    .product-card img {
        height: 150px;
    }
    
    .product-content {
        padding: 0.75rem;
    }
}

/* Utility Classes */
.fw-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.gap-3 {
    gap: 1rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.w-100 {
    width: 100%;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-link {
    background: none;
    border: none;
    color: #dc3545;
    text-decoration: underline;
    cursor: pointer;
}

.btn-link:hover {
    color: #c82333;
}

.btn-outline-primary {
    background: transparent;
    border-color: #28a745;
    color: #28a745;
}

.btn-outline-primary:hover {
    background: #28a745;
    color: white;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #28a745;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(40,167,69,0.25);
}

.bg-light {
    background-color: #f8f9fa;
}

.rounded {
    border-radius: 0.5rem;
}

.small {
    font-size: 0.875rem;
}

.fs-4 {
    font-size: 1.5rem;
}

.summary-label {
    text-align: left;
    font-weight: 700;
}
.price-new{
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}
.price-old {
    font-size: 15px;
    font-weight: 400;
    color: #565656;
    text-decoration: line-through;
    text-decoration-color: var(--bs-danger);
    text-decoration-thickness: 1.5px;
}