
/* Search Bar */
.search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 140, 126, 0.1);
}

.search__input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.938rem;
  color: var(--text-primary);
  width: 300px;
}

.search__input::placeholder {
  color: var(--text-secondary);
}

.btn--search {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn--search:hover {
  background: rgba(2, 140, 126, 0.1);
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: whitesmoke;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
}

.search-suggestions li {
  color: black;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border);
}

.search-suggestions li:last-child {
  border-bottom: none;
}

.search-suggestions li:hover {
  background: var(--background-alt);
  color: var(--primary);
}


.search {
  display: flex;
  align-items: center;
  background: var(--background);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s, background 0.3s;
}

.search:focus-within {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  background: var(--background);
}

.search__input {
  flex: 1;
  border: none;
  background: var(--background);
  padding: 0.5rem 0.75rem;
  /* padding-left: 2.5rem; */
  font-size: 1rem;
  color: var(--color-gray-100);
  outline: none;
  transition: color 0.2s;
}

.search__input::placeholder {
  color: var(--color-gray-700);
  color: var(--text-secondary);
  font-style: italic;
}

.search__icon {
  display: block;
}


.search-btn, .cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border-radius: 8px;
}

.search-btn:hover, .cart-btn:hover {
  color: var(--primary);
  background: var(--background-alt);
}

@media (max-width: 768px) {


  .search__input {
      width: 200px;
  }

}

@media (max-width: 480px) {


  .search__input {
      width: 150px;
      font-size: 0.875rem;
  }
.search__input::placeholder {
     color: var(--color-gray-600);
  }

}