.grid-container {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row on PC */
  gap: 1.5rem;
  justify-items: center; /* center each item in its grid cell */
}

.grid-item {
  position: relative;
  width: 100%;
  max-width: 37.5rem;
  aspect-ratio: 3 / 3.42;   /* auto height based on width */
  background: #F1F0ED;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Author', sans-serif;
  
}

.productBox {
  height: 75%;
}

.product {
  height: 100%;
  width: 100%;
}

/*.productbadge {
  color: #68655F;
  width: 100%;
  font-size: 2.5rem;
  font-weight: 800;
  position: absolute;
  top: 2.7rem;
  left: 3rem;
}*/

.product-tag {
  height: 25%;
  width: 100%;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.productName {
  font-weight: 800;
  font-size: 3rem;
  color: #68655F;
}

.add-cart {
  width: 100%;
  padding: 1rem 1rem 1rem 1rem;
  border-width: .15rem;
  border-radius: 3rem;
  border-style: solid;
  border-color: #68655F;
  color: #68655F;
  background: #F1F0ED;
  font-weight: 600;
  font-size: 1.3rem;

}

.add-cart:active {
  width: 100%;
  padding: 1rem 1rem 1rem 1rem;
  border-width: .15rem;
  border-radius: 3rem;
  border-style: solid;
  border-color: #68655F;
  color: #F1F0ED;
  background: #68655F;
  font-weight: 600;

}

span {
  font-size: 1.5rem;
}



/* On mobile: 2 per row */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}