/* =====================================================================
   CHURRASQUINHO DUBOM — FOLHA DE ESTILOS
   Conceito: "Brasa & Carvão" — paleta escura de carvão com acentos
   de brasa (laranja/vermelho) e dourado, remetendo a fogo de chão,
   fumaça e espetinhos. Tipografia condensada e forte no display,
   texto limpo no corpo. Elemento de assinatura: textura de "grelha"
   (linhas diagonais) usada no hero e como divisor de seções.
   ===================================================================== */

/* =========================
   FONTES (Google Fonts)
========================= */

@import url("https://fonts.googleapis.com/css2?family=Anton&family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

/* =========================
   RESET
========================= */

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

/* =========================
   TOKENS DE DESIGN
========================= */

:root {
  /* Paleta "Brasa & Carvão" */
  --carvao: #1b1512; /* fundo escuro principal (header/footer) */
  --carvao-claro: #2a2019; /* variação mais clara do carvão */
  --brasa: #e8541e; /* laranja-brasa — cor de ação principal */
  --brasa-escura: #b8290f; /* vermelho-brasa — hover/gradiente */
  --dourado: #c9962e; /* dourado defumado — preços/destaques */
  --dourado-escuro: #9c7420; /* dourado para hover */
  --creme: #fffbf5; /* branco quente — cards */
  --fundo: #f3ece1; /* bege claro — fundo da página */
  --fumaca: #362b24; /* texto principal (marrom-carvão) */
  --fumaca-clara: #7a6b5d; /* texto secundário */
  --erro: #c1391f; /* vermelho para remover/erro */
  --sucesso: #4c7a3d; /* verde discreto, usado com moderação */
  --branco: #ffffff;

  /* Sombras */
  --sombra-suave: 0 2px 10px rgba(27, 21, 18, 0.08);
  --sombra-media: 0 6px 20px rgba(27, 21, 18, 0.14);
  --sombra-brasa: 0 8px 24px rgba(232, 84, 30, 0.35);

  /* Raios */
  --raio-sm: 8px;
  --raio-md: 14px;
  --raio-lg: 22px;
}

/* Respeita usuários que pedem menos animação */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button,
input,
select,
textarea {
  font-family: inherit;
}

body {
  font-family: "Work Sans", Arial, Helvetica, sans-serif;
  background: var(--fundo);
  color: var(--fumaca);
  line-height: 1.5;
}

body.sem-scroll,
html.sem-scroll {
  overflow: hidden;
  height: 100vh;
}

html {
  scroll-behavior: smooth;
}

/* Foco visível para acessibilidade (teclado) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--dourado);
  outline-offset: 2px;
}

/* =========================
   TEXTURA DE ASSINATURA — "GRELHA"
   Linhas diagonais finas, usadas como marca visual recorrente
   (hero e divisores). Sutil o suficiente para não competir
   com o conteúdo.
========================= */

.hero .overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 2px,
    transparent 2px,
    transparent 18px
  );
  pointer-events: none;
}

/* =========================
   HEADER / HERO
========================= */

.hero {
  height: 380px;
  background-image:
    linear-gradient(180deg, rgba(27, 21, 18, 0.35), rgba(27, 21, 18, 0.85)),
    url("../img/banner.jpg");
  background-position: center;
  background-size: cover;
  position: relative;
}

.overlay {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: var(--creme);

  padding: 20px;
}

