/* Header live product search dropdown for 55printing chrome */

.header-search-wrap.ff-header-search {
  position: relative;
  overflow: visible;
  z-index: 30;
  max-width: 100%;
  min-width: 0;
  background: transparent;
  box-shadow: none;
}

.header-search-wrap.ff-header-search .header-search-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

.header-search-wrap.ff-header-search:focus-within .header-search-field {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

.header-search-wrap.ff-header-search .header-search-input {
  min-width: 0;
  flex: 1 1 auto;
  width: 1px;
}

.header-search-wrap.ff-header-search .header-search-input:focus {
  outline: none;
}

.header-search-wrap.ff-header-search .header-search-btn {
  flex: 0 0 auto;
}

.live-search-results-container {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 400px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  z-index: 500;
  opacity: 0;
  transform: translateY(-10px) scaleY(0.98);
  transform-origin: top center;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, visibility 0.25s ease-out;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  visibility: hidden;
}

.live-search-results-container.visible {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  visibility: visible;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: #374151;
  cursor: pointer;
  font-size: 0.9rem;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f3f4f6;
  color: #374151;
  text-decoration: none;
}

.search-result-item img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  margin-right: 12px;
  border-radius: 4px;
  background-color: #f9fafb;
  flex-shrink: 0;
}

.search-message,
.search-error {
  padding: 15px;
  text-align: center;
}

.search-message {
  color: #6b7280;
  font-style: italic;
}

.search-error {
  color: #b91c1c;
}

@media (max-width: 991.98px) {
  .nav-pill .header-search-wrap.ff-header-search {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
    margin: 0 8px 0 6px;
  }

  .nav-pill .header-search-wrap.ff-header-search .header-search-btn {
    padding: 0 14px;
  }

  .live-search-results-container {
    left: -8px;
    right: -8px;
  }
}

@media (max-width: 575.98px) {
  .nav-pill .header-search-wrap.ff-header-search {
    margin: 0 6px 0 4px;
  }

  .nav-pill .header-search-wrap.ff-header-search .header-search-input {
    padding-left: 12px;
    padding-right: 10px;
    font-size: 13px;
  }

  .nav-pill .header-search-wrap.ff-header-search .header-search-btn {
    padding: 0 12px;
    font-size: 13px;
  }
}
