body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f0f4ff;
}

/* ── PAGE WRAPPER ── */
.orders-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

.orders-page-title {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.orders-page-sub {
  font-size: 14px;
  color: #888;
  margin-bottom: 28px;
}

/* ── LOADING ── */
.orders-loading {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.orders-spinner {
  width: 40px; height: 40px;
  border: 4px solid #e0e7ff;
  border-top-color: #2a7de1;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.orders-empty {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.orders-empty-icon { font-size: 64px; margin-bottom: 16px; }

.orders-empty h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.orders-empty p {
  font-size: 15px;
  color: #888;
  margin-bottom: 24px;
}

.orders-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #2a7de1;
  color: white;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.orders-shop-btn:hover { background: #1e6bc9; }

/* ── ORDER CARD ── */
.order-card {
  background: white;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1.5px solid #e8edf7;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.order-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); }

/* ── CARD HEADER ── */
.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #f5f8ff;
  border-bottom: 1px solid #e8edf7;
  flex-wrap: wrap;
  gap: 10px;
}

.order-meta { display: flex; flex-direction: column; gap: 2px; }

.order-id {
  font-size: 14px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: 0.03em;
}

.order-date { font-size: 12px; color: #999; }

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── CARD BODY ── */
.order-card-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0;
}

/* ── ITEMS LIST ── */
.order-items-list {
  padding: 16px 20px;
  border-right: 1px solid #f0f0f0;
}

.oi-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.oi-row:last-child { border-bottom: none; }

.oi-img-wrap img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.oi-img-placeholder {
  width: 52px; height: 52px;
  background: #f0f4ff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.oi-info { flex: 1; }
.oi-name { font-size: 14px; font-weight: 600; color: #1a1a1a; margin: 0 0 3px; }
.oi-qty { font-size: 12px; color: #999; margin: 0; }

.oi-price {
  font-size: 14px; font-weight: 700;
  color: #B12704; flex-shrink: 0;
}

/* ── SUMMARY COLUMN ── */
.order-summary-col {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fafbff;
}

.order-summary-block h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2a7de1;
  margin: 0 0 6px;
}

.order-summary-block p {
  font-size: 13px;
  color: #444;
  margin: 0 0 2px;
  line-height: 1.5;
}

.txn-id {
  font-size: 11px !important;
  color: #aaa !important;
  word-break: break-all;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e8edf7;
  font-size: 13px;
  color: #666;
  margin-top: auto;
}

.order-total-amount {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .order-card-body { grid-template-columns: 1fr; }
  .order-items-list { border-right: none; border-bottom: 1px solid #f0f0f0; }
  .order-summary-col { background: white; }
}