.logo {
  width: 120px;
  height: 120px;

  object-fit: cover;

  border-radius: 50%;

  border: 4px solid var(--brasa);
  box-shadow:
    0 0 0 6px rgba(232, 84, 30, 0.2),
    var(--sombra-media);

  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.overlay h1 {
  font-family: "Anton", "Work Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.overlay p {
  font-size: 1.05rem;
  color: #f0e4d8;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.status-loja {
  text-align: center;
  padding: 10px;
  font-weight: bold;
  color: white;
  border-radius: 8px;
  margin: 10px;
}

.aberto {
  background: #16a34a;
}

.fechado {
  background: #dc2626;
}

.modal-fechado {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.modal-fechado.ativo {
  display: flex;
}

.modal-fechado-content {
  background: #fff;
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  padding: 25px;
  text-align: center;
  animation: abrirModal 0.25s ease;
}

.icone-fechado {
  font-size: 50px;
  margin-bottom: 10px;
}

.modal-fechado-content h3 {
  color: #d32f2f;
  margin-bottom: 10px;
}

.modal-fechado-content p {
  color: #555;
  line-height: 1.5;
}

.modal-fechado-content button {
  width: 100%;
  margin-top: 20px;
  border: none;
  background: #ff6b00;
  color: white;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.modal-fechado-content button:hover {
  transform: translateY(-2px);
}

@keyframes abrirModal {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================
   INTRODUÇÃO
========================= */

.intro {
  text-align: center;
  padding: 40px 20px 20px;
}

.intro h2 {
  font-family: "Anton", "Work Sans", sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
  color: var(--fumaca);
  margin-bottom: 8px;
}

.intro p {
  color: var(--fumaca-clara);
  font-size: 1rem;
}

/* =========================
   CATEGORIAS (menu de navegação)
========================= */

.categorias {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 10px;

  padding: 14px 15px;

  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(6px);

  position: sticky;

  top: 0;

  z-index: 100;

  box-shadow: var(--sombra-suave);
  border-bottom: 1px solid rgba(27, 21, 18, 0.06);
}

.categorias a {
  flex: 1;

  text-align: center;

  text-decoration: none;

  background: var(--carvao);

  color: var(--creme);

  padding: 12px 10px;

  border-radius: 999px;

  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;

  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.categorias a:hover,
.categorias a:focus-visible {
  background: var(--brasa);
  transform: translateY(-2px);
  box-shadow: var(--sombra-brasa);
}

.categorias::-webkit-scrollbar {
  display: none;
}

.categorias {
  scrollbar-width: none;
}

.categorias.oculta {
  display: none !important;
}

/* Título de cada categoria, com o traço de "brasa" à esquerda
   e a textura de grelha como divisor sutil */
.titulo-categoria {
  background: var(--carvao-claro);
  color: var(--creme);

  border-left: 6px solid var(--brasa);

  padding: 16px 18px;

  margin: 34px 20px 14px;

  border-radius: var(--raio-sm);

  font-family: "Anton", "Work Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 22px;

  box-shadow: var(--sombra-suave);
}

.mais-pedidos-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px;
  scroll-snap-type: x mandatory;
}

.mais-pedidos-carousel::-webkit-scrollbar {
  display: none;
}

.mais-pedidos-carousel .produto-card {
  min-width: 220px;
  scroll-snap-align: start;
}

/* =========================
   PRODUTOS
========================= */

.produtos {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 22px;

  padding: 10px 20px 20px;

  max-width: 1200px;
  margin: 0 auto;
}

.produto-card {
  background: var(--creme);

  border-radius: var(--raio-md);

  overflow: hidden;

  box-shadow: var(--sombra-suave);

  display: flex;
  flex-direction: column;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.produto-card h3 {
  padding: 14px 14px 4px;
  font-size: 1.05rem;
  color: var(--fumaca);

  height: 60px;
  display: flex;
  align-items: flex-start;
}

.produto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-media);
}

.produto-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.produto-card h3 {
  padding: 14px 14px 4px;
  font-size: 1.05rem;
  color: var(--fumaca);
}

.produto-card p {
  padding: 0 14px;
  color: var(--fumaca-clara);
  font-size: 0.92rem;
  flex-grow: 1;
}

.preco {
  display: block;

  padding: 12px 14px 4px;

  font-size: 19px;
  font-weight: 700;
  font-family: "Work Sans", sans-serif;

  color: var(--dourado-escuro);
}

.btn-adicionar {
  width: 100%;

  border: none;

  background: linear-gradient(135deg, var(--brasa), var(--brasa-escura));
  color: var(--branco);

  padding: 14px;
  margin-top: 12px;

  cursor: pointer;

  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;

  transition:
    filter 0.2s ease,
    transform 0.15s ease;
}

.btn-adicionar:hover {
  filter: brightness(1.08);
}

.btn-adicionar:active {
  transform: scale(0.98);
}

/* =========================
   BOTÃO FLUTUANTE DO CARRINHO
========================= */

#btnCarrinho {
  position: fixed;

  right: 20px;
  bottom: 20px;

  width: 65px;
  height: 65px;

  border-radius: 50%;

  border: none;

  background: linear-gradient(135deg, var(--brasa), var(--brasa-escura));

  color: var(--branco);

  font-size: 28px;

  cursor: pointer;

  z-index: 9999;

  box-shadow: var(--sombra-brasa);

  display: flex;
  justify-content: center;
  align-items: center;

  transition: transform 0.2s ease;
}

#btnCarrinho:hover {
  transform: scale(1.06);
}

#btnCarrinho:active {
  transform: scale(0.96);
}

