/* Buscador en celulares: lupa en la fila superior; al tocarla se abre la barra de busqueda. */
.ca-bm-toggle { display: none; }

@media (max-width: 767px) {
  body:not(#checkout) #header .header-top { position: relative; }

  /* Lupa */
  body:not(#checkout) .ca-bm-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 50%; right: 150px; transform: translateY(-50%);
    width: 36px; height: 36px; padding: 0; margin: 0;
    background: #ececec; border: 0; border-radius: 50%; cursor: pointer; z-index: 5; color: #555;
  }
  body:not(#checkout) .ca-bm-toggle svg { width: 20px; height: 20px; fill: currentColor; }

  /* Barra de busqueda: cerrada por defecto, flotante cuando se abre (no empuja ni tapa el menu) */
  body:not(#checkout) #search_widget { display: none !important; }
  body.ca-bm-open:not(#checkout) #search_widget {
    display: block !important; position: absolute; left: 0; right: 0; top: 100%;
    width: 100%; margin: 0; padding: 8px 12px; box-sizing: border-box;
    background: transparent; z-index: 1000;
  }
  body.ca-bm-open:not(#checkout) #search_widget form { width: 100%; margin: 0; }
  body.ca-bm-open:not(#checkout) #search_widget form input[type="text"] { width: 100%; min-width: 0; background: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
}
