/* ==========================================================================
   Elevaan Network — Search results + empty state
   Product cards reuse homepage featured-card styles from home.css
   ========================================================================== */

.search-page {
  padding: 0 0 40px;
}

.search-page-inner {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
}

.search-heading {
  font-size: 26px;
  font-weight: 400;
  color: #222;
  line-height: 1.3;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.search-heading .search-query {
  font-weight: 600;
  color: #222;
}

.search-page-inner[hidden] {
  display: none;
}

/* ---- Category page — Fiverr-style text columns (no images) ---- */

.search-category-page {
  padding: 0 0 32px;
}

.search-category-page .search-heading {
  margin: 0 0 28px;
  padding: 0;
  border-bottom: none;
  font-size: 28px;
  font-weight: 600;
  color: #222325;
  letter-spacing: -0.02em;
}

.search-category-page .category-services {
  margin-bottom: 0;
  flex: 0 0 auto;
  gap: 6px;
}

/* Masonry — fixed 5 columns on desktop */
.search-category-page .categories-grid {
  display: block !important;
  column-count: 5;
  column-gap: 28px;
}

.search-category-page .search-categories-empty {
  column-span: all;
  margin: 24px 0 0;
  color: var(--text-muted, #6b7280);
  font-size: 1rem;
}

.search-category-page .category-card,
.search-category-page .category-card--text {
  display: inline-block;
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  vertical-align: top;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  /* Keep active category below fixed header when scrolling into view */
  scroll-margin-top: 150px;
}

.search-category-page .category-media {
  display: none !important;
}

.search-category-page .category-body {
  flex: 0 0 auto;
  padding: 0;
}

.search-category-page .category-body h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #222325;
}

.search-category-page .category-body h3 a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.search-category-page .category-body h3 a:hover {
  color: #404145;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-category-page .category-services li a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #404145;
  line-height: 1.45;
  padding: 2px 0;
  text-decoration: none;
}

.search-category-page .category-services li a:hover {
  color: #222325;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-category-page .category-card.is-active-category .category-body h3 {
  color: #2563eb;
}

@media (max-width: 1200px) {
  .search-category-page .categories-grid {
    column-count: 3;
    column-gap: 24px;
  }
}

@media (max-width: 800px) {
  .search-category-page {
    padding: 0 0 24px;
  }

  .search-category-page .search-heading {
    margin: 0 0 20px;
    font-size: 24px;
  }

  /* Mobile masonry — 2 columns */
  .search-category-page .categories-grid {
    display: block !important;
    column-count: 2;
    column-gap: 12px;
  }

  .search-category-page .category-card,
  .search-category-page .category-card--text {
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    vertical-align: top;
  }

  .search-category-page .category-body {
    flex: 0 0 auto;
  }

  .search-category-page .category-body h3 {
    font-size: 15px;
  }

  .search-category-page .category-services li a {
    font-size: 13px;
  }

  .search-category-page .category-card.is-active-category {
    border: none;
    box-shadow: none;
  }
}

/* ---- Empty / no results state ---- */

.search-empty {
  display: flex;
  justify-content: center;
  padding: 12px 0 10px;
}

.search-empty[hidden] {
  display: none;
}

.search-empty-card {
  width: 100%;
  max-width: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 8px 0 24px;
  text-align: center;
}

.search-empty-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 8px 12px 0;
}

.search-empty-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
}

.search-empty-illustration-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3f5f8 0%, #e8ecf2 100%);
}

.search-empty-illustration svg {
  position: relative;
  z-index: 1;
}

.search-empty-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa1ac;
}

.search-empty-title {
  font-size: 26px;
  font-weight: 500;
  color: #222325;
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}

.search-empty-title strong {
  font-weight: 700;
  color: #1c1c1d;
}

.search-empty-text {
  font-size: 15px;
  font-weight: 400;
  color: #74767e;
  max-width: 420px;
  margin: 0 0 18px;
  line-height: 1.55;
}

.search-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--color-orange-dark);
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.search-empty-cta:hover {
  background: #d63618;
  color: #fff;
}

.search-empty-cta span {
  font-size: 15px;
  line-height: 1;
}

.search-empty-rfq {
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px;
  padding-bottom: 0;
  text-align: left;
  scroll-margin-top: 96px;
}

.search-empty-rfq .rfq-banner {
  margin: 0;
}

.search-empty-rfq .rfq-copy {
  margin-top: 0;
}

.search-empty-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e8ecf2;
  text-align: left;
}

.search-empty-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 18px;
  border-right: 1px solid #e8ecf2;
}

.search-empty-feature:first-child {
  padding-left: 0;
}

.search-empty-feature:last-child {
  border-right: none;
  padding-right: 0;
}

.search-empty-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-empty-feature h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1c1c1d;
  margin: 0 0 4px;
  line-height: 1.3;
}

.search-empty-feature p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 1000px) {
  .search-page-inner {
    padding: 0;
  }

  .search-heading {
    font-size: 22px;
  }
}

@media (max-width: 800px) {
  .search-empty-card {
    padding: 16px 0 24px;
  }

  .search-empty-hero {
    margin-bottom: 22px;
  }

  .search-empty-title {
    font-size: 22px;
  }

  .search-empty-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .search-empty-feature {
    border-right: none;
    padding: 0;
  }
}

@media (max-width: 560px) {
  .search-heading {
    font-size: 20px;
  }

  .search-empty-title {
    font-size: 20px;
  }

  .search-empty-cta {
    width: 100%;
    justify-content: center;
  }
}

.search-results-grid .product-card.is-page-hidden {
  display: none;
}

/* Load More: reuses .featured-load-more-wrap / .btn-featured-load-more from home.css */