#badgeCarrinho {
  position: absolute;

  top: -4px;
  right: -4px;

  width: 22px;
  height: 22px;

  border-radius: 50%;

  background: var(--dourado);

  color: var(--carvao);
  font-weight: 700;

  font-size: 12px;

  display: flex;
  justify-content: center;
  align-items: center;

  border: 2px solid var(--creme);
}

/* =========================
   PAINEL DO CARRINHO (lateral)
========================= */

.carrinho {
  position: fixed;

  top: 0;
  right: -100%;

  width: 420px;
  max-width: 100%;

  height: 100dvh;

  background: var(--fundo);

  display: flex;
  flex-direction: column;

  transition: right 0.3s ease;

  z-index: 9999;

  overscroll-behavior: contain;

  touch-action: pan-y;

  box-shadow: -8px 0 30px rgba(27, 21, 18, 0.2);
  border-radius: var(--raio-lg) 0 0 var(--raio-lg);
}

.carrinho.aberto {
  right: 0;
}

/* TOPO */

.carrinho-topo {
  flex-shrink: 0;

  padding: 20px;

  background: var(--carvao);
  color: var(--creme);

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-radius: var(--raio-lg) 0 0 0;
}

.carrinho-topo h2 {
  font-family: "Anton", "Work Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 1.3rem;
}

#fecharCarrinho {
  border: none;

  background: transparent;
  color: var(--creme);

  font-size: 30px;
  line-height: 1;

  cursor: pointer;

  transition: color 0.2s ease;
}

#fecharCarrinho:hover {
  color: var(--brasa);
}

/* LISTA DE ITENS */

#itensCarrinho {
  flex: 1;

  overflow-y: auto;

  padding: 16px;
  padding-bottom: 50px;

  min-height: 150px;
}

/* Estado vazio — orienta o cliente sem precisar mexer no HTML/JS */
#itensCarrinho:empty::before {
  content: "Seu carrinho está vazio. Escolha algo saboroso no cardápio! 🔥";
  display: block;
  text-align: center;
  color: var(--fumaca-clara);
  font-size: 0.95rem;
  padding: 40px 20px;
}

/* Item individual do carrinho (gerado via JS) */
.carrinho-item {
  background: var(--creme);

  padding: 14px;

  border-radius: var(--raio-md);

  margin-bottom: 12px;

  box-shadow: var(--sombra-suave);
}

.carrinho-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.carrinho-item h4 {
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--fumaca);
}

.carrinho-item p {
  margin-bottom: 5px;
  font-weight: 700;
  color: var(--dourado-escuro);
}

.carrinho-item small {
  display: block;
  margin-top: 5px;
  color: var(--fumaca-clara);
}

