/* Elite Center Chrome — Header + Mega-menu + Mobile drawer + Bottom tab bar + Footer
 *
 * Sprint Rediseño Store Sub-fase 1B — 2026-05-08
 * Depende de tokens.css (variables --ec-*).
 *
 * C1 (este commit): announcement + header desktop + header mobile + drawer shell.
 * C2/C3/C4 añaden mega-menu, drawer drill-down, bottom tab bar, footer.
 */

/* ═══════════════════════════════════════════════════════════════
 * Reset/base layout helpers — scope solo .ec-chrome-* elements
 * ═══════════════════════════════════════════════════════════════ */
.ec-chrome-desktop,
.ec-chrome-mobile,
.ec-chrome-announcement,
.ec-chrome-mega-menu,
.ec-chrome-drawer,
.ec-chrome-drawer-backdrop,
.ec-chrome-bottom-tabs,
.ec-chrome-footer {
  box-sizing: border-box;
  font-family: var(--ec-font-body);
  color: var(--ec-text-primary);
}

.ec-chrome-desktop *,
.ec-chrome-mobile *,
.ec-chrome-announcement *,
.ec-chrome-mega-menu *,
.ec-chrome-drawer *,
.ec-chrome-bottom-tabs *,
.ec-chrome-footer * {
  box-sizing: border-box;
}

.ec-chrome-desktop a,
.ec-chrome-mobile a,
.ec-chrome-announcement a,
.ec-chrome-drawer a,
.ec-chrome-footer a {
  text-decoration: none;
  color: inherit;
}

.ec-chrome-desktop button,
.ec-chrome-mobile button,
.ec-chrome-drawer button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

/* Visually-hidden helper (a11y label for inputs sin label visible) */
.ec-chrome-desktop .screen-reader-text,
.ec-chrome-mobile .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
  word-wrap: normal !important;
}

/* ═══════════════════════════════════════════════════════════════
 * Announcement bar — top global strip (negro, 32px alto)
 * ═══════════════════════════════════════════════════════════════ */
.ec-chrome-announcement {
  background: var(--ec-black);
  color: #fff;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.ec-chrome-announcement__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--ec-font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ec-chrome-announcement__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ec-chrome-announcement__item--link {
  color: inherit;
  transition: opacity 0.15s;
}

.ec-chrome-announcement__item--link:hover {
  opacity: 0.75;
}

.ec-chrome-announcement__icon {
  flex-shrink: 0;
}

.ec-chrome-announcement__sep {
  opacity: 0.4;
}

@media (max-width: 600px) {
  .ec-chrome-announcement__inner {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .ec-chrome-announcement__item span:not(:first-child) {
    display: none;
  }
  /* En mobile <600px: solo iconos visibles, separadores ocultos */
  .ec-chrome-announcement__sep {
    display: none;
  }
  .ec-chrome-announcement__item span {
    display: inline;
  }
}

/* ═══════════════════════════════════════════════════════════════
 * Header desktop + tablet (un solo render, CSS responsive)
 * Visible >= 1025px (desktop) y 768-1024px (tablet condensed)
 * ═══════════════════════════════════════════════════════════════ */
.ec-chrome-desktop {
  background: var(--ec-surface);
  border-bottom: 1px solid var(--ec-border);
  /* Sticky en scroll (decisión Benjamín 2026-05-24): el header (buscador +
     categorías) baja con el scroll. La barra de anuncios queda arriba y se va
     al hacer scroll; el header se pega al tope. z-index alto para que el
     mega-menú y el header queden sobre el contenido. */
  position: sticky;
  top: 0;
  z-index: 50;
}
/* Offset cuando WordPress muestra la admin bar (solo usuarios logueados). */
.admin-bar .ec-chrome-desktop {
  top: 32px;
}

.ec-chrome-desktop__row1 {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.ec-chrome-desktop__logo {
  flex-shrink: 0;
  color: var(--ec-text-primary);
  display: inline-flex;
  align-items: center;
}
/* v2.10.1 Wave 2 ISSUE 5B: forzar altura del logo desktop +35% (era ~41px → 55px).
 * Defensa contra reglas parent theme (woodmart) que limitan logos a ~30-40px. */
.ec-chrome-desktop__logo img {
  height: 55px;
  width: auto;
  max-height: 55px;
  display: block;
}

/* Search bar — pill, surface-2 bg, icon left, max 560px */
.ec-chrome-desktop__search {
  position: relative;
  flex: 1;
  max-width: 560px;
}

.ec-chrome-desktop__search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ec-text-muted);
  pointer-events: none;
}

.ec-chrome-desktop__search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  background: var(--ec-surface-2);
  /* v2.10.2 revert v2.10.1 ISSUE 5A: border visible roto Fibo Search interaction.
   * Volvemos a transparent. Si redesign de búsqueda visible se necesita, hacer
   * post-confirmación de no romper Fibosearch popup/submit alignment. */
  border: 1px solid transparent;
  border-radius: var(--ec-r-pill);
  font-family: var(--ec-font-body);
  font-size: 14px;
  color: var(--ec-text-primary);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.ec-chrome-desktop__search-input::placeholder {
  color: var(--ec-text-hint);
}

.ec-chrome-desktop__search-input:focus {
  outline: 0;
  background: var(--ec-surface);
  border-color: var(--ec-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ec-primary) 18%, transparent);
}

/* Fibosearch container — neutral wrapper so the plugin's own search-form
 * fills the chrome's pill slot. Plugin styles apply to .dgwt-wcas-* internals. */
.ec-chrome-desktop__search--fibo {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
}
.ec-chrome-desktop__search--fibo .dgwt-wcas-search-wrapp,
.ec-chrome-desktop__search--fibo .dgwt-wcas-search-form {
  width: 100%;
}
.ec-chrome-desktop__search--fibo .dgwt-wcas-search-input {
  height: 44px;
  border-radius: var(--ec-r-pill);
  background: var(--ec-surface-2);
  /* v2.10.2 revert v2.10.1 ISSUE 5A: border visible roto Fibo Search.
   * Volvemos a transparent (estado v2.10.0 pre-Wave 2). */
  border: 1px solid transparent;
  font-family: var(--ec-font-body);
  font-size: 14px;
  color: var(--ec-text-primary);
}
.ec-chrome-desktop__search--fibo .dgwt-wcas-search-input:focus {
  background: var(--ec-surface);
  border-color: var(--ec-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ec-primary) 18%, transparent);
  outline: 0;
}
.ec-chrome-mobile__search--fibo {
  flex: 1;
  display: flex;
  align-items: center;
}
.ec-chrome-mobile__search--fibo .dgwt-wcas-search-wrapp,
.ec-chrome-mobile__search--fibo .dgwt-wcas-search-form {
  width: 100%;
}
.ec-chrome-mobile__search--fibo .dgwt-wcas-search-input {
  /* v2.10.2 revert v2.10.1 ISSUE 4: height 38px + border visible + padding-left
   * causaron rotura Fibo Search interaction. Volvemos al estado v2.10.0/Sub-fase
   * 1H Bucket 3 P3: 44px (WCAG 2.5.5 AAA touch target) + border transparent.
   * Pill border-radius preservado (estética v2.10.0). */
  height: 44px;
  border-radius: var(--ec-r-pill);
  background: var(--ec-surface-2);
  border: 1px solid transparent;
  font-family: var(--ec-font-body);
  font-size: 13px;
  color: var(--ec-text-primary);
}
.ec-chrome-mobile__search--fibo .dgwt-wcas-search-input:focus {
  background: var(--ec-surface);
  border-color: var(--ec-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ec-primary) 18%, transparent);
  outline: 0;
}

