#header-search {
    position: relative;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #009688;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 15px auto;
}

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

/* Container for the live search results */
.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
    margin: 0px 40px;
  }
  
  /* Unordered list styling */
  .live-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 3px solid #009688;
    border-left: 1px solid #009688;
    border-right: 1px solid #009688;
    border-radius: 0 0 8px 8px;
  }
  
  /* Styling for each search result list item */
  .live-results-list li {
    border-bottom: 1px solid var(--border-info-color, #eee);
  }
  
  /* Remove the border from the last list item */
  .live-results-list li:last-child {
    border-bottom: none;
  }
  
  /* Anchor tag styling to display content in one line */
  .live-results-list li a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
  }
  
  /* Hover effect for the search result item */
  .live-results-list li a:hover {
    background-color: #f2fffe;
    color: var(--color-white, #fff);
  }
  
  /* Image styling within the search result */
  .live-results-list li a img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
  }
  
  /* Container for product information (title and price) */
  .product-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Styling for the product title */
  .product-info h4 {
    font-size: 16px;
    margin: 0;
    padding-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Styling for the product price */
  .product-info .price {
    font-size: 16px;
    color: var(--theme-color, #007bff);
    white-space: nowrap;
  }
  
  /* Responsive design adjustments */
  @media (max-width: 768px) {
    .live-results-list li a {
      flex-direction: column;
      align-items: flex-start;
    }
    .product-info {
      flex-direction: column;
      align-items: flex-start;
      margin-top: 5px;
    }
    .product-info h4,
    .product-info .price {
      white-space: normal;
    }
  }
  