/* ============================================================
   WHATSAPP FLOATING BUTTON - PRODUCTS PAGE ONLY
   ============================================================ */

/* Floating button container */
#whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
}

/* WhatsApp button */
.whatsapp-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  color: white;
}

.whatsapp-button:hover {
  background: #20ba5a;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

.whatsapp-button:active {
  transform: translateY(0);
}

/* Popup card */
.whatsapp-popup {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Popup header */
.whatsapp-popup-header {
  background: #25d366;
  color: white;
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whatsapp-popup-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.whatsapp-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.whatsapp-close-btn:hover {
  opacity: 0.8;
}

/* Popup body */
.whatsapp-popup-body {
  padding: 20px;
}

.whatsapp-popup-body p {
  margin: 0 0 16px 0;
  font-size: 15px;
  color: #555;
  font-family: "Inter", sans-serif;
  line-height: 1.5;
}

/* Chat button */
.whatsapp-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  transition: background 0.3s ease;
}

.whatsapp-chat-btn:hover {
  background: #20ba5a;
}

/* Contact Info Section */
.whatsapp-contact-info {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.contact-divider {
  text-align: center;
  position: relative;
  margin-bottom: 15px;
  height: 10px;
}

.contact-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
  z-index: 1;
}

.contact-divider span {
  background: white;
  padding: 0 10px;
  color: #999;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #555;
  transition: all 0.2s ease;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item svg {
  color: #25d366;
  flex-shrink: 0;
}

.contact-item a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: #25d366;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-button {
    bottom: 25px;
    right: 20px;
    width: 55px;
    height: 55px;
    z-index: 1005;
    /* Above most elements */
  }

  .whatsapp-button svg {
    width: 26px;
    height: 26px;
  }

  .whatsapp-popup {
    width: 300px;
    bottom: 90px;
    right: 15px;
    z-index: 1006;
  }

  .whatsapp-popup-header h3 {
    font-size: 15px;
  }

  .whatsapp-popup-body p {
    font-size: 14px;
  }

  .whatsapp-chat-btn {
    font-size: 14px;
    padding: 11px 18px;
  }
}
