.container {
  max-width: 1400px;
  margin: 20px auto;
  background: transparent;
  padding: 0 20px;
  border-radius: 0;
  box-shadow: none;
}

.container h2 {
  color: #004080;
  margin-bottom: 10px;
}

.container p {
  color: #666;
  margin-bottom: 18px;
}

.results-sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 10px 0 15px;
}

.sort-controls {
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-controls label {
  font-weight: 600;
}

.sort-controls select {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 13px;
  cursor: pointer;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
}

.product-card {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 260px;
  margin: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background-color: #f8f8f8;
  border-bottom: 1px solid #ccc;
  padding: 10px;
  box-sizing: border-box;
}

.product-card .brand,
.product-card .product-brand {
  display: none;
}

.product-card h3 {
  color: #004080;
  margin: 4px 12px 6px;
  font-size: 16px;
  line-height: 1.3;
  min-height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .price {
  color: #0066cc;
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
}

.product-card .actions,
.product-card .product-actions {
  padding: 10px 12px 12px;
}

.product-card button {
  background-color: #0066cc;
  color: #fff;
  border: none;
  padding: 10px 14px;
  margin: 6px 4px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  font-size: 13px;
  transition: 0.3s;
}

.product-card button:hover {
  background-color: #004080;
  transform: scale(1.05);
}
/* Make View Details links inside cards look like the products page buttons */
.product-card .btn,
.product-card .btn-details {
  display: inline-block;
  background-color: #e6f0ff;
  color: #004080;
  border: 2px solid #0066cc;
  padding: 10px 14px;
  margin: 6px 4px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
  transition: 0.3s;
}

.product-card .btn:hover,
.product-card .btn-details:hover {
  background-color: #cce5ff;
}