.ec-chrome-desktop__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.ec-chrome-desktop__action {
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
}

.ec-chrome-desktop__action:hover {
  background: var(--ec-surface-2);
  border-color: var(--ec-border-hover);
}

.ec-chrome-desktop__cart {
  position: relative;
}

/* Sub-fase 1G-fix B2.4 — Cuenta hover dropdown desktop. */
.ec-chrome-desktop__account-wrap {
  position: relative;
}
.ec-chrome-desktop__account-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 240px;
  background: var(--ec-surface, #fff);
  border: 1px solid var(--ec-border, #e6e8ea);
  border-radius: var(--ec-r-md, 8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 8px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
}
.ec-chrome-desktop__account-wrap:hover .ec-chrome-desktop__account-dropdown,
.ec-chrome-desktop__account-wrap:focus-within
  .ec-chrome-desktop__account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ec-account-dropdown__head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--ec-border, #e6e8ea);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ec-account-dropdown__head--guest {
  border-bottom-color: var(--ec-border, #e6e8ea);
}
.ec-account-dropdown__hi {
  font-family: var(--ec-font-label, "Rajdhani", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ec-text-muted, #75768a);
}
.ec-account-dropdown__name {
  font-family: var(--ec-font-display, "Exo 2", sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ec-text-primary, #060606);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ec-account-dropdown__link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--ec-r-sm, 4px);
  font-family: var(--ec-font-body, "Montserrat", sans-serif);
  font-size: 13px;
  color: var(--ec-text-secondary, #44455a);
  text-decoration: none;
  transition:
    background-color 0.12s ease,
    color 0.12s ease;
}
.ec-account-dropdown__link:hover {
  background: var(--ec-surface-2, #f2f4f6);
  color: var(--ec-text-primary, #060606);
}
.ec-account-dropdown__link--primary {
  background: var(--ec-primary, #444ce7);
  color: #fff;
  font-weight: 600;
  margin: 4px 0;
  text-align: center;
}
.ec-account-dropdown__link--primary:hover {
  background: var(--ec-primary-dark, #272dcf);
  color: #fff;
}
.ec-account-dropdown__link--logout {
  margin-top: 4px;
  border-top: 1px solid var(--ec-border, #e6e8ea);
  padding-top: 12px;
  color: var(--ec-text-muted, #75768a);
  font-size: 12px;
}

.ec-chrome-desktop__cart-count {
  background: var(--ec-primary);
  color: #fff;
  font-family: var(--ec-font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0;
}

/* Row 2 — chip "Todas las categorías" + 5 L0 tabs walker-derived + quick-links */
.ec-chrome-desktop__row2 {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 40px;
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--ec-border);
}

/* Chip izquierdo "Todas las categorías" — v2.9.0 Issue A: alineado con L0 tabs
 * (height 42px box-sizing border-box, line-height 1, padding match) + bg
 * transparente + hover/active idéntico a L0 tab (indigo text + ::after grow
 * from center). Antes: bg negro persistente sobresalía visualmente del row 2.
 * Mismo box exacto que .ec-chrome-desktop__l0-tab para visual continuity. */
.ec-chrome-desktop__all-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-family: var(--ec-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ec-text-primary);
  margin-right: 8px;
  position: relative;
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  line-height: 1;
  border: 0;
  cursor: pointer;
  transition: color 0.15s;
}

/* v2.9.0 Issue A: línea indigo grow-from-center (clon del L0 tab ::after).
 * Reemplaza el background fill negro/deep que sobresalía visualmente. */
.ec-chrome-desktop__all-trigger::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ec-primary, #444ce7);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
  pointer-events: none;
}

.ec-chrome-desktop__all-trigger:hover::after,
.ec-chrome-desktop__all-trigger.is-active::after,
.ec-chrome-desktop__all-trigger[aria-expanded="true"]::after,
.ec-chrome-desktop__all-trigger:focus-visible::after {
  width: 80%;
}

.ec-chrome-desktop__all-trigger:hover,
.ec-chrome-desktop__all-trigger.is-active,
.ec-chrome-desktop__all-trigger[aria-expanded="true"] {
  color: var(--ec-primary);
  background: transparent;
}

/* 5 L0 tabs — walker-derived. Sin icon (Site Menu L0 no tiene icons asignados). */
.ec-chrome-desktop__l0-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ec-chrome-desktop__l0-tab-item {
  display: flex;
}

.ec-chrome-desktop__l0-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-family: var(--ec-font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ec-text-primary);
  /* v2.8.0 Cambio 3: border-bottom removed in favor of ::after grow-from-center.
   * Mantener box height idéntico (border 2px counted in box). Reemplazado por
   * padding-bottom compensation + position:relative para anclar el pseudo. */
  position: relative;
  border-bottom: none;
  margin-bottom: 0;
  transition:
    color 0.15s,
    background 0.15s;
  white-space: nowrap;
  /* Sub-fase 1G-Desktop-Fix-R2 R2-hotfix AC17: height match uniforme 42px.
   * QA reportó Seguridad 52px (10px más) vs otros 42px. Causa: SVG icons
   * con stroke-width o viewBox subtly diferente expandían altura del flex
   * cuando align-items=center. Forzamos box-sizing + line-height + height
   * fijos para que padding+contenido siempre sumen exactamente 42px. */
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  line-height: 1;
}

/* v2.8.0 Cambio 3 — línea indigo grow-from-center en hover/active del L0 tab.
 * Reemplaza border-bottom static por animación width 0 → 80% centered.
 * Spec Benjamín: la animación de línea ahora es propiedad del L0 tab, NO del
 * brand chip (chips solo tienen hover bg sutil). */
.ec-chrome-desktop__l0-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--ec-primary, #444ce7);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
  pointer-events: none;
}

.ec-chrome-desktop__l0-tab:hover::after,
.ec-chrome-desktop__l0-tab.is-active::after,
.ec-chrome-desktop__l0-tab[aria-expanded="true"]::after,
.ec-chrome-desktop__l0-tab:focus-visible::after {
  width: 80%;
}

/* Normalizar tamaño exacto del SVG icon para evitar drift por viewBox/stroke */
.ec-chrome-desktop__l0-tab-icon,
.ec-chrome-desktop__l0-tab > svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
}

/* Sub-fase 1G-fix B3.1: Lucide icon por L0 category. */
.ec-chrome-desktop__l0-tab-icon {
  color: var(--ec-primary, #444ce7);
  flex-shrink: 0;
  transition:
    color 0.15s,
    transform 0.15s;
}
.ec-chrome-desktop__l0-tab:hover .ec-chrome-desktop__l0-tab-icon {
  transform: translateY(-1px);
}

/* v2.9.0 Issue B: hover/active del L0 tab SOLO indigo text + ::after line
 * grow-from-center. Eliminado background fill gris (`var(--ec-surface-2)`)
 * que producía el "plomo" reportado por Benjamín — exceso visual contra el
 * indigo accent. La línea inferior ya comunica el estado activo. */
.ec-chrome-desktop__l0-tab:hover {
  color: var(--ec-primary);
  background: transparent;
}

.ec-chrome-desktop__l0-tab.is-active,
.ec-chrome-desktop__l0-tab[aria-expanded="true"] {
  color: var(--ec-primary);
  /* v2.8.0 Cambio 3: border-bottom-color removed — animation handled by ::after */
  background: transparent;
}

/* Sub-fase 1G-Desktop-Fix-R2 F14: cuando un L0 tab está activo en CONTEXTO mega-open
 * con backdrop dark, queremos contraste claro (texto blanco). El mega panel renderiza
 * sobre superficie clara, pero si Benjamín observó "negro sobre negro" probable que el
 * panel toque parent overrides. Defense: forzar text color cuando el panel está abierto. */
body.ec-mega-open .ec-chrome-desktop__l0-tab.is-active,
body.ec-mega-open .ec-chrome-desktop__l0-tab[aria-expanded="true"] {
  color: var(--ec-primary) !important;
  background: transparent !important; /* v2.9.0 Issue B: sin bg fill, solo color + ::after line */
}
body.ec-mega-open
  .ec-chrome-desktop__l0-tab.is-active
  .ec-chrome-desktop__l0-tab-icon,
body.ec-mega-open
  .ec-chrome-desktop__l0-tab[aria-expanded="true"]
  .ec-chrome-desktop__l0-tab-icon {
  color: var(--ec-primary) !important;
}

/* F14 — Icon color uniforme. Antes era var(--ec-primary) (indigo) en todos —
 * Benjamín reportó "Seguridad ícono azul, otros no". Hipótesis: contraste percibido
 * por el tamaño/shape del 'building' SVG. Normalizamos: icons todos --ec-text-muted
 * (gris neutro) en idle + indigo en hover/active. */
.ec-chrome-desktop__l0-tab-icon {
  color: var(--ec-text-muted, #75768a);
}
.ec-chrome-desktop__l0-tab:hover .ec-chrome-desktop__l0-tab-icon,
.ec-chrome-desktop__l0-tab.is-active .ec-chrome-desktop__l0-tab-icon,
.ec-chrome-desktop__l0-tab[aria-expanded="true"]
  .ec-chrome-desktop__l0-tab-icon {
  color: var(--ec-primary);
}

.ec-chrome-desktop__quick-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.ec-chrome-desktop__ofertas {
  color: var(--ec-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}

.ec-chrome-desktop__ofertas:hover {
  opacity: 0.8;
}

.ec-chrome-desktop__quick {
  color: var(--ec-text-secondary);
  transition: color 0.15s;
}

.ec-chrome-desktop__quick:hover {
  color: var(--ec-text-primary);
}

/* ─── Tablet (768-1024px): condensed row 2 — scroll horizontal de tier-1 ─── */
@media (max-width: 1024px) and (min-width: 768px) {
  .ec-chrome-desktop__row1 {
    padding: 14px 24px;
    gap: 16px;
  }
  .ec-chrome-desktop__search {
    max-width: 360px;
  }
  .ec-chrome-desktop__action span {
    display: none;
  }
  .ec-chrome-desktop__action {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .ec-chrome-desktop__cart {
    width: auto;
    padding: 0 12px;
  }
  .ec-chrome-desktop__cart span:not(.ec-chrome-desktop__cart-count) {
    display: none;
  }
  .ec-chrome-desktop__row2 {
    padding: 0 24px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
  }
  .ec-chrome-desktop__row2::-webkit-scrollbar {
    display: none;
  }
  .ec-chrome-desktop__all-trigger {
    flex-shrink: 0;
    /* v2.9.0 Issue A: tablet match exacto del L0 tab para evitar drift de altura */
    padding: 10px 14px;
    margin-right: 6px;
    height: auto;
    min-height: 0;
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  .ec-chrome-desktop__l0-tabs {
    flex-wrap: nowrap;
  }
  .ec-chrome-desktop__l0-tab-item {
    flex-shrink: 0;
  }
  .ec-chrome-desktop__l0-tab {
    padding: 10px 12px;
    font-size: 11px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    height: auto;
    min-height: 0;
  }
  .ec-chrome-desktop__quick-links {
    display: none;
  }
}

/* ─── Mobile (<768px): hide desktop header completamente ─── */
@media (max-width: 767px) {
  .ec-chrome-desktop {
    display: none;
  }
  /* Decisión Benjamín 2026-05-24: la barra negra de anuncios (despacho · B2B ·
     teléfono) es solo para desktop; en mobile satura el header. Se oculta. */
  .ec-chrome-announcement {
    display: none;
  }
  /* v2.11.2 Issue 4 — Defensa: Woodmart parent puede inyectar un sticky
   * header negro (`.whb-sticky-header`, `.whb-clone`, `.whb-main-header`)
   * vía JS clone cuando hace scroll, incluso si nuestro chrome custom
   * reemplazó el header inicial. Forzar `display:none` para todos los
   * whb-* wrappers del parent en mobile. El chrome mobile + bottom tabs
   * son el único navigation system del sitio en mobile.
   *
   * v2.11.5 Issue 5 — Hardening cross-page: Benjamín reportó que post-
   * COMPRAR en mobile (redirect a /cart/) el sticky header negro reaparece.
   * Causa probable: Woodmart inyecta clones via JS scroll observer en cart
   * page (no PDP-only). Expandimos coverage para CUALQUIER wrapper Woodmart
   * sticky/header en mobile, sin importar página. Selectores ampliados
   * `body > .whb-*` (direct body children), `.whb-row*`, `.wd-tools-element`,
   * y otros patrones Woodmart de header transients. */
  .whb-sticky-header,
  .whb-clone,
  .whb-main-header,
  .whb-general-header,
  .whb-header,
  .wd-header-search,
  .wd-header-cart,
  .wd-header-my-account,
  .wd-header-fs-nav,
  .whb-top-bar,
  .whb-row,
  .whb-flex-row,
  .whb-col-left,
  .whb-col-right,
  .whb-col-center,
  .wd-sticky-row,
  .wd-tools-element,
  body > .whb-header,
  body > .whb-sticky-header,
  body > .whb-clone,
  body > .whb-main-header,
  div.whb-header.whb-sticked,
  div.whb-clone.whb-sticked,
  .whb-sticked,
  .website-wrapper > .whb-header,
  .website-wrapper > .whb-sticky-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
 * Header mobile (<768px) — sticky top
 * ═══════════════════════════════════════════════════════════════ */
.ec-chrome-mobile {
  display: none;
  background: var(--ec-surface);
  border-bottom: 1px solid var(--ec-border);
  position: sticky;
  top: 0;
  z-index: 5;
}

@media (max-width: 767px) {
  .ec-chrome-mobile {
    display: block;
  }
}

/* Mobile bar — logo + search pill prominent + cart + avatar (NO hamburger) */
.ec-chrome-mobile__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.ec-chrome-mobile__logo {
  display: inline-flex;
  align-items: center;
  color: var(--ec-text-primary);
  flex-shrink: 0;
}
/* v2.10.1 Wave 2 ISSUE 5B: forzar altura logo mobile +35% (26px → 35px). */
.ec-chrome-mobile__logo img {
  height: 35px;
  width: auto;
  max-height: 35px;
  display: block;
}

/* Search pill — toma el centro, prominent */
.ec-chrome-mobile__search {
  position: relative;
  flex: 1;
  min-width: 0;
}

.ec-chrome-mobile__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ec-text-muted);
  pointer-events: none;
}

.ec-chrome-mobile__search-input {
  width: 100%;
  /* v2.10.2 revert v2.10.1 ISSUE 4: volvemos al estado Sub-fase 1H Bucket 3 P3:
   * 44px (WCAG 2.5.5 AAA touch target) + border transparent. Fibo Search es el
   * input real en producción; esta regla aplica al fallback no-fibo. Match
   * estilos para evitar visual disonancia. */
  height: 44px;
  padding: 0 14px 0 38px;
  background: var(--ec-surface-2);
  border: 1px solid transparent;
  border-radius: var(--ec-r-pill);
  font-family: var(--ec-font-body);
  font-size: 14px;
  color: var(--ec-text-primary);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.ec-chrome-mobile__search-input::placeholder {
  color: var(--ec-text-hint);
}

.ec-chrome-mobile__search-input:focus {
  outline: 0;
  background: var(--ec-surface);
  border-color: var(--ec-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ec-primary) 18%, transparent);
}

.ec-chrome-mobile__icons {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.ec-chrome-mobile__icon-btn {
  /* Sub-fase 1F A2 polish: 36x36 -> 44x44 cumple WCAG 2.5.5 + Apple HIG min
   * touch target. Padding 10px reserva visual icon 24px sin reflow. */
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ec-text-primary);
  position: relative;
  border-radius: var(--ec-r-md);
  transition: background 0.15s;
}

.ec-chrome-mobile__icon-btn:hover {
  background: var(--ec-surface-2);
}

.ec-chrome-mobile__cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  background: var(--ec-primary);
  color: #fff;
  font-family: var(--ec-font-mono);
  font-size: 9px;
  font-weight: 500;
  padding: 0 4px;
  border-radius: 999px;
  min-width: 14px;
  text-align: center;
  line-height: 14px;
}

/* ═══════════════════════════════════════════════════════════════
 * Mobile catalog overlay — fullscreen slide-up (PWA pattern, C3)
 * Activado desde bottom-tab "Catálogo". Drill-down L0→L1+L2 inline.
 * ═══════════════════════════════════════════════════════════════ */
.ec-chrome-catalog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ec-surface);
  /* Sub-fase 1G-fix B1.2: bump z-index sobre JoinChat (9000) y bottom-tab-bar (9001).
   * Previo z-index:90 quedaba bajo JoinChat float button + bottom-tabs forzando
   * que el overlay no fuera tappable / no se viera en mobile. */
  z-index: 9100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  -webkit-overflow-scrolling: touch;
}

body.ec-catalog-open .ec-chrome-catalog {
  transform: translateY(0);
}

/* Sub-fase 1E E1-1: keep display:flex on [hidden] so the slide-down close transition
 * runs cleanly. Element stays offscreen via transform translateY(100%) by default. */
.ec-chrome-catalog[hidden] {
  display: flex;
}

.ec-chrome-catalog__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ec-border);
  flex-shrink: 0;
}

.ec-chrome-catalog__back,
.ec-chrome-catalog__close {
  /* Sub-fase 1G-fix B3.10: close button = back arrow + "Volver" label.
   * Antes era cuadrado 36x36 con ícono X. Ahora pill con chevL + texto. */
  min-height: 36px;
  height: auto;
  padding: 6px 14px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ec-text-primary);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-r-pill, 999px);
  background: var(--ec-surface);
  transition:
    background 0.15s,
    border-color 0.15s;
  flex-shrink: 0;
  font-family: var(--ec-font-display, "Exo 2", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ec-chrome-catalog__close-label {
  white-space: nowrap;
}

.ec-chrome-catalog__back[hidden] {
  display: none;
}

.ec-chrome-catalog__back:hover,
.ec-chrome-catalog__close:hover {
  background: var(--ec-surface-2);
}

.ec-chrome-catalog__title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ec-chrome-catalog__title {
  font-family: var(--ec-font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ec-text-primary);
  line-height: 1.1;
}

.ec-chrome-catalog__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 24px;
  -webkit-overflow-scrolling: touch;
}

/* Walker output mobile-catalog: lista L0 visible por default; cuando un L0
   tiene `is-catalog-active`, otros L0 hermanos se ocultan y aparecen sus
   L1+L2 children. Drill-down CSS-only. */
.ec-chrome-catalog__body .ec-mega-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ec-chrome-catalog__body .ec-mm-item--depth-0 {
  /* Sub-fase 1H Bucket 1 P0 fix — override global `.ec-mm-item--depth-0 { display:none }`
   * (line ~1331) que existe para el patrón desktop mega-menu donde solo el L0 con
   * `.is-mega-active` se revela. En mobile catalog overlay queremos los 5 L0s visibles
   * por default; la regla `:has(.is-catalog-active)` línea ~860 ya oculta hermanos
   * durante drill-down. Sin este override, overlay quedaba vacío (regression QA 1H).
   * Specificity (0,2,0) > (0,1,0) garantiza override. */
  display: block;
  border-bottom: 1px solid var(--ec-border);
}

.ec-chrome-catalog__body .ec-mm-item--depth-0:last-child {
  border-bottom: 0;
}

/* Si algún L0 tiene is-catalog-active, ocultar los hermanos */
.ec-chrome-catalog__body
  .ec-mega-menu-list:has(.is-catalog-active)
  .ec-mm-item--depth-0:not(.is-catalog-active) {
  display: none;
}

.ec-chrome-catalog__body .ec-mm-link--depth-0 {
  /* Sub-fase 1H Bucket 3 P2-fix2 hardening (post QA Round 2): override
   * sr-only del global chrome.css:1349 inline en la misma regla styling
   * para defense-in-depth. Antes solo había rule en `.ec-mm-item--depth-0 >`
   * selector (linea 1361-1369 post-fix), pero QA confirmó observación visual
   * de chevron-only render. Esta declaración refuerza el override desde el
   * rule donde vive el styling visual del link, eliminando cualquier
   * specificity tie-break ambiguity. */
  clip: auto !important;
  clip-path: none !important;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
  position: static !important;
  white-space: normal !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-family: var(--ec-font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ec-text-primary);
  transition: background 0.15s;
}

.ec-chrome-catalog__body .ec-mm-link--depth-0::after {
  content: "›";
  font-family: inherit;
  font-size: 22px;
  font-weight: 400;
  color: var(--ec-text-muted);
  line-height: 1;
}

/* Cuando L0 está activo (drill-down): ocultar el header L0 propio (back btn lo reemplaza) */
.ec-chrome-catalog__body
  .ec-mm-item--depth-0.is-catalog-active
  > .ec-mm-link--depth-0 {
  display: none;
}

/* L1+L2 children del L0 activo.
 * Sub-fase 1H Bucket 3 P2-fix4 (QA Round 4): selector bare `.ec-mm-children`
 * en lugar de `.ec-mm-children--depth-1`. Resiliente al output del walker:
 * matchea SIEMPRE el UL wrapper sin importar si emitió modifier o no.
 * Combinado con `> .ec-mm-children` direct-child selector, solo afecta el
 * primer nivel children del L0 item (no recursivo a depth-2 grandchildren).
 * QA reportó browser viendo bare `ec-mm-children` className via JS-eval. */
.ec-chrome-catalog__body .ec-mm-item--depth-0 > .ec-mm-children {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none !important;
}

.ec-chrome-catalog__body
  .ec-mm-item--depth-0.is-catalog-active
  > .ec-mm-children {
  display: block !important;
}

.ec-chrome-catalog__body .ec-mm-link--depth-1 {
  display: block;
  padding: 14px 20px 6px;
  font-family: var(--ec-font-label);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ec-text-muted);
}

.ec-chrome-catalog__body .ec-mm-children--depth-2 {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.ec-chrome-catalog__body .ec-mm-link--depth-2 {
  display: block;
  /* Sub-fase 1E E1-6: 14px vertical padding ensures 44px+ tap target for accessibility
   * (font 14px + line-height 1.4 + 14*2 = ~46px height). */
  padding: 14px 20px;
  font-family: var(--ec-font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--ec-text-secondary);
  transition:
    background 0.12s,
    color 0.12s,
    padding-left 0.12s;
}

.ec-chrome-catalog__body .ec-mm-link--depth-2:hover,
.ec-chrome-catalog__body .ec-mm-link--depth-2:active {
  background: var(--ec-surface-2);
  color: var(--ec-primary);
  padding-left: 24px;
}

/* Sub-fase 1E E1-5: subtle fade for drill-down children to avoid jarring snap.
 * P2-fix4: selector bare `.ec-mm-children` (resiliente walker output). */
.ec-chrome-catalog__body .ec-mm-item--depth-0 > .ec-mm-children {
  opacity: 1;
  transition: opacity 0.18s ease;
}

/* Servicios Elite section — bottom del catalog overlay
 * Sub-fase 1E E1-3: stronger visual separation (border-top + bg surface-2 +
 * eyebrow primary tint to anchor the services strip distinctly from the
 * navegación list above). */
.ec-chrome-catalog__services {
  border-top: 1px solid var(--ec-border);
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0));
  background: var(--ec-surface-2);
  flex-shrink: 0;
}

.ec-chrome-catalog__services-label {
  display: block;
  margin-bottom: 14px;
  color: var(--ec-primary);
}

.ec-chrome-catalog__service-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--ec-border);
  color: var(--ec-text-primary);
  transition: opacity 0.15s;
}

