html,
body {
  background-color: #ffffff;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

.my-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 90%;
}

.drinks-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 1rem;
}

.item-preview {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.touch-card {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.touch-card.is-touching {
  transform: scale(0.95);
}

.item-thumbnail {
  aspect-ratio: 1/1.25;
  border-radius: 12px;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.item-preview strong {
  font-family: 'the-seasons', sans-serif;
  font-size: 2.15rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Maximum number of lines */
  line-clamp: 2;
}

.item-preview p {
  width: 100%;
  font-size: 1.25rem;
  font-weight: 200;
  user-select: none;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Maximum number of lines */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.buy-btn {
  background-color: #eeeeee;
  padding-inline: 2rem;
  padding-block: 3px;
}

.overlay-content {
  width: 100%;
  position: absolute;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding-top: 7%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;

  color: #fff;
  text-align: center;
}

/* Cart */
.cart-img {
  width: 75px;
  height: 75px;

  object-fit: cover;
  object-position: center;

  border-radius: 5px;

  display: block;
}

.overflow-hidden {
  overflow: hidden;
}

/* 4 per row on desktop */
@media (min-width: 700px) {
  .drinks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .item-preview {
    width: 325px;
  }

  .item-preview strong {
    font-size: 1.5rem;
  }

  .item-preview p {
    padding-top: 0.5rem;
    width: 100%;
    font-size: 0.9rem;
  }

  .my-container {
    width: 650px;
  }
}

@media (min-width: 1000px) {
  .drinks-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .my-container {
    width: 975px;
  }
}

@media (min-width: 1500px) {
  .drinks-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .my-container {
    width: 1300px;
  }
}
