.cards {
  margin: 50px 250px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 50px;
}

.card-item {

  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
}

.card {
  width: 100%;
  cursor: pointer;
  margin-left: -1px;
  margin-bottom: -1px;
  border: .5px solid #d4d5d9;
  border-radius: 6px;
  padding-bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, width 0.4s;
}

.card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 0px;
}

.card-img img {
  padding-top: 2px;
  border-radius: 5px 5px 0 0;
  object-fit: cover;
  object-position: top;
  height: 255px;
}





.off-percentage {
  padding-top: 2px;
  padding-right: 3px;
  font-size: 12px;
  /* position: absolute; */
  color: rgb(39, 174, 96);
  align-self: flex-end;
  z-index: 10;
  font-weight: 600;
}




.text-container {
  align-self: start;
  margin-left: 15px;
  margin-right: 5px;
  font-size: 15px;
  width: auto;
  height: 45px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.title {
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #535766;
}

.price-div {
  padding-top: 5px;
  color: black;
  width: 100%;
  display: flex;
  align-self: start;
  flex-wrap: wrap;

  margin-top: 2px;
  overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

a {
  text-decoration: none;
}

.stock {
  color: rgb(223, 191, 12);
  margin-top: 4px;
  margin-left: 3px;

  color: #ff905a;
  font-weight: 400;
  font-size: 16px;

}

.MRP {
  color: #969696;
  font-size: 12px;
  margin-left: 4px;
  margin-top: 3px;
  font-family: 'Roboto', sans-serif;
  ;
}

.price {
  color: rgb(0, 0, 0);
  font-size: 16px;
}


@media (max-width: 950px) {
  .cards {
    margin: 0px;
    display: grid;
    grid-template-columns: 1fr;
    margin-left: 1px;
    gap: 0;
  }

  .card-item {

    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
  }

  .card {
    width: 100%;
    cursor: pointer;
    margin-left: -1px;
    margin-bottom: -1px;
    border: .5px solid #d4d5d9;
    border-radius: 0px;
    padding-bottom: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
    transition: box-shadow 0.3s, width 0.4s;
  }

  .card:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 0px;
  }

  .card-img {
    width: 100%;
    height: 255px;
    display: flex;
    justify-content: center;
  }

  .card-img img {
    /* padding-top: 3px; */
    border-radius: 5px 5px 0 0;
    object-fit: contain;
    object-position: top;
    width: 90%;
  }

  .text-container {
    align-self: start;
    margin-left: 12px;
    color: #282c3f;
    font-size: 12px;
    font-weight: 400;
    width: auto;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .title {
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #535766;
    font-size: 13px;
  }

  .price-div {

    margin-bottom: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

  }

}

.card-img {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  padding-bottom: 5px;

}


.card-img:after {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.028);
  /* background: linear-gradient(195.75deg,#e2e2e2 0,#fff 52.74%,#e2e2e2 100%); */

}

