.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes rotateLoop {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

.rotate-icon {
  animation: rotateLoop 4s linear infinite;
}

.whatsapp-message {
  background-color: #25d366;
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  position: relative;
  max-width: 200px;
}

.close-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #000;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  cursor: pointer;
}

.whatsapp-icon {
  background-color: #25d366;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-icon img {
  width: 32px;
  height: 32px;
}

/* Hide message when checkbox checked */
#hideMessage:checked + .whatsapp-message {
  display: none;
}


/* Products */
.product-card {
  overflow: hidden;
  border-radius: 0.375rem; /* Corresponds to Bootstrap's 'rounded' class */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Corresponds to Bootstrap's 'shadow-sm' */
}

.product-overlay {
  bottom: 0;
  left: 0;
  right: 0;
  background-color: lab(28.04% 2.5 -34.29 / 0.801);
  padding: 1.5rem;
  transform: translateY(
    calc(100% - 60px)
  ); /* Adjust 60px to control how much of the title is visible */
  transition: transform 0.9s ease-in-out;
}

.product-card:hover .product-overlay {
  transform: translateY(0);
}

.product-overlay .product-details {
  opacity: 0;
  transition: opacity 0.3s ease-in-out 0.1s;
}

.product-card:hover .product-overlay .product-details {
  opacity: 1;
}

.product-overlay ul {
  list-style: none;
  padding-left: 0;
}

.product-overlay ul li {
  color: white;
  padding-bottom: 0.5rem;
}
