/* Account pages — extends site styles.css */

.account-page {
  --account-ink: #2e2e2e;
  --account-ink-soft: #5a5a5a;
  --account-border: #dcdcdc;
  --account-border-focus: #a8a8a8;
  --account-surface: #f6f6f6;
  --account-submit: #000000;
  --account-submit-hover: #000;
  background: #fff;
}

.account-page .logo-section {
  padding: 36px 16px 14px;
}

.account-page .bottom-nav {
  padding-bottom: 12px;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 460px);
  gap: clamp(32px, 6vw, 80px);
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px) clamp(48px, 6vw, 64px);
  align-items: start;
}

.account-aside {
  padding-top: 8px;
  color: #000;
}

.account-aside__eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 900;
  font-stretch: expanded;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 24px;
}

.account-aside__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 900;
  font-stretch: expanded;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 24px;
}

.account-aside__lead {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
  max-width: 34ch;
  margin-bottom: 32px;
  letter-spacing: -0.3px;
}

.account-aside__list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.account-aside__list li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.25px;
  color: #000;
}

.account-aside__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #000;
}

.account-card {
  background: #fff;
  border: 1px solid var(--account-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  padding: clamp(28px, 4vw, 40px);
}

.account-card__head {
  margin-bottom: 28px;
}

.account-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 900;
  font-stretch: expanded;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--account-ink);
  margin-bottom: 10px;
}

.account-card__subtitle {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--account-ink-soft);
  letter-spacing: -0.25px;
}

.account-form {
  display: grid;
  gap: 18px;
}

.account-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.account-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  font-stretch: expanded;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--account-ink-soft);
  margin-bottom: 8px;
}

.account-field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.account-field__label-row label {
  margin-bottom: 0;
}

.account-field--password > label {
  display: none;
}

.account-forgot {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.15px;
  text-transform: none;
  white-space: nowrap;
}

.account-text-link,
.account-switch a {
  display: inline;
  text-decoration: none;
  color: #000;
  font-weight: 700;
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.3s var(--underline-ease), color 0.2s var(--ease);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.account-text-link:hover,
.account-text-link:focus-visible,
.account-switch a:hover,
.account-switch a:focus-visible {
  color: #000;
  background-size: 100% 1px;
}

.account-success {
  padding: 16px 18px;
  background: #f4faf4;
  border: 1px solid #c8e6c9;
  font-size: 14px;
  line-height: 1.45;
  color: #2e5e32;
  letter-spacing: -0.15px;
}

.account-success[hidden] {
  display: none !important;
}

.account-success:not([hidden]) {
  display: block;
}

.account-form[hidden] {
  display: none !important;
}

.account-field input {
  width: 100%;
  border: 1px solid var(--account-border);
  background: #fff;
  padding: 15px 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--account-ink);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.account-field input::placeholder {
  color: #aaa;
}

.account-field input:focus {
  border-color: var(--account-border-focus);
  background: var(--account-surface);
}

.account-password-wrap {
  position: relative;
}

.account-password-wrap input {
  padding-right: 48px;
}

.account-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  padding: 0;
  color: #000;
  cursor: pointer;
}

.account-password-toggle__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.account-password-toggle:hover .account-password-toggle__icon,
.account-password-toggle:focus-visible .account-password-toggle__icon {
  transform: scale(1.12);
  opacity: 0.72;
}

.account-password-toggle__icon--hide {
  display: none;
}

.account-password-toggle.is-revealed .account-password-toggle__icon--show {
  display: none;
}

.account-password-toggle.is-revealed .account-password-toggle__icon--hide {
  display: block;
}

.account-field-hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--account-ink-soft);
  letter-spacing: -0.15px;
  margin-top: -6px;
}

.account-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  color: #000;
  cursor: pointer;
}

.account-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 1.5px solid #000;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.account-consent input[type="checkbox"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #000;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s var(--ease);
}

.account-consent input[type="checkbox"]:checked {
  background: #fff;
  border-color: #000;
}

