/* ========== ORDERS PAGE STYLES ========== */
/* Extracted from inline styles and standardized with CSS variables */

/* Orders Container */
.orders-container {
    max-width: var(--container-max-width);
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-md);
}

/* Page Header */
.page-header {
    margin-bottom: var(--spacing-xl);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Orders Filters */
.orders-filters {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    background: var(--background);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    color: var(--text-primary);
}

.filter-btn:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Order Card */
.order-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: box-shadow var(--transition-fast);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

/* Order Header */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.order-info {
    flex: 1;
}

.order-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.order-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Order Status */
.order-status {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending_confirmation {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.status-processing {
    background: #e0e7ff;
    color: #3730a3;
}

.status-shipped {
    background: #c7d2fe;
    color: #4c1d95;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Order Items */
.order-items {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
}

.order-item {
    display: flex;
    gap: var(--spacing-sm);
    min-width: 250px;
}

.item-image {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-quantity {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Order Footer */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.order-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.order-total-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: var(--spacing-sm);
}

.order-total-amount {
    color: var(--primary-color);
}

/* Order Actions */
.order-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-order-action {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.btn-order-action:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--background-light);
}

.btn-order-action-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-order-action-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Empty State */
.orders-empty {
    text-align: center;
    padding: var(--spacing-4xl) var(--spacing-xl);
}

.orders-empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.orders-empty-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.orders-empty-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Loading State */
.orders-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-4xl);
}

/* Responsive */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-items {
        flex-direction: column;
    }
    
    .order-item {
        min-width: auto;
    }
    
    .orders-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}
