/* =====================================================
   POPUP DE PROMOÇÃO - MEGA SANDUICHERIA
   popup.css
   ===================================================== */

#popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#popup-card {
  background: #7a0303;
  border-radius: 20px;
  max-width: 390px;
  width: 100%;
  overflow: hidden;
  position: relative;
  font-family: sans-serif;
}

/* ---------- botão fechar ---------- */
#popup-fechar {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  z-index: 3;
  line-height: 1;
}

#popup-fechar:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* ---------- foto ---------- */
#popup-foto {
  position: relative;
  height: 200px;
  overflow: hidden;
}

#popup-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

#popup-foto-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.05) 60%, transparent 100%);
}

#popup-foto-texto {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
}

/* ---------- tag com chef ---------- */
#popup-tag {
  background: #e8a020;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px 3px 3px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

#popup-tag img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
}

#popup-titulo {
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 2px;
  line-height: 1.2;
}

#popup-subtitulo {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin: 0;
}

/* ---------- corpo ---------- */
#popup-corpo {
  padding: 1.1rem 1.4rem 1.4rem;
}

/* ---------- timer ---------- */
#popup-timer {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#timer-label {
  color: #aaa;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

#dot-pisca {
  width: 8px;
  height: 8px;
  background: #e74c3c;
  border-radius: 50%;
  animation: pisca-dot 1s infinite;
}

@keyframes pisca-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

#timer-numeros {
  display: flex;
  gap: 6px;
  align-items: center;
}

.bloco-timer {
  background: #333;
  border-radius: 6px;
  padding: 4px 10px;
  text-align: center;
}

.bloco-timer span {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.bloco-timer small {
  display: block;
  color: #888;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.timer-sep {
  color: #666;
  font-size: 18px;
  font-weight: 700;
}

/* ---------- preço ---------- */
#popup-preco-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff5f5;
  border: 1px solid #fddcdc;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 14px;
}

#popup-preco-esq {
  text-align: center;
  min-width: 72px;
}

.preco-de {
  font-size: 13px;
  color: #3b3b3b;
  text-decoration: line-through;
}

.preco-por {
  font-size: 28px;
  font-weight: 800;
  color: #c0392b;
  line-height: 1;
}

.preco-off {
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 3px;
}

.desc-nome {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin: 0 0 4px;
}

.desc-det {
  font-size: 12px;
  color: #252525;
  margin: 0;
  line-height: 1.5;
}

/* ---------- barra de escassez ---------- */
#popup-barra-wrap {
  margin-bottom: 14px;
}

#popup-barra-topo {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #f5f5f5;
  margin-bottom: 5px;
}

#barra-alerta {
  color: #ffffff;
  font-weight: 700;
}

#popup-barra-bg {
  background: #eee;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

#popup-barra-fill {
  background: #e74c3c;
  height: 8px;
  border-radius: 99px;
  width: 28%;
}

/* ---------- botões ---------- */
#btn-aproveitar {
  width: 100%;
  background: #e8a020;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
}

#btn-aproveitar:hover {
  background: #a93226;
}

#btn-nao {
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px;
  font-size: 13px;
  color: #bbb;
  cursor: pointer;
}

#btn-nao:hover {
  color: #888;
}

/* ---------- animação de entrada ---------- */
@keyframes cair {
  0%   { transform: translateY(-120%) rotate(-4deg); opacity: 0; }
  60%  { transform: translateY(10%) rotate(1deg);    opacity: 1; }
  80%  { transform: translateY(-5%) rotate(0deg);    opacity: 1; }
  100% { transform: translateY(0)   rotate(0deg);    opacity: 1; }
}

#popup-card {
  animation: cair 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}