/* The desktop Task 16/18 header remains intact. */
.site-header .eh35-toggle,
.site-header .eh35-menu { display: none; }

@media (max-width: 1024px) {
  html.eh35-open { overflow: hidden; overscroll-behavior: none; }
  html.eh35-open body { overflow: hidden; overscroll-behavior: none; }
  .site-header[data-eh18-header] {
    --eh35-bg: #192e25;
    --eh35-gold: #e7c788;
    --eh35-ink: #fffaf1;
  }
  .site-header[data-eh18-header] > .task16-menu { display: none !important; }
  .site-header[data-eh18-header] > .eh35-toggle {
    appearance: none; display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto; order: 3; gap: .42rem; min-height: 44px; min-width: 44px;
    padding: 0 .63rem; font: inherit; font-size: .875rem; font-weight: 650;
    border: 1px solid #a5a69e; border-radius: .42rem; background: #fff; color: var(--eh35-bg);
    cursor: pointer; white-space: nowrap; position: relative; z-index: 2;
  }
  .site-header[data-eh18-header] > .button.small {
    min-height: 44px; display: inline-flex; justify-content: center; align-items: center;
    padding: .45rem clamp(.48rem, 2.7vw, 1rem); font-size: .875rem;
  }
  .eh35-icon { display: inline-block; width: .88rem; height: .85rem; position: relative; }
  .eh35-icon::before, .eh35-icon::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
    transition: transform 180ms ease;
  }
  .eh35-icon::before { top: 32%; }
  .eh35-icon::after { top: 70%; }
  .eh35-open .site-header[data-eh18-header] {
    position: fixed; inset: 0 0 auto; z-index: 100; background: var(--eh35-bg);
    box-shadow: none;
  }
  .eh35-open .site-header[data-eh18-header] .brand {
    position: relative; z-index: 2; background: #fffaf1; border-radius: 5px;
  }
  .eh35-open .site-header[data-eh18-header] > .button.small {
    background: var(--eh35-gold); color: var(--eh35-bg); border-color: var(--eh35-gold);
    position: relative; z-index: 2;
  }
  .eh35-open .site-header[data-eh18-header] > .eh35-toggle {
    background: transparent; color: var(--eh35-ink); border-color: #f6f0e86b;
  }
  .eh35-open .eh35-icon::before { top: 50%; transform: rotate(45deg); }
  .eh35-open .eh35-icon::after { top: 50%; transform: rotate(-45deg); }
  .eh35-open .wa-float { visibility: hidden; pointer-events: none; }
  .eh35-open .site-header .tagline-bar { display: none; }
  .site-header nav.eh35-menu {
    display: block !important; position: absolute; z-index: 1; inset: 100% 0 auto; margin: 0;
    height: calc(100vh - var(--eh35-header-height, 64px));
    height: calc(100dvh - var(--eh35-header-height, 64px));
    padding: 0 max(1rem, env(safe-area-inset-left)) max(1.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
    background: rgb(25 46 37 / .92); color: var(--eh35-ink); box-sizing: border-box;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    overscroll-behavior: contain; overflow-x: hidden; overflow-y: auto;
    visibility: hidden; pointer-events: none; opacity: 0;
    transform: translateY(-1.4rem);
    transition: transform 300ms ease-out, opacity 250ms ease-out, visibility 0s 300ms;
  }
  .eh35-open .site-header nav.eh35-menu {
    visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0);
    transition: transform 300ms ease-out, opacity 250ms ease-out, visibility 0s;
  }
  .eh35-menu-inner { width: min(100%, 45rem); margin: 0 auto; padding: .725rem 0 .75rem; }
  /* Legacy mobile styles set white pill backgrounds and inline-block!important on
     every header link. Reset only the new dark menu's anchors. */
  .site-header nav.eh35-menu a {
    padding: 0; border: 0; border-radius: 0; background: transparent;
    color: inherit; white-space: normal; text-decoration: none; font-weight: inherit;
  }
  .site-header nav.eh35-menu a:hover { text-decoration: underline; text-underline-offset: .2em; }
  .site-header nav.eh35-menu :is(a,button):focus-visible,
  .eh35-open .site-header[data-eh18-header] > :is(a,button):focus-visible {
    outline: 2px solid var(--eh35-gold); outline-offset: -2px;
  }
  .eh35-group { border-bottom: 1px solid rgb(255 255 255 / .15); }
  .eh35-row { display: flex; align-items: stretch; min-width: 0; }
  .site-header nav.eh35-menu .eh35-row a {
    display: flex !important; flex: 1 1 auto; align-items: center; justify-content: space-between;
    min-width: 0; min-height: 52px; padding: .55rem .3rem; box-sizing: border-box;
    font-family: Manrope, Arial, sans-serif; font-size: clamp(1.625rem, 3vw, 1.75rem);
    line-height: 1; font-weight: 500;
  }
  .eh35-row button {
    appearance: none; flex: 0 0 52px; min-height: 44px; display: grid; place-items: center;
    border: 0; background: transparent; color: var(--eh35-gold); cursor: pointer;
  }
  .eh35-chev {
    display: inline-block; margin-right: .25rem; width: .5rem; height: .5rem;
    border-top: 1.5px solid var(--eh35-gold); border-right: 1.5px solid var(--eh35-gold);
    transform: rotate(45deg); transition: transform 230ms ease-out;
  }
  .eh35-row a .eh35-chev { margin-right: 1.15rem; }
  .eh35-row [aria-expanded="true"] .eh35-chev { transform: rotate(135deg); }
  .eh35-sub {
    display: grid; grid-template-rows: 0fr; opacity: 0; min-width: 0;
    transition: grid-template-rows 250ms ease-out, opacity 180ms ease-out;
  }
  .eh35-sub > div { min-height: 0; overflow: hidden; }
  .eh35-sub:not([inert]) { grid-template-rows: 1fr; opacity: 1; }
  .site-header nav.eh35-menu .eh35-all {
    display: flex !important; min-height: 44px; align-items: center; padding: 0 .3rem;
    font-size: .875rem; font-weight: 700; color: var(--eh35-gold);
  }
  .site-header nav.eh35-menu .eh35-product {
    display: grid !important; align-items: center; grid-template-columns: 48px minmax(0, 1fr) minmax(0, auto); gap: .55rem;
    min-height: 48px; padding: .2rem .3rem; box-sizing: border-box; font-size: .88rem;
    border-top: 1px solid rgb(255 255 255 / .10);
  }
  .eh35-product img, .eh35-empty {
    width: 48px; height: 36px; display: block; object-fit: cover; border-radius: .38rem;
    background: rgb(255 255 255 / .10);
  }
  .eh35-price { color: var(--eh35-gold); text-align: right; font-size: .76rem; line-height: 1.15; max-width: 9rem; }
  .eh35-contact { padding-top: 1rem; text-align: center; }
  .site-header nav.eh35-menu .eh35-wa {
    display: flex !important; justify-content: center; align-items: center; min-height: 48px; width: 100%;
    color: var(--eh35-bg); background: var(--eh35-gold); border-radius: .45rem; font-weight: 700;
  }
  .site-header nav.eh35-menu .eh35-email {
    display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px;
    font-size: .88rem; color: var(--eh35-ink);
  }
  .eh35-countries p { margin: .4rem 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
  .eh35-countries > div { display: flex; flex-wrap: wrap; gap: .35rem; }
  .site-header nav.eh35-menu .eh35-countries a {
    display: inline-flex !important; align-items: center; min-height: 44px; border-radius: 999px;
    padding: 0 .65rem; border: 1px solid #faf3e578; font-size: .77rem;
  }
}
@media (max-width: 380px) {
  .site-header[data-eh18-header] .brand-logo { max-width: min(38vw, 117px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header nav.eh35-menu, .site-header nav.eh35-menu *, .site-header .eh35-icon::before,
  .site-header .eh35-icon::after { transition: none; }
}

/* The old Task18 list covered mid-size widths up to 1199px. Show the original
   desktop links on a second row there rather than another white mobile panel. */
@media (min-width: 1025px) and (max-width: 1199px) {
  .site-header[data-eh18-header] { flex-wrap: wrap; }
  .site-header[data-eh18-header] > .task16-menu,
  .site-header[data-eh18-header] nav.task16-nav > .eh18-close-menu { display: none !important; }
  .site-header[data-eh18-header] nav.task16-nav {
    display: flex !important; position: relative; inset: auto; order: 4;
    justify-content: center; flex: 0 0 100%; flex-wrap: wrap; padding: .25rem 0 0;
    height: auto; max-height: none; overflow: visible; box-shadow: none;
    align-items: center; background: transparent;
  }
  .site-header[data-eh18-header] nav.task16-nav a,
  .site-header[data-eh18-header] nav.task16-nav summary { padding: .2rem; }
  .site-header[data-eh18-header] nav.task16-nav .task16-nav-group > div {
    position: absolute; inset: 100% auto auto 0; box-shadow: 0 5px 18px #0002;
    padding: .55rem; min-width: max-content; background: #fff;
  }
  .site-header[data-eh18-header] nav.task16-nav > .eh18-country-trigger { margin: 0; }
}
@media (max-width: 1024px) {
  .eh35-price .fx-price { align-items: flex-end; }
  .eh35-price .fx-price > .fx-estimate {
    width: auto; height: auto; line-height: 1.2; font-size: .7rem; white-space: normal;
  }
  .eh35-price .fx-estimate:empty { display: none; }
}
