.product-card {
 display: flex;
  flex-flow: column;
  justify-content: space-between;
  width: 16em;
  height: 34em;
  /* flex-flow: row wrap; */
  font-family: poppins-light;
  scroll-snap-align: start;
}



.product-image, .product-image::after {
  height: 28.44em;
  width: 16em;
  /* background: linear-gradient(65deg ,#FFF1D2, white); */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.product-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  /* background-position: center; */
  transition: all 0.2s ease-in-out;
}

.product-image:hover::after{
  content: '';
  position: absolute;
  background: linear-gradient(to top, #00000086, transparent, transparent, transparent);
}

.product-image:hover div{
  height: 115%;
}


.product-image div{
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
}

.product-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
  width: auto;
}

.product-link .product-name {
  display: block;
  text-align: start;
  word-wrap: break-word;
  /* Ensures words break to fit the container */
  overflow-wrap: break-word;
  /* max-width: 95%; */
  /* Constrains the width of the text container to match the product container */
  /* margin: 0 auto; */
  /* Center align the text within the container */
}

.product-name {
  color: black;
  font-family: Poppins-light, sans-serif;
  text-align: center;
  /* Ensures the product name is centered */
  overflow-wrap: break-word;
  /* Ensures product names break to fit the container */
  word-wrap: break-word;
  /* max-width: 16em; */
  /* Constrains the width of the text container to match the product container */
  /* margin: 0 auto; */
  /* Center align the text within the container */
  height: auto;
  overflow: hidden;
  text-wrap: nowrap;
  line-height: 1.2em;
  margin: 0.2em 0em;
  text-overflow: ellipsis;
}

.product-price {
  color: black;
  text-align: start;
  font-size: 1.1em;
  /* margin: 0.5em 0.2em; */
  font-family: poppins;
}


.product-card .price-offer{
  display: flex;
  justify-content: start;
  align-content: center;
  flex-flow: row nowrap;
  gap: 1em;
}

.product-card .product-offer{
  margin-left: 0em;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
}

@media screen and (max-width: 540px) {
  .product-card{
    width: 46%;
    height: 100%;
    /* border: 1px solid black; */
  }

  .product-image, .product-image::after{
    width: 50vw;
    height: 90vw;
  }

  .product-card .product-name{
    max-width: 90%;
  }
}