/* ═══════════════════════════════════════════════
   pages.css — Page-specific component styles
   Extracted from the original css/style.css
   for: account, checkout, thank-you, 404, contact, policy
   ═══════════════════════════════════════════════ */

/* ── Account Page ────────────────────────── */
.account-header {
  background: linear-gradient(to bottom left, var(--primary-10), #fff, var(--primary-5));
  padding: 2.5rem 0;
}
.account-header-inner { display: flex; align-items: center; justify-content: space-between; }
.account-header h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
@media (min-width: 768px) { .account-header h1 { font-size: 1.875rem; } }
.account-header p { color: var(--muted-fg); }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; overflow-x: auto; padding-bottom: 0.5rem; }
.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 400;
}
.tab-btn:hover { border-color: var(--primary); }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; box-shadow: var(--shadow); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}
.card h2 { font-weight: 600; margin-bottom: 1.5rem; }
.card h2 i { color: var(--primary); }

/* Orders */
.order-card {
  background: #fff;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
@media (max-width: 639px) { .order-card { flex-direction: column; } }

.order-card .order-img { width: 112px; height: 112px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.order-card .order-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) { .order-card .order-img { width: 100%; height: 112px; } }

.order-card .order-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.order-card .order-name { font-weight: 600; }
.order-card .order-id { font-size: 0.85rem; color: var(--muted-fg); }

.order-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; font-size: 0.85rem; margin-top: 0.75rem; }
@media (max-width: 639px) { .order-meta { grid-template-columns: repeat(2, 1fr); } }
.order-meta .meta-label { color: var(--muted-fg); }
.order-meta .meta-val { font-weight: 500; }

.badge-status { font-size: 0.75rem; padding: 0.2rem 0.75rem; border-radius: 999px; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-completed { background: #dbeafe; color: #1e40af; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* Addresses */
.addresses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 639px) { .addresses-grid { grid-template-columns: 1fr; } }

.address-card {
  background: #fff;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}
.address-card .addr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.address-card .addr-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.address-card .addr-label i { color: var(--primary); }
.address-card .addr-text { color: var(--muted-fg); font-size: 0.9rem; padding-right: 1.5rem; }
.address-card .addr-delete { color: #fca5a5; cursor: pointer; transition: color 0.2s; background: none; border: none; }
.address-card .addr-delete:hover { color: var(--danger); }

/* Empty state */
.empty-state {
  background: #fff;
  padding: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  text-align: center;
}
.empty-state i { font-size: 3rem; color: rgba(100,116,139,0.3); margin-bottom: 1rem; }
.empty-state p { color: var(--muted-fg); font-size: 1.1rem; margin-bottom: 1rem; }

/* ── Checkout Page ────────────────────────── */
.checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}
@media (max-width: 1023px) { .checkout-grid { grid-template-columns: 1fr; } }

.order-summary {
  background: #fff;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 5rem;
}
@media (min-width: 640px) { .order-summary { padding: 1.5rem; } }
@media (min-width: 768px) { .order-summary { padding: 2rem; } }
.order-summary h2 { font-weight: 700; margin-bottom: 1.25rem; font-size: 1.125rem; }

.summary-product { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.summary-product img { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; }
.summary-product .sp-name { font-weight: 600; }
.summary-product .sp-cat { font-size: 0.85rem; color: var(--muted-fg); }

.summary-rows { border-top: 1px solid var(--border); padding-top: 1rem; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.75rem; }
.summary-row .sr-label { color: var(--muted-fg); display: flex; align-items: center; gap: 0.5rem; }
.summary-row .sr-val { font-weight: 500; }
.summary-row .sr-free { color: var(--success); font-weight: 600; }

.summary-total { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; display: flex; justify-content: space-between; }
.summary-total .st-label { font-weight: 700; }
.summary-total .st-val { color: var(--y-color-primary, #8B6914); font-size: 1.5rem; font-weight: 800; }

.guest-notice {
  background: var(--primary-5);
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}
.guest-notice a { color: var(--primary); font-weight: 600; }
.guest-notice a:hover { text-decoration: underline; }

/* React review card style: bg-gradient warm, rounded-xl, p-5 */
.user-info-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: linear-gradient(to left, #f5f0e8, #faf8f5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--y-color-border, #e2e8f0);
}
@media (max-width: 767px) { .user-info-display { grid-template-columns: 1fr; } }
.user-info-display .uinfo label { font-size: 0.85rem; color: var(--muted-fg); margin-bottom: 0.25rem; display: block; }
.user-info-display .uinfo p { font-weight: 600; }

/* Payment methods */
.payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.75rem;
}
.payment-option:hover { border-color: rgba(13,148,136,0.4); }
.payment-option.selected { border-color: var(--primary); background: var(--primary-5); }
.payment-option input[type="radio"] { accent-color: var(--primary); }

.payment-icon {
  width: 40px; height: 40px;
  background: var(--primary-10);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.payment-info .pi-name { font-weight: 600; }
.payment-info .pi-desc { font-size: 0.85rem; color: var(--muted-fg); }

.bank-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.bank-info .bi-title { color: #1e40af; font-weight: 600; margin-bottom: 0.5rem; }
.bank-info p { color: #1d4ed8; margin-bottom: 0.25rem; }

.card-form {
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 0.5rem;
}

/* Saved address selector */
.saved-addr-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}
.saved-addr-option:hover { border-color: rgba(13,148,136,0.4); }
.saved-addr-option.selected { border-color: var(--primary); background: var(--primary-5); }
.saved-addr-option input[type="radio"] { margin-top: 0.25rem; accent-color: var(--primary); }
.saved-addr-option .sa-label { font-weight: 600; }
.saved-addr-option .sa-text { font-size: 0.85rem; color: var(--muted-fg); }

/* ── Thank You Page ────────────────────────── */
.thankyou-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}
.thankyou-box { max-width: 500px; width: 100%; text-align: center; }

.thankyou-icon {
  width: 96px; height: 96px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--success);
  font-size: 3.5rem;
}

.thankyou-box h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .thankyou-box h1 { font-size: 1.875rem; } }
.thankyou-box .ty-desc { color: var(--muted-fg); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }

.order-receipt {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.order-receipt .receipt-row { display: flex; justify-content: space-between; }
.order-receipt .receipt-divider { border-top: 1px solid var(--border); margin: 0.75rem 0; }

.thankyou-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ── 404 Page ────────────────────────── */
.notfound-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}
.notfound-box { max-width: 500px; width: 100%; text-align: center; }

.notfound-icon {
  width: 96px; height: 96px;
  background: var(--primary-10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  font-size: 3rem;
}
.notfound-box .nf-code { font-size: 5rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; line-height: 1; }
@media (min-width: 768px) { .notfound-box .nf-code { font-size: 8rem; } }
.notfound-box h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.notfound-box p { color: var(--muted-fg); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }
.notfound-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ── Contact Page ────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 767px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.contact-info-card .ci-icon {
  width: 48px; height: 48px;
  background: var(--primary-10);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-info-card .ci-title { font-weight: 600; font-size: 0.9rem; }
.contact-info-card .ci-val { color: var(--muted-fg); font-size: 0.85rem; }

/* ── Policy Pages ────────────────────────── */
.policy-content {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}
.policy-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 1rem;
}
.policy-content p {
  color: var(--muted-fg);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.policy-content ul {
  padding-right: 1.5rem;
  margin-bottom: 1rem;
}
.policy-content ul li {
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
  list-style: disc;
  line-height: 1.7;
}
