.growlab-algolia-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.growlab-algolia-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
}

.growlab-algolia-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.algolia-product-search-input {
  width: 100%;
  padding: 0.75rem 2.8rem 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
}

.algolia-product-search-input:focus {
  border-color: #0073aa;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.25);
}

.algolia-product-search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #666;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease-in-out;
}

.algolia-product-search-submit:hover {
  color: #0073aa;
}

.algolia-product-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  margin-top: 6px;
  display: none;
  overflow: hidden;
}

.algolia-product-search-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.algolia-product-search-suggestion {
  border-bottom: 1px solid #f1f5f9;
}

.algolia-product-search-suggestion:last-child {
  border-bottom: none;
}

.algolia-product-search-suggestion a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #1e293b;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.algolia-product-search-suggestion a:hover {
  background-color: #f8fafc;
}

.algolia-suggestion-image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  margin-right: 12px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.algolia-suggestion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.algolia-suggestion-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.algolia-suggestion-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.3;
}

.algolia-suggestion-price {
  font-size: 0.875rem;
  color: #0284c7;
  font-weight: 700;
  margin-top: 2px;
}

.algolia-product-search-loading,
.algolia-product-search-no-results,
.algolia-product-search-error {
  padding: 1rem;
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
}

#algolia-product-search-desktop {
  width: 500px !important;
}
