
/* ════════════════════════════════════════
   FILTER BAR
   ════════════════════════════════════════ */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeUp 0.4s ease both;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 72px;
  flex-shrink: 0;
}

.filter-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.filter-btn:hover {
  color: var(--text);
  border-color: var(--muted);
}
.filter-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: #001a0f;
}

.filter-search {
  margin-top: 4px;
}
.filter-search input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  padding: 7px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.filter-search input:focus { border-color: var(--accent); }
.filter-search input::placeholder { color: var(--muted); }

.filter-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.filter-count span { color: var(--accent); font-weight: 600; }

/* ════════════════════════════════════════
   PRODUCT CARDS GRID
   ════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s, opacity 0.25s;
  animation: fadeUp 0.4s ease both;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.product-card.hidden {
  display: none;
}

.pc-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pc-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.pc-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-ref {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.pc-compat,
.pc-alim {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.2s;
}
.product-card:hover .pc-arrow { color: var(--accent); }

/* ── RESPONSIVE FILTRES ── */
@media (max-width: 700px) {
  .filter-group { flex-direction: column; align-items: flex-start; }
  .filter-label { min-width: auto; }
  .products-grid { grid-template-columns: 1fr; }
}