/* Botão de remover item do carrinho */
.btn-remover {
  width: 100%;

  margin-top: 10px;

  padding: 10px;

  border: none;

  border-radius: var(--raio-sm);

  background: var(--erro);

  color: var(--branco);

  font-weight: 700;

  cursor: pointer;

  transition: filter 0.2s ease;
}

.btn-remover:hover {
  filter: brightness(1.1);
}

/* RODAPÉ DO CARRINHO (dados do cliente + total) */

.carrinho-rodape {
  flex-shrink: 0;

  background: var(--creme);

  border-top: 1px solid rgba(27, 21, 18, 0.08);

  padding: 18px;

  overflow-y: auto;

  max-height: 48vh;

  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  border-radius: 0 0 0 var(--raio-lg);
}

#totalCarrinho {
  font-family: "Anton", "Work Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;

  font-size: 20px;

  color: var(--dourado-escuro);

  margin-bottom: 14px;

  line-height: 1.5;
}

/* Formulário de dados do pedido */

.form-pedido {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.form-pedido input,
.form-pedido select {
  width: 100%;
  box-sizing: border-box;

  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(27, 21, 18, 0.15);
  font-size: 14px;
  font-family: "Work Sans", sans-serif;
  outline: none;
  background: var(--branco);
  color: var(--fumaca);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-pedido input::placeholder {
  color: var(--fumaca-clara);
}

.form-pedido input:focus,
.form-pedido select:focus {
  border-color: var(--brasa);
  box-shadow: 0 0 0 3px rgba(232, 84, 30, 0.18);
}

/* Select customizado (seta própria) */
.form-pedido select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%237A6B5D'%3E%3Cpath d='M2 5l7 8 7-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Campo de troco (exibido condicionalmente via JS) */
#campoTroco {
  margin-top: 4px;
}

#trocoCliente {
  width: 100%;
}

/* Botão final — a ação mais importante da página.
   Recebe destaque máximo com gradiente de brasa e leve
   pulso de brilho para chamar o olhar do cliente. */
#finalizarPedido {
  width: 100%;

  margin-top: 18px;

  padding: 16px;

  border: none;

  border-radius: 12px;

  background: linear-gradient(135deg, var(--brasa), var(--brasa-escura));

  color: var(--branco);

  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;

  cursor: pointer;

  box-shadow: var(--sombra-brasa);

  animation: pulso-brasa 2.6s ease-in-out infinite;

  transition:
    transform 0.15s ease,
    filter 0.2s ease;
}

#finalizarPedido:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

#finalizarPedido:active {
  transform: scale(0.98);
}

@keyframes pulso-brasa {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(232, 84, 30, 0.35);
  }
  50% {
    box-shadow: 0 8px 30px rgba(232, 84, 30, 0.55);
  }
}

/* ==========================
   MODAL PIX - MELHORADO
========================== */

#modalPix {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 16px;
}

#modalPix.ativo {
  display: flex;
}

#modalPix .modal-content {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: #1f1f1f;
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: modalPixEntrada 0.3s ease;
}

@keyframes modalPixEntrada {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Nome e Instituição do PIX - DESTACADO */
.pix-titular {
  background: #2c2c2c;
  border-left: 5px solid #8a05be;
  border-radius: 8px;
  padding: 14px;
  margin: 15px 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
}

.pix-titular strong {
  color: #ffb300;
  font-size: 16px;
}

/* Botão Finalizar Pedido - MAIS DESTAQUE */
#btnFinalizarPix {
  width: 100%;
  padding: 16px;
  margin-top: 10px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #25d366, #1ebe5a);
  color: white;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
}

#btnFinalizarPix:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

#btnFinalizarPix:active {
  transform: scale(0.97);
}

