/* ============================================
   NEXUS DELIVERY - CARDÁPIO v3
   Mantém classes originais + visual moderno
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: #f5f5f5;
  color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
}

.main-container { padding: 5px; }

/* ========== CARDS CATEGORIAS ========== */
.cards {
  margin-top: 25px;
  justify-content: center;
}

.card {
  margin: 10px;
  padding: 20px;
  height: 120px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  border: none;
}

.card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.card-title {
  grid-row: 2/4;
  font-weight: 600;
  color: #fff;
  text-align: center;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.link-card { text-decoration: none; }

.carrinho { margin-right: 10px; }

/* GRADIENTS CATEGORIAS */
.azul { background: linear-gradient(135deg, #1fe4f5, #3fbafe); }
.rosa { background: linear-gradient(135deg, #fbc1cc, #fa99b2); }
.azul-escuro { background: linear-gradient(135deg, #76b2fe, #b69efe); }
.verde { background: linear-gradient(135deg, #60efbc, #58d5c9); }
.roxo { background: linear-gradient(135deg, #f588d8, #c0a3e5); }
.vermelho { background: linear-gradient(135deg, #f58888, #e32424); }
.verde-escuro { background: linear-gradient(135deg, #1adb54, #36a867); }
.laranja { background: linear-gradient(135deg, #f5c071, #c98116); }
.amarelo { background: linear-gradient(135deg, #e4eb6e, #c3cc14); }

/* ========== POPUPS CARRINHO ========== */
.overlay {
  position: fixed;
  top: 60px;
  right: 10px;
  visibility: hidden;
  opacity: 0;
  background: #fff;
  width: 320px;
  max-height: 500px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  transition: all 0.3s;
  z-index: 1100;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup { margin: 5px auto; padding: 10px; }

.popup .close {
  position: absolute;
  top: 8px;
  right: 12px;
  transition: all 0.2s;
  font-size: 22px;
  font-weight: 300;
  text-decoration: none;
  color: #999;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
}

.popup .close:hover { color: #e32424; background: #fee; }

.linha { margin: 5px 0px; }
.titulo-popup { font-size: 17px; font-weight: 600; }
.conteudo-popup { font-size: 15px; }

/* ========== FOOTER ========== */
.rodape {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 10px;
  background: #fff;
  text-align: center;
  font-size: 12px;
  color: #666;
  z-index: 300;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}

.link-neutro { color: #363636; text-decoration: none; }
.link-neutro:hover { color: #e32424; }
.link-neutro2 { color: #ffffff; text-decoration: none; }

/* ========== ITEMS E PREÇOS ========== */
.valor-item {
  font-size: 13px;
  color: #16a34a;
  font-weight: 700;
}

.valor-item-maior {
  font-size: 14px;
  color: #16a34a;
  font-weight: 700;
}

.titulo-itens {
  margin-bottom: 0;
  background: #f8f8f8;
  padding: 10px 16px;
  color: #1a1a2e;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid #eee;
}

.titulo-itens-pizza {
  font-size: 14px;
  background: #fff8e1;
  padding: 8px 16px;
  width: 100%;
  color: #1a1a2e;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.total {
  text-align: right;
  margin-right: 5px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.direita { position: absolute; right: 30px; }
.abaixo { position: absolute; bottom: 0px; width: 100%; }

.titulo-itens-2 {
  margin-top: 0;
  margin-bottom: 0;
  background: #f8f8f8;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 1px solid #eee;
}

.titulo-descricao-item {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a2e;
}

.descricao-item {
  font-size: 13px;
  margin-top: 4px;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.conteudo-descricao-item { margin: 0px 15px; }

/* ========== DESTAQUES ========== */
.destaque {
  padding: 12px;
  margin-top: 56px;
  box-shadow: none;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.destaque-qtd {
  padding: 12px;
  margin-top: 0;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.total-pedido {
  padding: 12px 16px;
  margin-top: 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  font-size: 14px;
  font-weight: 600;
  position: absolute;
  bottom: 50px;
  width: 100%;
  background: #FFF;
  border-top: 1px solid #eee;
}

/* ========== BOTÕES ========== */
.botao-carrinho {
  border-radius: 0;
  height: 48px;
  font-weight: 700;
  font-size: 0.9rem;
}

.area-pedidos {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 999;
}

/* ========== OVERLAY 2 (Bottom sheet) ========== */
.overlay2 {
  position: fixed;
  bottom: 0px;
  visibility: hidden;
  opacity: 0;
  background: #fff;
  width: 100%;
  height: auto;
  z-index: 1100;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
  font-size: calc(.6rem + .4vw);
  color: #212121;
  padding: 0 16px;
}

.overlay2:target {
  visibility: visible;
  opacity: 1;
}

.popup2 { margin: 5px auto; padding: 10px 0px; }

.popup2 .close {
  position: absolute;
  top: 8px;
  right: 12px;
  transition: all 0.2s;
  font-size: 22px;
  font-weight: 300;
  text-decoration: none;
  color: #999;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
}

.popup2 .close:hover { color: #e32424; }

/* ========== ADD TO CART CARD ========== */
.card-add-carrinho {
  background: #fff;
  padding: 12px;
  margin-top: 12px;
  border-radius: 14px;
  border: 1.5px solid #eee;
  box-shadow: none;
  transition: all 0.2s;
}

.card-add-carrinho:hover { border-color: #ddd; }

/* ========== FORM MATERIAL ========== */
.group { position: relative; margin-bottom: 25px; }

.input {
  font-size: 14px;
  padding: 12px;
  display: block;
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s;
}

.input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.08);
}

.label {
  color: #999;
  font-size: 15px;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  left: 12px;
  top: 12px;
  transition: 0.2s ease all;
}

.input:focus~label, input:valid~label {
  top: -8px;
  font-size: 11px;
  color: #38bdf8;
  background: #fff;
  padding: 0 4px;
}

.imagem-produto {
  width: 300px;
  margin-top: 10px;
  border-radius: 14px;
}

/* ========== CARRINHO QTD ========== */
.carrinho-qtd {
  text-align: right;
  background: #f8f8f8;
  padding: 10px 16px;
  margin-top: 0;
  font-size: 0;
  border-bottom: 1px solid #eee;
}

.itens-carrinho-qtd {
  position: absolute;
  left: 30px;
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
}

.itens-carrinho-qtd-adc {
  position: absolute;
  left: 60px;
  display: inline-block;
  font-size: 14px;
  color: #666;
}

.menos-mais {
  width: 36px;
  height: 34px;
  background: #f0f0f0;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.menos-mais:hover { background: #e5e5e5; }
.menos-mais:active { transform: scale(0.9); }

.qtd-item-carrinho {
  width: 36px;
  height: 34px;
  background: #fff;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.valor-carrinho-it {
  width: 90px;
  height: 34px;
  background: transparent;
  text-align: right;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 16px;
  color: #16a34a;
  font-weight: 700;
}

.nome-produto { font-weight: 600; }

/* ========== DELETE OVERLAY ========== */
.overlay-excluir {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  background: #fff;
  width: 220px;
  height: auto;
  z-index: 10;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  padding: 10px;
}

.nome_user { font-size: 18px; font-weight: 700; }
.telefone_user { font-size: 16px; color: #e32424; font-weight: bold; }

.botao_sim {
  width: 100%;
  background: #16a34a;
  padding: 12px;
  color: #FFF;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s;
}
.botao_sim:hover { filter: brightness(1.1); }

.botao_nao {
  width: 100%;
  background: #e32424;
  padding: 12px;
  color: #FFF;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s;
}
.botao_nao:hover { filter: brightness(1.1); }

/* ========== BADGE PROMO ========== */
.badge2 {
  position: absolute;
  display: inline-block;
  min-width: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
  background: #e32424;
  border-radius: 8px;
  left: 0;
  top: -10px;
  z-index: 200;
}

.ocultar { display: none; }

.subtitulo-item { font-weight: 600; font-size: 13px; }
.subtitulo-item-menor { font-weight: 500; font-size: 11px; color: #666; }
.ingredientes { font-size: 11px; color: #666; }
.avancar-pgto { font-size: 13px; font-weight: 600; }
.previsao_entrega { font-size: 11px; margin-bottom: 10px; color: #666; }

.total-finalizar {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.06);
  border-top: 1px solid #eee;
}

/* ========== PIZZA SABORES ========== */
.sabores {
  text-align: center;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.sabores-itens {
  border: 1.5px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px;
  margin: 2px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.sabores-itens:hover { border-color: #38bdf8; color: #38bdf8; }

.ocultar_img { display: none; }
.ocultar_dasktop { display: none; }
.ocultar_mobile { display: inline; }
.padding_input { padding-left: 30%; padding-right: 30%; }

.cardTarefas { margin-bottom: 10px; margin-left: 9px; }

/* ========== RESPONSIVO MOBILE ========== */
@media (max-width: 768px) {
  .card {
    padding: 5px;
    min-height: 70px;
    margin: 0px 0px 20px 0px;
  }
  .card-title { font-size: 18px; }
  .cards { margin-left: 0px; margin-right: 0px; }
  .ocultar-mobile { display: none; }
  .imagem-produto { width: 100%; padding: 0px 10px; border-radius: 12px; }
  .margin_top_negativa { margin-top: 0px !important; }
  .ocultar_img { display: inline; }
  .ocultar_dasktop { display: inline; }
  .ocultar_mobile { display: none; }
  .padding_input { padding-left: 16px; padding-right: 16px; }
}

/* ========== RESPONSIVO DESKTOP ========== */
@media (min-width: 768px) {
  .cardTarefas { margin-bottom: 10px; margin-left: 5px; }
  .cards { margin-left: 100px; margin-right: 100px; }
  .ocultar-banner-web { display: none; }
  .cards { margin-top: 65px; }
  .margin_top_web { margin-top: 30px; }
}

/* ========== MELHORIAS GLOBAIS ========== */
.navbar {
  background: #fff !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06) !important;
}

.list-group-item {
  border-color: #f0f0f0 !important;
  transition: all 0.2s;
}
.list-group-item:hover { background: #fafafa; }

.list-group-item img {
  border-radius: 12px !important;
  object-fit: cover;
}

.form-control {
  border-radius: 12px !important;
  border: 1.5px solid #e5e7eb !important;
  transition: all 0.2s !important;
}
.form-control:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.08) !important;
}

.btn { border-radius: 12px !important; transition: all 0.2s; }
.btn:active { transform: scale(0.97); }

.accordion-button {
  border-radius: 12px !important;
  font-weight: 600 !important;
}

.modal-content {
  border-radius: 18px !important;
  border: none !important;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15) !important;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

.swal2-popup { border-radius: 16px !important; }
