/* Search Component Styles */
.product-search-category .form-group {
  position: relative;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white-color);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 999;
  margin-top: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-results-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.results-list {
  max-height: 450px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease;
  text-decoration: none;
  color: var(--primary-dark-color);
}

.search-result-item:hover {
  background: var(--main-bg);
}

.result-image {
  width: 50px;
  height: 60px;
  flex-shrink: 0;
  margin-right: 15px;
  border-radius: 6px;
  overflow: hidden;
}

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

.result-info {
  flex-grow: 1;
}

.result-title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 2px 0;
  color: var(--primary-dark-color);
  line-height: 1.2;
}

.result-title strong {
  color: var(--primary-color);
  font-weight: 700;
}

.result-category {
  font-size: 11px;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.result-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.result-price .current-price {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 14px;
}

.result-price .old-price {
  text-decoration: line-through;
  color: var(--light-gray);
  font-size: 12px;
}

.view-all-results {
  display: block;
  padding: 15px;
  text-align: center;
  background: var(--primary-dark-color);
  color: var(--white-color) !important;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.view-all-results:hover {
  background: var(--primary-color);
}

.no-results {
  padding: 30px 20px;
  text-align: center;
  color: var(--text-color);
  font-style: italic;
}

/* Custom Scrollbar for results */
.results-list::-webkit-scrollbar {
  width: 4px;
}
.results-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.results-list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
  .search-results-dropdown {
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    max-height: 80vh;
    border-radius: 12px;
  }
}
