/* Eva+Avo header — Figma Navbar 625:18127 (glass) / 630:11067 (solid),
   Mega Menu 630:11181, Search Bar 634:18410. */

.eva-header-section { display: contents; }

eva-header {
  --eva-h-fg: var(--eva-bosque);
  --eva-h-bg: var(--eva-crema);
  display: block;
  position: relative;
  z-index: 60;
}
.eva-header--sticky { position: sticky; top: 0; }

/* Glass header over the homepage hero: occupies no layout height. */
.eva-header--overlay { height: 0; }
.eva-header--overlay .eva-header__bar { position: absolute; inset: 0 0 auto; }

.eva-header__bar {
  position: relative;
  background: var(--eva-h-bg);
  color: var(--eva-h-fg);
  transition: background-color 0.3s var(--eva-ease), color 0.3s var(--eva-ease), box-shadow 0.3s var(--eva-ease);
}
.eva-header--overlay:not(.is-solid) .eva-header__bar {
  --eva-h-fg: #fff;
  background: rgba(169, 173, 165, 0.35);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 32px rgba(98, 75, 190, 0.1), 0 1px 4px rgba(0, 0, 0, 0.05);
}
.eva-header--overlay:not(.is-solid) .eva-locale__summary { color: var(--eva-crema); }
eva-header.is-scrolled:not(.eva-header--overlay) .eva-header__bar,
eva-header.is-solid.is-scrolled .eva-header__bar {
  box-shadow: 0 1px 0 rgba(43, 70, 51, 0.08);
}

.eva-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--eva-header-h);
  max-width: var(--eva-page);
  margin-inline: auto;
  padding-inline: var(--eva-gutter);
  gap: 24px;
}

/* --- Nav ------------------------------------------------------------- */
.eva-header__nav { justify-self: start; min-width: 0; }
.eva-header__menu { display: flex; align-items: center; gap: clamp(18px, 1.77vw, 34px); }
.eva-header a.eva-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--eva-header-h);
  color: var(--eva-h-fg);
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: var(--eva-fs-nav);
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}
.eva-header a.eva-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--eva-ease);
}
.eva-header a.eva-header__link:hover::after,
.eva-header a.eva-header__link[aria-expanded="true"]::after,
.eva-header a.eva-header__link[aria-current="page"]::after { transform: scaleX(1); }

/* --- Logo ------------------------------------------------------------ */
.eva-header__logo { margin: 0; font-size: inherit; line-height: 0; justify-self: center; }
.eva-header a.eva-header__brand { display: inline-flex; color: var(--eva-h-fg); }
.eva-logo { display: inline-flex; align-items: center; gap: 4px; }
/* Logo height from the header setting (--eva-logo-h); widths keep the SVG ratios. */
.eva-header .eva-logo__mark { width: auto; height: var(--eva-logo-h, 32px); aspect-ratio: 39 / 40; flex: none; }
.eva-header .eva-logo__word { width: auto; height: calc(var(--eva-logo-h, 32px) * 0.985); aspect-ratio: 246 / 39.41; flex: none; }

/* --- Actions --------------------------------------------------------- */
.eva-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 2.083vw, 40px);
  justify-self: end;
}
.eva-header__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--eva-h-fg);
  cursor: pointer;
}
.eva-header a.eva-header__icon { color: var(--eva-h-fg); }
.eva-header__icon svg { display: block; }
.eva-header__icon:hover { opacity: 0.7; }
.eva-header__burger { display: none; }

.eva-header__cart theme-cart-bubble,
theme-cart-bubble.eva-header__cart { display: inline-flex; align-items: center; justify-content: center; }
.eva-header__cart .cart-bubble__count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--eva-h-fg);
  color: var(--eva-crema);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
}
.eva-header--overlay:not(.is-solid) .eva-header__cart .cart-bubble__count { color: var(--eva-bosque); }
.eva-header__cart .cart-bubble__count:empty { display: none; }

/* Locale dropdown */
.eva-locale { position: relative; }
.eva-locale__details { position: relative; }
.eva-locale__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  color: var(--eva-h-fg);
  font-size: var(--eva-fs-eyebrow);
  line-height: 30px;
  letter-spacing: 0.05em;
}
.eva-locale__summary::-webkit-details-marker { display: none; }
.eva-locale__chev { transition: transform 0.25s var(--eva-ease); }
.eva-locale__details[open] .eva-locale__chev { transform: rotate(180deg); }
.eva-locale__list {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 160px;
  padding: 8px 0;
  background: var(--eva-crema);
  box-shadow: 0 10px 30px rgba(43, 70, 51, 0.12);
  z-index: 5;
}
.eva-locale__option {
  display: block;
  width: 100%;
  padding: 8px 20px;
  border: 0;
  background: none;
  color: var(--eva-bosque);
  font-family: var(--eva-sans);
  font-size: 16px;
  letter-spacing: 0.05em;
  text-align: left;
  cursor: pointer;
}
.eva-locale__option:hover,
.eva-locale__option[aria-current="true"] { background: rgba(43, 70, 51, 0.08); }

