/* kohen-search.css - estilos del buscador en hero */
.kohen-search {
  position: relative;
  margin-top: 16px;
  max-width: 480px;
  font-family: inherit;
}
/* Variante para paginas internas (no hero): centrado horizontal con padding */
.kohen-search--page {
  margin: 140px auto 24px;
  padding: 0 20px;
  max-width: 720px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}
@media (max-width: 768px) {
  .kohen-search--page {
    margin-top: 100px;
  }
}
.kohen-search__input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  font-size: 16px;
  border: 2px solid #d4d4d4;
  border-radius: 999px;
  background: #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556B2F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>")
    no-repeat 16px center / 18px 18px;
  outline: none;
  transition: border-color 0.15s;
  color: #1f3007;
}
.kohen-search__input:focus {
  border-color: #6b8e23;
  box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.15);
}
.kohen-search__input::placeholder {
  color: #999;
}
.kohen-search__results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 1000;
  max-height: 360px;
  overflow-y: auto;
}
.kohen-search__results[hidden] { display: none; }
.kohen-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #1f3007;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}
.kohen-search__item:last-child { border-bottom: 0; }
.kohen-search__item:hover { background: #f5f7f0; }
.kohen-search__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.kohen-search__badge--producto { background: #e8f0d6; color: #4a6a17; }
.kohen-search__badge--categoria { background: #fef3d6; color: #8a6a17; }
.kohen-search__title { font-size: 14px; line-height: 1.3; }