.account-consent input[type="checkbox"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

.account-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.account-error {
  font-size: 13px;
  font-weight: 600;
  color: #9b2c2c;
  line-height: 1.35;
  padding: 8px 10px;
  background: #fdf6f6;
  border: 1px solid #e8c4c4;
  margin: 0 0 8px;
}

.account-error[hidden] {
  display: none !important;
}

.account-error:not([hidden]) {
  display: block;
}

.account-submit {
  margin-top: 4px;
  min-height: 54px;
  width: 100%;
  box-sizing: border-box;
  background: var(--account-submit);
  color: #fff;
  border: 1px solid var(--account-submit);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  font-stretch: expanded;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
}

.account-submit:hover:not(:disabled):not(.is-loading),
.account-submit:focus-visible:not(:disabled):not(.is-loading) {
  background: var(--account-submit);
}

.account-error .login-resend-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0 0 1px;
  margin-left: 4px;
  font: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  vertical-align: baseline;
}

.account-error .login-resend-link:hover:not(:disabled):not(.is-loading),
.account-error .login-resend-link:focus-visible:not(:disabled):not(.is-loading) {
  opacity: 0.72;
}

.account-error .login-resend-link.is-loading {
  cursor: wait;
  opacity: 0.65;
  pointer-events: none;
}

.account-submit.is-loading,
.account-inline-link.is-loading {
  cursor: wait;
  opacity: 0.88;
  pointer-events: none;
}

.account-submit.is-loading::before,
.account-inline-link.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: account-btn-spin 0.7s linear infinite;
}

@keyframes account-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.account-verify-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.account-verify-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: #000;
  border-radius: 50%;
  flex-shrink: 0;
  animation: account-btn-spin 0.7s linear infinite;
}

.account-switch {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--account-border);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--account-ink-soft);
}

.account-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #888;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.account-auth-divider::before,
.account-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}
.account-google-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}
.account-google-btn:hover:not(:disabled) {
  background: #fafafa;
}
.account-google-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.account-google-complete {
  margin-top: 8px;
}

.account-google-complete__identity {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #171717;
}

.account-google-complete__lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #444;
}

.account-shell:has(.account-card--dashboard) {
  grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.4fr);
  max-width: 1240px;
}

.account-card--dashboard {
  padding: 0;
  overflow: hidden;
}

.account-dashboard {
  display: grid;
  gap: 0;
}

.account-dashboard__header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 32px);
  border-bottom: 1px solid var(--account-border);
}

.account-dashboard__header-main {
  flex: 1;
  min-width: 0;
}

.account-dashboard__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--account-border);
  background: #fafafa;
}

.account-dashboard__tab {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid var(--account-border);
  background: transparent;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  font-stretch: expanded;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--account-ink-soft);
  cursor: pointer;
}

.account-dashboard__tab:last-child {
  border-right: 0;
}

.account-dashboard__tab.is-active {
  color: #000;
  background: #fff;
  box-shadow: inset 0 -2px 0 #000;
}

.account-dashboard__panels {
  padding: clamp(24px, 4vw, 32px);
  transition: min-height 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.account-panel {
  display: none;
  gap: 20px;
  opacity: 1;
}

.account-panel.is-active {
  display: grid;
}

.account-panel.is-fading-out {
  opacity: 0;
  transition: opacity 0.16s cubic-bezier(0.4, 0, 1, 1);
}

.account-panel.is-fading-in {
  animation: account-panel-fade-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes account-panel-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.account-panel__title {
  font-family: var(--font-heading);
  font-size: calc(1.15rem - 2px) !important;
  font-weight: 900;
  font-stretch: expanded;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #000;
}

.account-panel__copy {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.25px;
  color: var(--account-ink-soft);
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.account-stat {
  border: 1px solid var(--account-border);
  padding: 16px;
  background: #fff;
}

.account-stat__label {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 800;
  font-stretch: expanded;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--account-ink-soft);
  margin-bottom: 8px;
}

.account-stat__value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  font-stretch: expanded;
  letter-spacing: -0.04em;
  color: #000;
}

.account-quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.account-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #000;
  background: #000;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.25px;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.account-quick-link:hover,
.account-quick-link:focus-visible {
  opacity: 1;
}

.account-quick-link * {
  pointer-events: none;
}

button.account-quick-link {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.account-quick-link__arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.account-profile-grid {
  display: grid;
  gap: 14px;
}

.account-profile-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--account-border);
}