.ec-chrome-catalog__service-link:first-of-type {
  border-top: 0;
}

.ec-chrome-catalog__service-link:hover {
  opacity: 0.75;
}

.ec-chrome-catalog__service-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--ec-surface);
  border-radius: var(--ec-r-md);
  color: var(--ec-primary);
  flex-shrink: 0;
}

.ec-chrome-catalog__service-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ec-chrome-catalog__service-title {
  font-family: var(--ec-font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--ec-text-primary);
}

.ec-chrome-catalog__service-desc {
  font-size: 11.5px;
  color: var(--ec-text-muted);
}

.ec-chrome-catalog__service-arrow {
  flex-shrink: 0;
  color: var(--ec-text-muted);
}

/* Lock body scroll cuando catalog overlay abierto */
body.ec-catalog-open {
  overflow: hidden;
}

/* Sub-fase 1E E1-4 (P0): hide bottom-tabs while catalog overlay is open —
 * antes el bottom-tabs (z-index 50) quedaba visible bajo el overlay (z-index 90)
 * causando double-nav visual broken UX que Benjamín reportó. */
body.ec-catalog-open .ec-chrome-bottom-tabs {
  display: none;
}

/* En desktop el catalog overlay nunca se muestra */
@media (min-width: 768px) {
  .ec-chrome-catalog {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
 * Bottom tab bar PWA — sticky bottom, 4 tabs, FAB Cotizar central
 * Sub-fase 1E E2-1 (P0): overflow:visible para que el FAB elevado no
 * se vea cortado en iOS Safari (stacking context limita overflow:hidden
 * en algunos render paths). Bar height 68px (antes 64) para acomodar
 * la elevación del FAB sin recortes.
 * ═══════════════════════════════════════════════════════════════ */
.ec-chrome-bottom-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--ec-surface);
  border-top: 1px solid var(--ec-border);
  z-index: 50;
  display: none;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
  overflow: visible;
}

