.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 2fr));
  gap: 40px; /* Adjust spacing between cards */
  justify-items: center;
  padding: 20px; /* Adjust padding for mobile */
  padding-top: 10%;
}

.products-title {
  text-align: center;
  font-size: 36px; /* Adjust size as needed */
  font-family: "Playfair Display", serif; /* Use same font family if desired */ /* Adjust spacing between title and cards */
  color: #333; /* Change text color to fit design */
  padding-top: 5%;
  margin-bottom: -100px;
}

@media only screen and (max-width: 650px) {
  .card-container {
    padding-top: 25%;
  }
  .products-title {
    font-size: 25px;
    padding-top: 15%;
    padding-bottom: 10%;
  }
}

.card {
  width: 100%; /* Full width on mobile */
  max-width: 300px; /* Limit width on larger screens */
  height: 400px;
  background-color: black;
  cursor: pointer;
  -webkit-box-shadow: 0 0 5px #000;
  box-shadow: 0 0 50px #bbbbbb;
  position: relative;
  border-radius: 10px;
}

.overlay {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 2fr 2fr 1fr;
  background: rgba(77, 77, 77, 0.9);
  color: #fef5df;
  opacity: 0;
  transition: all 0.5s;
  font-family: "Playfair Display", serif;
  border-radius: 10px;
}

.items {
  padding-left: 20px;
  letter-spacing: 3px;
}

.head1 {
  font-size: 20px; /* Adjust font size for mobile */
  line-height: 32px; /* Adjust line height for mobile */
  transform: translateY(20px);
  transition: all 0.7s;
}

.head hr {
  display: block;
  width: 0;
  border: none;
  border-bottom: solid 2px #fef5df;
  position: absolute;
  bottom: 0;
  left: 20px;
  transition: all 0.5s;
}

.price {
  font-size: 18px; /* Adjust font size for mobile */
  line-height: 24px; /* Adjust line height for mobile */
  font-weight: bold;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s;
}

.list {
  font-size: 18px;
  font-family: "Playfair Display", serif;
}

.price .old {
  text-decoration: line-through;
  color: #b3b3b3;
}

.cart {
  font-size: 14px; /* Adjust font size for mobile */
  opacity: 0;
  letter-spacing: 1px;
  font-family: "Playfair Display", serif;
  transform: translateY(20px);
  transition: all 0.7s;
}

.cart i {
  font-size: 16px;
}

.cart span {
  margin-left: 10px;
}

.card:hover .overlay {
  opacity: 1;
}

.card:hover .overlay .head1 {
  transform: translateY(0);
}

.card:hover .overlay hr {
  width: 75px;
  transition-delay: 0.4s;
}

.card:hover .overlay .price {
  transform: translateY(0);
  transition-delay: 0.3s;
  opacity: 1;
}

.card:hover .overlay .cart {
  transform: translateY(0);
  transition-delay: 0.6s;
  opacity: 1;
}
