.sb-search-page {
  padding: 18px 0 28px;
}

.sb-search-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  background: linear-gradient(140deg, #ffffff, #f7f7f7);
  margin-bottom: 12px;
}

.sb-search-hero h1 {
  margin: 0 0 6px;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #111;
}

.sb-search-hero h1 span {
  color: #2c2c2c;
}

.sb-search-hero p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.sb-result-count {
  margin-top: 10px;
  color: #202020;
}

.sb-inline-search {
  display: flex;
  align-items: center;
  width: min(420px, 100%);
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.sb-inline-search input {
  flex: 1;
  border: 0;
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
}

.sb-inline-search button {
  border: 0;
  border-left: 1px solid #e5e5e5;
  background: #111;
  color: #fff;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
}

.sb-soft-match-alert {
  margin-bottom: 14px;
  border: 1px solid #d8d8d8;
  background: #fafafa;
  color: #2a2a2a;
  border-radius: 12px;
  padding: 10px 12px;
}

.sb-soft-match-alert i {
  margin-right: 6px;
}

.sb-search-sidebar {
  margin-bottom: 18px;
}

.sb-filter-card {
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  position: sticky;
  top: 95px;
}

.sb-filter-card h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.sb-filter-card .card {
  border: 1px solid #ececec;
  border-radius: 10px;
}

.sb-filter-card .card-header {
  background: #fafafa;
  border-bottom: 1px solid #ededed;
  padding: 10px 12px;
}

.sb-filter-card .card-header a {
  color: #1f1f1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
}

.sb-filter-card .checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #2b2b2b;
}

.sb-filter-card .checkbox input {
  accent-color: #111;
}

.sb-filter-card .checkbox-list ul {
  margin-left: 18px;
  margin-top: 8px;
}

.sb-price-values {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #222;
  font-weight: 600;
}

.sb-search-results {
  min-height: 420px;
}

.sb-results-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.sb-results-toolbar label {
  margin: 0;
  color: #333;
  font-weight: 600;
}

.sb-results-toolbar .sort-select {
  width: auto;
  min-width: 340px;
  max-width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #d7d7d7;
  padding: 0 40px 0 12px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%232a2a2a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 10px 8px;
  background-position: right 12px center;
}

.sb-product-grid {
  margin-left: -8px;
  margin-right: -8px;
}

.sb-product-col {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 16px;
}

.sb-empty-state {
  border: 1px dashed #cdcdcd;
  border-radius: 14px;
  background: #fbfbfb;
  text-align: center;
  padding: 28px 16px;
}

.sb-empty-state h3 {
  margin-bottom: 8px;
  color: #161616;
}

.sb-empty-state p {
  margin-bottom: 14px;
  color: #666;
}

.sb-empty-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.sb-empty-suggestions a {
  border: 1px solid #e1e1e1;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  color: #1f1f1f;
  text-decoration: none;
}

.sb-empty-suggestions a:hover {
  background: #f3f3f3;
}

.sb-pager-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.sb-pager-wrap .pagination {
  margin-bottom: 0;
}

.sb-pager-wrap .page-link {
  color: #242424;
  border-color: #d8d8d8;
}

.sb-pager-wrap .page-item.active .page-link {
  background: #111;
  border-color: #111;
  color: #fff;
}

.sb-page-loading {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1f1f1f;
  font-weight: 600;
}

.sb-page-loading.is-visible {
  display: flex;
}

.sb-page-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #d3d3d3;
  border-top-color: #111;
  border-radius: 50%;
  animation: search-spin 0.8s linear infinite;
}

@media (max-width: 991px) {
  .sb-filter-card {
    position: static;
    top: auto;
  }

  .sb-search-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .sb-results-toolbar {
    justify-content: space-between;
  }
}

@media (max-width: 575px) {
  .sb-search-page {
    padding-top: 10px;
  }

  .sb-search-hero h1 {
    font-size: 1.3rem;
  }

  .sb-results-toolbar .sort-select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}