/* --- Mega menu ------------------------------------------------------- */
.eva-mega-layer { position: absolute; left: 0; right: 0; top: 100%; }
.eva-mega {
  background: var(--eva-crema);
  color: var(--eva-bosque);
  box-shadow: 0 30px 40px -30px rgba(43, 70, 51, 0.25);
  animation: eva-mega-in 0.28s var(--eva-ease);
}
.eva-mega[hidden] { display: none; }
@keyframes eva-mega-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.eva-mega__inner {
  max-width: var(--eva-page);
  margin-inline: auto;
  padding: 20px 89px 40px 80px;
  padding-inline: var(--eva-gutter);
}
.eva-mega__top { display: flex; gap: 32px; align-items: flex-start; }
.eva-mega__columns { display: flex; gap: 32px; flex: none; }
.eva-mega__col { width: 226px; }
.eva-mega__col + .eva-mega__col { width: 271px; }
.eva-mega a.eva-mega__heading {
  display: block;
  padding: 8px 0;
  color: var(--eva-bosque);
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: var(--eva-fs-h3);
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}
.eva-mega__links { display: flex; flex-direction: column; gap: clamp(8px, 0.5556vw, 12px); padding: 8px 0 4px; font-size: 14px; line-height: 24px; }
.eva-mega a.eva-mega__link {
  color: var(--eva-bosque);
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.eva-mega a.eva-mega__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.eva-mega__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 272px));
  gap: 21.6px;
  justify-content: end;
  flex: 1;
}
.eva-mega__feature a { display: flex; flex-direction: column; gap: 16px; color: var(--eva-bosque); }
.eva-mega__feature-media { position: relative; display: block; aspect-ratio: 272 / 384; overflow: hidden; }
.eva-mega__feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--eva-ease);
}
.eva-mega__feature a:hover img { transform: scale(1.04); }
.eva-mega__feature-title {
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: clamp(19px, 1.25vw, 24px);
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0;
}
.eva-mega__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 60px;
  padding: 17px 33px;
  border: 1px solid var(--eva-line-soft);
  border-radius: 2px;
  background: var(--eva-tint);
  position: relative;
}
.eva-mega__strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -42px;
  height: 1px;
  background: var(--eva-line-soft);
}
.eva-mega__strip-title {
  margin: 0;
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: var(--eva-fs-h3);
  line-height: 1.2;
  white-space: nowrap;
}
.eva-mega__strip-text { max-width: 483px; font-size: 14px; line-height: 24px; letter-spacing: 0.01em; }
.eva-mega__strip-text p { margin: 0; }
.eva-mega__strip-btn { min-height: 50px; padding: 10px 24px; font-size: 18px; flex: none; }

