.products-page { padding: 2rem 0 3rem; }
.products-page .section-title { margin-bottom: 1.5rem; }
.product-sidebar .list-group-item {
  border: none;
  border-bottom: 1px solid #eee;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: #555;
  transition: all 0.2s;
}
.product-sidebar .list-group-item:last-child { border-bottom: none; }
.product-sidebar .list-group-item:hover,
.product-sidebar .list-group-item.active {
  background-color: #f8f9fa;
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
  padding-left: 1.25rem; /* Slight indentation on hover/active */
}
.product-sidebar .list-group-item.active {
  font-weight: 600;
}
.products-page .product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.25s;
  height: 380px; /* Set a fixed height */
}
.products-page .product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.products-page .product-card .pic { height: 240px; overflow: hidden; flex-shrink: 0; }
.products-page .product-card .pic img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.products-page .product-card:hover .pic img { transform: scale(1.05); }
.products-page .product-card .text {
  padding: 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #eff8ff; /* Light yellow background */
}
.products-page .product-card .text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  /* Limit to 2 lines, but allow height to adjust if 1 line */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 0; /* Remove fixed height */
}
.products-page .product-card .text p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  /* Limit to 1 line, but allow height to adjust */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 0; /* Remove fixed height */
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.products-page .product-card .text span { margin-top: auto; color: var(--primary-color); font-size: 0.9rem; }
.products-page .anchor { scroll-margin-top: 100px; }

/* Pagination */
.page-numbers {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.page-numbers li { display: inline-block; }
.page-numbers a, .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
}
.page-numbers a:hover, .page-numbers span.current {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.page-numbers .dots { border: none; }
