/* Compact footer language control (desktop/tablet). Explore drawer + utility strip. */

/* Top utility bar: Foot Locker-style text language control (native name, no globe). */
#vzh-lux .lux-utility .veze-locale--utility,
#vzh-lux .lux-utility .veze-locale[data-veze-locale-placement="utility"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  flex: none;
  z-index: 5;
}
#vzh-lux .lux-utility .veze-locale--utility .veze-locale-toggle,
#vzh-lux .lux-utility .veze-locale[data-veze-locale-placement="utility"] .veze-locale-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
}
#vzh-lux .lux-utility .veze-locale--utility .veze-locale-globe,
#vzh-lux .lux-utility .veze-locale--utility .veze-locale-code,
#vzh-lux .lux-utility .veze-locale[data-veze-locale-placement="utility"] .veze-locale-globe,
#vzh-lux .lux-utility .veze-locale[data-veze-locale-placement="utility"] .veze-locale-code {
  display: none !important;
}
#vzh-lux .lux-utility .veze-locale--utility .veze-locale-native,
#vzh-lux .lux-utility .veze-locale[data-veze-locale-placement="utility"] .veze-locale-native {
  font: inherit;
  color: inherit;
}
#vzh-lux .lux-utility .veze-locale--utility .veze-locale-menu,
#vzh-lux .lux-utility .veze-locale[data-veze-locale-placement="utility"] .veze-locale-menu {
  inset-block-end: auto;
  inset-block-start: calc(100% + 0.35rem);
  inset-inline-start: 0;
  inset-inline-end: auto;
  min-inline-size: 8rem;
}

/* The Default toolbar places its switcher at the inline-end edge. */
#vzh-lux .veze-reference-toolbar .lux-utility .veze-locale[data-veze-locale-placement="utility"] .veze-locale-menu {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

/* Legacy desktop header globe beside wishlist (kept hidden; utility strip replaced it) */
#vzh-lux .lux-actions .veze-locale[data-veze-locale-placement="header"],
.veze-nav-actions .veze-locale[data-veze-locale-placement="header"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  z-index: 4;
}
#vzh-lux .lux-actions .veze-locale[data-veze-locale-placement="header"] .veze-locale-toggle,
.veze-nav-actions .veze-locale[data-veze-locale-placement="header"] .veze-locale-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}
#vzh-lux .lux-actions .veze-locale[data-veze-locale-placement="header"] .veze-locale-code,
#vzh-lux .lux-actions .veze-locale[data-veze-locale-placement="header"] .veze-locale-caret,
.veze-nav-actions .veze-locale[data-veze-locale-placement="header"] .veze-locale-code,
.veze-nav-actions .veze-locale[data-veze-locale-placement="header"] .veze-locale-caret {
  display: none !important;
}
#vzh-lux .lux-actions .veze-locale[data-veze-locale-placement="header"] .veze-locale-globe,
.veze-nav-actions .veze-locale[data-veze-locale-placement="header"] .veze-locale-globe {
  width: 20px;
  height: 20px;
  opacity: 0.92;
}
#vzh-lux .lux-actions .veze-locale[data-veze-locale-placement="header"] .veze-locale-menu,
.veze-nav-actions .veze-locale[data-veze-locale-placement="header"] .veze-locale-menu {
  inset-block-end: auto;
  inset-block-start: calc(100% + 0.35rem);
  inset-inline-end: 0;
  min-inline-size: 3.75rem;
}
@media (max-width: 900px) {
  #vzh-lux .lux-actions .veze-locale[data-veze-locale-placement="header"],
  .veze-nav-actions .veze-locale[data-veze-locale-placement="header"] {
    display: none !important;
  }
}

