/* --- Search page H1 (no hero banner on this page — a compact heading,
 * not .catalog-hero-title, which is sized/colored for a background-image
 * hero and looks oversized/wrong on a plain page background). --- */
.search-page-title {
  font-family: var(--font-inter);
  font-size: 1.875rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.025em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .search-page-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .search-page-title {
    font-size: 3rem; /* 54px at the site's 18px desktop root font-size */
  }
}

/* --- Search Header Box --- */
.search-header-box {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  border-radius: 0.375rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .search-header-box {
    padding: 2rem;
  }
}

.search-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-header-title {
  font-family: var(--font-inter);
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .search-header-title {
    font-size: 1.875rem;
  }
}

.clear-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.clear-search-btn:hover {
  color: #ef4444;
}

.search-header-subtitle {
  font-family: var(--font-inter);
  font-size: 1rem;
  color: #4b5563;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .search-header-subtitle {
    font-size: 1.25rem;
  }
}

/* --- Search Controls Bar --- */
.search-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-inter);
  font-size: 0.875rem;
  color: #6b7280;
}

.controls-row-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.controls-row-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .controls-row-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .controls-row-bottom {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.view-toggles {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.view-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.view-toggle-btn:hover,
.view-toggle-btn.active {
  color: #111827;
}

.results-count {
  font-size: 0.875rem;
  color: #4b5563;
}

.standalone-sort {
  display: none;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  color: #6b7280;
  font-size: 0.875rem;
}
.standalone-sort:hover {
  color: #111827;
}
@media (min-width: 1024px) {
  .standalone-sort {
    display: flex;
  }
}

.dropdown-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-select {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 0.125rem;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  transition: border-color 0.2s ease;
}

.search-breadcrumbs {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.custom-select:hover {
  border-color: #d1d5db;
}

.custom-select select {
  appearance: none;
  background: transparent;
  border: none;
  font-family: var(--font-inter);
  font-size: 0.875rem;
  color: #1f2937;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  cursor: pointer;
  outline: none;
}

.custom-select::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #9ca3af;
  pointer-events: none;
}

/* --- Overrides for Search Catalog Cards --- */
.catalog-card {
  text-decoration: none !important;
  color: inherit !important;
  background-color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 1rem !important;
}

@media (min-width: 768px) {
  .catalog-card {
    padding: 1.5rem !important;
    border: none !important;
  }
}

.catalog-card * {
  text-decoration: none !important;
}

.catalog-card-title {
  font-family: var(--font-inter) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #0c0407 !important;
  text-transform: uppercase !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.25 !important;
}

@media (min-width: 768px) {
  .catalog-card-title {
    font-size: 1.25rem !important;
  }
}

.catalog-card-desc {
  font-family: var(--font-inter) !important;
  font-size: 0.875rem !important;
  color: #6b7280 !important;
  line-height: 1.625 !important;
  margin: 0 !important;
  flex-grow: 1 !important;
}

@media (min-width: 768px) {
  .catalog-card-desc {
    font-size: 1.125rem !important;
  }
}