/* Aviso do Comprovante - MAIS DESTACADO */
.aviso-pix {
  background: #3a2a00;
  border: 2px solid #ffb300;
  color: #ffd54f;
  padding: 16px;
  border-radius: 12px;
  margin: 18px 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

/* Chave PIX */
.pix-box {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.pix-box input {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #2c2c2c;
  color: white;
  font-size: 15px;
  font-weight: 600;
}

/* Botão Copiar */
.pix-box button {
  background: #ff6b00;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================
   BOTÃO FECHAR PIX
========================== */

.btn-fechar-pix {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;

  width: 38px !important;
  height: 38px !important;

  padding: 0 !important;
  margin: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: none !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;

  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 100 !important;

  transition: all 0.25s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.btn-fechar-pix:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: rotate(90deg) !important;
}

.btn-fechar-pix:active {
  transform: scale(0.9) !important;
}

/* ==========================
   TITULO PIX
========================== */

#modalPix h2 {
  margin: 10px 0 20px;

  color: #ffb300;

  font-size: clamp(20px, 5vw, 24px);

  font-weight: 700;
}

/* ==========================
   QR CODE
========================== */

.qr-pix {
  width: clamp(160px, 55vw, 220px);

  margin: 15px auto;

  display: block;

  background: #fff;

  padding: 10px;

  border-radius: 14px;
}

/* ==========================
   RESUMO
========================== */

#resumoPix {
  background: #292929;

  border-radius: 12px;

  padding: 14px;

  margin-bottom: 15px;

  text-align: left;

  max-height: 200px;

  overflow: auto;
}

#resumoPix strong {
  display: block;

  margin-top: 10px;

  color: #ffb300;

  font-size: 19px;
}

/* ==========================
   CHAVE PIX
========================== */

.pix-box {
  display: flex;

  gap: 8px;

  margin-top: 15px;
}

.pix-box input {
  flex: 1;

  min-width: 0;

  padding: 12px;

  border: none;

  border-radius: 10px;

  background: #292929;

  color: white;

  font-size: 14px;
}

.pix-box button {
  flex-shrink: 0;

  background: #ff6b00;

  color: white;

  border: none;

  padding: 0 18px;

  border-radius: 10px;

  font-weight: 700;

  cursor: pointer;
}

/* ==========================
   RESPONSIVO PIX
========================== */

@media (max-width: 480px) {
  #modalPix {
    padding: 10px;
  }

  #modalPix .modal-content {
    padding: 18px;

    border-radius: 16px;
  }

  .btn-fechar-pix {
    width: 30px;

    height: 30px;

    top: 10px;

    right: 10px;

    font-size: 20px;
  }

  .pix-box {
    flex-direction: column;
  }

  .pix-box button {
    width: 100%;

    height: 45px;
  }

  #btnFinalizarPix {
    padding: 14px;
  }
}
/* ==========================
   MOBILE
========================== */

@media (max-width: 480px) {
  #modalPix {
    padding: 10px;
  }

  #modalPix .modal-content {
    padding: 16px;
    border-radius: 14px;
  }

  #modalPix h2 {
    font-size: 20px;
  }

  .qr-pix {
    width: 180px;
  }

  .pix-box {
    flex-direction: column;
  }

  .pix-box input {
    width: 100%;
    font-size: 13px;
  }

  .pix-box button {
    width: 100%;
  }

  #btnFinalizarPix {
    font-size: 15px;
    padding: 13px;
  }

  .pix-titular {
    font-size: 13px;
  }

  .aviso-pix {
    font-size: 13px;
  }

  /* ==========================
   CHECKBOX "JÁ REALIZEI O PAGAMENTO" - DESTACADO
========================== */

  #modalPix label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 179, 0, 0.3);
    transition: all 0.25s ease;
  }

  #modalPix label:hover {
    background: rgba(255, 179, 0, 0.15);
    border-color: #ffb300;
  }

  #pixPago {
    width: 24px;
    height: 24px;
    accent-color: #25d366;
    cursor: pointer;
    transform: scale(1.2);
  }

  /* Quando estiver marcado */
  #modalPix label:has(#pixPago:checked) {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25d366;
    color: #25d366;
  }
}
/* =========================
   MODAL DE PRODUTO
========================= */

