/* ============================= */
/* CONTENEDOR PADRE DEL BUSCADOR */
/* ============================= */


.jt-search {
  position: relative;
  width: 500px; /* o el ancho real del buscador */
  z-index: 2000;
}
.results-box {
  position: fixed; 
  top: 102px; /* ajusta según altura real de tu header */
  left: 67%;
  transform: translateX(-22%);
  width: 500px;
  max-height: 460px;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0,0,0,0.05);
  overflow-y: auto;
  z-index: 999999;
  padding: 10px 0;
  overflow-x: hidden;
}
/* ========================= */
/* SCROLL MODERNO */
/* ========================= */
.results-box::-webkit-scrollbar {
  width: 6px;
}
.results-box::-webkit-scrollbar-thumb {
  background: #d5d5d5;
  border-radius: 10px;
}
.results-box::-webkit-scrollbar-thumb:hover {
  background: #b5b5b5;
}

/* ============================= */
/* ANIMACIÓN */
/* ============================= */
@keyframes fadeSearch {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================= */
/* SCROLL MODERNO */
/* ============================= */
.results-box::-webkit-scrollbar {
  width: 6px;
}

.results-box::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 10px;
}

.results-box::-webkit-scrollbar-thumb:hover {
  background: #b5b5b5;
}

/* ============================= */
/* ITEM INDIVIDUAL */
/* ============================= */
.result-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 25px;
  text-decoration: none;
  color: #222;
  transition: all 0.25s ease;
  border-bottom: 1px solid #f2f2f2;
}

.result-item:last-child {
  border-bottom: none;
}

.result-item:hover {
  background: #f5f8ff;
  transform: scale(1.01);
}

/* ============================= */
/* IMAGEN PRODUCTO */
/* ============================= */
.result-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  background: #f8f8f8;
  padding: 6px;
  transition: 0.2s ease;
}

.result-item:hover img {
  transform: scale(1.05);
}

/* ============================= */
/* INFO CONTENEDOR */
/* ============================= */
.result-info {
  flex: 1;
}

/* TITULO */
.result-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  color: #222;
}

/* PRECIO */
.result-price {
  font-size: 17px;
  font-weight: 800;
  color: #0d47a1;
}

/* ============================= */
/* RESALTADO BUSQUEDA */
/* ============================= */
mark {
  background: #ffe8a3;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 600;
}
/* ============================= */
/* RESULTADO VACÍO */
/* ============================= */
.empty-results {
  padding: 30px;
  text-align: center;
  color: #888;
}

.empty-results i {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

/* ============================= */
/* BOTÓN VER TODOS */
/* ============================= */
.view-all {
  margin-top: 6px;
  padding: 18px;
  text-align: center;
  font-weight: 600;
  background: linear-gradient(90deg, #1a73e8, #0d47a1);
  color: #fff;
  cursor: pointer;
  border-radius: 0 0 20px 20px;
  transition: 0.3s ease;
}


.view-all a {
  color: #fff;
  text-decoration: none;
}

.view-all:hover {
  opacity: 0.9;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
  .results-box {
    max-height: 350px;
  }

  .result-item img {
    width: 50px;
    height: 50px;
  }

  .result-title {
    font-size: 14px;
  }

  .result-price {
    font-size: 13px;
  }
}