/* --- Search panel ---------------------------------------------------- */
.eva-search {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--eva-header-h);
  z-index: 2;
}
.eva-header--overlay .eva-search { top: var(--eva-header-h); }
.eva-search[hidden] { display: none; }
.eva-search__panel {
  position: relative;
  z-index: 1;
  max-height: calc(100vh - var(--eva-header-h) - 20px);
  overflow-y: auto;
  padding: 20px 0 40px;
  background: var(--eva-crema);
  color: var(--eva-bosque);
  animation: eva-mega-in 0.28s var(--eva-ease);
}
.eva-search__backdrop {
  position: fixed;
  inset: 0;
  top: auto;
  height: 100vh;
  z-index: 0;
  background: rgba(0, 0, 0, 0.35);
}
.eva-search__form {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--eva-page);
  margin: 0 auto 8px;
  padding: 0 59px 0 80px;
  padding-inline: var(--eva-gutter) calc(var(--eva-gutter) - 21px);
}
.eva-search__field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  height: 61px;
  border-bottom: 1px solid var(--eva-line);
}
.eva-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.eva-search__input {
  flex: 1;
  height: 100%;
  padding: 0 16px 0 44px;
  border: 0;
  background: transparent;
  color: var(--eva-bosque);
  font-family: var(--eva-sans);
  font-size: var(--eva-fs-eyebrow);
  letter-spacing: 0.05em;
  -webkit-appearance: none;
  appearance: none;
}
.eva-search__input:focus { outline: none; }
.eva-search__input::-webkit-search-cancel-button { display: none; }
.eva-search__clear {
  padding: 0;
  border: 0;
  background: none;
  color: var(--eva-bosque);
  font-family: var(--eva-link-font);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.eva-search__close {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  color: var(--eva-bosque);
  cursor: pointer;
}
.eva-search__body {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(32px, 4.1667vw, 80px);
  max-width: var(--eva-page);
  margin-inline: auto;
  padding: 16px var(--eva-gutter) 32px;
}
.eva-search__terms { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.eva-search__products { position: relative; min-width: 0; }
/* Predictive search in flight: dim the visible products and spin in the middle
   of their grid (drawn on the grid itself, so it stays centred at any size). */
.eva-search__grid { position: relative; width: fit-content; max-width: 100%; }
.eva-search__grid > li { transition: opacity 0.2s var(--eva-ease); }
.eva-search__products.is-loading .eva-search__grid > li { opacity: 0.35; pointer-events: none; }
.eva-search__products.is-loading .eva-search__grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 36px;
  height: 36px;
  margin: auto;
  border: 2px solid rgba(43, 70, 51, 0.15);
  border-top-color: var(--eva-bosque);
  border-radius: 50%;
  animation: eva-search-spin 0.8s linear infinite;
}
@keyframes eva-search-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .eva-search__products.is-loading .eva-search__grid::after { animation-duration: 2.4s; } }
/* Headings + terms start on the search field's left edge. */
.eva-search__heading {
  margin: 0 0 8px;
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: var(--eva-fs-h3);
  line-height: 1.2;
}
.eva-search__list li a,
.eva-search__list li button {
  display: block;
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--eva-bosque);
  font-family: var(--eva-sans);
  font-size: var(--eva-fs-eyebrow);
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: opacity 0.2s var(--eva-ease);
}
.eva-search__list li a:hover,
.eva-search__list li button:hover { text-decoration: underline; text-underline-offset: 4px; }
.eva-search__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 200px)); gap: 24px; margin: 8px 0 0; padding: 0; list-style: none; }
.eva-search__grid > li:nth-child(n + 5) { display: none; }
@media (min-width: 1600px) {
  .eva-search__grid { grid-template-columns: repeat(5, minmax(0, 200px)); }
  .eva-search__grid > li:nth-child(5) { display: block; }
}
/* Compact, square cards keep the panel short (the 210:329 compact ratio is for listings). */
.eva-search__grid .eva-card--compact .eva-card__media { aspect-ratio: 1 / 1; }
.eva-search__grid .eva-card__media img { padding: 8%; }
.eva-search__grid .eva-card--compact .eva-card__body { padding-top: 12px; gap: 6px; }
.eva-search__grid .eva-card--compact .eva-card__title { font-size: 18px; }
.eva-search__results .eva-search__grid { margin-top: 8px; }
.eva-search__empty { margin: 8px 0 0; }
.eva-search__more { display: inline-block; margin-top: 16px; }