@media (max-width: 767px) {
  .ec-chrome-bottom-tabs {
    display: flex;
  }
  /* Padding-bottom global en mobile para que contenido no quede tapado.
   * Sub-fase 1E E2-1: 68px (height nuevo bottom-tabs) + safe-area. */
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0));
  }
}

.ec-chrome-bottom-tabs__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  color: var(--ec-text-muted);
  transition: color 0.15s;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  min-width: 0;
}

.ec-chrome-bottom-tabs__item:hover {
  color: var(--ec-text-primary);
}

.ec-chrome-bottom-tabs__item.is-active,
.ec-chrome-bottom-tabs__item[aria-current="page"] {
  color: var(--ec-primary);
}

.ec-chrome-bottom-tabs__icon {
  flex-shrink: 0;
}

.ec-chrome-bottom-tabs__label {
  font-family: var(--ec-font-label);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* FAB Cotizar central — elevado, sombra neutra (Brand System §5)
 * Sub-fase 1E E2-2 (P0): reemplaza colored glow shadow rgba(68,76,231,*) por
 * sombra neutra ambient. Brand v2: "No colored glow shadows".
 * Sub-fase 1E E2-1: reduce translado a -10px (antes -12) y ajusta label spacing
 * para que el botón completo quede dentro del visual del bar 68px sin recortes. */
.ec-chrome-bottom-tabs__fab {
  position: relative;
  overflow: visible;
  padding-top: 4px;
}

.ec-chrome-bottom-tabs__fab-circle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--ec-primary);
  color: #fff;
  display: grid;
  place-items: center;
  transform: translateY(-10px);
  box-shadow:
    0 6px 16px rgba(6, 6, 6, 0.16),
    0 2px 4px rgba(6, 6, 6, 0.1);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.ec-chrome-bottom-tabs__fab:hover .ec-chrome-bottom-tabs__fab-circle,
