/* История продаж — форма как на главной + сетка sold */

.sales-history-page {
  min-height: 60vh;
  background: var(--bg);
}

.sales-history-results-section {
  padding-top: 20px;
}

.sales-history-lead {
  margin-bottom: 12px;
}

.sales-history-meta {
  margin: 0 0 16px;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--muted);
}

.sales-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.sales-history-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sales-history-card:hover {
  border-color: rgba(230, 57, 70, 0.35);
  box-shadow: 0 8px 20px rgba(13, 27, 42, 0.08);
}

.sales-history-card-media {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  overflow: hidden;
}

.sales-history-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sales-history-card-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sales-history-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.25;
}

.sales-history-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.sales-history-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.sales-history-badge--iaai {
  background: #c45c26;
}

.sales-history-badge--copart {
  background: #2f6fed;
}

.sales-history-price {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.sales-history-price-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.sales-history-price-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

.sales-history-empty {
  margin: 28px 0;
  color: var(--muted);
  text-align: center;
}
