
.searchContainerComponent {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: inherit;
  box-sizing: border-box;
  justify-content: center;
  flex-direction: column;
}

.searchMobileContainerComponent { display: none; }

/* --- Barra de búsqueda --- */
.searchButtonComponent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--border-radius, 8px);
}

.searchButtonComponent input,
input.searchSite {
  flex: 1 1 auto;
  min-width: 0;             
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.searchImg,
.mobileSearchImgComponent {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.search-results-component {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  width: min(600px, 100%);
  background: #fff;
  box-shadow: 0 5px 16px rgb(0 0 0 / 29%);
  z-index: 9;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
  word-break: break-word;
  border-radius: var(--border-radius, 8px);
}

/* Mensaje sin resultados */
.search-noResults {
  width: 100%;
  padding: 0 15px;
  line-height: 40px;
}

/* --- Item de resultado --- */
.search-hit {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--base, #000);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid var(--lines-border-color, #d9d9db);
  padding: 8px 0;
  justify-content: space-between;
  transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  -webkit-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
}

.category-view-more{
  margin: 0px 16px;
  padding-right: 10px;
}

.search-hit:last-child { border-bottom: 0; }

.search-hit-img {
  flex: 0 0 50px;
  height: 50px;
  object-fit: cover;
  margin-left: 16px;
  aspect-ratio: var(--main-img-product, 1/1);
}

.search-hit-info {
  flex: 1 1 auto;
  min-width: 0;             
  margin: 0 10px;
}

.search-hit-sku {
  font-weight: var(--spec-title-font-weight, bold);
}

.search-hit-title {
  max-height: 45px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;     
  -webkit-box-orient: vertical;
}

.search-hit-name,
.search-hit-name1,
.search-hit-name2 {
  text-align: left;
  margin-left: 14px;
  height: auto;
  display: flex;
  align-items: center;
  padding: 6px 0;
}

.search-hit-price {
  font-weight: var(--prices-font-weight, bold);
  width: 70px;
  text-align: right;
  margin-right: 15px;
  flex: 0 0 auto;
}

.search-buy-button {
  flex: 0 0 auto;
  text-align: center;
  margin-left: 10px;
  margin-right: 16px;
  border-radius: var(--border-radius, 8px);
}


.search-hit-view-all {
  display: block;
  text-align: center;
  line-height: 30px;
  padding: 0;
  font-weight: var(--spec-title-font-weight, bold);
  transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  -webkit-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
}


@media screen and (max-width: 1100px) {
  .searchMobileContainerComponent { display: block; }

  .mobileSearchBarComponent {
    margin: 0 auto;
    height: 45px;
    display: flex;
    align-items: center;
  }

  .mobileSearch { width: 100%; }
}

@media screen and (max-width: 768px) {
  .search-results-component {
    position: absolute;
    top: 100%;
    left: unset;
    right: unset;
    margin-top: 8px;
    max-height: calc(99dvh - 160px);
    width: 95%;
  }

  .search-hit { padding: 10px 0; }
}
@media screen and (min-width: 1100px) {
    .search-hit:hover{
  background:#f1f1f1;
}
.search-hit-view-all:hover{
  background-color: var(--secondary, #000 );
  color: var(--button-font-color, #fff);
}

}