.ec-chrome-bottom-tabs__fab:active .ec-chrome-bottom-tabs__fab-circle {
  transform: translateY(-12px) scale(1.04);
  background: var(--ec-primary-dark);
  box-shadow:
    0 10px 24px rgba(6, 6, 6, 0.2),
    0 3px 6px rgba(6, 6, 6, 0.12);
}

.ec-chrome-bottom-tabs__fab-label {
  color: var(--ec-primary);
  transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════════
 * Mega-menu overlay (C2) — panel desde walker custom + service cards
 * ═══════════════════════════════════════════════════════════════ */

/* Container: overlay full-width below header row 2 */
.ec-chrome-mega-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ec-surface);
  border-bottom: 1px solid var(--ec-border);
  box-shadow: var(--ec-shadow-overlay);
  z-index: 30;
  animation: ecMegaFadeIn 0.2s ease both;
}

.ec-chrome-mega-menu-container[hidden] {
  display: none;
}

@keyframes ecMegaFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Backdrop sutil — refuerza dismissible click outside.
 * Sub-fase 1E E7-4: opacidad 0.18 -> 0.32 con tinte brand-black para mayor focus
 * sobre el panel (sin tornarse intrusivo). */
.ec-chrome-mega-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.32);
  z-index: 25;
  cursor: pointer;
  animation: ecMegaBackdropIn 0.2s ease both;
}

.ec-chrome-mega-menu-backdrop[hidden] {
  display: none;
}

@keyframes ecMegaBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Inner panel — max-width container */
.ec-chrome-mega-menu {
  position: relative;
}

.ec-chrome-mega-menu__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 40px 24px;
}

/* Header strip: eyebrow + título + close btn */
.ec-chrome-mega-menu__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--ec-border);
}

.ec-chrome-mega-menu__heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ec-chrome-mega-menu__title {
  font-family: var(--ec-font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ec-text-primary);
  line-height: 1.1;
}

