.tdz-productgrid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  /* Mobile default: 1 column */
  margin-bottom: 2em;
}

@media (min-width: 375px) {
  .tdz-productgrid {
    grid-template-columns: repeat(2, 1fr);
    /* Tablet/Large Mobile: 2 columns */
  }
}

@media (min-width: 900px) {
  .tdz-productgrid {
    /* Desktop: Use the variable defined in PHP, defaulting to 3 if missing at this breakpoint */
    grid-template-columns: repeat(var(--tdz-grid-cols, 3), 1fr);
  }
}

/* Inheriting .product-card styles for the inner content from previous iteration if useful */
.tdz-productgrid-block .product-card,
.tdz-productgrid-block {
  /* padding: 15px; */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tdz-productgrid-block a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tdz-productgrid-block .product-info p {
  /* font-size: 18px; */
  line-height: 18px;
  margin: 10px 0 5px;
  text-align: left;
  font-family: Quincy CF, sansSerif
}

.tdz-productgrid-block img {
  max-width: 100%;
  height: auto;
  /* margin-bottom: 10px; */
}