/* AUTUNEO (03/11/2026) - Encabezado de escritorio en dos filas, estilo Mercado Libre. Solo >=1200px.
   Fila 1: logo | buscador ancho siempre visible | aviso editable (modulo autuneoeta)
   Fila 2: "Enviar a" | menu | Mis pedidos | cuenta y carrito
   La barra de anuncios (displayBanner) sigue arriba, sin cambios. En <1200 no se aplica nada de este archivo. */
@media (min-width: 1200px) {
  #header.header .header-bottom__row {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 24px;
    row-gap: 0;
    align-items: center;
  }
  #header.header .header-bottom__row > .header-bottom__logo { grid-column: 1; grid-row: 1; width: auto; margin: 0; }
  #header.header .header-bottom__row > #_desktop_ps_searchbar { grid-column: 2; grid-row: 1; }
  #header.header .header-bottom__row > .aeta-promo { grid-column: 3; grid-row: 1; width: auto; justify-content: flex-end; }
  #header.header .header-bottom__row > .aeta-loc { grid-column: 1; grid-row: 2; padding: 0 0 4px; }
  #header.header .header-bottom__row > .ps-mainmenu--desktop { grid-column: 2; grid-row: 2; width: auto; max-width: none; padding: 0 0 4px; }
  #header.header .header-bottom__row > .header-bottom__actions { grid-column: 3; grid-row: 2; width: auto; min-width: 0; margin: 0; padding-bottom: 4px; justify-self: end; }
  #header.header .header-bottom__row > template,
  #header.header .header-bottom__row > .ps-mainmenu--mobile { display: none; }

  /* Buscador: siempre visible, ancho, con la lupa a la derecha (el widget de ps_searchbar no se toca, solo se muestra). */
  #header.header #_desktop_ps_searchbar {
    position: static !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    max-width: none !important;
    width: 100%;
    justify-content: stretch;
  }
  #header.header #_desktop_ps_searchbar .ps-searchbar,
  #header.header #_desktop_ps_searchbar .ps-searchbar__form { width: 100% !important; max-width: none !important; }
  #header.header #_desktop_ps_searchbar .ps-searchbar__input {
    height: 44px;
    border-radius: 12px !important;
    border: 1.5px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
    font-size: 15.5px;
    padding-left: 20px !important;
    padding-right: 64px !important;
  }
  #header.header #_desktop_ps_searchbar .ps-searchbar__input:focus { border-color: #b81a20 !important; box-shadow: 0 0 0 4px rgba(184, 26, 32, .12) !important; }
  /* La lupa pasa al extremo derecho del campo. */
  #header.header #_desktop_ps_searchbar .ps-searchbar__form { position: relative; }
  #header.header #_desktop_ps_searchbar .ps-searchbar__magnifier { left: auto !important; right: 20px !important; pointer-events: none; }
  #header.header #_desktop_ps_searchbar .ps-searchbar__clear { right: 56px !important; }

  /* Cuenta y carrito: "Ingresar" en texto para quien no inició sesión. */
  @layer utilities {
    #header.header .header-bottom__actions .autuneo-search-toggle { display: none !important; }
    #header.header .header-bottom__actions #guestUserMenuButton { width: auto !important; min-width: 0 !important; max-width: none !important; overflow: visible !important; padding: 0 12px !important; gap: 8px; font-size: 15px; font-weight: 600; color: #111827; }
    #header.header .header-bottom__actions #guestUserMenuButton::after { content: "Ingresar" !important; display: inline-block !important; width: auto !important; height: auto !important; font-family: inherit !important; letter-spacing: normal !important; text-indent: 0 !important; line-height: 1.2 !important; clip-path: none !important; mask: none !important; border: 0 !important; margin: 0 !important; font-size: 15px; font-weight: 600; }
  }

  /* Aviso editable de la derecha. */
  .aeta-promo { display: flex; }
  .aeta-promo__pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px; background: #fef2f2; color: #b81a20; font-size: 14.5px; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; transition: background .15s; }
  a.aeta-promo__pill:hover { background: #fde4e4; color: #9c1419; }
  .aeta-promo__pill svg { width: 22px; height: 22px; flex: none; }
  .aeta-loc { align-items: center; }
}

@media (min-width: 1200px) {
  #header.header .header-bottom__row .ps-mainmenu--desktop ul { flex-wrap: nowrap; white-space: nowrap; }
}

/* Compacto: logo y filas mas bajos (alto total cercano a una tienda de referencia, sin copiar su diseño). */
@media (min-width: 1200px) {
  #header.header .header-bottom { padding-top: 8px !important; padding-bottom: 0 !important; }
  #header.header .header-bottom__logo .logo,
  #header.header .header-bottom__logo img,
  #header.header .header-bottom .navbar-brand .logo { max-height: 52px !important; width: auto !important; max-width: 160px !important; }
  #header.header .header-bottom__row > .header-bottom__logo { padding-bottom: 2px; }
  #header.header .header-bottom__row .ps-mainmenu--desktop .nav-link,
  #header.header .header-bottom__row .ps-mainmenu--desktop a { padding-top: 6px !important; padding-bottom: 6px !important; }
  .aeta-chip__text small { font-size: 11.5px; }
  .aeta-chip__text b { font-size: 14px; }
}

@media (min-width: 1200px) {
  #header.header .header-bottom__row { align-items: center; }
  #header.header .header-bottom__logo, #header.header .header-bottom__logo .navbar-brand, #header.header .header-bottom__logo h1 { padding: 0 !important; margin: 0 !important; line-height: 0; }
  #header.header #_desktop_ps_searchbar .ps-searchbar__input { height: 44px !important; min-height: 44px !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  #header.header .header-bottom__row > .ps-mainmenu--desktop,
  #header.header .header-bottom__row > .aeta-loc,
  #header.header .header-bottom__row > .header-bottom__actions { align-self: center; height: auto; min-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; }
  #header.header .header-bottom__row .ps-mainmenu--desktop nav, #header.header .header-bottom__row .ps-mainmenu--desktop ul { margin: 0 !important; padding: 0 !important; min-height: 0 !important; height: auto !important; }
  #header.header .header-bottom__row .ps-mainmenu--desktop li > a, #header.header .header-bottom__row .ps-mainmenu--desktop .ps-mainmenu__link { padding-top: 4px !important; padding-bottom: 4px !important; }
  #header.header .header-bottom__row > .aeta-loc { padding: 0 !important; }
  #header.header .header-bottom { padding-bottom: 6px !important; }
}

/* Alineacion de la fila 1: logo, buscador y aviso centrados en la misma linea. */
@media (min-width: 1200px) {
  #header.header .header-bottom__row > .header-bottom__logo,
  #header.header .header-bottom__row > #_desktop_ps_searchbar,
  #header.header .header-bottom__row > .aeta-promo { align-self: center !important; height: 60px; display: flex; align-items: center; }
  #header.header .header-bottom__row > #_desktop_ps_searchbar { margin: 0 !important; }
  #header.header #_desktop_ps_searchbar #ps_searchbar { margin: 0 !important; }
  #header.header .header-bottom__row > .aeta-promo { justify-content: flex-end; }
}
@media (min-width: 1500px) {
  #header.header .header-bottom__logo .logo, #header.header .header-bottom__logo img, #header.header .header-bottom .navbar-brand .logo { max-height: 56px !important; max-width: 175px !important; }
}
