.search-result-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.search-category {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.search-category-title {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.search-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.search-result-item:hover {
  background: #f3f4f6;
}
.search-result-item:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

.result-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

.product-result-main {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.result-thumb {
  width: 58px;
  height: 58px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.result-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-code {
  color: #6b7280;
  font-weight: 500;
}

.result-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-tag {
  background: #e0f2fe;
  color: #0284c7;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-category {
  background: #ecfeff;
  color: #0891b2;
}

@media (max-width: 576px) {
  .product-search-result-item {
    align-items: flex-start;
  }

  .result-tag {
    display: none;
  }
}

.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: #6b7280;
  animation: fadeIn 0.25s ease;
}

.empty-icon {
  width: 64px;
  height: 64px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.empty-icon i {
  font-size: 28px;
  color: #9ca3af;
}

.search-empty-state h4 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.search-empty-state p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 320px;
}

/* subtle animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.search-history-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.search-history-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.search-history-title span {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.search-history-title .clear-history {
  background: none;
  border: none;
  font-size: 12px;
  color: #3b82f6;
  cursor: pointer;
  padding: 0;
}
.search-history-title .clear-history:hover {
  text-decoration: underline;
}

.search-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-item {
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.history-item:hover {
  background: #e5e7eb;
}
.history-item:active {
  transform: scale(0.96);
}

.search-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}
.search-history-empty i {
  font-size: 22px;
  margin-bottom: 8px;
  opacity: 0.6;
}
.search-history-empty p {
  margin: 0;
}

/*# sourceMappingURL=SearchingModal.css.map */