.ec-chrome-mega-menu__see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-family: var(--ec-font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--ec-primary);
  transition: gap 0.15s ease;
}

.ec-chrome-mega-menu__see-all:hover {
  gap: 8px;
}

.ec-chrome-mega-menu__see-all[hidden] {
  display: none;
}

.ec-chrome-mega-menu__close {
  /* Sub-fase 1G-Desktop-Fix-R2 F9: pill consistente con mobile catalog close.
   * Antes: cuadrado 36x36 solo X. Ahora: pill chevL + texto "Volver". */
  min-height: 36px;
  padding: 6px 14px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ec-text-primary);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-r-pill, 999px);
  background: var(--ec-surface);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  flex-shrink: 0;
  font-family: var(--ec-font-display, "Exo 2", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ec-chrome-mega-menu__close-label {
  white-space: nowrap;
}

.ec-chrome-mega-menu__close:hover {
  background: var(--ec-surface-2);
  color: var(--ec-text-primary);
  border-color: var(--ec-border-hover);
}

/* ─── Walker output: only-one-active L0 panel con 3-col grid groups ─── */
.ec-chrome-mega-menu__walker {
  margin-bottom: 24px;
  min-height: 220px;
}

.ec-mega-menu-walker-container {
  width: 100%;
}

.ec-mega-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* L0 items: ocultos por default. Solo el que tiene `is-mega-active` se muestra
   con su L1+L2 children como 3-col grid. JS marca el L0 activo según tab clickeado. */
.ec-mm-item--depth-0 {
  display: none;
}

.ec-mm-item--depth-0.is-mega-active {
  display: block;
}

/* L0 link (label) — oculto en mega-menu (el header strip dinámico ya muestra el nombre L0).
   Mantener accesible via screen-reader. */
.ec-mm-item--depth-0 > .ec-mm-link--depth-0 {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
}

/* Sub-fase 1H Bucket 3 P2-fix2: override sr-only en mobile catalog body — los
 * L0 labels (COMPUTACIÓN, GAMING, REDES) deben ser visibles para que el usuario
 * pueda tappear para entrar al drill-down. La regla global arriba sr-only's
 * porque desktop mega-menu usa header strip dinámico para mostrar el L0 activo;
 * mobile catalog no tiene ese header strip, necesita los labels in-flow.
 * Specificity (0,3,0) + !important para counter el `position: absolute !important`
 * del global. Estilos visuales heredan de .ec-chrome-catalog__body .ec-mm-link--depth-0
 * declarados líneas 865-877 (ya tienen padding 16px 20px, font Exo 2, 14px uppercase). */
.ec-chrome-catalog__body .ec-mm-item--depth-0 > .ec-mm-link--depth-0 {
  clip: auto !important;
  clip-path: none !important;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
  position: relative !important;
  white-space: normal;
}

/* L1 children del L0 activo — 3 columnas auto-balance */
.ec-mm-item--depth-0.is-mega-active > .ec-mm-children--depth-1 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  align-items: start;
}

/* Default L1 children (cuando no es del L0 activo) — hidden */
.ec-mm-children--depth-1 {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* L1 items — group header */
.ec-mm-item--depth-1 {
  min-width: 0;
}

.ec-mm-link--depth-1 {
  /* Sub-fase 1E E7-2: depth-1 group titles necesitan respiración vertical.
   * Padding 4px 0 6px -> 8px 0 10px + border-bottom subtle separator */
  display: inline-block;
  padding: 8px 0 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--ec-border);
  font-family: var(--ec-font-label);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ec-text-secondary);
  transition: color 0.15s;
}

.ec-mm-link--depth-1:hover {
  color: var(--ec-primary);
}

/* L2 items — leaf links (categorías reales WC) */
.ec-mm-children--depth-2 {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ec-mm-link--depth-2 {
  display: block;
  padding: 5px 0;
  font-family: var(--ec-font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--ec-text-secondary);
  transition:
    color 0.15s,
    padding-left 0.15s;
}

.ec-mm-link--depth-2:hover {
  color: var(--ec-primary);
  padding-left: 4px;
}

/* ─── Brand strip bottom (placeholder vacío hasta items con ec-mega-brand) ─── */
.ec-chrome-mega-menu__brand-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--ec-border);
  border-bottom: 1px solid var(--ec-border);
  margin-bottom: 24px;
  min-height: 52px;
}

.ec-chrome-mega-menu__brand-label {
  flex-shrink: 0;
  color: var(--ec-text-muted);
}

.ec-chrome-mega-menu__brand-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.ec-chrome-mega-menu__brand-list:empty::after {
  content: "Marcas destacadas se mostrarán aquí cuando se marquen en el menú.";
  font-family: var(--ec-font-body);
  font-size: 12px;
  color: var(--ec-text-hint);
  font-style: italic;
}

/* Items with ec-mega-brand class render as chips automatically (walker adds .ec-chip) */
.ec-mm-item--brand .ec-mm-link--brand {
  padding: 8px 14px;
  font-size: 12px;
  font-family: var(--ec-font-mono);
  font-weight: 500;
  color: var(--ec-text-secondary);
  background: var(--ec-surface-2);
  border-radius: var(--ec-r-pill);
  letter-spacing: 0.02em;
  transition:
    background 0.15s,
    color 0.15s;
}

.ec-mm-item--brand .ec-mm-link--brand:hover {
  background: var(--ec-black);
  color: #fff;
}

/* ─── Service cards (3 cards, --ec-black bg + glow) ─── */
.ec-chrome-mega-menu__services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ec-chrome-mega-menu__service-card {
  position: relative;
  overflow: hidden;
  background: var(--ec-black);
  color: #fff;
  border-radius: var(--ec-r-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  gap: 14px;
}

.ec-chrome-mega-menu__service-card:hover {
  /* Sub-fase 1E E7-1: shadow neutra (Brand System §5: "No colored glow shadows").
   * El glow indigo del background ::glow ya provee tone — la sombra es neutral. */
  transform: translateY(-2px);
  box-shadow: var(--ec-shadow-overlay);
}

.ec-chrome-mega-menu__service-glow {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: var(--ec-primary);
  opacity: 0.35;
  filter: blur(50px);
  pointer-events: none;
}

.ec-chrome-mega-menu__service-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ec-chrome-mega-menu__service-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--ec-r-md);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: #fff;
}

.ec-chrome-mega-menu__service-eyebrow {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.ec-chrome-mega-menu__service-title {
  font-family: var(--ec-font-display);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
  color: #fff;
}

.ec-chrome-mega-menu__service-desc {
  font-family: var(--ec-font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

.ec-chrome-mega-menu__service-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ec-primary-light);
  font-family: var(--ec-font-body);
  font-weight: 600;
  font-size: 13px;
  transition: gap 0.15s ease;
}

.ec-chrome-mega-menu__service-card:hover .ec-chrome-mega-menu__service-cta {
  gap: 10px;
}

/* ─── Tablet (768-1024px): mega-menu colapsa columnas ─── */
@media (max-width: 1024px) and (min-width: 768px) {
  .ec-chrome-mega-menu__inner {
    padding: 24px 24px 20px;
  }
  .ec-mega-menu-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .ec-chrome-mega-menu__services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .ec-chrome-mega-menu__service-card {
    padding: 18px;
    min-height: 160px;
  }
  .ec-chrome-mega-menu__service-title {
    font-size: 14px;
  }
}

/* Body scroll lock cuando mega-menu abierto */
body.ec-mega-open {
  overflow: hidden;
}

/* En mobile el mega-menu desktop NO debería estar visible (drawer/catalog toma su rol) */
@media (max-width: 767px) {
  .ec-chrome-mega-menu-container,
  .ec-chrome-all-categories-container,
  .ec-chrome-mega-menu-backdrop {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
 * All-categories overlay (chip "Todas las categorías") — overview 6 cards
 * ═══════════════════════════════════════════════════════════════ */
.ec-chrome-all-categories-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ec-surface);
  border-bottom: 1px solid var(--ec-border);
  box-shadow: var(--ec-shadow-overlay);
  z-index: 30;
  animation: ecMegaFadeIn 0.2s ease both;
}

.ec-chrome-all-categories-container[hidden] {
  display: none;
}

.ec-chrome-all-categories {
  position: relative;
}

.ec-chrome-all-categories__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 40px 28px;
}