.modal {
  display: none;

  position: fixed;

  top: 0;
  left: 0;

  width: 100vw;
  height: 100dvh;

  background: rgba(27, 21, 18, 0.7);

  justify-content: center;
  align-items: center;

  padding: 20px;

  touch-action: none;

  z-index: 99999;
}

.modal.ativo {
  display: flex !important;
}

.modal-content {
  width: 100%;

  max-width: 440px;

  max-height: 90vh;

  overflow-y: auto;

  background: var(--creme);

  border-radius: var(--raio-lg);

  padding: 24px;

  position: relative;

  z-index: 100000;

  box-shadow: var(--sombra-media);
}

#fecharModal {
  position: absolute;

  top: 10px;
  right: 12px;

  width: 40px;
  height: 40px;

  border: none;

  background: transparent;
  color: var(--fumaca-clara);

  font-size: 30px;
  line-height: 1;

  cursor: pointer;

  transition: color 0.2s ease;
}

#fecharModal:hover {
  color: var(--erro);
}

#produtoNome {
  font-family: "Anton", "Work Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
  font-size: 1.4rem;
  color: var(--fumaca);
  margin-bottom: 8px;
  padding-right: 30px;
}

#produtoPreco {
  color: var(--dourado-escuro);

  font-size: 20px;
  font-weight: 700;

  margin-bottom: 20px;
}

/* Seletor de quantidade */

.quantidade-container {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 12px;

  margin: 20px 0;
}

.quantidade-container button {
  width: 46px;
  height: 46px;

  border: none;

  border-radius: 10px;

  background: var(--brasa);

  color: var(--branco);

  font-size: 22px;

  cursor: pointer;

  transition:
    filter 0.2s ease,
    transform 0.15s ease;
}

.quantidade-container button:hover {
  filter: brightness(1.08);
  transform: scale(1.05);
}

#quantidadeInput {
  width: 80px;

  height: 46px;

  text-align: center;

  border: 2px solid rgba(27, 21, 18, 0.12);

  border-radius: 10px;

  font-size: 18px;
  font-weight: 700;
  color: var(--fumaca);

  background: var(--branco);
}

/* remove setinhas do input number */
#quantidadeInput::-webkit-inner-spin-button,
#quantidadeInput::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#quantidadeInput {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Total do modal — destaque em dourado para reforçar valor */
#subtotalModal {
  text-align: center;
  margin: 6px 0 18px;
  color: var(--dourado-escuro);
  font-size: 22px;
  font-weight: 700;
}

/* Observações do pedido */
#observacao {
  width: 100%;

  min-height: 90px;
  resize: none;

  padding: 12px 14px;

  margin-bottom: 16px;

  border: 1px solid rgba(27, 21, 18, 0.15);
  border-radius: 10px;

  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  color: var(--fumaca);

  box-sizing: border-box;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#observacao::placeholder {
  color: var(--fumaca-clara);
}

#observacao:focus {
  outline: none;
  border-color: var(--brasa);
  box-shadow: 0 0 0 3px rgba(232, 84, 30, 0.18);
}

.modal-upsell {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-upsell.ativo {
  display: flex;
}

.upsell-box {
  width: 90%;
  max-width: 450px;
  background: #fff;
  border-radius: 15px;
  padding: 20px;
}

.upsell-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 10px;
}

.btn-upsell {
  background: #e53935;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
}

.upsell-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.upsell-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.upsell-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.upsell-info strong {
  font-size: 14px;
}

.upsell-info span {
  font-weight: bold;
  color: #ff6600;
  margin-top: 4px;
}

.btn-upsell {
  background: #ff6600;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.upsell-status {
  display: none;
  margin-top: 4px;
  color: #666;
  font-size: 12px;
}

