/* ============================
   MAIO BURGUER - STYLE.CSS v2.0
   Tema: Burguer House - Escuro, Bold, Apetitoso
   ============================ */

:root {
  --primary: #E8272A;
  --primary-dark: #b91c1c;
  --gold: #F5A623;
  --gold-dark: #d4891b;
  --bg-dark: #111111;
  --bg-card: #1c1c1c;
  --bg-card2: #242424;
  --text-main: #F5F0E8;
  --text-muted: #a0a0a0;
  --text-gold: #F5A623;
  --border: #333333;
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 100px;
}

/* ============================
   BANNER STATUS (LOJA FECHADA)
   ============================ */
.banner-status {
  display: none;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  background: #7b1c1c;
  color: #fca5a5;
  letter-spacing: 0.3px;
}
.banner-status.ativo { display: block; }

/* ============================
   STATUS DA LOJA (badge no hero)
   ============================ */
.status-loja-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border: 1.5px solid transparent;
}
.status-loja-badge.aberta {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.4);
  color: #4ade80;
}
.status-loja-badge.fechada {
  background: rgba(232, 39, 42, 0.12);
  border-color: rgba(232, 39, 42, 0.4);
  color: #fca5a5;
}

/* ============================
   HERO / HEADER
   ============================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a0000 0%, #2d0404 40%, #1a0a00 100%);
  padding: 50px 20px 36px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232,39,42,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(245,166,35,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '🍔';
  position: absolute;
  font-size: 200px;
  opacity: 0.03;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-overlay { display: none; }
.hero-conteudo { position: relative; z-index: 1; }

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.logo-emoji {
  font-size: 56px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.logo-nome {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 4px;
  color: var(--text-main);
  text-shadow: 3px 3px 0 var(--primary), 0 0 40px rgba(232,39,42,0.3);
}

.logo-nome span {
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--gold-dark), 0 0 40px rgba(245,166,35,0.3);
}

.aviso-pedido {
  font-size: 14px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

/* ============================
   CONTAINER
   ============================ */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ============================
   BUSCA
   ============================ */
.busca-wrap {
  position: relative;
  margin: 16px 0 4px;
  display: flex;
  align-items: center;
}

.busca-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.campo-busca {
  width: 100%;
  padding: 12px 42px 12px 40px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: var(--text-main);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.campo-busca:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,39,42,0.15);
}

.campo-busca::placeholder { color: var(--text-muted); }

.limpar-busca {
  position: absolute;
  right: 12px;
  background: var(--border);
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.limpar-busca:hover { background: var(--primary); color: white; }

/* Sem resultado */
.sem-resultado {
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
  gap: 12px;
}
.sem-resultado span { font-size: 48px; }
.sem-resultado p { font-size: 15px; }

/* ============================
   CATEGORIAS
   ============================ */
.categorias {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 10px;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-dark);
  padding-left: 4px;
}

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

.botao-categoria {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.botao-categoria:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.botao-categoria.ativo {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 16px rgba(232,39,42,0.4);
}

/* ============================
   BANNER DE CATEGORIA
   ============================ */
.banner-categoria {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  height: 160px;
  position: relative;
}

.banner-categoria-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 4px;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  position: relative;
}

.banner-categoria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================
   GRID DE PRODUTOS
   ============================ */
.grid-produtos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
}

/* ============================
   CARDS
   ============================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #444;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Card com imagem */
.card-com-imagem {
  flex-direction: row;
}

.card-img-wrap {
  width: 110px;
  min-width: 110px;
  height: 110px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--bg-card2);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-com-imagem:hover .card-img {
  transform: scale(1.07);
}

.card-conteudo {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.preco {
  font-size: 17px;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.botao {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.botao:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(232,39,42,0.4);
}

.botao:active { transform: scale(0.97); }

/* ============================
   SUBCATEGORIAS / INFO
   ============================ */
.titulo-subcategoria {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--gold);
  margin: 20px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}

.info-adicional {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ============================
   CARRINHO FLUTUANTE
   ============================ */
.carrinho-fixo {
  position: fixed;
  bottom: 24px;
  right: 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(232,39,42,0.5);
  z-index: 100;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carrinho-fixo:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

#carrinho-quantidade {
  background: white;
  color: var(--primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
}

/* ============================
   PAINEL DO CARRINHO
   ============================ */
.painel-carrinho {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.painel-carrinho.aberto { transform: translateX(0); }

.topo-carrinho {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topo-carrinho h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--text-main);
}

.topo-carrinho button {
  background: var(--border);
  border: none;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.topo-carrinho button:hover { background: var(--primary); }

#carrinho-itens {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.item-carrinho {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.item-info { flex: 1; }
.item-info strong { font-size: 14px; display: block; margin-bottom: 2px; }
.item-info span { font-size: 13px; color: var(--gold); font-weight: 700; }

.item-acoes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-acoes button {
  background: var(--border);
  border: none;
  color: var(--text-main);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 900;
  transition: all 0.15s;
}

.item-acoes button:hover { background: var(--primary); }
.item-acoes span { font-weight: 800; min-width: 20px; text-align: center; }

/* ============================
   RODAPÉ DO CARRINHO
   ============================ */
.rodape-carrinho {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rodape-carrinho > p:first-child {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

.taxa-entrega {
  font-size: 12px;
  color: var(--text-muted);
}

.rodape-carrinho input,
.rodape-carrinho textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.rodape-carrinho input:focus,
.rodape-carrinho textarea:focus { border-color: var(--primary); }

.rodape-carrinho textarea { resize: none; height: 64px; }

.forma-pagamento p { font-size: 13px; font-weight: 700; margin-bottom: 6px; }

.pagamento-opcoes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pagamento-opcoes button {
  flex: 1;
  min-width: 70px;
  padding: 8px 6px;
  background: var(--bg-dark);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.pagamento-opcoes button:hover,
.pagamento-opcoes button.ativo {
  border-color: var(--primary);
  color: white;
  background: var(--primary);
}

#finalizar {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

#finalizar:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

/* ============================
   TOAST
   ============================ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
  white-space: nowrap;
  pointer-events: none;
}

.toast.ativo {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================
   AVISO PRIVACIDADE
   ============================ */
.aviso-privacidade {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}
.aviso-privacidade a {
  color: var(--gold);
  text-decoration: underline;
}

/* ============================
   RESPONSIVO
   ============================ */
@media (min-width: 600px) {
  .logo-nome { font-size: 80px; }
  .logo-emoji { font-size: 70px; }
  .aviso-pedido { font-size: 15px; }
  .card-img-wrap { width: 130px; min-width: 130px; height: 130px; }
}

@media (max-width: 400px) {
  .logo-nome { font-size: 48px; }
  .logo-emoji { font-size: 44px; }
  .card-img-wrap { width: 90px; min-width: 90px; height: 90px; }
}
