.featured-products {
  padding-bottom: 3rem;
  width: 100% !important;
}

.products-list,
.grid-4 {
  width: 100% !important;
  padding: 1rem 0;
  display: flex !important;
  align-items: start;
  justify-content: start;
  gap: 1rem;
}

.grid-4 {
  flex-wrap: wrap;
}

.products-list .card {
  width: calc(100% / 5 - 1rem / 5);
  padding: 0.25rem;
  border: 1px solid #eee;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.grid-4 .card {
  width: calc(100% / 4 - 1rem) !important;
}

.products-list .card img {
  width: 100%;
  height: 10rem;
  object-fit: contain;
  border-radius: 4px;
}

.grid-4 .card img {
  height: 8rem;
}

.products-list .card .info {
  padding: 0.3rem 0.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.products-list .card .info .name {
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.products-list .card .info .price {
  font-size: 0.9rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.products-list .card:hover {
  transform: scale(1.03);
  border-color: var(--secondary-color);
}

.products-list .card .description {
  position: absolute;
  bottom: 0.25rem;
  left: 0.25rem;
  right: 0.25rem;
  background-color: white;
  padding: 0.25rem;
  display: none;
}

.products-list .card:hover .description {
  display: block;
  transition: all 0.3s ease;
  color: rgb(74, 74, 74);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: 0.75rem;
}

.products-list .card:hover .info .price {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: var(--secondary-color);
  padding: 0.25rem;
  font-weight: bold;
  font-size: 1rem;
  color: white;
}

@media only screen and (max-width: 997px) {
  .products-list,
  .grid-4 {
    flex-wrap: wrap;
  }
  .products-list .card {
    width: calc(100% / 3 - 1rem);
  }

  .grid-4 .card {
    width: calc(100% / 3 - 1rem) !important;
  }

  .products-list .card:hover .info .price {
    font-size: 0.9rem;
  }
}

@media only screen and (max-width: 560px) {
  .products-list,
  .grid-4 {
    flex-wrap: wrap;
    max-width: 300px !important;
    margin: 0 auto;
  }
  .products-list .card {
    width: 100%;
  }

  .grid-4 .card {
    width: 100%;
  }
}
