/* Search Page Styles */
.search-page {
  min-height: 80vh;
  padding-bottom: 40px;
}

.search-header {
  padding: 20px 0;
}

.search-header h1 {
  font-family: 'Playfair Display', serif;
  color: var(--accent-gold, #D4AF37);
  font-size: 1.5rem;
  margin: 0 0 16px;
}

.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-input:focus {
  border-color: var(--accent-gold, #D4AF37);
  background: rgba(255, 255, 255, 0.12);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.search-results {
  margin-top: 20px;
}

.search-loading {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.5);
}

.search-hint,
.search-suggestion {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.search-empty {
  text-align: center;
  padding: 40px 20px;
}

.search-empty p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.7);
}

.search-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin: 0 0 16px;
}

.search-results .product-card .product-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  text-transform: capitalize;
}

.search-results mark {
  background: rgba(212, 175, 55, 0.3);
  color: var(--accent-gold, #D4AF37);
  padding: 0 2px;
  border-radius: 2px;
}

/* Search Modal Trigger in Header */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.search-modal.open {
  opacity: 1;
  visibility: visible;
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.search-modal-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  outline: none;
}

.search-modal-close {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}