@import url("/cv_modules/bootstrap-5.3.2/css/bootstrap.min.css");
@import url('/cv_modules/partials/prtl_header/navbar/css/navbar.css');
@import url('/cv_modules/partials/prtl_footer/css/footer.css');
@import url('/cv_modules/partials/prtl_item/css/item.css');

/* ══════════════════════════════════════════════════════════════════════════════
   Search Results Page — srs- prefix
   Mirrors shop.css visual style (same background, toolbar, grid, cards)
══════════════════════════════════════════════════════════════════════════════ */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eaeded;
}

.srs-main {
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(12px, 2vw, 24px) 60px;
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════════════════════
   HEADER — title + count
══════════════════════════════════════════════════════════════════════════════ */

.srs-header {
  padding: 16px 0 12px;
}

.srs-title {
  font-size: 20px;
  font-weight: 700;
  color: #0F1111;
  margin: 0 0 2px;
}

.srs-count {
  font-size: 13px;
  color: #565959;
  margin: 0;
}

.srs-fuzzy-note {
  font-size: 12px;
  color: #565959;
  font-style: italic;
  margin-left: 6px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   TOOLBAR — mirrors .shp-toolbar exactly
══════════════════════════════════════════════════════════════════════════════ */

.srs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  padding: 10px 16px;
  margin-bottom: 12px;
}

.srs-result-count {
  font-size: 14px;
  color: #565959;
}

.srs-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.srs-sort-label {
  font-size: 13px;
  color: #0F1111;
  white-space: nowrap;
  margin: 0;
}

/* Mirrors .shp-sort-select */
.srs-filter-select {
  padding: 5px 10px;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  font-size: 13px;
  color: #0F1111;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.srs-filter-select:focus { border-color: #007185; }

/* ══════════════════════════════════════════════════════════════════════════════
   PRODUCT GRID — identical to .shp-grid
══════════════════════════════════════════════════════════════════════════════ */

.srs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* Force vertical card layout — item.css @container flips to row at ≥501px.
   Search has no sidebar to keep cells narrow, so override directly. */
.srs-product-card .cv-item-layout {
  flex-direction: column !important;
  align-items: unset !important;
}
.srs-product-card .cv-item-left {
  width: 100% !important;
  flex-shrink: 1 !important;
}
.srs-product-card .cv-image-wrapper {
  margin-top: 0 !important;
}

/* Mirrors .shp-product-card */
.srs-product-card {
  padding: 4px;
  cursor: pointer;
}
.srs-product-card:hover .cv-item-container {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
}

/* ══════════════════════════════════════════════════════════════════════════════
   EMPTY / NO-RESULTS — mirrors .shp-empty / .shp-no-results
══════════════════════════════════════════════════════════════════════════════ */

.srs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
}

.srs-empty-icon {
  font-size: 44px;
  color: #adb1b8;
  display: block;
  margin-bottom: 16px;
}

.srs-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #0F1111;
  margin: 0 0 6px;
}

.srs-empty-text {
  font-size: 14px;
  color: #565959;
  margin: 0;
}

.srs-browse-all {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 9px 22px;
  background: #6366f1;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.13s ease;
}
.srs-browse-all:hover { background: #4f46e5; color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════════
   SERVER-SIDE BROAD SUGGESTIONS (shown below no-results message)
══════════════════════════════════════════════════════════════════════════════ */

.srs-suggestions {
  margin-top: 28px;
}

.srs-suggestions-label {
  font-size: 16px;
  font-weight: 700;
  color: #0F1111;
  margin: 0 0 12px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ALTERNATIVES (trending / empty-state suggestions)
══════════════════════════════════════════════════════════════════════════════ */

#srsAlternatives {
  padding: 28px 0 0;
}

.srs-alt-queries-label,
.srs-alt-products-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin: 0 0 10px;
}

.srs-alt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.srs-alt-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #adb1b8;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  color: #0F1111;
  text-decoration: none;
  transition: border-color 0.13s ease, background 0.13s ease;
}
.srs-alt-chip:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #4f46e5;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .srs-main    { padding: 0 12px 40px; }
  .srs-title   { font-size: 18px; }
  .srs-filters { flex-wrap: wrap; }
  .srs-search-form { max-width: 100%; }
}

@media (max-width: 600px) {
  .srs-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
