.search-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.search-box {
  position: relative;
  width: 320px;
  height: 40px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 25px;
  padding: 0 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid #ddd;
  z-index: 9000;
}

.search-box input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: Arial, sans-serif;
  padding-left: 10px;
  background: transparent;
}

.search-icon {
  color: #777;
  cursor: pointer;
  transition: 0.2s;
}

.search-icon:hover {
  color: black;
}
.suggestions {
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  max-height: 250px;   /* important */
  background: rgba(20, 10, 25, 0.85);
  backdrop-filter: blur(12px);  border-radius: 12px;
  border: 1px solid rgba(247, 231, 161, 0.2);
  border-radius: 14px;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.4),
    0 0 15px rgba(247, 231, 161, 0.15); 
    overflow-y: auto;
   overflow-x: hidden;
  display: none;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.suggestions::-webkit-scrollbar {
  width: 6px;
}

/* track (background) */
.suggestions::-webkit-scrollbar-track {
  background: rgba(20, 10, 25, 0.4);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

/* thumb (scroll handle) */
.suggestions::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #d4af37, #f7e7a1);
  border-radius: 10px;

  box-shadow:
    0 0 10px rgba(212, 175, 55, 0.4),
    0 0 20px rgba(247, 231, 161, 0.2);
}

/* hover effect */
.suggestions::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #f7e7a1, #d4af37);
  box-shadow:
    0 0 14px rgba(247, 231, 161, 0.6),
    0 0 25px rgba(212, 175, 55, 0.4);
}

.suggestions div {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #f7e7a1;
  transition: 0.2s;
  border-bottom: 1px solid rgba(247, 231, 161, 0.08);
  text-align: left;
  }

.suggestions div:hover,
.suggestions div.active {
  background: linear-gradient(135deg, #d4af37, #ff85a2);
  color: #1a0f1f;

  transform: scale(1.02);
}

.suggestions div:empty {
  text-align: center;
  color: #aaa;
}

.suggestions {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-box:focus-within {
  border: 1px solid black;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

#searchInput {
  caret-color: black;
}
