/* Layout for customer account pages — colors/fonts come from styles.css's
   :root variables (linked before this file), so the account area matches
   the storefront's brand instead of the admin panel's utilitarian look. */

body { background: var(--cream); }

.account-shell { min-height: 100vh; display: flex; flex-direction: column; }

.account-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 48px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.account-topbar .logo { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; letter-spacing: 3px; }
.account-topbar a { font-size: 13px; font-weight: 600; color: var(--brown); }
.account-topbar a:hover { color: var(--terracotta); }

.auth-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.auth-card {
  background: var(--paper); width: 100%; max-width: 420px; padding: 48px 40px;
  border-radius: 6px; border: 1px solid var(--line);
}
.auth-card h1 { font-size: 30px; font-weight: 600; text-align: center; margin-bottom: 8px; }
.auth-sub { text-align: center; color: var(--brown); font-size: 14px; margin-bottom: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; color: var(--brown); }
.field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 14px; }
.field input:focus { outline: none; border-color: var(--terracotta); }
.btn-primary {
  width: 100%; padding: 15px; background: var(--ink); color: var(--paper); border: none;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 4px; cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--terracotta); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 13px; color: var(--brown); }
.auth-switch a { color: var(--terracotta); font-weight: 700; }
.form-error { background: #fbe4e4; color: #b53030; padding: 12px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 18px; display: none; }
.form-error.show { display: block; }
.form-ok { background: #e3f0ec; color: var(--teal); padding: 12px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 18px; display: none; }
.form-ok.show { display: block; }

.account-main { flex: 1; padding: 56px 48px; max-width: 900px; margin: 0 auto; width: 100%; }
.account-main h1 { font-size: 34px; font-weight: 600; margin-bottom: 8px; }
.account-greeting { color: var(--brown); margin-bottom: 40px; font-size: 15px; }

.order-list { display: flex; flex-direction: column; gap: 2px; background: var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 48px; }
.order-row {
  background: var(--paper); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: background 0.15s; gap: 16px; flex-wrap: wrap;
}
.order-row:hover { background: #fbf7f1; }
.order-row-main { display: flex; flex-direction: column; gap: 4px; }
.order-number { font-weight: 700; font-size: 15px; }
.order-date { font-size: 12px; color: var(--brown); opacity: 0.7; }
.order-row-right { display: flex; align-items: center; gap: 20px; }
.order-total { font-weight: 700; color: var(--terracotta); }
.status-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.status-pending { background: #fdf1de; color: #a3690f; }
.status-confirmed { background: #e3edfb; color: #1f4e8c; }
.status-shipped { background: #ede3fb; color: #6b3fa0; }
.status-delivered { background: #e3f0ec; color: var(--teal); }
.status-cancelled { background: #fbe4e4; color: #b53030; }
.empty-orders { text-align: center; padding: 60px 20px; color: var(--brown); opacity: 0.6; background: var(--paper); border-radius: 6px; }

.profile-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 32px; max-width: 480px; }
.profile-card h2 { font-size: 18px; margin-bottom: 20px; }

/* Order detail / receipt */
.receipt-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 40px; }
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.receipt-head .logo { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.receipt-meta { text-align: right; font-size: 13px; color: var(--brown); }
.receipt-meta .order-number { display: block; font-size: 16px; margin-bottom: 4px; }
.receipt-section { margin-bottom: 28px; }
.receipt-section h3 { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--brown); margin-bottom: 10px; }
.receipt-section p { font-size: 14px; line-height: 1.7; }
.receipt-items { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.receipt-items th { text-align: left; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--brown); padding: 10px 0; border-bottom: 1px solid var(--line); }
.receipt-items td { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.receipt-items td:last-child, .receipt-items th:last-child { text-align: right; }
.receipt-total-row { display: flex; justify-content: flex-end; gap: 40px; font-size: 20px; font-weight: 700; padding-top: 8px; }
.receipt-actions { display: flex; gap: 12px; margin-top: 32px; }

@media print {
  .account-topbar, .no-print { display: none !important; }
  .account-main { padding: 0; max-width: none; }
  .receipt-card { border: none; padding: 0; }
}

@media (max-width: 700px) {
  .account-topbar, .account-main { padding-left: 20px; padding-right: 20px; }
  .receipt-head { flex-direction: column; gap: 16px; }
  .receipt-meta { text-align: left; }
}
