.products-grid-section .product-card {
  background-color: var(--color-surface);
  border-radius: 1rem;
  border: 1px solid var(--color-border-subtle);
  overflow: hidden; /* prevent image overflow */
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.products-grid-section .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* Fixed-height image area */
.products-grid-section .product-card-image-wrapper {
  width: 100%;        
  height: 300px;           /* fixed height for all product images */
  overflow: hidden;
  /* background: #f2f2f2; */
  display: flex;
  padding: 1rem 0;
  align-items: center;
  border-bottom: 1px solid var(--color-border-subtle);
  border-radius: 1rem;
  justify-content: center;
}

.products-grid-section .product-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* crops smartly */
  display: block;
}


/* Card content */
.products-grid-section .product-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.products-grid-section .product-card-title {
  color: var(--color-heading);
  text-decoration: none;
}

.products-grid-section .product-card-text {
  color: var(--color-text-body);
  font-size: 0.95rem;
}

.products-grid-section .product-card .btn-brand {
  padding: 0.65rem 1.25rem;   /* reduce height */
  font-size: 0.95rem;         /* refined size */
}

.product-card-details-hint {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.product-card-details-hint .bi {
  transition: transform 0.15s ease;
}

/* When card is hovered, make it clear it's clickable */
.product-card:hover .product-card-details-hint {
  color: var(--color-brand-primary);
}

.product-card:hover .product-card-details-hint .bi {
  transform: translateX(2px);
}

.product-card:hover .product-card-title {
  text-decoration: underline;
}