@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* ====== GERAL ====== */
body {
  font-family: 'Outfit', 'Segoe UI', Tahoma, sans-serif;
  background: radial-gradient(circle at top, #111, #000);
  color: #f5f5f5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ====== HEADER ====== */
header {
  background: linear-gradient(90deg, #ff3d00, #ff7f00);
  color: white;
  width: 100%;
  box-shadow: 0 4px 25px rgba(255, 120, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 10;
  padding-bottom: 10px;
}

/* ====== BUSCA ====== */
.busca-wrap {
  display: flex;
  justify-content: center;
  padding: 0 20px 14px;
}

#busca-cardapio {
  width: min(680px, 100%);
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid rgba(255, 154, 60, 0.4);
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

#busca-cardapio::placeholder {
  color: rgba(255,255,255,0.7);
}

/* ====== TOPO ====== */
.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 30px 10px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 200, 0, 0.4);
}

.texto-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

.slogan {
  margin: 0;
  font-size: 0.9rem;
  color: #fff4c2;
  font-weight: 500;
  text-shadow: 0 0 5px rgba(0,0,0,0.4);
}

/* ====== CATEGORIAS ====== */
.categorias {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 15px;
}

.categorias button {
  background: #ff9900;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  transition: all 0.3s;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.categorias button:hover,
.categorias button.ativo {
  background: #ff6a00;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 150, 0, 0.5);
}

/* ====== MENU ====== */
#menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  gap: 15px;
  width: 100%;
  max-width: 850px;
}

.menu-item {
  background: #1b1b1b;
  border-radius: 16px;
  padding: 15px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 138, 0, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 100, 0, 0.4);
}

.menu-item img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(255, 120, 0, 0.4);
}

.menu-item .info h3 {
  margin: 0 0 4px 0;
  color: #fff;
}

.menu-item .info p {
  margin: 0;
  color: #ffa500;
  font-weight: bold;
}

.indisponivel {
  color: #ffb26b;
  font-weight: 600;
}

.menu-item .desc {
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-item .preco {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preco-promo {
  font-size: 0.78rem;
  color: #ffd166;
}

.badge-promo {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(90deg, #ff6a00, #ff3d00);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ====== BOTÕES ====== */
button {
  background: linear-gradient(90deg, #ff7f50, #ff4500);
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  transition: all 0.3s;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

button:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 16px rgba(255, 90, 0, 0.4);
}

/* ====== MODAL ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  inset: 0;
  background-color: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal.ativo {
  display: flex;
}

.modal-content {
  background-color: #1f1f1f;
  color: #fff;
  padding: 25px;
  border-radius: 18px;
  width: 90%;
  max-width: 550px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 25px rgba(255, 100, 0, 0.4);
  text-align: center;
  border: 2px solid #ff7f50;
}

/* ====== FECHAR MODAL ====== */
.modal-content .fechar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #ff7f50;
  background: none;
  border: none;
  z-index: 10;
  transition: transform 0.2s;
}

.modal-content .fechar:hover {
  transform: scale(1.2);
  color: #fff;
}

/* ====== INPUTS E TEXTAREA ====== */
textarea, input, select {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #ff6a00;
  padding: 10px;
  background-color: #2a2a2a;
  color: #fff;
  resize: vertical;
  font-size: 0.95rem;
}

/* ====== INGREDIENTES ====== */
#modal-ingredientes, #modal-adicionais {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 10px;
  margin-bottom: 12px;
  background-color: #2c2c2c;
  border: 1px solid #ff7f50;
}

.ingrediente-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
  background-color: #3a3a3a;
  color: #fff;
  transition: 0.2s;
}

.ingrediente-item:hover {
  background-color: #444;
}

.ingrediente-item button {
  background-color: #ff7f50;
  color: #fff;
  border: none;
  padding: 4px 10px;
  margin: 0 3px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.ingrediente-item button:hover {
  background-color: #ff4500;
  transform: scale(1.1);
}

/* ====== BOTÃO CARRINHO FIXO ====== */
#btn-carrinho {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 1.2rem;
  border: none;
  background: linear-gradient(145deg, #ff6a00, #ff3d00);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  z-index: 500;
  box-shadow: 0 0 15px rgba(255,100,0,0.6);
  transition: transform 0.25s ease;
}

#btn-carrinho:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255,150,0,0.6);
}

/* ====== BOTÕES FLUTUANTES DE REDE SOCIAL ====== */
.btn-float {
  position: fixed;
  right: 25px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  z-index: 400;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.btn-float:hover {
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(255,255,255,0.3);
}

.btn-float.whats {
  bottom: 100px;
  background: linear-gradient(145deg, #25D366, #128C7E);
}

.btn-float.insta {
  bottom: 165px;
  background: linear-gradient(145deg, #ff006e, #ff8a00);
}

/* ====== TOAST ====== */
#toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.toast {
  background-color: #222;
  color: white;
  padding: 12px 20px;
  border-radius: 15px;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border-left: 4px solid #ff7f50;
  animation: fadein 0.4s, fadeout 0.4s 2.8s;
}

@keyframes fadein {
  from {opacity:0; transform: translateY(20px);}
  to {opacity:1; transform: translateY(0);}
}

@keyframes fadeout {
  from {opacity:1;}
  to {opacity:0;}
}
/* ====== FOOTER ====== */
footer {
  background: linear-gradient(180deg, #111, #000);
  color: #fff;
  padding: 40px 20px 20px;
  border-top: 3px solid #ff7f00;
  margin-top: 40px;
  box-shadow: 0 -4px 20px rgba(255, 120, 0, 0.2);
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 250px;
  min-width: 250px;
}

.footer-col h3, .footer-col h4 {
  color: #ff7f00;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(255,120,0,0.4);
}

.footer-col p {
  margin: 6px 0;
  color: #ddd;
  font-size: 0.9rem;
  line-height: 1.4;
}

.map-link {
  display: inline-block;
  margin-top: 8px;
  color: #ff7f00;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.map-link:hover {
  color: #ffa733;
  text-shadow: 0 0 10px rgba(255,140,0,0.6);
}

/* ====== RODAPÉ INFERIOR ====== */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  margin-top: 25px;
  padding-top: 10px;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-bottom p {
  margin: 4px 0;
}

.footer-bottom p:last-child {
  font-size: 0.8rem;
  color: #ff8a00;
}
/* ====== AJUSTE DO TAMANHO DA IMAGEM NO MODAL ====== */
.modal-img {
  display: block;
  max-width: 160px;
  max-height: 140px;
  width: auto;
  height: auto;
  margin: 0 auto 15px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255, 120, 0, 0.4);
  border: 2px solid rgba(255, 120, 0, 0.3);
}

/* ====== SUCESSO ====== */
#modal-sucesso .modal-content {
  max-width: 420px;
}

#pedido-numero {
  font-weight: 600;
  color: #ffb26b;
}

#fechar-sucesso {
  width: 100%;
  margin-top: 12px;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ====== CARRINHO / CHECKOUT ====== */
.scroll-modal {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
}

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

.cart-item {
  background: #262626;
  border: 1px solid rgba(255, 127, 80, 0.25);
  border-radius: 12px;
  padding: 12px;
}

.cart-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cart-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.cart-price {
  font-weight: 600;
  color: #ffb26b;
}

.cart-meta {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
  color: #cfd3d6;
}

.cart-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1d1d1d;
  border-radius: 10px;
  padding: 4px 6px;
}

.qty-control button {
  padding: 4px 10px;
  border-radius: 8px;
}

.cart-actions .remover {
  background: transparent;
  border: 1px solid rgba(255, 127, 80, 0.5);
  color: #ffb26b;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: none;
}

.cart-actions .remover:hover {
  background: rgba(255, 127, 80, 0.15);
  transform: none;
}

#modal-carrinho .modal-content,
#modal-finalizar .modal-content {
  text-align: left;
}

