/* ================================
   POPUP OVERLAY
   ================================ */
.info-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

/* Quando ativo */
.info-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ================================
   POPUP BOX
   ================================ */
.info-popup {
  background: #fff8f3;
  border: 3px solid #DD8240;
  border-radius: 18px;
  padding: 0;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  animation: popupShow .35s ease;
}

@keyframes popupShow {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Imagem */
.info-popup img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
}

/* Botão de fechar */
.info-popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #DD8240;
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background .2s;
}

.info-popup-close:hover {
  background: #c46f34;
}

/* Responsivo */
@media (max-width: 480px) {
  .info-popup {
    max-width: 92%;
  }
}
