/* ===== MODAL PRODUTO ===== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* Inicialmente oculto */
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.ativo,
.modal-overlay[style*="display: flex"] {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(91, 14, 92, 0.3);
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-fechar {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(91, 14, 92, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5b0e5c;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1001;
}

.modal-fechar:hover {
  background: #5b0e5c;
  color: #fff;
}

.modal-conteudo {
  display: flex;
  gap: 24px;
  padding: 32px;
  flex: 1;
}

/* Lado esquerdo */
.modal-esquerda {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-foto {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

.modal-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #5b0e5c;
  margin: 0 0 4px;
  line-height: 1.2;
}

.modal-complementos {
  color: #666;
  font-size: 0.9rem;
  margin: 4px 0 12px;
}

.modal-precos {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.modal-preco-de {
  font-size: 0.85rem;
  color: #999;
  text-decoration: line-through;
}

.modal-preco-por {
  font-size: 1.4rem;
  font-weight: 800;
  color: #5b0e5c;
}

.modal-estoque {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.modal-estoque-ok {
  color: #077c22;
  background: #e8f5e9;
  display: block;
}

.modal-estoque-fora {
  color: #cc0000;
  background: #fff3f3;
  display: block;
}

/* Lado direito */
.modal-direita {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(90vh - 64px);
  overflow-y: auto;
  padding-right: 8px;
}

.modal-direita::-webkit-scrollbar {
  width: 6px;
}

.modal-direita::-webkit-scrollbar-track {
  background: transparent;
}

.modal-direita::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.modal-direita::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

.modal-titulo-selecoes {
  font-size: 1.1rem;
  font-weight: 800;
  color: #5b0e5c;
  margin-bottom: 4px;
}

.modal-secao {
  border: 1.5px solid #ddd;
  border-radius: 10px;
  padding: 14px;
  background: #fafafa;
}

.modal-secao-titulo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-secao-titulo h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #5b0e5c;
  margin: 0;
}

.modal-secao-info {
  background: #5b0e5c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.modal-opcoes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-opcao-label,
.modal-opcao-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.modal-opcao-label:hover,
.modal-opcao-radio:hover {
  background: #f0f0f0;
}

.modal-opcao-label input[type="checkbox"],
.modal-opcao-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #5b0e5c;
  flex-shrink: 0;
}

.modal-opcao-label span,
.modal-opcao-radio span {
  flex: 1;
  font-weight: 500;
}

.modal-preco {
  color: #077c22;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-left: auto;
}

.modal-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 6px;
}

.modal-input {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s;
}

.modal-input:focus {
  outline: none;
  border-color: #5b0e5c;
  box-shadow: 0 0 0 3px rgba(91, 14, 92, 0.1);
}

.modal-contador {
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-top: 4px;
}

/* Rodapé do modal */
.modal-rodape {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 16px;
  border-top: 1.5px solid #ddd;
  margin-top: auto;
}

.modal-quantidade {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 6px;
}

.modal-quantidade button {
  background: none;
  border: none;
  color: #5b0e5c;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
  border-radius: 6px;
}

.modal-quantidade button:hover {
  background: rgba(91, 14, 92, 0.1);
}

.modal-quantidade input {
  background: none;
  border: none;
  width: 50px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  font-family: 'Poppins', sans-serif;
}

.modal-btn-finalizar {
  flex: 1;
  background: #5b0e5c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}

.modal-btn-finalizar:hover {
  background: #4a0a49;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 14, 92, 0.3);
}

.modal-btn-finalizar:active {
  transform: translateY(0);
}

/* Responsivo */
@media (max-width: 768px) {
  .modal-conteudo {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .modal-esquerda {
    flex: 1;
  }

  .modal-direita {
    max-height: 400px;
  }

  .modal-foto {
    height: 240px;
  }

  .modal-fechar {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 10px;
  }

  .modal-container {
    border-radius: 12px;
    max-height: 95vh;
  }

  .modal-conteudo {
    padding: 16px;
    gap: 12px;
  }

  .modal-esquerda {
    flex: 0 0 auto;
  }

  .modal-foto {
    height: 200px;
  }

  .modal-info h2 {
    font-size: 1.1rem;
  }

  .modal-preco-por {
    font-size: 1.2rem;
  }

  .modal-rodape {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .modal-btn-finalizar {
    width: 100%;
  }

  .modal-quantidade {
    width: 100%;
    justify-content: space-around;
  }

  .modal-secao {
    padding: 10px;
  }

  .modal-opcao-label,
  .modal-opcao-radio {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
}

/* ===== MODAL DO CARRINHO ===== */
.carrinho-overlay {
  z-index: 1002;
}

.carrinho-container {
  max-width: 800px;
  max-height: 90vh;
}

.carrinho-conteudo {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

.carrinho-itens {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.carrinho-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
}

.item-imagem {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.item-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #5b0e5c;
  margin: 0;
}

.item-complementos,
.item-observacao {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.item-controles {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.quantidade-controle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 4px;
  order: 1;
}

.btn-qtd {
  background: none;
  border: none;
  color: #5b0e5c;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
  border-radius: 4px;
}

.btn-qtd:hover {
  background: rgba(91, 14, 92, 0.1);
}

.qtd-valor {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 30px;
  text-align: center;
}

.item-preco {
  font-weight: 700;
  color: #5b0e5c;
  font-size: 0.95rem;
  margin-left: auto;
  order: 2;
}

.btn-remover {
  order: 3;
  background: #cc0000;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-remover:hover {
  background: #aa0000;
}

.carrinho-total {
  border-top: 2px solid #ddd;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.total-linha {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
}

.total-final {
  font-size: 1.1rem;
  color: #5b0e5c;
  font-weight: 800;
  border-top: 1px solid #ddd;
  padding-top: 8px;
  margin-top: 8px;
}

.carrinho-formulario {
  border-top: 2px solid #ddd;
  padding-top: 24px;
}

.carrinho-formulario h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #5b0e5c;
  margin-bottom: 16px;
}

.form-grupo {
  margin-bottom: 16px;
}

.form-grupo label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 6px;
}

.form-grupo input {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s;
}

.form-grupo input:focus {
  outline: none;
  border-color: #5b0e5c;
  box-shadow: 0 0 0 3px rgba(91, 14, 92, 0.1);
}

.form-grupo input[readonly] {
  background: #f9f9f9;
  cursor: not-allowed;
}

.btn-buscar-cep {
  background: #077c22;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 8px;
}

.btn-buscar-cep:hover {
  background: #055c1a;
}

.carrinho-vazio {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.carrinho-vazio i {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 16px;
}

.carrinho-vazio p {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.carrinho-rodape {
  padding-top: 20px;
  border-top: 2px solid #ddd;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.btn-voltar {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}

.btn-voltar:hover {
  background: #e9e9e9;
  border-color: #bbb;
}

.btn-concluir {
  background: #077c22;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}

.btn-concluir:hover:not(:disabled) {
  background: #055c1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 124, 34, 0.3);
}

.btn-concluir:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== MODAL SIMPLES DO CARRINHO ===== */
.modal-simples-overlay {
  z-index: 1001;
}

.modal-simples-container {
  max-width: 700px;
  max-height: 80vh;
}

.modal-simples-conteudo {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  max-height: calc(80vh - 120px);
  overflow-y: auto;
}

.carrinho-itens-simples {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.carrinho-item-simples {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
}

.item-imagem-simples {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.item-imagem-simples img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info-simples {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-info-simples h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #5b0e5c;
  margin: 0;
}

.item-complementos,
.item-observacao {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.item-controles-simples {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.item-controles-simples .quantidade-controle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 4px;
}

.item-controles-simples .btn-qtd {
  background: none;
  border: none;
  color: #5b0e5c;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
  border-radius: 4px;
}

.item-controles-simples .btn-qtd:hover {
  background: rgba(91, 14, 92, 0.1);
}

.item-controles-simples .qtd-valor {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 30px;
  text-align: center;
}

.item-controles-simples .item-preco {
  font-weight: 700;
  color: #5b0e5c;
  font-size: 0.95rem;
  margin-left: auto;
}

.item-controles-simples .quantidade-controle {
  order: 1;
}

.item-controles-simples .item-preco {
  order: 2;
}

.item-controles-simples .btn-remover {
  order: 3;
  background: #cc0000;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}

.item-controles-simples .btn-remover:hover {
  background: #aa0000;
}

.carrinho-total-simples {
  border-top: 2px solid #ddd;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-simples-rodape {
  padding-top: 20px;
  border-top: 2px solid #ddd;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

/* ===== MODAL DE PAGAMENTO ===== */
.pagamento-overlay {
  z-index: 1003;
}

.pagamento-container {
  max-width: 900px;
  max-height: 95vh;
}

.pagamento-conteudo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 24px;
  max-height: calc(95vh - 120px);
  overflow-y: auto;
}

.pagamento-resumo {
  background: #fafafa;
  border-radius: 12px;
  padding: 20px;
}

.pagamento-resumo h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #5b0e5c;
  margin-bottom: 16px;
}

.resumo-itens {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.resumo-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.resumo-item:last-child {
  border-bottom: none;
}

.resumo-total {
  border-top: 2px solid #ddd;
  padding-top: 12px;
}

.pagamento-qr {
  background: #fafafa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.pagamento-qr h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #5b0e5c;
  margin-bottom: 8px;
}

.pagamento-qr p {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.qr-code {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qr-image {
  width: 180px;
  height: 180px;
  border-radius: 8px;
}

.qr-info {
  text-align: left;
  font-size: 0.85rem;
  color: #666;
}

.qr-info p {
  margin: 4px 0;
}

.pix-codigo {
  margin-bottom: 20px;
}

.pix-codigo label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 8px;
}

.codigo-container {
  display: flex;
  gap: 8px;
}

.codigo-container input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.8rem;
  font-family: monospace;
  background: #f9f9f9;
}

.btn-copiar {
  background: #5b0e5c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-copiar:hover {
  background: #4a0a49;
}

.pagamento-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.status-icon i {
  font-size: 2rem;
  color: #856404;
}

.status-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #856404;
  margin: 0 0 4px;
}

.status-info p {
  font-size: 0.85rem;
  color: #856404;
  margin: 0;
}

.pagamento-dados {
  background: #fafafa;
  border-radius: 12px;
  padding: 20px;
  grid-column: 1 / -1;
}

.pagamento-dados h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #5b0e5c;
  margin-bottom: 16px;
}

.dados-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dado-item {
  font-size: 0.9rem;
}

.dado-item strong {
  color: #5b0e5c;
  font-weight: 600;
}

.dado-item.endereco {
  grid-column: 1 / -1;
}

.pagamento-rodape {
  padding-top: 20px;
  border-top: 2px solid #ddd;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.btn-confirmar {
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}

.btn-confirmar:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-confirmar:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== MODAL DE CONFIRMAÇÃO ===== */
.confirmacao-overlay {
  z-index: 1004;
}

.confirmacao-container {
  max-width: 500px;
}

.confirmacao-conteudo {
  text-align: center;
  padding: 32px;
}

.confirmacao-icon i {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 20px;
}

/* ===== POPUP DO CARRINHO ===== */
.popup-carrinho {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border: 2px solid #5b0e5c;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(91, 14, 92, 0.3);
  z-index: 999;
  display: none;
  width: 320px;
  max-height: 70vh;
  overflow: hidden;
  transition: all 0.3s ease;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #5b0e5c;
  color: #fff;
  border-radius: 48px 48px 0 0;
}

.popup-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.popup-titulo i {
  font-size: 1rem;
}

.popup-controles {
  display: flex;
  gap: 4px;
}

.popup-minimizar,
.popup-fechar {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-minimizar:hover,
.popup-fechar:hover {
  background: rgba(255,255,255,0.2);
}

.popup-conteudo {
  transition: all 0.3s ease;
}

.popup-itens {
  padding: 12px 20px;
  max-height: 150px;
  overflow-y: auto;
}

.popup-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.popup-item:last-child {
  border-bottom: none;
}

.popup-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popup-item-nome {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

.popup-item-remover {
  background: #cc0000;
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  transition: background 0.2s;
  align-self: flex-end;
  margin-top: 4px;
}

.popup-item-remover:hover {
  background: #aa0000;
}

.popup-total {
  padding: 10px 20px;
  background: #f8f8f8;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #5b0e5c;
  border-top: 1px solid #ddd;
}

.popup-acoes {
  display: flex;
  gap: 8px;
  padding: 12px 20px 16px;
  background: #fafafa;
  border-radius: 0 0 48px 48px;
}

.btn-ver-carrinho,
.btn-finalizar {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-ver-carrinho {
  background: #f5f5f5;
  color: #5b0e5c;
  border: 1px solid #5b0e5c;
}

.btn-ver-carrinho:hover {
  background: #5b0e5c;
  color: #fff;
}

.btn-finalizar {
  background: #077c22;
  color: #fff;
}

.btn-finalizar:hover {
  background: #055c1a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(7, 124, 34, 0.3);
}

/* Responsivo para popup */
@media (max-width: 768px) {
  .popup-carrinho {
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 60vh;
  }

  .popup-header {
    padding: 10px 16px;
  }

  .popup-titulo {
    font-size: 0.8rem;
  }

  .popup-itens {
    padding: 10px 16px;
    max-height: 120px;
  }

  .popup-total {
    padding: 8px 16px;
    font-size: 0.95rem;
  }

  .popup-acoes {
    padding: 10px 16px 14px;
  }

  .btn-ver-carrinho,
  .btn-finalizar {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
}

.confirmacao-conteudo h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #5b0e5c;
  margin-bottom: 16px;
}

.confirmacao-conteudo p {
  color: #666;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.pedido-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.pedido-info p {
  margin: 8px 0;
  font-size: 0.9rem;
}

.btn-fechar {
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Poppins', sans-serif;
}

.btn-fechar:hover {
  background: #545b62;
}

/* ===== RESPONSIVO CARRINHO E PAGAMENTO ===== */
@media (max-width: 768px) {
  .carrinho-conteudo,
  .pagamento-conteudo {
    padding: 16px;
    gap: 20px;
  }

  .carrinho-item {
    flex-direction: column;
    gap: 12px;
  }

  .item-controles {
    justify-content: space-between;
    width: 100%;
  }

  .pagamento-conteudo {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dados-grid {
    grid-template-columns: 1fr;
  }

  .dado-item.endereco {
    grid-column: auto;
  }

  .carrinho-rodape,
  .pagamento-rodape {
    flex-direction: column;
    gap: 10px;
  }

  .btn-voltar,
  .btn-concluir,
  .btn-confirmar {
    width: 100%;
  }

  .qr-image {
    width: 150px;
    height: 150px;
  }

  .codigo-container {
    flex-direction: column;
  }

  .codigo-container input {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .carrinho-container,
  .pagamento-container {
    margin: 10px;
    max-height: 95vh;
  }

  .carrinho-conteudo,
  .pagamento-conteudo {
    padding: 12px;
  }

  .pagamento-status {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .confirmacao-conteudo {
    padding: 20px;
  }

  .confirmacao-icon i {
    font-size: 3rem;
  }
}
