/* Public site additional styles */

/* Popup */
.tz-popup-overlay {
  position: fixed; inset: 0; background: rgba(10,22,40,.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; padding: 20px;
  animation: fadeIn .3s;
}
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
.tz-popup {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: popIn .4s cubic-bezier(.4,0,.2,1);
}
@keyframes popIn { from {transform:scale(.9);opacity:0} to {transform:scale(1);opacity:1} }
.tz-popup h2 { color: var(--text); font-size: 1.5rem; }
.tz-popup-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; color: var(--text);
}

/* WhatsApp floating button */
.wa-float {
  position: fixed; bottom: 30px; right: 30px; z-index: 98;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; text-decoration: none;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  animation: floatWA 3s ease-in-out infinite;
}
@keyframes floatWA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.wa-float:hover { transform: scale(1.1); }
@media (max-width: 768px) {
  .wa-float { bottom: 96px; right: 16px; width: 48px; height: 48px; font-size: 1.4rem; }
}

/* Banner hero slider */
.banner-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
}
.banner-slide {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 50px;
}
.banner-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,22,40,.75) 0%, rgba(10,22,40,.3) 60%, transparent 100%);
}
.banner-slide-content {
  position: relative;
  color: #fff;
  max-width: 500px;
}
.banner-slide h2 { font-size: 2.4rem; margin-bottom: 10px; }
.banner-slide p { margin-bottom: 20px; opacity: .9; }
.banner-slide .btn { background: #fff; color: var(--sky-600); }

/* Flash sale card */
.flash-card {
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  animation: pulse-flash 2s infinite;
}
@keyframes pulse-flash {
  0%,100% { box-shadow: 0 20px 50px rgba(239,68,68,.3); }
  50% { box-shadow: 0 25px 70px rgba(249,115,22,.5); }
}
.flash-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.flash-card .countdown {
  display: flex; gap: 8px;
  font-weight: 700; font-size: 1.1rem;
}
.flash-card .countdown span {
  background: rgba(255,255,255,.2);
  padding: 6px 12px;
  border-radius: 8px;
  min-width: 40px;
  text-align: center;
}

/* Sign-in with Google button */
.btn-google {
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  font-weight: 500;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s;
}
.btn-google:hover { background: #f8f9fa; }
.btn-google img { width: 20px; height: 20px; }

.divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-soft); font-size: .8rem;
  margin: 20px 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Product detail gallery */
.gallery-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex; gap: 8px; margin-top: 12px;
  overflow-x: auto;
}
.gallery-thumbs img {
  width: 80px; height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .6;
  transition: all .2s;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover {
  border-color: var(--sky-400);
  opacity: 1;
}

/* Checkout summary */
.checkout-summary {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 20px;
}
.checkout-summary .line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.checkout-summary .line:last-child { border: none; }
.checkout-summary .line.total {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sky-600);
  padding-top: 14px;
}

/* Wallet balance card */
.wallet-card {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #fff;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
}
.wallet-card .balance {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin: 10px 0;
}

/* Referral card */
.referral-card {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
}
.referral-code-display {
  background: rgba(255,255,255,.15);
  padding: 14px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 16px 0;
  letter-spacing: .1em;
}