/* Explore menu header: Explore | 🌐 EN | ✕ — mobile drawer only */
#vzh-lux [data-panel="menu"] .lux-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  column-gap: 12px;
}
#vzh-lux [data-panel="menu"] .lux-panel-head > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#vzh-lux [data-panel="menu"] .lux-panel-head .veze-locale--compact {
  margin-inline-start: 0;
  justify-self: end;
  z-index: 3;
}
#vzh-lux [data-panel="menu"] .lux-panel-head .veze-locale--compact .veze-locale-toggle {
  gap: 0;
  min-height: 1.75rem;
  min-width: 1.75rem;
  padding: 0.2rem;
  justify-content: center;
}
#vzh-lux [data-panel="menu"] .lux-panel-head .veze-locale--compact .veze-locale-code,
#vzh-lux [data-panel="menu"] .lux-panel-head .veze-locale--compact .veze-locale-caret {
  display: none !important;
}
#vzh-lux [data-panel="menu"] .lux-panel-head .veze-locale--compact .veze-locale-globe {
  width: 13px;
  height: 13px;
  opacity: 0.75;
}
#vzh-lux [data-panel="menu"] .lux-panel-head .veze-locale--compact .veze-locale-menu {
  inset-block-end: auto;
  inset-block-start: calc(100% + 0.35rem);
  inset-inline-end: 0;
  min-inline-size: 3.75rem;
}
@media (min-width: 901px) {
  #vzh-lux [data-panel="menu"] .lux-panel-head .veze-locale--compact {
    display: none !important;
  }
}