/* --- Mobile drawer --------------------------------------------------- */
.eva-drawer { position: fixed; inset: 0; z-index: 100; }
.eva-drawer[hidden] { display: none; }
.eva-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); animation: eva-fade 0.25s; }
.eva-drawer__panel {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 88vw);
  background: var(--eva-crema);
  color: var(--eva-bosque);
  overflow-y: auto;
  animation: eva-drawer-in 0.32s var(--eva-ease);
}
@keyframes eva-drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes eva-fade { from { opacity: 0; } to { opacity: 1; } }
.eva-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--eva-line);
}
.eva-drawer a.eva-drawer__brand { color: var(--eva-bosque); }
.eva-drawer__brand .eva-logo__mark { width: 26px; height: 27px; }
.eva-drawer__brand .eva-logo__word { width: 150px; height: 24px; }
.eva-drawer .eva-header__icon { --eva-h-fg: var(--eva-bosque); width: 28px; height: 28px; }
.eva-drawer__nav { padding: 8px 20px; }
.eva-drawer__item { border-bottom: 1px solid var(--eva-line); }
.eva-drawer a.eva-drawer__link,
.eva-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  list-style: none;
  color: var(--eva-bosque);
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: pointer;
}
.eva-drawer__link::-webkit-details-marker { display: none; }
.eva-drawer__details[open] .eva-accordion__icon::after { transform: rotate(0); }
.eva-drawer__sub { padding: 0 0 18px; }
.eva-drawer a.eva-drawer__sublink {
  display: block;
  padding: 7px 0;
  color: var(--eva-bosque);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.02em;
}
.eva-drawer a.eva-drawer__sublink--heading {
  margin-top: 10px;
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0;
}
.eva-drawer a.eva-drawer__sublink--all { text-decoration: underline; text-underline-offset: 4px; }
.eva-drawer__subsub { padding-left: 0; }
.eva-drawer .eva-drawer__cta { margin: 24px 20px 0; width: auto; }
.eva-drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 24px 20px 32px;
}
.eva-drawer a.eva-drawer__util { display: inline-flex; align-items: center; gap: 10px; color: var(--eva-bosque); font-size: 15px; }
.eva-drawer__langs { display: flex; gap: 6px; }
.eva-drawer__lang {
  min-width: 44px;
  padding: 6px 10px;
  border: 1px solid var(--eva-bosque);
  background: none;
  color: var(--eva-bosque);
  font-family: var(--eva-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.eva-drawer__lang[aria-current="true"] { background: var(--eva-bosque); color: var(--eva-crema); }


/* --- Responsive ------------------------------------------------------ */
@media (max-width: 1399px) {
  .eva-header__locale { display: block; }
  .eva-mega__col { width: auto; }
  .eva-mega__features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .eva-mega__features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eva-mega__feature:nth-child(n + 4) { display: none; }
  .eva-search__body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .eva-search__terms { flex-direction: row; flex-wrap: wrap; gap: 24px 48px; }
}
/* Burger + drawer below 1200px: the inline menu collides with the centred logo
   around 1024–1100px, and tablets can't hover the mega menu anyway. */
@media (max-width: 1199px) {
  .eva-header__inner { grid-template-columns: 1fr auto 1fr; gap: 12px; }
  .eva-header__burger { display: inline-flex; justify-self: start; }
  .eva-header__nav,
  .eva-header__account,
  .eva-mega-layer { display: none; }
  .eva-header__actions { gap: 18px; }
}
@media (max-width: 959px) {
  .eva-logo { gap: 3px; } .eva-header__locale { display: none; }
  .eva-header .eva-logo__mark { height: calc(var(--eva-logo-h, 32px) * 0.72); }
  .eva-header .eva-logo__word { height: calc(var(--eva-logo-h, 32px) * 0.71); }
  .eva-search__form { padding-inline: 20px 12px; gap: 10px; }
  .eva-search__close svg { width: 28px; height: 28px; }
  .eva-search__body { padding: 8px 20px 32px; gap: 24px; }
  .eva-search__terms { flex-direction: column; }
  .eva-search__grid { width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .eva-search__panel { max-height: calc(100dvh - var(--eva-header-h)); }
}

/* Menu label case: labels are lowercased in Sline, then capitalised per word. */
.eva-header--title-case .eva-header__link,
.eva-header--title-case .eva-drawer__link > span,
.eva-header--title-case a.eva-drawer__link { text-transform: capitalize; }
/* eva: always-visible EN | ES toggle (desktop + mobile) */ .eva-header .eva-locale__summary { display: none !important; } .eva-header .eva-locale__details { position: static !important; } .eva-header .eva-locale__list { position: static !important; display: flex !important; align-items: center; gap: 0; margin: 0 !important; padding: 0 !important; min-width: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; transform: none !important; opacity: 1 !important; visibility: visible !important; list-style: none; } .eva-header .eva-locale__list li { display: flex; align-items: center; } .eva-header .eva-locale__list li + li::before { content: "|"; opacity: .45; margin: 0 2px; } .eva-header .eva-locale__option { background: none !important; border: 0 !important; color: inherit !important; font-family: var(--eva-sans); font-size: 13px; letter-spacing: .02em; text-transform: none; white-space: nowrap; padding: 8px 6px !important; min-height: 36px; min-width: 32px; opacity: .6; cursor: pointer; } .eva-header .eva-locale__option[aria-current="true"] { opacity: 1; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; } @media (max-width: 959px) { .eva-header .eva-header__locale { display: flex !important; } .eva-header .eva-locale__option { font-size: 12px; padding: 8px 4px !important; min-width: 28px; } .eva-header__actions { gap: 10px; } } @media (max-width: 959px) { .eva-header { --eva-logo-h: 22px !important; } .eva-header .eva-header__inner { gap: 8px; } .eva-header .eva-header__actions { gap: 8px; } .eva-header .eva-locale__option { font-size: 11.5px; padding: 8px 2px !important; min-width: 0; } .eva-header .eva-locale__list li + li::before { margin: 0 1px; } } @media (max-width: 379px) { .eva-header { --eva-logo-h: 18px !important; } .eva-header .eva-locale__option { font-size: 10.5px; } .eva-header .eva-header__actions { gap: 6px; } }