/* ── FFH Popup Overlay ───────────────────────────────────────────── */
#ffh-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  animation: ffhFadeIn 0.3s ease;
}
#ffh-popup-overlay.open {
  display: flex;
}

@keyframes ffhFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#ffh-popup-box {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  animation: ffhSlideUp 0.35s ease;
}

@keyframes ffhSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#ffh-popup-box img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

#ffh-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#ffh-popup-close:hover {
  background: rgba(0,0,0,0.9);
}

/* ── Reopen floating button ─────────────────────────────────────── */
#ffh-popup-reopen {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #c8a86b;   /* gold accent — matches FFH palette */
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  animation: ffhBounceIn 0.4s ease;
}
#ffh-popup-reopen.visible {
  display: flex;
}
#ffh-popup-reopen:hover {
  background: #b8945a;
  transform: scale(1.1);
}
#ffh-popup-reopen svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

@keyframes ffhBounceIn {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}

@media (max-width: 600px) {
  #ffh-popup-reopen {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}
