.home-page {
  background: #fafafa; 
  margin-top: 90px;
  padding: 4px;
  padding-bottom: 70px;
}

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.random-products h2 {
  text-align: center;
  font-size: 20px;
  color: #444;
  margin-bottom: 15px;
}

.products-grid {
  display: grid;
  gap: 6px;
  justify-content: center;
}

.product-card {
  background: #fff;
  border-radius: 4px;
  padding: 0px;
  
}

.product-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0px;
  
 opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: all 3s cubic-bezier(.22,.61,.36,1);
}


.product-card.show img {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.product-card a {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.product-card h3,
.product-card span {
  font-size: 16px;
  margin: 0 0 2px 0;
  color: #333;
  font-weight: normal;
}

.product-card .desc {
  font-size: 15px;
  color: #555;
  line-height: 1.4em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  padding: 0 6px;
  margin-top: 3px;
}

.product-card .price {
  color: #333;
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 4px 0;
}


.product-card.show {
  opacity: 1;
  transform: translateY(0);
}

.product-card .desc {
  text-align: right;
  padding-right: 6px;
}
.product-card .price {
  text-align: left;
  padding-left: 6px;
}
.product-card h3 {
  text-align: right;
  padding-right: 6px;
}
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}