/* =================================================================== */
/* A. LOGIN & REGISTRATION PAGES                                       */
/* =================================================================== */
.account-page-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  min-height: 70vh;
  background-color: #f9fafb;
}

.account-form-container {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  padding: 2.5rem;
}

.account-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.account-form-header h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.account-form-header p {
  color: #6b7280;
  font-size: 1rem;
}

.centered-form .form-group {
  margin-bottom: 1.25rem;
}

.centered-form .form-row {
  display: flex;
  gap: 1rem;
}

.centered-form .form-row .form-group {
  flex: 1;
}

.centered-form .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #374151;
}

.centered-form .form-group input,
.centered-form .form-group select {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #f9fafb;
  transition: all 0.2s ease;
  font: inherit;
}

.centered-form .form-group input:focus,
.centered-form .form-group select:focus {
  outline: none;
  border-color: #111827;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
}

.select-wrapper::after {
  content: '▾';
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #9ca3af;
  pointer-events: none;
}

.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input {
  padding-right: 3rem;
}

.password-input-wrapper #password-toggle {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.15s;
}

.password-input-wrapper #password-toggle:hover {
  color: #111827;
}

.btn.btn-primary.btn-full {
  width: 100%;
  margin-top: 1rem;
  padding: 0.9rem;
  background-color: #000000;
  color: #fff;
  font-weight: 600;
  border: 2px solid #111827;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn.btn-primary.btn-full:hover {
  background-color: #1f2937;
  border-color: #1f2937;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.form-footer-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.form-footer-link a {
  color: #111827;
  font-weight: 600;
  text-decoration: underline;
}

.error-message {
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.2rem;
  margin-bottom: 1rem !important;
  background: #fef2f2;
  padding: 0.4rem;
  border-left: 3px solid #b91c1c;
  border-radius: 2px;
  display: block;
}

.error-message:empty {
  background: none;
  border: none;
  padding: 0;
}

/* Google Auth Button */
.google-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-auth-btn:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.google-auth-btn img {
  width: 18px;
  height: 18px;
}

/* Rendered Google button container — replaces custom button in JS */
.google-rendered-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  min-height: 44px;
  overflow: hidden;
}

/* Do NOT force-resize the iframe — Google's click handler is bound to its
   natural pixel dimensions. Stretching it breaks tap targets on mobile. */
.google-rendered-btn > div {
  border-radius: 6px;
  overflow: hidden;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #9ca3af;
  margin: 1.5rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.separator::before { margin-right: 0.75rem; }
.separator::after { margin-left: 0.75rem; }

/* =================================================================== */
/* B. ACCOUNT DASHBOARD PAGE                                           */
/* =================================================================== */
.account-page-section.new-account-layout {
  display: block;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  align-items: flex-start;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 2.5rem 2rem;
}

.new-account-layout .customer-area-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.new-account-layout .customer-area-header h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.new-account-layout .customer-area-header p {
  color: #6b7280;
  font-size: 1rem;
}

.new-account-layout .customer-area-nav {
  display: flex;
  gap: 0;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #e5e7eb;
}

.new-account-layout .nav-tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.new-account-layout .nav-tab:hover {
  color: #111827;
  background: #f9fafb;
}

.new-account-layout .nav-tab.active {
  color: #111827;
  border-bottom-color: #111827;
  background: transparent;
}

.new-account-layout .nav-tab i {
  font-size: 1rem;
  background-color: #f3f4f6;
  padding: 0.4rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.new-account-layout .nav-tab.active i {
  background-color: #e5e7eb;
  color: #111827;
}

.new-account-layout .account-details-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.new-account-layout .account-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.new-account-layout .address-card,
.new-account-layout .password-card {
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  min-height: 250px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.new-account-layout .address-card:hover,
.new-account-layout .password-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.new-account-layout .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.new-account-layout .card-header h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #374151;
}

.new-account-layout .change-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

.new-account-layout .change-link:hover {
  opacity: 0.65;
}

.new-account-layout .change-link i {
  margin-right: 0.25rem;
}

.new-account-layout .address-details p {
  margin: 0 0 0.5rem;
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.95rem;
}

.new-account-layout .shipping-address-options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.new-account-layout .password-field-display input {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #f9fafb;
  font: inherit;
  cursor: not-allowed;
  color: #9ca3af;
}

.new-account-layout #logout-btn.btn.btn-secondary {
  background-color: #f9fafb;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.new-account-layout #logout-btn.btn.btn-secondary:hover {
  background-color: #111827;
  color: #fff;
  border-color: #111827;
}

/* Address Form */
.address-form {
  margin-top: 1rem;
}

.address-form .form-group {
  margin-bottom: 1rem;
}

.address-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: #374151;
}

.address-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font: inherit;
  background: #f9fafb;
  transition: all 0.2s;
}

.address-form input:focus {
  outline: none;
  border-color: #111827;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.address-form .form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.address-form .form-actions .btn {
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.address-form .form-actions .btn-primary {
  background-color: #111827;
  color: #fff;
  border-color: #111827;
}

.address-form .form-actions .btn-primary:hover {
  background-color: #1f2937;
  border-color: #1f2937;
}

.address-form .form-actions .btn-secondary {
  background-color: #fff;
  color: #374151;
}

.address-form .form-actions .btn-secondary:hover {
  background-color: #f3f4f6;
}

.form-message {
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
  font-weight: 600;
  border-left: 3px solid;
  border-radius: 2px;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border-color: #155724;
}

.form-message.error {
  background-color: #fef2f2;
  color: #b91c1c;
  border-color: #b91c1c;
}

/* Tab panes */
.tab-pane.hidden { display: none; }
.tab-pane.active { display: block; }

/* Data Tables */
.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.data-table th {
  background-color: #111827;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table td {
  font-size: 0.95rem;
}

.status-chip {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.status-chip.shipped {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #a3d9a5;
}

.status-chip.processing {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-view {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.btn-view:hover {
  text-decoration: underline;
}