.account-profile-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-profile-row dt {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  font-stretch: expanded;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--account-ink-soft);
}

.account-profile-row dd {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: #000;
  letter-spacing: -0.25px;
}

.account-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: auto;
  box-sizing: border-box;
  padding: 0 18px;
  border: 1px solid #000;
  background: #000;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  font-stretch: expanded;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

button.account-inline-link {
  width: 100%;
}

button.account-inline-link:hover:not(:disabled):not(.is-loading),
a.account-inline-link:hover,
button.account-inline-link:focus-visible:not(:disabled):not(.is-loading),
a.account-inline-link:focus-visible {
  opacity: 0.88;
}

.account-order-list,
.account-saved-list {
  display: grid;
  gap: 14px;
}

.account-order-card,
.account-saved-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--account-border);
}

.account-saved-card__main {
  min-width: 0;
}

.account-saved-card__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: end;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #000;
  background: #000;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  font-stretch: expanded;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}

.account-saved-card__view:hover,
.account-saved-card__view:focus-visible {
  opacity: 0.88;
}

.account-order-card__main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.account-order-card__meta--total {
  font-weight: 600;
  color: #000;
}

.account-order-card__thumb,
.account-saved-card__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: var(--account-surface);
}

.account-order-card__thumb--empty {
  display: block;
}

.account-order-card__title,
.account-saved-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.25px;
  margin-bottom: 4px;
}

.account-order-card__meta,
.account-saved-card__meta {
  font-size: 13px;
  color: var(--account-ink-soft);
  letter-spacing: -0.15px;
}

.account-order-card__status {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  font-stretch: expanded;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
  justify-self: end;
  align-self: center;
  text-align: right;
}

.account-empty {
  padding: 28px 20px;
  border: 1px dashed var(--account-border);
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.account-empty__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  font-stretch: expanded;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #000;
}

.account-empty__text {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--account-ink-soft);
  max-width: 36ch;
  line-height: 1.45;
}

.account-wholesale-form {
  display: grid;
  gap: 14px;
  max-width: 100%;
}

.account-wholesale-form textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--account-border);
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.25px;
  color: #000;
  resize: vertical;
  outline: none;
}

.account-wholesale-form textarea:focus {
  border-color: var(--account-border-focus);
  background: var(--account-surface);
}

.account-dashboard__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(24px, 4vw, 32px) clamp(24px, 4vw, 32px);
}

.account-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--account-submit);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
  text-transform: uppercase;
}

.account-dashboard__label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  font-stretch: expanded;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--account-ink-soft);
  margin-bottom: 6px;
}

.account-dashboard__name {
  font-family: var(--font-heading);
  font-size: clamp(calc(1.35rem - 2px), 3vw, calc(1.65rem - 2px)) !important;
  font-weight: 900;
  font-stretch: expanded;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 6px;
}

.account-dashboard__email {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--account-ink-soft);
}

.account-logout {
  min-height: 52px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #000;
  background: #000;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  font-stretch: expanded;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.account-logout:hover:not(:disabled) {
  opacity: 0.88;
}

.account-page .menu-list a {
  text-decoration: none;
}

.account-page .sx-footer {
  margin-top: 0;
}

.account-page .account-link-line,
.account-page .sx-list a,
.account-page .menu-footer a,
.account-page .cart-footer__note a {
  position: relative;
  text-decoration: none;
  color: #000;
  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: 0 calc(100% + 1px);
  background-size: 0 1px;
  transition: background-size 0.3s var(--underline-ease), color 0.2s var(--ease);
}

.account-page .account-quick-link[href] {
  position: relative;
  text-decoration: none;
  color: #fff;
  background-image: none;
}

