/* NeoFarma MX · buscador principal premium */
.home-page .neo-premium-search {
  position: relative !important;
  z-index: 35 !important;
  overflow: visible !important;
  padding: clamp(12px, 2vw, 18px) !important;
  border: 1px solid rgba(54, 220, 255, .22) !important;
  border-radius: 22px !important;
  color: #eefaff !important;
  background:
    radial-gradient(circle at 92% 18%, rgba(86, 242, 125, .055), transparent 26%),
    linear-gradient(145deg, rgba(5, 18, 30, .98), rgba(3, 11, 20, .99)) !important;
  box-shadow: 0 18px 42px rgba(4, 22, 36, .18), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

.home-page .neo-home-search { position: relative; z-index: 36; width: 100%; }

.home-page .neo-premium-searchbar {
  width: 100% !important;
  min-height: 68px !important;
  gap: 12px !important;
  padding: 8px 10px 8px 18px !important;
  border: 1px solid rgba(54, 220, 255, .42) !important;
  border-radius: 17px !important;
  background: linear-gradient(180deg, rgba(6, 22, 37, .98), rgba(3, 14, 24, .99)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 10px 24px rgba(0,0,0,.18) !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}

.home-page .neo-premium-searchbar:focus-within {
  border-color: rgba(54, 220, 255, .9) !important;
  box-shadow: 0 0 0 3px rgba(54,220,255,.13), 0 0 26px rgba(20,140,255,.12), 0 12px 26px rgba(0,0,0,.2) !important;
  transform: translateY(-1px);
}

.home-page .neo-premium-searchbar .neo-home-search__icon {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #52e4ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(54,220,255,.22));
}

.home-page .neo-premium-searchbar input[name="q"] {
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f4fbff !important;
  font: 500 1rem/1.35 "IBM Plex Sans", sans-serif !important;
  letter-spacing: .005em;
}

.home-page .neo-premium-searchbar input[name="q"]::placeholder {
  color: #8ca8b8 !important;
  opacity: 1;
}

.home-page .neo-premium-searchbar input[name="q"]:focus {
  outline: 0 !important;
  box-shadow: none !important;
}

.home-page .neo-premium-searchbar button {
  flex: 0 0 auto;
  min-width: 98px !important;
  min-height: 46px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(70,230,193,.5) !important;
  border-radius: 13px !important;
  color: #031319 !important;
  background: linear-gradient(105deg,#4bdfff,#56e99c 95%) !important;
  box-shadow: 0 5px 18px rgba(40,200,220,.15) !important;
  font: 750 .8rem/1 "IBM Plex Sans", sans-serif !important;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.home-page .neo-premium-searchbar button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(40,200,220,.22) !important;
}

.home-page .neo-premium-searchbar button:focus-visible,
.home-page .neo-home-search__all:focus-visible,
.home-page .neo-home-search__result:focus-visible {
  outline: 3px solid rgba(85,223,255,.55) !important;
  outline-offset: 3px !important;
}

.home-page .neo-home-search__results {
  position: absolute;
  z-index: 60;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  max-height: min(64vh, 470px);
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(54,220,255,.35);
  border-radius: 17px;
  background: linear-gradient(160deg,rgba(5,18,30,.99),rgba(3,11,20,.99));
  box-shadow: 0 20px 48px rgba(0,0,0,.35), 0 0 24px rgba(20,140,255,.09), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(18px);
  animation: neo-search-open .18s ease both;
}

.home-page .neo-home-search__results[hidden] { display: none !important; }
.home-page .neo-home-search__options { display: grid; gap: 3px; }

.home-page .neo-home-search__result {
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #effaff !important;
  text-decoration: none !important;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.home-page .neo-home-search__result:hover,
.home-page .neo-home-search__result[aria-selected="true"] {
  border-color: rgba(54,220,255,.2);
  background: linear-gradient(100deg,rgba(20,140,255,.12),rgba(54,220,255,.035));
}
.home-page .neo-home-search__result:hover { transform: translateY(-1px); }

.home-page .neo-home-search__image {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(185,220,230,.35);
  border-radius: 10px;
  background: #f7fbfc;
}
.home-page .neo-home-search__image img { width: 100%; height: 100%; object-fit: contain; }

.home-page .neo-home-search__copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}
.home-page .neo-home-search__copy strong {
  overflow: hidden;
  color: #f3fbff;
  font: 650 .83rem/1.25 "IBM Plex Sans", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-page .neo-home-search__presentation {
  overflow: hidden;
  color: #9ab1bf;
  font: 450 .69rem/1.25 "IBM Plex Sans", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-page .neo-home-search__category {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid rgba(54,220,255,.18);
  border-radius: 999px;
  color: #8dddf0;
  font: 600 .57rem/1.2 "IBM Plex Sans", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .neo-home-search__price {
  min-width: 95px;
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}
.home-page .neo-home-search__price strong {
  color: #77f0a0;
  font: 750 .82rem/1.2 "IBM Plex Sans", sans-serif;
  white-space: nowrap;
}
.home-page .neo-home-search__price small {
  color: #829ba9;
  font: 500 .57rem/1.2 "IBM Plex Sans", sans-serif;
  white-space: nowrap;
}
.home-page .neo-home-search__action {
  min-width: 61px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(54,220,255,.2);
  border-radius: 10px;
  color: #b6eff7;
  font: 650 .64rem/1 "IBM Plex Sans", sans-serif;
  white-space: nowrap;
}
.home-page .neo-home-search__action b { color: #56dcff; font-size: .82rem; }

.home-page .neo-home-search__status {
  margin: 5px 9px 2px;
  color: #8da7b4;
  font: 500 .67rem/1.4 "IBM Plex Sans", sans-serif;
}
.home-page .neo-home-search__all {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 8px 12px;
  border: 1px solid rgba(54,220,255,.16);
  border-radius: 11px;
  color: #81e7f5;
  background: rgba(20,140,255,.07);
  font: 650 .7rem/1.2 "IBM Plex Sans", sans-serif;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.home-page .neo-home-search__all:hover {
  border-color: rgba(54,220,255,.38);
  color: #d7faff;
  background: rgba(20,140,255,.14);
}
.home-page .neo-home-search__all[hidden] { display: none; }
.home-page .neo-premium-chips { margin-top: 13px !important; }
.home-page .neo-premium-chips a {
  border-color: rgba(54,220,255,.18) !important;
  color: #a5d6df !important;
  background: rgba(5,18,30,.74) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}
.home-page .neo-premium-chips a:hover {
  border-color: rgba(54,220,255,.38) !important;
  color: #e4fbff !important;
  background: rgba(20,140,255,.12) !important;
}
.home-page .neo-premium-chips a:focus-visible {
  outline: 3px solid rgba(85,223,255,.38) !important;
  outline-offset: 2px !important;
}

@keyframes neo-search-open {
  from { opacity: 0; transform: translateY(-5px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .home-page .neo-premium-searchbar { min-height: 62px !important; gap: 9px !important; padding: 7px 8px 7px 13px !important; }
  .home-page .neo-premium-searchbar button { min-width: 72px !important; min-height: 44px !important; padding: 0 11px !important; }
  .home-page .neo-premium-searchbar input[name="q"] { min-height: 46px !important; font-size: 1rem !important; }
  .home-page .neo-home-search__results { max-height: min(60vh,420px); padding: 5px; }
  .home-page .neo-home-search__result { grid-template-columns: 48px minmax(0,1fr) auto; gap: 9px; min-height: 70px; padding: 8px; }
  .home-page .neo-home-search__image { width: 48px; height: 48px; }
  .home-page .neo-home-search__price { min-width: 71px; }
  .home-page .neo-home-search__action { display: none; }
}

@media (max-width: 430px) {
  .home-page .neo-premium-search { padding: 10px !important; border-radius: 18px !important; }
  .home-page .neo-premium-searchbar { gap: 7px !important; padding-inline: 10px 7px !important; border-radius: 14px !important; }
  .home-page .neo-premium-searchbar .neo-home-search__icon { flex-basis: 20px; width: 20px; height: 20px; }
  .home-page .neo-premium-searchbar button { min-width: 66px !important; padding-inline: 8px !important; font-size: .73rem !important; }
  .home-page .neo-home-search__result { grid-template-columns: 44px minmax(0,1fr) auto; gap: 7px; padding: 7px; }
  .home-page .neo-home-search__image { width: 44px; height: 44px; }
  .home-page .neo-home-search__copy strong { font-size: .76rem; }
  .home-page .neo-home-search__presentation { font-size: .64rem; }
  .home-page .neo-home-search__category { max-width: 190px; font-size: .54rem; }
  .home-page .neo-home-search__price { min-width: 68px; }
  .home-page .neo-home-search__price strong { font-size: .72rem; }
  .home-page .neo-home-search__price small { font-size: .53rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .neo-premium-searchbar,
  .home-page .neo-premium-searchbar button,
  .home-page .neo-home-search__result,
  .home-page .neo-home-search__all { transition: none !important; }
  .home-page .neo-home-search__results { animation: none; }
}

/* Búsqueda NeoFarma: no tratar un CSV o caché como inventario confirmado */
.home-page .neo-home-search__price.is-unverified strong {
  color: #b9dce5 !important;
  font-weight: 650;
  font-size: .69rem;
  white-space: normal;
  max-width: 145px;
  line-height: 1.3;
}
.home-page .neo-home-search__price.is-unverified small {
  color: #a8bac6 !important;
  max-width: 150px;
  white-space: normal;
  line-height: 1.35;
}
@media(max-width:430px) {
  .home-page .neo-home-search__price.is-unverified strong { font-size: .64rem; }
  .home-page .neo-home-search__price.is-unverified small { font-size: .52rem; }
}
