/* ============================================================
   WEBORACLE SHRINE — Promotion Popup
   Glassmorphism popup that showcases the latest featured product.
   Loaded/controlled by assets/js/popup.js, content rendered by popup.php.
   ============================================================ */

#shrinePopupOverlay {
  position: fixed;
  inset: 0;
  z-index: 100000; /* above nav (1000) and mobile menu (1000) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  background: rgba(4, 8, 6, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

#shrinePopupOverlay.shrine-popup-show {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility 0s linear 0s;
}

.shrine-popup-card {
  position: relative;
  width: 100%;
  max-width: 420px;

  background: rgba(10, 20, 16, 0.65);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);

  border: 1px solid rgba(29, 158, 117, 0.35);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(94, 239, 192, 0.10);
  overflow: hidden;

  transform: scale(0.85);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}

#shrinePopupOverlay.shrine-popup-show .shrine-popup-card {
  transform: scale(1);
  opacity: 1;
}

.shrine-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all .2s ease;
}
.shrine-popup-close:hover {
  background: rgba(239, 68, 68, 0.6);
  border-color: rgba(239, 68, 68, 0.7);
  transform: rotate(90deg);
}

.shrine-popup-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 50px;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.shrine-popup-img-wrap {
  width: 100%;
  height: 220px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(29,158,117,.16), rgba(15,17,23,.4) 55%, rgba(15,17,23,1) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.shrine-popup-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, .4));
}

.shrine-popup-body {
  padding: 22px 24px 26px;
  text-align: center;
}

.shrine-popup-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--green, #1D9E75);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}

.shrine-popup-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}

.shrine-popup-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shrine-popup-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green, #1D9E75);
  margin-bottom: 18px;
}

.shrine-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--green, #1D9E75);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.shrine-popup-btn:hover { background: var(--green-dark, #157a5b); }
.shrine-popup-btn:active { transform: scale(.97); }

@media (max-width: 480px) {
  .shrine-popup-card { max-width: 100%; }
  .shrine-popup-img-wrap { height: 180px; padding: 16px; }
  .shrine-popup-title { font-size: 19px; }
}