.account-page .account-quick-link:hover,
.account-page .account-quick-link:focus-visible,
.account-page .account-quick-link[href]:hover,
.account-page .account-quick-link[href]:focus-visible,
.account-page .account-submit:hover:not(:disabled):not(.is-loading),
.account-page .account-submit:focus-visible:not(:disabled):not(.is-loading),
.account-page .account-logout:hover:not(:disabled),
.account-page .account-logout:focus-visible:not(:disabled),
.account-page .account-cart-banner__btn:hover:not(:disabled),
.account-page .account-cart-banner__btn:focus-visible:not(:disabled),
.account-page button.account-inline-link:hover:not(:disabled):not(.is-loading),
.account-page button.account-inline-link:focus-visible:not(:disabled):not(.is-loading) {
  opacity: 1;
  background: var(--account-submit, #000);
  color: #fff;
}

.account-page .account-quick-link:hover,
.account-page .account-quick-link:focus-visible,
.account-page .account-quick-link[href]:hover,
.account-page .account-quick-link[href]:focus-visible {
  background: #000;
  color: #fff;
}

.account-page .account-logout:hover:not(:disabled),
.account-page .account-logout:focus-visible:not(:disabled) {
  background: transparent;
  color: #000;
}

.account-page .account-link-line:hover,
.account-page .account-link-line:focus-visible,
.account-page .sx-list a:hover,
.account-page .sx-list a:focus-visible,
.account-page .menu-footer a:hover,
.account-page .menu-footer a:focus-visible,
.account-page .cart-footer__note a:hover,
.account-page .cart-footer__note a:focus-visible {
  color: #000;
  background-size: 100% 1px;
}

.account-page .sx-footer .sx-list a,
.account-page .sx-footer a.sx-seam-line {
  color: rgba(255, 255, 255, 0.92);
  background-image: linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 0.5px;
  padding-bottom: 2px;
  line-height: 1.35;
}

.account-page .sx-footer .sx-meta,
.account-page .sx-footer .sx-meta-gap,
.account-page .sx-footer .sx-note,
.account-page .sx-footer .sx-col-heading,
.account-page .sx-footer .sx-footer-about p {
  color: rgba(255, 255, 255, 0.92);
}

.account-page .sx-footer .sx-list a:hover,
.account-page .sx-footer .sx-list a:focus-visible,
.account-page .sx-footer a.sx-seam-line:hover,
.account-page .sx-footer a.sx-seam-line:focus-visible {
  color: #fff;
  opacity: 1;
  background-size: 100% 0.5px;
}

.account-page .header-links a {
  background-image: linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-position: 0 calc(100% + 1px);
  background-size: 0 1px;
  transition: background-size 0.3s var(--underline-ease);
}

.account-page .header-links a:hover,
.account-page .header-links a:focus-visible {
  background-size: 100% 1px;
}

.account-cart-banner {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--account-border);
  border-radius: 10px;
  background: var(--account-surface);
}

.account-cart-banner__title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--account-ink);
}

.account-cart-banner__text {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--account-ink-soft);
  line-height: 1.45;
}

.account-cart-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  padding: 10px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--account-submit);
  color: #fff;
  transition: opacity 0.2s var(--ease);
}

.account-cart-banner__btn:hover:not(:disabled) {
  opacity: 0.88;
}

