/* Global Search Styles */
.search-wrapper {
  position: relative;
  display: inline-block;
}

.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  display: none;
}

.search-dropdown {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 90%;
  max-width: 700px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  overflow: hidden;
}

.search-input {
  width: 100%;
  padding: 20px 24px;
  border: none;
  border-bottom: 2px solid #f0f0f0;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  outline: none;
}

.search-input::placeholder {
  color: #999;
}

.search-input:focus {
  border-bottom-color: #231c17;
}

.search-suggestions {
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
}

.search-suggestion-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover {
  background: #f8f8f8;
}

.search-suggestion-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.search-suggestion-info {
  flex: 1;
  min-width: 0;
}

.search-suggestion-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #231c17;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-brand {
  font-size: 0.85rem;
  color: #666;
}

.search-suggestion-price {
  font-weight: 600;
  color: #231c17;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .search-dropdown {
    width: 94%;
    max-width: none;
    top: 15%;
  }
  
  .search-input {
    padding: 16px 18px;
    font-size: 1rem;
  }
  
  .search-suggestion-item {
    padding: 10px 12px;
  }
  
  .search-suggestion-img {
    width: 40px;
    height: 40px;
  }
  
  .search-suggestion-name {
    font-size: 0.9rem;
  }
  
  .search-suggestion-brand {
    font-size: 0.8rem;
  }
  
  .search-suggestion-price {
    font-size: 0.95rem;
  }
}
