/* ===== Profile Page ===== */

.profile-page {
  max-width: 1200px;
  margin: 0 auto;
}

.profile-header {
  margin-bottom: var(--space-lg);
}

.profile-header h1 {
  margin-bottom: var(--space-xs);
}

.profile-email {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* ===== Tab Navigation (matches admin tabs) ===== */

.profile-tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  /* Inset shadow, not a border: the bar scrolls sideways on narrow screens,
     and overflow would clip a tab underline that hangs over a real border. */
  box-shadow: inset 0 -2px 0 var(--color-border);
  overflow-x: auto;
}

.profile-tab {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}

.profile-tab:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.profile-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ===== Profile Content ===== */

.profile-content {
  /* Content inherits existing styles from wishlist/notifications */
}

/* ===== Account (devise/registrations/edit) ===== */

.account-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  background: var(--color-bg-card);
}

.account-section__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin: 0 0 var(--space-lg) 0;
}

.account-form {
  max-width: 360px;
}
