.akvamir-product-search {
  width: min(460px, 100%);
  max-width: 100%;
}

.akvamir-product-search__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.akvamir-product-search__field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px 0 46px;
  border: 1px solid rgba(126, 163, 93, 0.5);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(53, 95, 29, 0.08);
}

.akvamir-product-search__icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #5f8f3f;
}

.akvamir-product-search__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.akvamir-product-search__input {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #24311a;
  font: inherit;
  line-height: 1.2;
  padding: 0 !important;
  margin: 0 !important;
}

.akvamir-product-search__input:focus {
  outline: none;
}

.akvamir-product-search__input::placeholder {
  color: #7e8d72;
}

.akvamir-product-search__submit {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid #7ea35d;
  border-radius: 999px;
  background: #7ea35d;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.akvamir-product-search__submit:hover,
.akvamir-product-search__submit:focus {
  background: #6d914f;
  border-color: #6d914f;
  transform: translateY(-1px);
}

.akvamir-product-search__suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(126, 163, 93, 0.22);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.akvamir-product-search__suggestions[hidden] {
  display: none !important;
}

.akvamir-product-search__suggestion {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.akvamir-product-search__suggestion:hover,
.akvamir-product-search__suggestion:focus {
  background: #f3f8ee;
}

.akvamir-product-search__suggestion-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.akvamir-product-search__suggestion-image {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef5e7;
}

.akvamir-product-search__suggestion-image--placeholder {
  border: 1px dashed rgba(126, 163, 93, 0.35);
}

.akvamir-product-search__suggestion-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.akvamir-product-search__suggestion-title {
  color: #223018;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.akvamir-product-search__suggestion-price {
  color: #5f8f3f;
  font-size: 13px;
  line-height: 1.3;
}

.akvamir-product-search__empty {
  padding: 10px 12px;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 767px) {
  .akvamir-product-search {
    width: 100%;
  }

  .akvamir-product-search__form {
    gap: 8px;
  }

  .akvamir-product-search__field {
    min-height: 46px;
    padding-left: 42px;
  }

  .akvamir-product-search__submit {
    min-height: 46px;
    padding: 0 16px;
  }
}
