/* Product List Page Styles */

.product-card {
  background: var(--white);
}

.product-card .card-img-top {
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}

.product-card .card-body {
  padding: 16px;
}

.product-card .product-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-height: 2.8em;
  margin-bottom: 8px;
}

.product-card .product-price {
  font-size: 14px !important;
  font-weight: 700;
  color: #1a1a1a !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .product-moq {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.product-card .supplier-name {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 8px;
}

.product-card .supplier-name i {
  color: var(--secondary);
}

/* Badges */
.badge-verified {
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
}

.badge-cert {
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 3px;
  margin-right: 4px;
}

.badge-hot {
  background: var(--danger);
  color: var(--white);
}

.badge-new {
  background: var(--secondary);
  color: var(--white);
}

/* Supplier Card */
.supplier-card {
  background: var(--white);
  padding: 20px;
}

.supplier-card .supplier-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--gray-100);
}

.supplier-card .supplier-info h5 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.supplier-card .supplier-meta {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.supplier-card .cert-badges {
  margin-top: 12px;
}

/* Filters Sidebar */
.filter-sidebar {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group h6 {
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gray-900);
}

.filter-group .form-check {
  margin-bottom: 10px;
}

.filter-group .form-check-label {
  font-size: 0.9rem;
  color: var(--gray-700);
}

.filter-group .badge {
  font-size: 0.75rem;
  background: var(--gray-200);
  color: var(--gray-700);
}

/* Price Range */
.price-range-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-range-inputs input {
  width: 100px;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Product List View */
.product-list-item {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  transition: all 0.3s;
}

.product-list-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.product-list-item .product-image {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--gray-100);
}

.product-list-item .product-info {
  flex: 1;
}

.product-list-item .product-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

/* View Toggle */
.view-toggle .btn {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
}

.view-toggle .btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Pagination */
.pagination {
  gap: 5px;
}

.pagination .page-link {
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  padding: 10px 16px;
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* Responsive */
@media (max-width: 767px) {
  .product-list-item {
    flex-direction: column;
  }

  .product-list-item .product-image {
    width: 100%;
    height: 200px;
  }

  .product-list-item .product-actions {
    flex-direction: row;
    width: 100%;
    margin-top: 16px;
  }
}