#searchForm {
  position: relative;
}

#searchInput:focus-visible {
  outline: 2px solid #0754ff;
  outline-offset: 2px;
  border-radius: 1px;
}

#searchSuggestions {
  position: absolute;
  z-index: 10;
  inset: calc(100% + 6px) 0 auto;
  overflow: hidden;
  border: 1px solid #dce5ea;
  border-radius: 8px;
  background: #fff;
  color: #10274b;
  box-shadow: 0 10px 24px #10274b2b;
  font: 14px/1.35 Arial, Helvetica, sans-serif;
}

#searchSuggestionOptions {
  max-height: min(330px, var(--suggestion-room, 50vh));
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.search-suggestion {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 7px 12px;
  border-bottom: 1px solid #edf0f3;
  cursor: pointer;
}

.search-suggestion:hover,
.search-suggestion[aria-selected="true"] {
  background: #e9f7f8;
  box-shadow: inset 3px 0 #007885;
}

.search-suggestion img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 4px;
  background: #f4f6f8;
}

.search-suggestion-name {
  overflow-wrap: anywhere;
}

.search-suggestion-price {
  font-weight: 700;
  white-space: nowrap;
}

.search-suggestion-all {
  position: sticky;
  bottom: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 44px;
  border-top: 1px solid #dce5ea;
  border-bottom: 0;
  background: #fff;
  color: #006974;
  font-weight: 700;
}

@media (max-width: 420px) {
  .search-suggestion {
    gap: 8px;
    padding-inline: 9px;
  }
}


/* Ajuste fotos y superposicion buscador */

.site-shell > header:has(#searchSuggestions:not([hidden])) {
  z-index: 100 !important;
  overflow: visible !important;
}

#searchSuggestions {
  z-index: 110;
  inset: calc(100% + 10px) 0 auto;
}

.search-suggestion:not(.search-suggestion-all) {
  grid-template-columns: 50px minmax(0, 1fr) auto;
  min-height: 64px;
}

.search-suggestion img {
  width: 50px;
  height: 50px;
}

@media (max-width: 767px) {
  .search-suggestion:not(.search-suggestion-all) {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    min-height: 70px;
  }

  .search-suggestion img {
    width: 56px;
    height: 56px;
  }
}


/* Imagenes ampliadas y foco suave */

.search-suggestion:not(.search-suggestion-all) {
  grid-template-columns: 65px minmax(0, 1fr) auto;
  min-height: 79px;
}

.search-suggestion img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

#searchInput:focus,
#searchInput:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

#searchForm:focus-within {
  outline: none !important;
  box-shadow: 0 0 0 1px #00877f40 !important;
}

@media (max-width: 767px) {
  .search-suggestion:not(.search-suggestion-all) {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    min-height: 82px;
  }

  .search-suggestion img {
    width: 68px;
    height: 68px;
  }
}


/* Correccion definitiva foco buscador */

html body header #searchForm:focus-within {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

html body header #searchForm #searchInput,
html body header #searchForm #searchInput:focus,
html body header #searchForm #searchInput:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
  -webkit-tap-highlight-color: transparent;
}

html body header #searchForm #searchInput:focus-visible {
  box-shadow: none !important;
}
