/* Keep the switch visible outside the mobile menu in both languages. */
.language-switch { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; margin-left: auto; font-size: .75rem; }
.language-switch a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text-muted); }
.language-switch a[aria-current] { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .3em; }
.nav-inner { gap: 1.25rem; }
.featured-card, .product-card { min-width: 0; }
.discovery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[lang="es"] .discovery-item { flex-wrap: wrap; }
html[lang="es"] .discovery-item-info { flex-basis: 5rem; }
html[lang="es"] .discovery-item-price { margin-left: auto; }
html[lang="es"] .btn { white-space: normal; height: auto; line-height: 1.5; text-align: center; }
html[lang="es"] :is(.hero-text, .split-text, .featured-card-body, .product-card-body, .product-detail-content, .contact-info, .checkout-main, .checkout-summary-panel, .finder-match-body) { min-width: 0; }
html[lang="es"] :is(h1, h2, h3, .btn, .text-link, .nav-link) { overflow-wrap: anywhere; }
html[lang="es"] .hero-heading { font-size: clamp(3rem, 5vw, 5.2rem); }
html[lang="es"] .nav-links { gap: 1.25rem; }
html[lang="es"] .nav-link { letter-spacing: .04em; }
html[lang="es"] .size-options { flex-wrap: wrap; }
html[lang="es"] .discovery-summary { flex-wrap: wrap; }
html[lang="es"] :is(.ship-method-info, .checkout-order-name, .checkout-order-meta) { min-width: 0; overflow-wrap: anywhere; }
html[lang="es"] .collection-refinements select { width: 100%; min-width: 0; }
@media (min-width: 769px) and (max-width: 1150px) {
  #nav { height: auto; min-height: var(--nav-height); }
  .nav-inner { flex-wrap: wrap; padding-block: .5rem; gap: .25rem 1rem; }
  .nav-links { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .nav-inner { gap: .55rem; padding-inline: 1rem; }
  .language-switch { font-size: .6875rem; gap: .25rem; }
  .nav-cart-mobile { margin-left: 0; }
  html[lang="es"] .hero-heading { font-size: clamp(2.65rem, 10vw, 4rem); }
  html[lang="es"] :is(.mobile-purchase-bar, .mobile-discovery-bar) .btn { padding-inline: .75rem; }
  html[lang="es"] .checkout-total-row { gap: .75rem; }
  html[lang="es"] .subscribe-field { flex-wrap: wrap; }
  html[lang="es"] .subscribe-input { min-width: 0; }
}
@media (max-width: 480px) {
  .discovery-list { grid-template-columns: minmax(0, 1fr); }
  #featuredGrid { grid-template-columns: minmax(0, 1fr); }
  .related-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .nav-inner { gap: .35rem; padding-inline: .75rem; }
  .logo-main { font-size: .875rem; }
  .logo-sub { font-size: .5625rem; letter-spacing: .18em; }
  .language-switch { font-size: .625rem; }
}
@media (max-width: 350px) {
  .nav-logo { flex-direction: column; gap: .15rem; align-items: center; }
  .logo-divider { display: none; }
}