.ec-chrome-all-categories__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--ec-border);
}

.ec-chrome-all-categories__heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ec-chrome-all-categories__title {
  font-family: var(--ec-font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ec-text-primary);
  line-height: 1.1;
}

.ec-chrome-all-categories__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ec-text-muted);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-r-md);
  background: var(--ec-surface);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  flex-shrink: 0;
}

.ec-chrome-all-categories__close:hover {
  background: var(--ec-surface-2);
  color: var(--ec-text-primary);
  border-color: var(--ec-border-hover);
}

/* Grid 3x2: 5 L0 cards + 1 feature card "Cotización corporativa" */
.ec-chrome-all-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ec-chrome-all-categories__card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--ec-surface-2);
  border: 1px solid transparent;
  border-radius: var(--ec-r-lg);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
  color: inherit;
}

.ec-chrome-all-categories__card:hover {
  background: var(--ec-surface);
  border-color: var(--ec-border-hover);
  transform: translateY(-1px);
}

.ec-chrome-all-categories__icon {
  width: 42px;
  height: 42px;
  background: var(--ec-surface);
  border-radius: var(--ec-r-md);
  display: grid;
  place-items: center;
  color: var(--ec-primary);
  flex-shrink: 0;
}

.ec-chrome-all-categories__card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ec-chrome-all-categories__card-title {
  font-family: var(--ec-font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ec-text-primary);
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}

.ec-chrome-all-categories__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--ec-text-muted);
  transition:
    color 0.15s,
    gap 0.15s ease;
}

.ec-chrome-all-categories__card:hover .ec-chrome-all-categories__card-cta {
  color: var(--ec-primary);
  gap: 6px;
}

/* Feature card destacada — Cotización corporativa */
.ec-chrome-all-categories__card--feature {
  background: var(--ec-black);
  color: #fff;
}

.ec-chrome-all-categories__card--feature:hover {
  background: var(--ec-black-deep);
  border-color: transparent;
}

