#products-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 products per row by default */
    gap: 16px;
    justify-items: center;
    width: 100%; /* Full-width container */
    margin: auto;
    padding: 16px; /* Padding around the container */
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    #products-container {
          grid-template-columns: 1fr !important; /* 1 product per row on smaller screens */
    }
}


  .flex {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .input-container {
    position: relative;
    width: 100%;
  }

  .static-label {
    position: absolute;
    right: 16px;
    top: 40%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #787070;
  }

  .dynamic-part {

    right: 34px; /* Adjusted to appear inside the input on the right */
    top: 40%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #777;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
  }
.search-button {
    height: 100%; /* Makes button the same height as the input field */
    padding: 0 16px; /* Adjusts padding for better alignment */
    background-color: #173831;
    color: white;

    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

  .search-button:hover {
    background-color: #000000;
  }

  .product-card {
    background-color: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 300px;
    max-width: 100%;
  }

  .product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}
#products-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 products per row */
    gap: 16px;
    justify-items: center;
    width: 100%; /* Make the container full-width */
    margin: auto;
    padding: 16px; /* Optional padding around the container */
    box-sizing: border-box;
}
.suggestions-dropdown {
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  margin-top: 0.25rem;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.suggestion-item {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.suggestion-item:hover {
  background-color: #f7f7f7;
}

.suggestion-image {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 0.375rem;
}

.suggestion-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.suggestion-text {
  display: flex;
  flex-direction: column;
}

.suggestion-title {
  font-weight: bold;
  font-size: 0.875rem;
  color: #333;
}

.suggestion-price {
  font-size: 0.75rem;
  color: #777;
  margin-left: auto; /* Pushes the price to the right side */
}

.text-quotation {
  font-style: italic;
  font-size: 12px;
  color: #777;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 128, 0, 0.3); /* Light green background for spinner */
  border-top-color: #006400; /* Dark green for the animated part */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto; /* Center align */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
