/* ============================================
   GIZEE Global Components
   WhatsApp Button, Coupon Popup, etc.
   ============================================ */

/* ---- WhatsApp Float Button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-whatsapp);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  transition: transform var(--transition-fast);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
}

/* ---- Coupon Popup ---- */
.coupon-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45,36,32,0.5);
  z-index: var(--z-overlay);
  align-items: center;
  justify-content: center;
}

.coupon-overlay.show {
  display: flex;
}

.coupon-popup {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: calc(100% - 40px);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-modal);
  position: relative;
  animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.coupon-popup .coupon-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

.coupon-popup .coupon-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.coupon-popup .coupon-code {
  display: inline-block;
  padding: 8px 20px;
  background: var(--color-bg-warm);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
  margin: 12px 0 20px;
  letter-spacing: 2px;
}

.coupon-popup .coupon-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 20px;
  color: var(--color-text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.coupon-popup .coupon-close:hover {
  background: var(--color-bg-warm);
}

/* Coupon Badge (after close) */
.coupon-badge {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: var(--z-whatsapp);
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(232,113,58,0.3);
  transition: transform var(--transition-fast);
  display: none;
}

.coupon-badge:hover {
  transform: scale(1.05);
}

.coupon-badge.show {
  display: block;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .coupon-badge {
    bottom: 74px;
    right: 16px;
  }
}
