/* ============================================================
   X SPOT BOUTIQUE — account-pages.css
   Styles for: Login/Register, Account dashboard, Order pages,
               Static content pages (About, Contact, Shipping etc.)
   Add after shop-pages.css in Site.Master.
   ============================================================ */

/* ─────────────────────────────────────────────
   AUTH (Login / Register)
   ───────────────────────────────────────────── */
.auth-layout {
  max-width: 480px;
  margin: 3rem auto 5rem;
  padding: 0 var(--page-pad);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  margin-bottom: 2rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.auth-tab:hover  { color: var(--text-secondary); }
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.auth-panel { display: flex; flex-direction: column; gap: 1.25rem; }

.auth-error {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.25);
  color: #f87171;
  padding: 0.75rem 1rem;
  font-size: 12px;
}

.auth-error a { color: #f87171; text-decoration: underline; }

.auth-success {
  background: rgba(125,189,138,0.08);
  border: 1px solid rgba(125,189,138,0.25);
  color: #7dbd8a;
  padding: 0.75rem 1rem;
  font-size: 12px;
}

.auth-success a { color: #7dbd8a; text-decoration: underline; }

.auth-submit-btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* ─────────────────────────────────────────────
   ACCOUNT LAYOUT
   ───────────────────────────────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 3rem auto 5rem;
  padding: 0 var(--page-pad);
  align-items: start;
}

.account-sidebar { position: sticky; top: calc(var(--nav-height) + 1rem); }

.account-nav { display: flex; flex-direction: column; gap: 2px; }

.account-nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.account-nav-link:hover   { color: var(--gold); }
.account-nav-link.active  { color: var(--gold); border-left-color: var(--gold); }
.account-nav-logout       { margin-top: 1rem; color: var(--text-muted); }
.account-nav-logout:hover { color: #f87171; }

.account-main { min-width: 0; }

/* Stats row */
.account-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.account-stat {
  background: var(--dark1);
  border: 1px solid rgba(201,168,76,0.1);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-stat-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--gold);
}

.account-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Account sections */
.account-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}

.account-section:last-child { border-bottom: none; }

.account-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.account-section-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-primary);
}

.account-section-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.account-empty {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.account-empty p { margin-bottom: 1rem; }

/* ─────────────────────────────────────────────
   ORDER TABLE (shared by account dashboard + orders list)
   ───────────────────────────────────────────── */
.order-table { font-size: 12px; }

.order-table-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 80px;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--dark2);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.order-table-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 80px;
  gap: 0.5rem;
  padding: 0.75rem;
  align-items: center;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  transition: background 0.15s;
}

.order-table-row:hover { background: rgba(201,168,76,0.03); }

.order-num   { color: var(--gold); font-weight: 500; text-decoration: none; }
.order-num:hover { text-decoration: underline; }
.order-date  { color: var(--text-secondary); }
.order-total { font-weight: 500; color: var(--text-primary); }
.order-view-link { color: var(--text-muted); font-size: 11px; text-decoration: none; text-align: right; }
.order-view-link:hover { color: var(--gold); }

/* Status badges */
.order-status { font-size: 11px; font-weight: 500; }
.status-paid    { color: #7dbd8a; }
.status-pending { color: #fbbf24; }
.status-other   { color: var(--text-muted); }

/* ─────────────────────────────────────────────
   ORDER DETAIL PAGE
   ───────────────────────────────────────────── */
.order-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--dark1);
  border: 1px solid rgba(201,168,76,0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  font-size: 12px;
}

.order-meta-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.order-items { font-size: 12px; }

.order-items-head {
  display: grid;
  grid-template-columns: 2fr 1fr 0.5fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--dark2);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.order-items-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.5fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem;
  align-items: center;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  color: var(--text-secondary);
}

.oi-name  { color: var(--text-primary); }
.oi-sku   { color: var(--text-muted); font-size: 11px; }
.oi-total { font-weight: 500; color: var(--text-primary); }

.order-totals {
  max-width: 280px;
  margin-left: auto;
  margin-bottom: 2rem;
  font-size: 13px;
}

.order-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(201,168,76,0.06);
}

