/* BricoClick Search: formulario y desplegable. El color de acento se pasa en --bs-color. */
.bs-form {
  position: relative;
  width: 100%;
  max-width: 600px;
  --bs-color: #f1a412;
}
.bs-caja {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  overflow: hidden;
}
.bs-caja:focus-within {
  border-color: var(--bs-color);
  box-shadow: 0 0 0 2px rgba(241, 164, 18, 0.25);
}
.bs-form .bs-entrada {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 14px;
  height: 44px;
  font-size: 15px;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}
.bs-entrada::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.bs-form .bs-boton {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-height: 0;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--bs-color) !important;
  color: #fff !important;
  box-shadow: none;
  cursor: pointer;
  padding: 0;
}
.bs-form .bs-boton:hover {
  filter: brightness(0.95);
}
/* La lupa, en blanco y más grande (se ve igual de bien sobre el amarillo del botón). */
.bs-form .bs-boton svg {
  width: 26px;
  height: 26px;
  display: block;
  flex: 0 0 auto;
}
.bs-form .bs-boton svg path {
  stroke: #fff;
  stroke-width: 2.2;
}
.bs-cargando {
  position: absolute;
  right: 62px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #ddd;
  border-top-color: #888;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.bs-form.bs-ocupado .bs-cargando {
  opacity: 1;
  animation: bs-giro 0.7s linear infinite;
}
@keyframes bs-giro {
  to {
    transform: rotate(360deg);
  }
}

.bs-lista {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 99999;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  text-align: left;
}
.bs-lista[hidden] {
  display: none;
}
.bs-grupo {
  margin: 0;
  padding: 10px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888;
}
.bs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  color: #222;
  text-decoration: none;
  line-height: 1.3;
  cursor: pointer;
}
.bs-item:hover,
.bs-item.bs-activo {
  background: #f6f6f6;
}
.bs-item img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
}
.bs-item .bs-hueco {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: #f0f0f0;
}
.bs-texto {
  min-width: 0;
}
.bs-titulo {
  display: block;
  font-size: 14px;
}
.bs-titulo b {
  font-weight: 700;
  background: rgba(241, 164, 18, 0.28);
}
.bs-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #888;
}
.bs-termino {
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 14px;
}
.bs-todos {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #222;
  text-decoration: none;
  border-top: 1px solid #eee;
  background: #fafafa;
}
.bs-todos:hover,
.bs-todos.bs-activo {
  background: #f0f0f0;
}
.bs-vacio {
  padding: 16px 14px;
  color: #666;
  font-size: 14px;
}

/* Botón de cerrar (solo en pantalla completa) */
.bs-volver {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 46px;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
  padding: 0;
}
.bs-form .bs-volver {
  display: none !important;
}
.bs-form .bs-volver svg {
  width: 26px;
  height: 26px;
  min-width: 26px;
  display: block;
  flex: 0 0 auto;
}
.bs-form .bs-volver {
  margin: 0;
  min-height: 0;
  height: auto;
  box-shadow: none;
  background: transparent !important;
  color: #222 !important;
  border-radius: 0;
}

/* Móvil: el buscador ocupa toda la pantalla */
html.bs-sin-scroll {
  overflow: hidden;
}
.bs-form.bs-pantalla {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  width: auto;
  max-width: none;
  margin: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.bs-form.bs-pantalla .bs-caja {
  flex: 0 0 auto;
  border-radius: 0;
  border-width: 0 0 1px;
}
.bs-form.bs-pantalla .bs-volver {
  display: inline-flex !important;
}
.bs-form.bs-pantalla .bs-lista {
  position: static;
  flex: 1 1 auto;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
}

/* Dentro de la capa de pantalla completa de Woodmart y del menú móvil */
.wd-search-full-screen .bs-form {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 15px;
}
.wd-search-full-screen .bs-form .bs-entrada {
  height: 56px;
  font-size: 18px;
}
.wd-search-full-screen .bs-form .bs-boton {
  width: 64px;
}
.wd-search-full-screen .bs-form .bs-boton svg {
  width: 30px;
  height: 30px;
}
.mobile-nav .bs-form {
  max-width: none;
  padding: 10px 0;
}

/* Barra de búsqueda de la cabecera (36 px de alto, borde fino, texto pequeño en cursiva y botón con muesca) */
.bs-form.bs-cabecera {
  max-width: none;
  width: 100%;
}
.bs-form.bs-cabecera .bs-caja {
  overflow: visible;
  border-color: #e3e3e3;
  border-radius: 0;
}
.bs-form.bs-cabecera .bs-entrada {
  height: 36px;
  font-size: 13px;
  padding: 0 12px;
}
.bs-form.bs-cabecera .bs-entrada::placeholder {
  font-style: italic;
  font-size: 12px;
  color: #8a8a8a;
  opacity: 1;
}
.bs-form.bs-cabecera .bs-boton {
  width: 52px;
  position: relative;
}
.bs-form.bs-cabecera .bs-boton svg {
  width: 28px;
  height: 28px;
}
.bs-form.bs-cabecera .bs-boton::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  margin-top: -6px;
  border: 6px solid transparent;
  border-left-width: 0;
  border-right-color: var(--bs-color);
}
.bs-form.bs-cabecera .bs-cargando {
  right: 56px;
}
.bs-form.bs-cabecera .bs-lista {
  top: calc(100% + 6px);
  min-width: min(460px, 92vw);
}
.bs-form.bs-pantalla.bs-cabecera .bs-lista,
.bs-form.bs-pantalla .bs-lista {
  min-width: 0;
}
.bs-form.bs-pantalla.bs-cabecera .bs-caja {
  overflow: hidden;
}
.bs-form.bs-pantalla.bs-cabecera .bs-entrada {
  height: 48px;
  font-size: 16px;
}
.bs-form.bs-pantalla.bs-cabecera .bs-boton::before {
  display: none;
}
.bs-aviso {
  margin: 0;
  padding: 8px 14px;
  font-size: 12px;
  color: #8a5a00;
  background: #fff8e6;
  border-bottom: 1px solid #f0e0b8;
}
