/* Search Page Styles */
.search-page {
  padding-top: 50px;
  /* Space for solid header */
  padding-bottom: 80px;
}

.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-subtitle {
  color: var(--text-muted);
}

.search-layout {
  display: flex;
  gap: 30px;
}

/* Sidebar Filters */
.sidebar {
  width: 300px;
  flex-shrink: 0;
}

.filter-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.filter-card h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group {
  margin-bottom: 15px;
}

.filter-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.filter-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: #fcfcfc;
  font-family: inherit;
  font-size: 0.95rem;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 1em;
}

.filter-btn {
  width: 100%;
  margin-top: 15px;
}

/* Main Content area */
.main-content {
  flex: 1;
}

/* Use parts-grid and part-card from home.css */
/* I will import them in HTML or just rely on global/home if I separate properly. 
   Actually, it's better to put shared components like part-card in global.css, 
   but for now, I will just redefine the grid here or assume home.css is loaded if needed. 
   Let's redefine the grid specifically for the search page to be safe and independent. */

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: white;
  border: 1px solid var(--border-color);
  font-weight: 600;
  transition: all 0.2s;
  color: var(--text-main);
}

.page-btn:hover {
  background-color: #f1f3f5;
}

.page-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ==========================================
   Search Responsive Design (Mobile & Tablet)
   ========================================== */
@media (max-width: 992px) {
  .search-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .search-page {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .page-title {
    font-size: 2rem !important;
  }

  .search-results-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}