.order-totals-grand {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: none;
  padding-top: 0.75rem;
}

.order-address {
  font-style: normal;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ─────────────────────────────────────────────
   STATIC CONTENT PAGES
   ───────────────────────────────────────────── */
.static-layout {
  max-width: var(--max-width);
  margin: 3rem auto 5rem;
  padding: 0 var(--page-pad);
}

.static-layout--contact {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: start;
}

.static-content { max-width: 720px; }
.static-content--legal { max-width: 680px; }

.static-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}

.static-section:last-child { border-bottom: none; }

.static-section h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.static-section p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 0.75rem;
}

.static-section p:last-child { margin-bottom: 0; }

.static-section a { color: var(--gold); text-decoration: none; }
.static-section a:hover { text-decoration: underline; }

.static-lead {
  font-family: var(--serif);
  font-size: 1.2rem !important;
  font-weight: 300;
  color: var(--text-primary) !important;
  line-height: 1.7 !important;
}

.static-note {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  font-style: italic;
}

.static-ul, .static-list {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.9;
  padding-left: 1.25rem;
}

.static-ul  { list-style: disc; }
.static-list { list-style: decimal; }
.static-ul li, .static-list li { margin-bottom: 0.35rem; }

/* About pillars */
.static-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.static-pillar {
  background: var(--dark1);
  border: 1px solid rgba(201,168,76,0.1);
  padding: 1.5rem;
}

.pillar-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.static-pillar h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.static-pillar p {
  font-size: 12px !important;
  margin: 0 !important;
}

.static-cta { text-align: center; padding: 2rem; background: var(--dark1); border: 1px solid rgba(201,168,76,0.1); }
.static-cta h2 { text-align: center; }
.static-cta p  { max-width: 480px; margin: 0.75rem auto 1.5rem; }

/* Info table (shipping rates) */
.info-table { font-size: 13px; margin: 1rem 0; }

.info-table-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--dark2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  color: var(--text-secondary);
}

.info-table-highlight { background: rgba(201,168,76,0.05); color: var(--text-primary); }

/* Contact info sidebar */
.contact-info { padding-top: 0.5rem; }

.contact-info h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.contact-info > p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-size: 13px;
}

.contact-icon { font-size: 1.2rem; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.contact-detail strong { display: block; color: var(--text-primary); margin-bottom: 2px; font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-detail a, .contact-detail span { color: var(--text-secondary); text-decoration: none; }
.contact-detail a:hover { color: var(--gold); }

.contact-form-wrap { min-width: 0; }

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .order-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .static-pillars  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .account-layout         { grid-template-columns: 1fr; }
  .account-sidebar        { position: static; }
  .account-nav            { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .account-nav-link       { border-left: none; border-bottom: 2px solid transparent; padding: 6px 10px; }
  .account-nav-link.active { border-bottom-color: var(--gold); border-left: none; }
  .account-stats          { grid-template-columns: 1fr 1fr; }
  .order-table-head, .order-table-row { grid-template-columns: 1.5fr 1fr 1fr 80px; }
  .order-table-head span:nth-child(3),
  .order-table-row  span:nth-child(3),
  .order-table-row  a:nth-child(3)    { display: none; }
  .order-meta-grid        { grid-template-columns: 1fr 1fr; }
  .order-items-head, .order-items-row { grid-template-columns: 2fr 1fr 1fr; }
  .order-items-head span:nth-child(2),
  .order-items-row  .oi-sku,
  .order-items-head span:nth-child(3),
  .order-items-row  .oi-qty            { display: none; }
  .static-layout--contact { grid-template-columns: 1fr; }
  .static-pillars         { grid-template-columns: 1fr; }
  .info-table-head, .info-table-row { grid-template-columns: 1fr 1fr; }
  .info-table-head span:nth-child(3),
  .info-table-row  span:nth-child(3) { display: none; }
}

@media (max-width: 480px) {
  .account-stats { grid-template-columns: 1fr; }
  .order-table-head, .order-table-row { grid-template-columns: 1fr 1fr 80px; }
  .order-table-head span:nth-child(2),
  .order-table-row  .order-status { display: none; }
}
