/* ===== resources/products 页样式 ===== */

.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 16px;
  height: fit-content;
  position: sticky;
  top: 84px;
}
.sidebar h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2563eb;
}
.cat-list {
  list-style: none;
}
.cat-item, .price-item {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.1s;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cat-item:hover, .price-item:hover {
  background: #f3f4f6;
  color: #2563eb;
}
.cat-item.active, .price-item.active {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}
.cat-item .count {
  font-size: 12px;
  color: #9ca3af;
}
.cat-item.active .count { color: #dbeafe; }

.main { min-width: 0; }

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 20px;
}
.filter-bar-info { font-size: 14px; color: #4b5563; }
.filter-bar-info .kw { color: #2563eb; font-weight: 600; }
.sort-select {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .cat-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .cat-item, .price-item { padding: 6px 12px; font-size: 13px; }
}
