/* Vista Zanzibar V17 — visually-reviewed header controls + always-visible mobile language switch */
:root{
  --v17-navy:#07264b;
  --v17-navy-deep:#03172e;
  --v17-gold:#b88732;
  --v17-gold-bright:#d9a63c;
  --v17-paper:#fffdf9;
  --v17-line:#e5dbc8;
  --v17-muted:#52657a;
  --v17-control-shadow:0 7px 22px rgba(3,23,46,.10);
}

/* One visual rhythm for every header action. */
.vista-v3-public .v3-nav-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:9px!important;
  flex:0 0 auto!important;
}

/* Header search: compact premium field, never a heavy dark block. */
.vista-v3-public .v3-header-search,
body.vista-home-v11 .v3-header-search,
body.vista-home-v11 .v3-header.v11-header-scrolled .v3-header-search{
  display:flex!important;
  align-items:center!important;
  width:clamp(205px,15vw,245px)!important;
  min-width:205px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0 5px 0 13px!important;
  margin:0!important;
  border:1px solid rgba(184,135,50,.52)!important;
  border-radius:14px!important;
  background:rgba(255,253,249,.98)!important;
  box-shadow:var(--v17-control-shadow)!important;
  overflow:hidden!important;
}
.vista-v3-public .v3-header-search input,
body.vista-home-v11 .v3-header-search input,
body.vista-home-v11 .v3-header.v11-header-scrolled .v3-header-search input{
  width:100%!important;
  min-width:0!important;
  height:40px!important;
  padding:0 8px 0 0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:var(--v17-navy-deep)!important;
  -webkit-text-fill-color:var(--v17-navy-deep)!important;
  caret-color:var(--v17-gold)!important;
  font:700 13px/1.2 Inter,Arial,sans-serif!important;
  letter-spacing:0!important;
  opacity:1!important;
}
.vista-v3-public .v3-header-search input::placeholder,
body.vista-home-v11 .v3-header-search input::placeholder,
body.vista-home-v11 .v3-header.v11-header-scrolled .v3-header-search input::placeholder{
  color:#354b63!important;
  -webkit-text-fill-color:#354b63!important;
  opacity:1!important;
  font-weight:700!important;
}
.vista-v3-public .v3-header-search button,
body.vista-home-v11 .v3-header-search button{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:var(--v17-gold)!important;
}
.vista-v3-public .v3-header-search button:hover{background:rgba(217,166,60,.10)!important}
.vista-v3-public .v3-header-search button svg,
body.vista-home-v11 .v3-header-search button svg,
body.vista-home-v11 .v3-header.v11-header-scrolled .v3-header-search button svg{
  width:18px!important;
  height:18px!important;
  stroke:var(--v17-gold)!important;
  stroke-width:1.9!important;
}

/* Cart, language and menu share the same control scale. */
.vista-v3-public .v3-cart-link{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border:1px solid rgba(7,38,75,.16)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:var(--v17-navy)!important;
  box-shadow:var(--v17-control-shadow)!important;
}
.vista-v3-public .v3-cart-link svg{stroke:var(--v17-navy)!important}
.vista-v3-public .v3-cart-link:hover{border-color:var(--v17-gold)!important;background:#fffdf9!important;transform:translateY(-1px)}

.vista-v3-public .language-control{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  visibility:visible!important;
  opacity:1!important;
}
.vista-v3-public .language-control::after{
  content:"";
  position:absolute;
  right:11px;
  top:50%;
  width:6px;
  height:6px;
  margin-top:-5px;
  border-right:2px solid var(--v17-navy);
  border-bottom:2px solid var(--v17-navy);
  transform:rotate(45deg);
  pointer-events:none;
  z-index:2;
}
.vista-v3-public .language-select,
body.vista-home-v11 .language-select,
body.vista-home-v11 .v3-header.v11-header-scrolled .language-select{
  display:block!important;
  -webkit-appearance:none!important;
  appearance:none!important;
  width:72px!important;
  min-width:72px!important;
  height:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0 24px 0 13px!important;
  border:1px solid rgba(7,38,75,.16)!important;
  border-radius:14px!important;
  background-color:#fff!important;
  color:var(--v17-navy-deep)!important;
  -webkit-text-fill-color:var(--v17-navy-deep)!important;
  box-shadow:var(--v17-control-shadow)!important;
  font:800 13px/1 Inter,Arial,sans-serif!important;
  opacity:1!important;
  visibility:visible!important;
}
.vista-v3-public .language-select option{background:#fff!important;color:var(--v17-navy-deep)!important}

.vista-v3-public .v3-menu-toggle{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border:1px solid rgba(7,38,75,.16)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:var(--v17-navy)!important;
  box-shadow:var(--v17-control-shadow)!important;
}
.vista-v3-public .v3-menu-toggle svg{stroke:var(--v17-navy)!important}

/* Keep controls visually consistent even while the homepage header overlays media. */
body.vista-home-v11 .v3-cart-link,
body.vista-home-v11 .language-select,
body.vista-home-v11 .v3-menu-toggle{
  background:rgba(255,253,249,.98)!important;
  color:var(--v17-navy-deep)!important;
  border-color:rgba(184,135,50,.38)!important;
}
body.vista-home-v11 .v3-cart-link svg,
body.vista-home-v11 .v3-menu-toggle svg{stroke:var(--v17-navy)!important}

/* Tablet: remove the long search field, preserve the customer controls. */
@media(max-width:980px){
  .vista-v3-public .v3-header-search,
  body.vista-home-v11 .v3-header-search{
    display:none!important;
  }
  .vista-v3-public .language-control{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
  }
  .vista-v3-public .language-select,
  body.vista-home-v11 .language-select{
    display:block!important;
    width:66px!important;
    min-width:66px!important;
    height:40px!important;
    min-height:40px!important;
    padding:0 22px 0 11px!important;
    font-size:12px!important;
    visibility:visible!important;
    opacity:1!important;
  }
  .vista-v3-public .v3-cart-link,
  .vista-v3-public .v3-menu-toggle{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
  }
  .vista-v3-public .v3-nav-actions{gap:7px!important}
}

/* Phone: language stays visible; never inherit older display:none rules. */
@media(max-width:720px){
  .vista-v3-public .language-control{display:flex!important}
  .vista-v3-public .language-select,
  body.vista-home-v11 .language-select{
    display:block!important;
    width:64px!important;
    min-width:64px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 21px 0 10px!important;
    border-radius:12px!important;
    font-size:12px!important;
  }
  .vista-v3-public .v3-cart-link,
  .vista-v3-public .v3-menu-toggle{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    border-radius:12px!important;
  }
  .vista-v3-public .v3-nav-actions{gap:6px!important}
}

@media(max-width:390px){
  .vista-v3-public .language-select,
  body.vista-home-v11 .language-select{width:62px!important;min-width:62px!important;padding-left:9px!important;padding-right:20px!important}
  .vista-v3-public .v3-nav-actions{gap:5px!important}
}