.ec-chrome-all-categories__card--feature .ec-chrome-all-categories__card-title {
  color: #fff;
  font-family: var(--ec-font-display);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ec-chrome-all-categories__card--feature .ec-chrome-all-categories__card-cta {
  color: var(--ec-primary-light);
}

.ec-chrome-all-categories__card--feature:hover
  .ec-chrome-all-categories__card-cta {
  color: #fff;
}

.ec-chrome-all-categories__icon--feature {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Tablet: grid 2 cols */
@media (max-width: 1024px) and (min-width: 768px) {
  .ec-chrome-all-categories__inner {
    padding: 24px 24px 24px;
  }
  .ec-chrome-all-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ═══════════════════════════════════════════════════════════════
 * Footer (C4) — 5/3/1 cols responsive grid + black-surface bg
 * ═══════════════════════════════════════════════════════════════ */
.ec-chrome-footer {
  background: var(--ec-black-surface);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 40px 24px;
}

.ec-chrome-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
}

.ec-chrome-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ec-chrome-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}

.ec-chrome-footer__logo {
  display: inline-flex;
  color: #fff;
}
/* v2.10.1 Wave 2 ISSUE 5B: forzar altura logo footer +40% (44px → 62px). */
.ec-chrome-footer__logo img {
  height: 62px;
  width: auto;
  max-height: 62px;
  display: block;
}

.ec-chrome-footer__desc {
  font-family: var(--ec-font-body);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.ec-chrome-footer__contact {
  display: flex;
  gap: 12px;
  font-family: var(--ec-font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
}

.ec-chrome-footer__contact a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s;
}

.ec-chrome-footer__contact a:hover {
  color: #fff;
}

.ec-chrome-footer__col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ec-chrome-footer__col-title {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.ec-chrome-footer__col a {
  display: block;
  padding: 5px 0;
  font-family: var(--ec-font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s;
}

.ec-chrome-footer__col a:hover {
  color: #fff;
}

.ec-chrome-footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ec-chrome-footer__newsletter-desc {
  font-family: var(--ec-font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Sub-fase 1H Bucket 3 P2: visible label (antes screen-reader-text).
 * Footer surface oscuro --ec-black-surface, texto neutro alto contraste. */
.ec-chrome-footer__newsletter-label {
  font-family: var(--ec-font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.ec-chrome-footer__newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

/* Label en su propia línea (full width); input + botón en fila debajo. */
.ec-chrome-footer__newsletter-row {
  display: flex;
  gap: 6px;
}

.ec-chrome-footer__newsletter-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ec-r-md);
  color: #fff;
  font-family: var(--ec-font-body);
  font-size: 13px;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.ec-chrome-footer__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.ec-chrome-footer__newsletter-input:focus {
  outline: 0;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--ec-primary);
}

.ec-chrome-footer__newsletter-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ec-primary);
  color: #fff;
  border-radius: var(--ec-r-md);
  transition:
    background 0.15s,
    transform 0.12s;
  flex-shrink: 0;
}

.ec-chrome-footer__newsletter-btn:hover {
  background: var(--ec-primary-dark);
  transform: translateX(2px);
}

.ec-chrome-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-family: var(--ec-font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.ec-chrome-footer__legal-links {
  display: flex;
  gap: 18px;
}

.ec-chrome-footer__legal-links a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s;
}

.ec-chrome-footer__legal-links a:hover {
  color: #fff;
}

/* Tablet: 3 cols (brand + 3 link cols, newsletter abajo full width) */
@media (max-width: 1024px) and (min-width: 768px) {
  .ec-chrome-footer {
    padding: 48px 24px 24px;
  }
  .ec-chrome-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ec-chrome-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  .ec-chrome-footer__newsletter {
    grid-column: 1 / -1;
  }
}

/* Mobile: 1 col stack */
@media (max-width: 767px) {
  .ec-chrome-footer {
    padding: 32px 16px 24px;
  }
  .ec-chrome-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 24px;
  }
  .ec-chrome-footer__brand {
    max-width: none;
  }
  .ec-chrome-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════════
 * Cart toast (Sub-fase 1G-fix B1.3)
 * Reemplazo del sidebar Woodmart parent — toast inferior 4s tras
 * `added_to_cart` AJAX event. Sticky, dismissible, link a /carrito/.
 * ═══════════════════════════════════════════════════════════════ */
.ec-cart-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  border-radius: var(--ec-r-pill, 999px);
  background: var(--ec-text-primary, #060606);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-family: var(--ec-font-body, "Montserrat", sans-serif);
  font-size: 13.5px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  max-width: calc(100% - 24px);
}
.ec-cart-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.ec-cart-toast__icon {
  color: var(--ec-success, #16a34a);
  flex-shrink: 0;
}
.ec-cart-toast__msg {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.ec-cart-toast__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.ec-cart-toast__link:hover {
  color: var(--ec-primary-light, #e0e0ff);
}
.ec-cart-toast__close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 2px;
}
.ec-cart-toast__close:hover {
  color: #fff;
}
@media (min-width: 768px) {
  .ec-cart-toast {
    bottom: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ec-cart-toast {
    transition: opacity 0.15s ease;
    transform: translate(-50%, 0);
  }
}

/* ═══════════════════════════════════════════════════════════════
 * v2.11.0 Issue 7 — Mobile search overlay + bottom-tab "Buscar" + ocultar
 * search bar inline del header mobile.
 *
 * Razón: el search input inline en el header mobile (`.ec-chrome-mobile__search`)
 * generaba overlap visual con el icono carrito en viewports estrechos (320-360px)
 * y reducía tap target del logo. Relocamos a un fullscreen overlay invocado por
 * un nuevo tab "Buscar" en el bottom-tab-bar (4to slot, entre Cotizar y Mi Cuenta).
 * Mismo patrón visual que `.ec-chrome-catalog` (mobile-catalog-overlay).
 * ═══════════════════════════════════════════════════════════════ */

/* Ocultar search bar inline del header mobile en mobile viewport.
 * Conserva el espacio visual horizontal para el logo + iconos sin overlap. */
@media (max-width: 767px) {
  .ec-chrome-mobile__search,
  .ec-chrome-mobile__search--fibo {
    display: none !important;
  }
  /* Re-balancear flex del bar mobile: logo izq + iconos der, sin search en medio. */
  .ec-chrome-mobile__bar {
    justify-content: space-between;
  }
}

/* Search overlay — fullscreen slide-up, mismo pattern que .ec-chrome-catalog.
 *
 * v2.11.2 Issue 1 (CRITICAL) — Reporte Benjamín: el overlay aparecía "stuck"
 * en DESKTOP cubriendo la search results page con un segundo search bar
 * y botón VOLVER. Root cause: el overlay era invocado por el bottom-tab
 * "Buscar" (mobile-only via `@media (max-width:767px)`), pero CSS del
 * overlay NO tenía scope desktop → si el body class `ec-search-open` se
 * dejaba pegado por una transición mobile→desktop (resize, bfcache, race
 * condition de cierre), el overlay se renderizaba fullscreen z-index 9100
 * sobre TODO el contenido desktop.
 *
 * Fix defensa-en-profundidad: ocultar el overlay completamente en >=768px
 * con `display:none !important` y NO renderizar transition/transform fuera
 * de mobile. El overlay debe ser exclusivamente mobile por diseño (PWA
 * pattern). El `body.ec-search-open` sigue dispatchando pero el CSS
 * desktop bloquea el render. Si algún día se quiere search overlay
 * desktop, hacer un componente separado.
 */
.ec-chrome-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ec-surface);
  z-index: 9100;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  -webkit-overflow-scrolling: touch;
}

/* Mobile only: habilitar render + slide-up animation. */
@media (max-width: 767px) {
  .ec-chrome-search-overlay {
    display: flex;
  }

  /* Keep display:flex on [hidden] so slide-down close transition runs cleanly. */
  .ec-chrome-search-overlay[hidden] {
    display: flex;
  }
}

body.ec-search-open .ec-chrome-search-overlay {
  transform: translateY(0);
}

/* Desktop hard-guard: incluso si body.ec-search-open queda pegado, no mostrar. */
@media (min-width: 768px) {
  .ec-chrome-search-overlay {
    display: none !important;
    transform: translateY(100%) !important;
  }
  /* También limpiar body lock por si la clase queda pegada en desktop. */
  body.ec-search-open {
    overflow: visible !important;
  }
}

.ec-chrome-search-overlay__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ec-border);
  flex-shrink: 0;
}

.ec-chrome-search-overlay__title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ec-chrome-search-overlay__title {
  font-family: var(--ec-font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ec-text-primary);
  line-height: 1.1;
}

.ec-chrome-search-overlay__close {
  min-height: 36px;
  height: auto;
  padding: 6px 14px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ec-text-primary);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-r-pill, 999px);
  background: var(--ec-surface);
  transition:
    background 0.15s,
    border-color 0.15s;
  flex-shrink: 0;
  font-family: var(--ec-font-display, "Exo 2", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.ec-chrome-search-overlay__close:hover {
  background: var(--ec-surface-2);
}

.ec-chrome-search-overlay__close-label {
  white-space: nowrap;
}

.ec-chrome-search-overlay__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 24px;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ec-chrome-search-overlay__input-wrap {
  width: 100%;
}

/* Fibo Search render dentro del overlay: full width pill input. */
.ec-chrome-search-overlay__input-wrap .dgwt-wcas-search-wrapp,
.ec-chrome-search-overlay__input-wrap .dgwt-wcas-search-form {
  width: 100%;
}

.ec-chrome-search-overlay__input-wrap .dgwt-wcas-search-input {
  height: 48px;
  border-radius: var(--ec-r-pill);
  background: var(--ec-surface-2);
  border: 1.5px solid var(--ec-border);
  font-family: var(--ec-font-body);
  font-size: 15px;
  color: var(--ec-text-primary);
  padding: 0 16px 0 44px;
  width: 100%;
}

.ec-chrome-search-overlay__input-wrap .dgwt-wcas-search-input:focus {
  background: var(--ec-surface);
  border-color: var(--ec-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ec-primary) 18%, transparent);
  outline: 0;
}

/* Fallback form (Fibo plugin no activo). */
.ec-chrome-search-overlay__form {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.ec-chrome-search-overlay__icon {
  position: absolute;
  left: 16px;
  color: var(--ec-text-muted);
  pointer-events: none;
}

.ec-chrome-search-overlay__input {
  width: 100%;
  height: 48px;
  padding: 0 56px 0 44px;
  border-radius: var(--ec-r-pill);
  background: var(--ec-surface-2);
  border: 1.5px solid var(--ec-border);
  font-family: var(--ec-font-body);
  font-size: 15px;
  color: var(--ec-text-primary);
}

.ec-chrome-search-overlay__input:focus {
  background: var(--ec-surface);
  border-color: var(--ec-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ec-primary) 18%, transparent);
  outline: 0;
}

.ec-chrome-search-overlay__submit {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--ec-primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ec-chrome-search-overlay__submit:hover {
  background: var(--ec-primary-dark);
}

.ec-chrome-search-overlay__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.ec-chrome-search-overlay__hint-text {
  font-family: var(--ec-font-body);
  font-size: 12.5px;
  color: var(--ec-text-muted);
  text-align: center;
  line-height: 1.4;
}

/* Body lock cuando overlay abierto (mismo pattern que catalog y filter drawer). */
body.ec-search-open {
  overflow: hidden;
}

/* Bottom tab bar fix: el slot reservado se removió, los 5 slots ahora son funcionales.
 * Cada item-grid (1fr) sigue distribuyendo el ancho equitativo entre los 5. */
.ec-chrome-bottom-tabs--5slots {
  display: flex;
}
.ec-chrome-bottom-tabs--5slots .ec-chrome-bottom-tabs__item {
  flex: 1;
  min-width: 0;
}

/* Bottom tab "Buscar" — button reset + idéntica visualización a los <a> sibling. */
.ec-chrome-bottom-tabs button.ec-chrome-bottom-tabs__item.js-ec-search-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: center;
}
