/* ============================================================
   MODAL "AVISE-ME QUANDO CHEGAR" — centralizado na tela
   ============================================================ */

/* Container do modal */
.pcg-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

/* Caixa centralizada */
.pcg-modal__box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(500px, 92vw);
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: pcgModalFade .25s ease;
}

/* Animação de entrada */
@keyframes pcgModalFade {
  from {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Botão fechar (X) */
.pcg-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  z-index: 3;
  color: #6b7280;
  line-height: 1;
  transition: color .2s ease;
}
.pcg-modal__close:hover {
  color: #111827;
}

/* Título e textos */
#pcg-notify-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    display: flex;
    justify-content: center;
}

.pcg-modal__desc,
.pcg-modal__note {
  font-size: 13px;
  color: #475569;
  margin: 6px 0 10px;
  line-height: 1.4;
}

.pcg-modal__note {
  margin-top: 12px;
  font-style: italic;
}

/* Formulário */
.pcg-notify-form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.pcg-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pcg-input:focus {
  border-color: #00b3f5;
  box-shadow: 0 0 0 1px #00b3f5;
}

.pcg-btn {
  background: #00b3f5;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .25s ease;
}
.pcg-btn:hover {
  background: #0077cc;
}
.pcg-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pcg-modal__msg {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #00b3f5;
  line-height: 1.4;
}

/* Bloco do último preço */
.pcg-modal__lastprice {
  margin: 6px 0 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
	display:flex;
	justify-content:center;
}
.pcg-lastprice-text {
  margin: 0 0 4px;
  font-size: 14px;
  color: #0f172a;
}
.pcg-lastprice-text .pcg-lastprice-val {
  font-weight: 800;
  color: #111827;
}
.pcg-lastprice-footnote {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

/* ============================================================
   LISTA DE PRODUTOS — fora de estoque
   ============================================================ */

/* Imagem P&B (produtos indisponíveis) */
.products li.product.outofstock .thumb img,
.produto-card.outofstock .thumb img {
  filter: grayscale(100%) contrast(0.95) brightness(0.95);
  transition: filter .25s ease;
}

/* Linha “Indisponível” + botão Avise-me */
.estoque.off {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-size: 13px;
}
.estoque.off .texto-indisp {
  font-weight: 600;
}

/* Botão “Avise-me quando chegar” na lista */
.estoque.off .btn-avise-me {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #0a6cd6;
  padding: 2px 6px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  transition: all .15s ease;
}
.estoque.off .btn-avise-me:hover {
  color: #fff;
  background: #0a6cd6;
  border-color: #0a6cd6;
}

/* Oculta preços/botões quando fora de estoque */
.produto-card.outofstock .preco,
.produto-card.outofstock .botoes {
  display: none !important;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 480px) {
  .pcg-modal__box {
    padding: 18px 14px;
  }
  .pcg-btn {
    flex: 1;
  }
}
