.results-filters{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 22px;padding:16px 18px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.05)}
.results-filters .filter-label{margin-right:auto;font-size:12px;font-weight:800;letter-spacing:.08em}
.results-filters label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}
.results-filters select{min-width:190px;padding:9px 34px 9px 11px;border:1px solid rgba(0,0,0,.14);border-radius:8px;background:#fff;font:inherit}
@media(max-width:700px){.results-filters{align-items:stretch}.results-filters .filter-label{flex-basis:100%}.results-filters label{width:100%;justify-content:space-between}.results-filters select{flex:1;min-width:0}}

/* Vehicle lookup: use the full card width for the three remaining fields. */
.vehicle-fields.three-fields {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px;
  width: 100%;
}
.vehicle-fields.three-fields > label {
  min-width: 0;
}
.vehicle-fields.three-fields select {
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .vehicle-fields.three-fields {
    grid-template-columns: 1fr !important;
  }
}

.search-shell {
  margin: 34px auto 34px;
}
.result-card .part-label {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #c8102e;
}
.result-card .part-no {
  line-height: 1.1;
}

.pagination {
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination .page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination .page-arrow {
  font-size: 20px;
  padding: 0 8px;
}
.pagination .page-ellipsis {
  display: inline-flex;
  width: 28px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

/* Subtle loading feedback during catalogue requests. */
body.is-loading {
  cursor: progress;
}
body.is-loading .results-filters select,
body.is-loading .vehicle-fields select,
body.is-loading #vehicleSearch,
body.is-loading #partForm button {
  opacity: .65;
}
.results .result-empty {
  text-align: center;
  padding: 34px 24px;
  color: inherit;
}
.results .result-empty strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

/* Final responsive polish for results, filters and pagination. */
@media (max-width: 700px) {
  .results-filters {
    gap: 10px;
    padding: 14px;
  }

  .results-filters label {
    align-items: center;
    gap: 10px;
  }

  .results-filters select {
    min-width: 0;
    max-width: 100%;
  }

  .result-card .result-top {
    gap: 12px;
    align-items: flex-start;
  }

  .result-card .product {
    flex-shrink: 0;
  }

  .result-card .details {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .result-card .detail {
    min-width: 0;
  }

  .result-card .detail span {
    overflow-wrap: anywhere;
  }

  .pagination {
    justify-content: center;
    gap: 4px;
  }

  .pagination .page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
  }

  .pagination .page-arrow {
    min-width: 34px;
    padding: 0 6px;
  }

  .pagination .page-ellipsis {
    width: 22px;
  }

  .pagination-meta {
    text-align: center;
    width: 100%;
    margin-bottom: 6px;
  }
}

@media (min-width: 701px) {
  .result-card .details {
    grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.6fr);
  }
}