/* Daily language chooser */
.veze-lang-daily {
  border: 0;
  padding: 0;
  max-width: min(22rem, calc(100vw - 2rem));
  background: transparent;
  color: inherit;
}
.veze-lang-daily::backdrop {
  background: #14231b99;
  backdrop-filter: blur(2px);
}
.veze-lang-daily-panel {
  box-sizing: border-box;
  width: min(22rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.25rem 1.15rem 1rem;
  border: 1px solid var(--vz-border, #e4e0d8);
  border-radius: var(--vz-radius-lg, 14px);
  background: var(--vz-surface, #fff);
  box-shadow: 0 18px 48px #0000002e;
  color: var(--vz-ink, #1a1a1a);
  font-family: var(--veze-locale-body, var(--vz-font, system-ui, sans-serif));
}
.veze-lang-daily-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.veze-lang-daily-panel > p {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--vz-muted, #6d675f);
}
.veze-lang-daily-list {
  display: grid;
  gap: 0.35rem;
}
.veze-lang-daily-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--vz-border, #e8e4dc);
  border-radius: var(--vz-radius, 10px);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.veze-lang-daily-option:hover,
.veze-lang-daily-option:focus-visible {
  border-color: var(--vz-primary, #354f43);
  outline: none;
}
.veze-lang-daily-option[aria-selected="true"] {
  border-color: var(--vz-primary, #354f43);
  background: color-mix(in srgb, var(--vz-primary, #354f43) 8%, #fff);
}
.veze-lang-daily-code {
  flex: none;
  min-width: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.veze-lang-daily-name {
  font-size: 0.95rem;
  font-weight: 500;
}

.veze-locale {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 30;
  margin-inline-start: auto;
}

.veze-locale-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.2rem 0.15rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  min-height: 2rem;
}

.veze-locale-toggle:hover {
  color: var(--gold, #967c5e);
}

.veze-locale-toggle:focus-visible {
  outline: 2px solid var(--gold, #967c5e);
  outline-offset: 3px;
}

.veze-locale-globe {
  flex: 0 0 auto;
  opacity: 0.85;
}

.veze-locale-code {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.veze-locale-caret {
  font-size: 0.7em;
  opacity: 0.65;
  margin-inline-start: 0.05rem;
}

.veze-locale-toggle[aria-expanded="true"] .veze-locale-caret {
  transform: rotate(180deg);
}

.veze-locale-menu {
  position: absolute;
  inset-block-end: calc(100% + 0.35rem);
  inset-inline-end: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  min-inline-size: 4.5rem;
  max-inline-size: min(12rem, 80vw);
  max-block-size: min(50vh, 16rem);
  overflow: auto;
  border-radius: 0.4rem;
  border: 1px solid #e4e0d8;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 10px 24px #00000014;
  z-index: 80;
}

.veze-locale-menu[hidden] {
  display: none !important;
}

.veze-locale-menu [role="option"] {
  display: block;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 0.3rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  color: #2a2a2a;
}

.veze-locale-menu [role="option"]:hover,
.veze-locale-menu [role="option"]:focus-visible {
  background: #f3f1ec;
  outline: none;
}

.veze-locale-menu [role="option"][aria-selected="true"] {
  background: #eceae4;
}

#veze-lux-footer .vf-legal {
  position: relative;
  overflow: visible;
  align-items: center;
  z-index: 5;
}

#veze-lux-footer .veze-locale,
.veze-site-footer .veze-locale {
  color: var(--muted, #737c75);
}

html.veze-rtl .veze-locale-menu {
  inset-inline-end: auto;
  inset-inline-start: 0;
}

@media (max-width: 1024px) {
  #veze-lux-footer .vf-legal .veze-locale {
    align-self: flex-start;
    /* Keep clear of fixed floating cart on the inline-start edge */
    margin-inline-start: max(0px, calc(64px + env(safe-area-inset-left, 0px)));
  }

  .veze-locale-toggle {
    min-height: 2.25rem;
    font-size: 12px;
  }

  .veze-locale-menu {
    inset-inline-end: auto;
    inset-inline-start: 0;
  }

  html.veze-rtl #veze-lux-footer .vf-legal .veze-locale {
    margin-inline-start: 0;
    margin-inline-end: max(0px, calc(64px + env(safe-area-inset-right, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .veze-locale-caret {
    transition: none;
  }
}

/* ——— Locale typography + layout fit (load after CMS/storefront) ——— */

html[data-veze-locale="ar"] {
  --veze-locale-body: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Arial", sans-serif;
  --veze-locale-display: "Segoe UI", Tahoma, "Traditional Arabic", "Times New Roman", serif;
  --veze-locale-tracking: 0;
  --veze-locale-leading: 1.55;
}

/* Daily language dialog must use fonts that cover Arabic/Latin accents. */
.veze-lang-daily,
.veze-lang-daily-panel,
.veze-lang-daily-option,
.veze-lang-daily-name {
  font-family: var(--veze-locale-body, "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif);
}

html[data-veze-locale="fr"],
html[data-veze-locale="de"],
html[data-veze-locale="es"] {
  --veze-locale-body: var(--vcms-body-font, var(--vz-font, system-ui, sans-serif));
  --veze-locale-display: var(--vcms-heading-font, var(--vz-heading-font, Georgia, serif));
  --veze-locale-tracking: normal;
  --veze-locale-leading: 1.45;
}

html[data-veze-locale="en"] {
  --veze-locale-body: var(--vcms-body-font, var(--vz-font, system-ui, sans-serif));
  --veze-locale-display: var(--vcms-heading-font, var(--vz-heading-font, Georgia, serif));
  --veze-locale-tracking: normal;
  --veze-locale-leading: 1.4;
}

html.veze-rtl :is(
  body,
  #vzh-lux,
  #veze-lux-footer,
  .veze-cms-part,
  .veze-ui,
  section.veze,
  .veze-contact-page,
  .vz-trusted
) {
  font-family: var(--veze-locale-body);
  line-height: var(--veze-locale-leading, 1.55);
  letter-spacing: var(--veze-locale-tracking, 0);
}

html.veze-rtl :is(
  #vzh-lux .lux-logo,
  #vzh-lux .lux-nav,
  #vzh-lux .vcms-brand-text,
  #veze-luxury-hero :is(h1, h2, h1 em, h2 em),
  #veze-about-atelier h2,
  #veze-na-watch h2,
  .vcat-head h2,
  .vcat-kicker,
  .vz-trusted h2,
  .veze-contact-hero h1,
  .veze-contact-main h2,
  .veze-contact-main h3,
  .veze-about-page h1,
  .veze-about-mission h2,
  .veze-about-promise h2,
  .vor-headline,
  .vor-review-heading,
  #vzbs-lux-26 .vzbs-title
) {
  font-family: var(--veze-locale-display);
  letter-spacing: 0;
  line-height: 1.35;
}

/* Keep translated titles inside their frames */
html[data-veze-locale]:not([data-veze-locale="en"]) :is(
  [data-vcms-text],
  .vcat-kicker,
  .vcat-head h2,
  .vcat-intro,
  .vlh-content :is(h1, h2, p, .vlh-eyebrow),
  .vz-trusted-intro :is(h2, p),
  .veze-contact-hero :is(h1, p),
  .veze-contact-card :is(h2, p),
  .veze-contact-main :is(h2, h3, p),
  .veze-contact-map :is(h2, p),
  .veze-about-page :is(h1, h2, h3, p),
  .veze-heading,
  .lux-promo,
  .lux-nav > a > span,
  .lux-nav > button > span
) {
  overflow-wrap: anywhere;
  word-break: normal;
  max-inline-size: 100%;
  text-wrap: pretty;
}

html[data-veze-locale]:not([data-veze-locale="en"]) :is(
  .vcat-head,
  .vlh-content,
  .vz-trusted-intro,
  .veze-contact-wrap,
  .vor-copy
) {
  min-inline-size: 0;
  max-inline-size: 100%;
}

html.veze-rtl :is(.vcat-kicker, .lux-promo, .vlh-eyebrow, .vnew-kicker) {
  letter-spacing: 0.04em;
  text-transform: none;
}

html.veze-rtl :is(.vlh-content :is(h1, h2), .vcat-head h2, #veze-about-atelier h2) {
  font-size: clamp(1.75rem, 4.2vw, 3.75rem);
}

/* Directional chrome: flip chevrons / arrows in RTL — never flip header bar icons */
html.veze-rtl :is(
  .vlh-button > span[aria-hidden],
  .vcat-all > span[aria-hidden],
  .vcat-arrow svg,
  .vza-button svg,
  .vnew-prev svg,
  .vnew-next svg,
  .vsvc-prev svg,
  .vsvc-next svg,
  .vor-prev svg,
  .vor-next svg,
  .lux-menu a > span:last-child
) {
  transform: scaleX(-1);
}
/* Header icon positions stay LTR on mobile and desktop; only copy language changes */
#vzh-lux {
  direction: ltr;
}
#vzh-lux .lux-header,
#vzh-lux .lux-main,
#vzh-lux .lux-actions,
#vzh-lux .lux-nav,
#vzh-lux .veze-header-zone {
  direction: ltr;
}
html.veze-rtl #vzh-lux .lux-header :is(svg, [data-vcms-icon] svg),
html.veze-rtl #vzh-lux .lux-actions :is(svg, [data-vcms-icon] svg),
html.veze-rtl #vzh-lux .veze-header-zone :is(svg, [data-vcms-icon] svg),
html.veze-rtl #vzh-lux .lux-mobile :is(svg, [data-vcms-icon] svg) {
  transform: none !important;
}

html.veze-rtl .vlh-button:hover > span[aria-hidden] {
  transform: scaleX(-1) translate(3px, -3px);
}

html.veze-rtl .vza-button:hover svg {
  transform: scaleX(-1) translateX(5px);
}

/* Hero / panels: physical left-right → logical for RTL */
html.veze-rtl #veze-luxury-hero .vlh-content {
  margin-left: 0;
  margin-right: 0;
  margin-inline-start: clamp(25px, 7vw, 130px);
  margin-inline-end: auto;
  width: min(690px, 66%);
  max-width: calc(100% - clamp(40px, 8vw, 160px));
}

html.veze-rtl #veze-luxury-hero .vlh-side-note {
  right: auto;
  left: 28px;
  writing-mode: vertical-lr;
}

/* Keep mobile/drawer panel anchored like LTR so header chrome does not mirror */
html.veze-rtl #vzh-lux .lux-panel {
  right: 0;
  left: auto;
  box-shadow: -15px 0 50px #0002;
}

/* Best-sellers arrows: keep inset-inline seats; mirror glyph + outward nudge. */
html.veze-rtl #vzbs-lux-26 .vzbs-prev {
  transform: translate(calc(var(--vz-dir, -1) * -35%), -50%) scaleX(-1);
}
html.veze-rtl #vzbs-lux-26 .vzbs-next {
  transform: translate(calc(var(--vz-dir, -1) * 35%), -50%) scaleX(-1);
}

html.veze-rtl #veze-services .vsvc-prev svg,
html.veze-rtl #veze-services .vsvc-next svg,
html.veze-rtl #veze-na-watch .vnew-prev svg,
html.veze-rtl #veze-na-watch .vnew-next svg {
  transform: scaleX(-1);
}

html.veze-rtl .vcat-carousel,
html.veze-rtl .vcat-track,
html.veze-rtl .veze-related-track,
html.veze-rtl .veze-recent-track,
html.veze-rtl .veze.veze-layout-carousel .veze-grid,
html.veze-rtl .vor-slider {
  direction: rtl;
}

html.veze-rtl .veze-related-heading nav svg,
html.veze-rtl .veze-carousel-controls button,
html.veze-rtl .veze-gallery-nav svg,
html.veze-rtl .veze-card-next-image {
  transform: scaleX(-1);
}

html.veze-rtl .veze-card-image-gallery .veze-card-next-image {
  right: auto;
  inset-inline-end: 8px;
}

html.veze-rtl .vz-trusted-logos {
  direction: rtl;
}

/* Reset conflicting physical transforms from the generic arrow rule for inset-inline controls */
html.veze-rtl :is(.vcat-prev, .vcat-next, .vsvc-prev, .vsvc-next) {
  /* positions stay inset-inline; glyph flip handled on svg above / generic rule */
}

/* French / German / Spanish: slightly tighter display tracking, wrap safely */
html[data-veze-locale="fr"] :is(.vlh-content :is(h1, h2), .vcat-head h2),
html[data-veze-locale="de"] :is(.vlh-content :is(h1, h2), .vcat-head h2),
html[data-veze-locale="es"] :is(.vlh-content :is(h1, h2), .vcat-head h2) {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (max-width: 767px) {
  html.veze-rtl #veze-luxury-hero .vlh-content {
    width: min(100%, calc(100% - 32px));
    margin-inline: 16px;
    max-width: 100%;
  }

  html.veze-rtl :is(.vlh-content :is(h1, h2), .vcat-head h2) {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }
}

/* ——— Viewport fit: prevent horizontal overflow after locale / RTL switch ——— */
html {
  max-width: 100%;
  overflow-x: clip;
}
body {
  max-width: 100%;
  overflow-x: clip;
  overflow-wrap: anywhere;
}
#vzh-lux,
#veze-lux-footer,
.veze-cms-part,
section.veze,
.veze-storefront-shell,
.veze-site-main {
  max-width: 100%;
  min-width: 0;
}
#vzh-lux .lux-logo {
  width: auto;
  max-width: 100%;
  min-width: 0;
}
#vzh-lux .lux-main {
  max-width: 100%;
  min-width: 0;
}
#veze-luxury-hero,
#veze-luxury-hero .vlh-slider,
#veze-luxury-hero .vlh-slide {
  max-width: 100%;
  overflow-x: clip;
}
html.veze-rtl #veze-luxury-hero .vlh-content {
  width: min(690px, calc(100% - clamp(40px, 8vw, 160px)));
  box-sizing: border-box;
}
#vzbs-lux-26,
#veze-services,
#veze-na-watch,
#veze-offer-stories,
.vcat-carousel {
  max-width: 100%;
  overflow-x: clip;
}
#vzbs-lux-26 .vzbs-inner,
#veze-services .vsvc-inner,
#veze-na-watch .vnew-inner {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* Keep absolute carousel arrows inside their section (root overflow cause on mobile RTL) */
#vzbs-lux-26 .vzbs-arrow {
  max-inline-size: 40px;
}
html[data-veze-locale] .veze-grid,
html[data-veze-locale] .veze-card,
html[data-veze-locale] .veze-product-card {
  min-width: 0;
  max-width: 100%;
}
/* Prefer % over 100vw for panels that sit in the document flow */
#vzh-lux .lux-panel {
  width: min(430px, 100%);
  max-width: 100vw;
}
#vzh-lux .lux-wide {
  width: min(670px, 100%);
  max-width: 100vw;
}

@media (prefers-reduced-motion: reduce) {
  html.veze-rtl .vlh-button:hover > span[aria-hidden],
  html.veze-rtl .vza-button:hover svg {
    transform: scaleX(-1);
  }
}
