/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  max-width: 420px;
  width: 95%;
  animation: fadeInUp 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-fechar {
  position: absolute;
  right: 15px;
  top: 15px;
  border: none;
  background: #ff0000;
  color: #fff;
  font-size: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-body img {
  width: 100%;
  max-height: 300px;
  border-radius: 10px;
  object-fit: cover;
}

#modal-nome {
  font-size: 20px;
  font-weight: 600;
}

#modal-descricao {
  font-size: 14px;
  color: #555;
}
/* Container da quantidade */
/* Container da quantidade do adicional */
.quantidade-adicional {
    display: flex;
    align-items: center;
    justify-content: space-between; /* separa nome da quantidade */
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    margin: 6px 0;
    font-size: 14px;
}

/* Nome do adicional */
.quantidade-adicional span.nome-adicional {
    flex: 1; /* ocupa todo o espaço à esquerda */
}

/* Botões + e - */
.quantidade-adicional button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background-color: #9d0000;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.quantidade-adicional button:hover {
    background-color: #4d1085;
    transform: scale(1.1);
}

.botoes-qtd {
  display: flex;
  align-items: center;
  gap: 6px;
}

.botoes-qtd button {
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  border: none;
  background-color: #a20000;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.botoes-qtd button:hover {
  background-color: #2980b9;
  transform: scale(1.1);
}

.qtd-adicional {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  min-width: 24px;
  text-align: center;
  padding: 0;
  margin: 0;
  line-height: 1;
}



/* ===== QUANTIDADE ===== */
.modal-quantidade-container label {
  font-weight: 500;
  margin-bottom: 5px;
  display: block;
}

.modal-quantidade {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 120px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.modal-quantidade button {
  flex: 1;
  padding: 8px 0;
  background: #9c0c0c;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-quantidade button:hover {
  background: #240000;
}

.modal-quantidade input {
  width: 50px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 8px 0;
  pointer-events: none; /* trava totalmente a interação do teclado */
  background: transparent;
}


/* ===== ADICIONAIS ===== */
.modal-adicionais {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.grupo-adicional {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fafafa;
}

.grupo-adicional strong {
  display: block;
  margin-bottom: 5px;
}

/* ===== OBSERVAÇÃO ===== */
#modal-observacao {
  width: 100%;
  min-height: 60px;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 6px;
  font-size: 14px;
}

/* ===== BOTÃO ===== */
.btn-adicionar {
  background: #910000;
  color: #fff;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-adicionar:hover {
  background: #43a047;
}

/* ===== ANIMAÇÃO ===== */
@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 480px) {
    
  .modal-content { padding: 15px; width: 90%; }
  #modal-imagem { max-height: 180px; }
  .modal-quantidade {
    width: 100px;
  }
}

.feedback-estrelas {
  margin-top: 10px;
  font-size: 16px;
  color: #f1c40f;
}

.estrelas-interativas span {
  cursor: pointer;
  font-size: 24px;
  transition: transform 0.2s;
}

.estrelas-interativas span:hover {
  transform: scale(1.2);
}

