/* ── Client Orders ── */

.orders-page {
    max-width: 1100px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.orders-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.orders-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0f3d2e;
}

.orders-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.orders-header p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.orders-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.875rem;
    padding: 24px 0;
}

.orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 0;
    color: #94a3b8;
    text-align: center;
}

.orders-empty svg {
    width: 56px;
    height: 56px;
}

.orders-empty p {
    margin: 0;
    font-size: 0.95rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.orders-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.orders-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.orders-card-number {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    margin-right: 10px;
}

.orders-card-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.orders-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-card-total {
    font-size: 0.95rem;
    color: #0f172a;
}

/* Reuse order-status-badge from orders.css — if not loaded, define fallback */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.order-status-badge.status-pending  { background:#fef9c3;color:#854d0e; }
.order-status-badge.status-paid     { background:#dcfce7;color:#166534; }
.order-status-badge.status-shipped  { background:#dbeafe;color:#1e40af; }
.order-status-badge.status-delivered{ background:#d1fae5;color:#065f46; }
.order-status-badge.status-cancelled{ background:#fee2e2;color:#991b1b; }

.orders-card-items {
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orders-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.orders-card-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
    flex-shrink: 0;
}

.orders-card-img-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.orders-card-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.orders-card-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orders-card-item-sku {
    font-size: 0.75rem;
    color: #94a3b8;
}

.orders-card-item-qty {
    font-size: 0.78rem;
    color: #64748b;
}

.orders-card-item-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.orders-card-footer {
    padding: 10px 18px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.orders-card-ship {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
}
