.lang-switch {
  position: relative;
}

.lang-switch__button {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.4rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: var(--fs-nav);
  letter-spacing: 0.12em;
  cursor: pointer;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  inset-inline-end: 0;
  min-width: 10.5rem;
  padding: 0.35rem 0;
  background: var(--fashion-surface);
  border: 1px solid var(--fashion-border);
  border-radius: var(--fashion-radius-md);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
  z-index: 30;
}

.lang-switch__form { margin: 0; }

.lang-switch__option {
  display: block;
  width: 100%;
  padding: 0.45rem 0.85rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
}

.lang-switch__option.is-current { font-weight: 600; }

.lang-switch__option:hover { background: var(--fashion-accent-soft); }

.mobile-language {
  padding-top: 0.5rem;
}

.mobile-language .lang-switch__menu {
  position: static;
  box-shadow: none;
  border: 0;
  min-width: 0;
}

html[dir="rtl"] .fashion-btn,
html[dir="rtl"] .nav-link,
html[dir="rtl"] .fashion-caption,
html[lang="zh-CN"] .fashion-btn,
html[lang="zh-CN"] .nav-link,
html[lang="zh-CN"] .fashion-caption,
html[lang="ja"] .fashion-btn,
html[lang="ja"] .nav-link,
html[lang="ja"] .fashion-caption {
  text-transform: none;
  letter-spacing: 0.02em;
}

html[lang="zh-CN"] body.storefront {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

html[lang="ja"] body.storefront {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

html[lang="ar"] body.storefront {
  font-family: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Tahoma", "Noto Naskh Arabic", Arial, sans-serif;
}

html[lang="zh-CN"] .fashion-display,
html[lang="zh-CN"] .fashion-heading,
html[lang="zh-CN"] .wordmark,
html[lang="ja"] .fashion-display,
html[lang="ja"] .fashion-heading,
html[lang="ja"] .wordmark,
html[lang="ar"] .fashion-display,
html[lang="ar"] .fashion-heading {
  font-family: inherit;
  letter-spacing: 0;
}

html[lang="ar"] .wordmark {
  letter-spacing: 0.18em;
}

html[dir="rtl"] .form-errors ul {
  padding-inline-start: 1.1rem;
  padding-left: 0;
}

.bag-badge {
  inset-inline-end: 0.05rem;
  right: auto;
}

.fashion-btn,
.nav-link,
.size-chip {
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .fashion-btn { white-space: normal; text-align: center; }
}
