:root {
  --background-color: #ffffff;
  --main-color: #06329f;
  --text-color: #000000;
  --second-background-color: #fffbf5;
  --second-main-color: #cef0e9;
  --second-text-color: #bf2323;
  --title-font: Quicksand-Medium;
  --normal-font: Quicksand-Regular;
  --hiep-color: #ff4e88;
}

.lk-gia-si-label {
  font-family: Quicksand-Bold;
}
.sh-sp-moi-card-info {
  flex: 1;
}
.fbn-product-code-label {
  font-family: Quicksand-Bold;
  font-size: clamp(1.4rem, 1.3385rem + 0.3077vw, 1.6rem);
}
.fbn-product-code-number {
  font-family: Quicksand-Bold;
  color: #3498db;
}
.sh-sp-moi-card .fbn-product-code-label {
  font-size: clamp(0.9rem, 0.8692rem + 0.1538vw, 1rem);
}
.sh-sp-moi-card .fbn-product-code-number {
  font-size: clamp(0.9rem, 0.8692rem + 0.1538vw, 1rem);
}

/* ===== LIVE SEARCH STYLES ===== */

/* Search Form Container */
.sh-search-form {
  position: relative;
}

/* Search Result Dropdown */
.sh-header__search-result {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search Results Container */
.sh-search-results {
  padding: 8px 0;
}

/* Individual Search Item */
.sh-search-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
}

.sh-search-item:last-child {
  border-bottom: none;
}

.sh-search-item:hover,
.sh-search-item--hover,
.sh-search-item--selected {
  background-color: #f8f9ff;
  border-left: 3px solid var(--main-color);
}

/* Search Item Image */
.sh-search-item__image {
  width: 50px;
  height: 50px;
  margin-right: 12px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-search-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-search-no-image {
  color: #ccc;
  font-size: 20px;
}

/* Search Item Content */
.sh-search-item__content {
  flex: 1;
  min-width: 0;
}

.sh-search-item__title {
  font-family: var(--title-font);
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-search-item__code {
  font-size: 12px;
  color: var(--main-color);
  font-weight: 500;
  margin-bottom: 2px;
}

.sh-search-item__type {
  font-size: 11px;
  color: #666;
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-block;
  font-weight: 500;
}

.sh-search-item__price {
  margin-top: 4px;
}

.sh-search-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--second-text-color);
}

.sh-search-price-sale {
  font-size: 13px;
  font-weight: 600;
  color: var(--second-text-color);
  margin-right: 6px;
}

.sh-search-price-old {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

/* View All Link */
.sh-search-view-all {
  padding: 12px 16px;
  border-top: 1px solid #e0e0e0;
  background-color: #f8f9fa;
}

.sh-search-view-all__link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sh-search-view-all__link:hover {
  color: var(--hiep-color);
  text-decoration: none;
}

.sh-search-view-all__link i {
  margin-left: 6px;
  font-size: 11px;
}

/* No Results */
.sh-search-no-result {
  padding: 20px 16px;
  text-align: center;
  color: #666;
}

.sh-search-no-result__icon {
  font-size: 24px;
  color: #ccc;
  margin-bottom: 8px;
}

.sh-search-no-result__text {
  font-size: 13px;
  color: #999;
}

/* Loading State */
.sh-search-loading {
  padding: 16px;
  text-align: center;
  color: var(--main-color);
  font-size: 13px;
}

.sh-search-loading i {
  margin-right: 8px;
}

/* Error State */
.sh-search-error {
  padding: 16px;
  text-align: center;
  color: var(--second-text-color);
  font-size: 13px;
  background-color: #fff5f5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sh-header__search-result {
    left: -20px;
    right: -20px;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
  }
  
  .sh-search-item {
    padding: 10px 16px;
  }
  
  .sh-search-item__image {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  
  .sh-search-item__title {
    font-size: 13px;
  }
  
  .sh-search-item__code {
    font-size: 11px;
  }
  
  .sh-search-price,
  .sh-search-price-sale {
    font-size: 12px;
  }
  
  .sh-search-price-old {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .sh-header__search-result {
    max-height: 250px;
  }
  
  .sh-search-item {
    padding: 8px 12px;
  }
  
  .sh-search-item__image {
    width: 35px;
    height: 35px;
    margin-right: 8px;
  }
  
  .sh-search-item__title {
    font-size: 12px;
    -webkit-line-clamp: 1;
  }
}
