/* ==========================================================================
   MY ACCOUNT (login / register / dashboard / orders / addresses / profile)
   Ported exactly from bashi-jewelry html/{login,register,account}.html's
   shared inline <style> block.
   ========================================================================== */

/* ── Auth pages (login/register) ─────────────────────────────────────── */
.auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; background: var(--color-bg); padding: 40px 16px; }
.auth-card { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-md); }
.auth-card__logo { text-align: center; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--color-charcoal); margin-bottom: 6px; }
.auth-card__logo span { color: var(--color-gold); }
.auth-card__tagline { text-align: center; font-size: 12px; color: var(--color-text-muted); margin-bottom: 28px; }
.auth-card__title { font-size: 20px; font-weight: 700; color: var(--color-charcoal); margin-bottom: 22px; text-align: center; }

/* Reset wp-overrides.css's generic .woocommerce-form-login/-register box
   styling — .auth-card is now the sole card wrapper on this page, so the
   form itself must lay out plainly inside it (no nested border/shadow). */
.auth-card .woocommerce-form-login,
.auth-card .woocommerce-form-register {
  max-width: none;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.auth-card .form-row { margin-bottom: 16px; }
.auth-card label,
.woocommerce-form-login label,
.woocommerce-form-register label { display: block; font-size: 12px; font-weight: 600; color: var(--color-charcoal); margin-bottom: 6px; }
.auth-card input.input-text,
.woocommerce-form-login input.input-text,
.woocommerce-form-register input.input-text { width: 100%; padding: 11px 14px; border: 1.5px solid var(--color-border); border-radius: 8px; font-size: 14px; font-family: var(--font-primary); }
.auth-card input.input-text:focus,
.woocommerce-form-login input.input-text:focus,
.woocommerce-form-register input.input-text:focus { outline: none; border-color: var(--color-gold); }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.auth-divider span { font-size: 12px; color: var(--color-text-muted); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--color-text-muted); }
.auth-footer a { color: var(--color-gold); font-weight: 600; }
.auth-lost-password { display: block; text-align: right; margin-top: 6px; font-size: 12px; }
.auth-lost-password a { color: var(--color-gold); }
.auth-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text); margin: 4px 0 16px; cursor: pointer; }
.auth-remember input { accent-color: var(--color-gold); }
.auth-terms { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; cursor: pointer; font-size: 13px; color: var(--color-text); }
.auth-terms input { margin-top: 2px; accent-color: var(--color-gold); }
.auth-terms a { color: var(--color-gold); }

/* ── Account dashboard ────────────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 32px 0 56px; }
.account-sidebar { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; height: fit-content; }
.account-sidebar__user { padding: 20px; border-bottom: 1px solid var(--color-border); }
.account-sidebar__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--color-gold); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.account-sidebar__name { font-size: 14px; font-weight: 700; color: var(--color-charcoal); }
.account-sidebar__email { font-size: 12px; color: var(--color-text-muted); }

.woocommerce-MyAccount-navigation-link--wishlist a { display: flex; align-items: center; gap: 10px; padding: 13px 18px; font-size: 13px; font-weight: 500; color: var(--color-text); text-decoration: none; border-left: 3px solid transparent; transition: all 0.15s; }
.woocommerce-MyAccount-navigation-link--wishlist a:hover { color: var(--color-gold); border-left-color: var(--color-gold); background: var(--color-gold-bg); }
.woocommerce-MyAccount-navigation li a svg { flex-shrink: 0; }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: #F44336; margin-top: 8px; border-top: 1px solid var(--color-border); }
.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #FFF5F5; border-left-color: #F44336; }

.account-content { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 24px; }
.account-section__title { font-size: 18px; font-weight: 700; color: var(--color-charcoal); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--color-border); }

.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 8px; padding: 16px; text-align: center; }
.stat-card__num { font-size: 28px; font-weight: 700; color: var(--color-charcoal); }
.stat-card__label { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }

.account-subtitle { font-size: 15px; font-weight: 700; color: var(--color-charcoal); margin-bottom: 14px; }

.order-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.order-row:last-child { border-bottom: none; }
.order-row__info { flex: 1; min-width: 0; }
.order-row__name { font-size: 13px; font-weight: 600; color: var(--color-charcoal); }
.order-row__meta { font-size: 12px; color: var(--color-text-muted); }
.order-row__price { font-size: 13px; font-weight: 700; color: var(--color-charcoal); }
.order-row__link { color: inherit; text-decoration: none; }
.order-empty { font-size: 13px; color: var(--color-text-muted); padding: 8px 0; }

.order-status { padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.order-status--delivered { background: #E8F5E9; color: #2E7D32; }
.order-status--processing { background: #FFF3E0; color: #E65100; }
.order-status--cancelled { background: #FFEBEE; color: #C62828; }

.address-card { border: 1.5px solid var(--color-gold); border-radius: 8px; padding: 16px; max-width: 340px; position: relative; }
.address-card__badge { position: absolute; top: 10px; right: 10px; font-size: 10px; background: var(--color-gold-bg); color: var(--color-gold); padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.address-card__name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.address-card__lines { font-size: 13px; color: var(--color-text); line-height: 1.7; }
.address-card__phone { font-size: 13px; color: var(--color-text-muted); margin-top: 6px; }

.account-profile-form { max-width: 400px; }
.account-profile-form .form-group { margin-bottom: 14px; }
.account-profile-form label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 6px; color: var(--color-charcoal); }
.account-profile-form input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--color-border); border-radius: 6px; font-size: 14px; font-family: var(--font-primary); }
.account-profile-form input:focus { outline: none; border-color: var(--color-gold); }

@media (max-width: 768px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-stats { grid-template-columns: 1fr; }
}