#modal-carrinho h2,
#modal-finalizar h2 {
  margin-top: 0;
}

#modal-finalizar p {
  margin: 6px 0;
  font-weight: 500;
}

#total-finalizar {
  font-size: 1.05rem;
  color: #ffd166;
}

.tempo-estimado {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}

.tempo-pill {
  background: rgba(255, 145, 0, 0.15);
  border: 1px solid rgba(255, 145, 0, 0.35);
  color: #ffd166;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pix-alert {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #d7ffe7;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.pix-alert a {
  color: #25d366;
  font-weight: 600;
  text-decoration: none;
}

.pix-alert a:hover {
  text-decoration: underline;
}

#obs-geral,
#modal-obs {
  min-height: 70px;
}

@media (max-width: 640px) {
  .scroll-modal {
    max-height: 220px;
  }

  .cart-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-actions .remover {
    width: 100%;
  }
}

/* ====== REFINO VISUAL ====== */
body {
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#menu {
  margin: 0 auto 40px;
  padding: 18px 16px 40px;
}

.menu-item {
  gap: 12px;
  padding: 14px 16px;
}

.menu-item .info {
  flex: 1;
  min-width: 0;
}

.menu-item .info h3 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.menu-item .info p {
  font-size: 0.95rem;
}

.menu-item img {
  width: 86px;
  height: 72px;
}

.btn-adicionar {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  padding: 0;
}

@media (max-width: 640px) {
  .topo {
    padding: 12px 16px 8px;
  }

  .categorias {
    gap: 8px;
    padding: 0 10px;
  }

  .categorias button {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  #menu {
    padding: 14px 12px 30px;
  }

  .menu-item img {
    width: 76px;
    height: 64px;
  }

  #btn-carrinho {
    padding: 1rem;
    right: 18px;
    bottom: 18px;
  }
}

/* ====== UPSELL / FRETE ====== */
.upsell {
  margin: 12px 0;
  background: #232323;
  border: 1px solid rgba(255, 127, 80, 0.6);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
}

.upsell h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #ffd166;
}

.upsell-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.upsell-item:last-child {
  border-bottom: none;
}

.upsell-item .preco {
  color: #ffb26b;
  font-weight: 600;
}

.btn-compact {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
}