/* —— Mobile / tablet —— */
@media (max-width: 900px) {
  .account-page .logo-section {
    padding: 24px 12px 8px;
  }

  .account-page .bottom-nav {
    padding-bottom: 6px;
  }

  .account-shell,
  .account-shell:has(.account-card--dashboard) {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 16px;
    padding: 16px 12px 28px;
  }

  .account-aside {
    display: none;
  }

  .account-card {
    padding: 16px 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  }

  .account-card--dashboard {
    padding: 0;
  }

  .account-card__head {
    margin-bottom: 14px;
  }

  .account-card__title {
    font-size: 1.2rem;
    margin-bottom: 4px;
    letter-spacing: -0.04em;
  }

  .account-card__subtitle {
    font-size: 12px;
    line-height: 1.35;
  }

  .account-form {
    gap: 12px;
  }

  .account-field-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-field label {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .account-field__label-row {
    margin-bottom: 6px;
  }

  .account-forgot {
    font-size: 11px;
  }

  .account-field input,
  .account-wholesale-form textarea {
    padding: 11px 12px;
    font-size: 16px; /* keep 16px to avoid iOS zoom */
  }

  .account-password-wrap input {
    padding-right: 44px;
  }

  .account-consent {
    font-size: 11px;
    gap: 8px;
    line-height: 1.35;
  }

  .account-submit,
  .account-logout {
    min-height: 44px;
    font-size: 11px;
  }

  .account-switch {
    margin-top: 14px;
    padding-top: 14px;
    font-size: 12px;
  }

  .account-error,
  .account-success,
  .account-verify-loading {
    font-size: 12px;
    line-height: 1.35;
  }

  /* Dashboard */
  .account-dashboard__header {
    flex-wrap: nowrap;
    padding: 14px 12px;
    gap: 12px;
  }

  .account-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .account-dashboard__label {
    font-size: 8px;
    margin-bottom: 3px;
  }

  .account-dashboard__name {
    font-size: calc(1.35rem - 2px) !important;
    margin-bottom: 2px;
  }

  .account-dashboard__email {
    font-size: 12px;
    word-break: break-word;
    line-height: 1.3;
  }

  .account-dashboard__nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .account-dashboard__nav::-webkit-scrollbar {
    display: none;
  }

  .account-dashboard__tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 8px 6px;
    font-size: 8px;
    letter-spacing: 0.05em;
  }

  .account-dashboard__panels {
    padding: 14px 12px;
  }

  .account-panel {
    gap: 12px;
  }

  .account-panel__title {
    font-size: calc(1.15rem - 2px) !important;
  }

  .account-panel__copy {
    font-size: 12px;
    line-height: 1.35;
  }

  .account-stat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .account-stat {
    padding: 10px 8px;
  }

  .account-stat__label {
    font-size: 7px;
    margin-bottom: 4px;
    letter-spacing: 0.06em;
  }

  .account-stat__value {
    font-size: 0.95rem;
  }

  .account-quick-links {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .account-quick-link {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .account-quick-link__arrow {
    width: 14px;
    height: 14px;
  }

  .account-cart-banner {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 6px;
  }

  .account-cart-banner__title {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .account-cart-banner__text {
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.35;
  }

  .account-cart-banner__btn {
    padding: 9px 14px;
    font-size: 12px;
  }

  .account-order-list,
  .account-saved-list {
    gap: 10px;
  }

  .account-order-card,
  .account-saved-card {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 10px 12px;
  }

  .account-order-card__thumb,
  .account-saved-card__thumb {
    width: 48px;
    height: 48px;
  }

  .account-order-card__title,
  .account-saved-card__title {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .account-order-card__meta,
  .account-saved-card__meta {
    font-size: 11px;
  }

  .account-order-card__status {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    font-size: 8px;
  }

  .account-saved-card__view {
    min-height: 32px;
    padding: 0 10px;
    font-size: 9px;
  }

  .account-profile-grid {
    gap: 10px;
  }

  .account-profile-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-bottom: 10px;
  }

  .account-profile-row dt {
    font-size: 9px;
  }

  .account-profile-row dd {
    font-size: 13px;
  }

  .account-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .account-profile-actions .account-inline-link {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    padding: 0 10px;
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .account-empty .account-inline-link {
    width: auto;
    min-width: min(100%, 180px);
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    font-size: 10px;
  }

  .account-empty {
    padding: 16px 12px;
    gap: 8px;
  }

  .account-empty__title {
    font-size: 0.8rem;
  }

  .account-empty__text {
    font-size: 12px;
    line-height: 1.35;
  }

  .account-wholesale-form {
    gap: 12px;
  }

  .account-dashboard__footer {
    padding: 0 12px 14px;
    flex-direction: column;
    gap: 8px;
  }

  .account-dashboard__footer .account-inline-link,
  .account-dashboard__footer .account-logout {
    width: 100%;
    justify-content: center;
  }

  .account-page .sx-footer {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 480px) {
  .account-shell,
  .account-shell:has(.account-card--dashboard) {
    padding: 12px 10px 24px;
    gap: 12px;
  }

  .account-card {
    padding: 14px 12px;
  }

  .account-card__title {
    font-size: 1.1rem;
  }

  .account-stat-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .account-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
  }

  .account-stat__label {
    margin-bottom: 0;
  }

  .account-stat__value {
    font-size: 0.9rem;
  }

  .account-quick-links {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .account-quick-link {
    min-height: 40px;
    padding: 10px 10px;
    font-size: 11px;
    gap: 8px;
  }

  .account-dashboard__tab {
    min-height: 38px;
    font-size: 7.5px;
    padding: 8px 4px;
  }

  .account-field__label-row {
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .account-forgot {
    white-space: normal;
  }
}