#fecharUpsell {
  width: 100%;
  margin-top: 15px;

  background: #28a745;

  color: white;

  border: none;

  padding: 14px;

  border-radius: 10px;

  font-size: 16px;

  font-weight: bold;

  cursor: pointer;

  transition: 0.2s;
}

#fecharUpsell:hover {
  transform: translateY(-2px);

  opacity: 0.95;
}

/* ===================================
   SELETOR DE ESPETINHO
=================================== */

.campo-espetinho {
  margin-bottom: 16px;
}

.campo-espetinho label {
  display: block;

  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 600;

  color: var(--fumaca);
}

#selectEspetinho {
  width: 100%;

  padding: 12px 14px;

  border: 1px solid rgba(27, 21, 18, 0.15);

  border-radius: 10px;

  background-color: var(--branco);

  color: var(--fumaca);

  font-size: 14px;

  font-family: "Work Sans", sans-serif;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%237A6B5D'%3E%3Cpath d='M2 5l7 8 7-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;

  padding-right: 40px;
}

#selectEspetinho:focus {
  outline: none;

  border-color: var(--brasa);

  box-shadow: 0 0 0 3px rgba(232, 84, 30, 0.18);
}

#selectEspetinho option {
  color: var(--fumaca);
}

#adicionarCarrinho {
  width: 100%;

  padding: 15px;

  border: none;

  border-radius: 12px;

  background: linear-gradient(135deg, var(--brasa), var(--brasa-escura));

  color: var(--branco);

  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;

  cursor: pointer;

  box-shadow: var(--sombra-brasa);

  transition:
    filter 0.2s ease,
    transform 0.15s ease;
}

#adicionarCarrinho:hover {
  filter: brightness(1.08);
}

#adicionarCarrinho:active {
  transform: scale(0.98);
}

/* =========================
   FOOTER
========================= */

footer {
  background: var(--carvao);

  color: var(--creme);

  text-align: center;

  padding: 36px 20px;

  margin-top: 40px;

  position: relative;
}

/* Fio de "grelha" no topo do rodapé, ecoando o hero */
footer::before {
  content: "";
  display: block;
  height: 4px;
  width: 60px;
  background: var(--brasa);
  border-radius: 2px;
  margin: 0 auto 20px;
}

footer h3 {
  font-family: "Anton", "Work Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--dourado);
}

footer p {
  color: #e7dccf;
  font-size: 0.95rem;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .hero {
    height: 300px;
  }

  .logo {
    width: 100px;
    height: 100px;
  }

  .overlay h1 {
    font-size: 1.7rem;
  }

  .categorias {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 6px;

    padding: 10px;

    position: sticky;
  }

  .categorias a {
    font-size: 11px;

    padding: 10px 4px;
  }

  .produtos {
    grid-template-columns: 1fr;

    padding: 15px;
  }

  .produto-card {
    width: 100%;
  }

  .carrinho {
    width: 100%;

    border-radius: 0;
  }

  .carrinho-topo {
    border-radius: 0;
  }

  .carrinho-rodape {
    max-height: 50vh;
    border-radius: 0;
  }

  #itensCarrinho {
    padding-bottom: 20px;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;

    max-height: 90vh;

    border-radius: 18px;
  }

  .quantidade-container {
    gap: 8px;
  }

  .quantidade-container button {
    width: 42px;
    height: 42px;
  }

  #quantidadeInput {
    width: 70px;
  }

  #btnCarrinho {
    width: 60px;
    height: 60px;

    right: 15px;
    bottom: 15px;

    font-size: 24px;
  }

  #badgeCarrinho {
    width: 20px;
    height: 20px;

    font-size: 11px;
  }

  .titulo-categoria {
    font-size: 19px;

    margin: 22px 12px 10px;
  }
}

/* ====================== BOTÕES DE ENTREGA ====================== */
.tipo-entrega-container {
  display: flex;
  gap: 10px;
  margin: 12px 0 16px;
}

.btn-tipo-entrega {
  flex: 1;
  padding: 16px 12px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #444;
  background: #2c2c2c;
  color: #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-tipo-entrega.ativo {
  background: var(--brasa);
  border-color: var(--brasa);
  color: white;
  box-shadow: 0 4px 15px rgba(232, 84, 30, 0.4);
}

#camposEntrega {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#end-retirada {
  color: white;
}

/* =========================================
   MODAL ADMIN PREMIUM
========================================= */

.modal-admin {
  position: fixed;
  inset: 0;

  display: none;
  justify-content: center;
  align-items: center;

  padding: 20px;

  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.92));

  backdrop-filter: blur(8px);

  z-index: 999999;
}

.modal-admin.ativo {
  display: flex;
}

.modal-admin-content {
  position: relative;

  width: 100%;
  max-width: 430px;

  padding: 35px;

  border-radius: 24px;

  background: linear-gradient(145deg, var(--carvao), var(--carvao-claro));

  border: 1px solid rgba(232, 84, 30, 0.25);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(232, 84, 30, 0.15);

  overflow: hidden;

  animation: abrirAdmin 0.3s ease;
}

.modal-admin-content::before {
  content: "";

  position: absolute;

  inset: 0;

  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 2px,
    transparent 2px,
    transparent 18px
  );

  pointer-events: none;
}

/* ÍCONE */

.modal-admin-content::after {
  content: "🔒";

  position: absolute;

  top: 25px;
  left: 50%;

  transform: translateX(-50%);

  font-size: 42px;
}

/* TÍTULO */

.modal-admin-content h2 {
  margin-top: 55px;
  margin-bottom: 10px;

  text-align: center;

  color: var(--creme);

  font-family: "Anton", sans-serif;

  font-size: 32px;

  letter-spacing: 1px;

  text-transform: uppercase;
}

/* TEXTO */

.modal-admin-content p {
  text-align: center;
}

/* INPUTS */

.modal-admin-content input {
  width: 100%;

  height: 55px;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.05);

  color: white;

  padding: 0 18px;

  font-size: 15px;

  outline: none;

  transition: 0.25s;
}

.modal-admin-content input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.modal-admin-content input:focus {
  border-color: var(--brasa);

  box-shadow:
    0 0 0 3px rgba(232, 84, 30, 0.18),
    0 0 15px rgba(232, 84, 30, 0.15);
}

/* BOTÃO LOGIN */

#btnLoginAdmin {
  width: 100%;

  height: 55px;

  border: none;

  border-radius: 14px;

  cursor: pointer;

  font-weight: 700;

  font-size: 15px;

  letter-spacing: 0.5px;

  color: white;

  background: linear-gradient(135deg, var(--brasa), var(--brasa-escura));

  box-shadow: var(--sombra-brasa);

  transition: 0.25s;
}

#btnLoginAdmin:hover {
  transform: translateY(-2px);

  filter: brightness(1.08);
}

#btnLoginAdmin:active {
  transform: scale(0.98);
}

/* BOTÃO FECHAR */

.fechar-admin {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 42px;
  height: 42px;

  border: none;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  color: white;

  font-size: 24px;

  cursor: pointer;

  transition: 0.25s;
}

.fechar-admin:hover {
  background: var(--brasa);

  transform: rotate(90deg);
}

/* ERRO */

#erroAdmin {
  min-height: 20px;

  text-align: center;

  color: #ff5f5f;

  font-size: 14px;

  font-weight: 600;
}

/* ANIMAÇÃO */

@keyframes abrirAdmin {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* MOBILE */

@media (max-width: 480px) {
  .modal-admin-content {
    padding: 28px 20px;
  }

  .modal-admin-content h2 {
    font-size: 26px;
  }

  .modal-admin-content input {
    height: 52px;
  }

  #btnLoginAdmin {
    height: 52px;
  }
}
