/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Georgia, 'Times New Roman', serif;
}

:root {
  --bg: #f3e5d8;
  --card: #fffaf4;
  --primary: #7b0000;
  --gold: #c9a227;
  --text: #3b2f2f;
  --muted: #6a5a52;
  --price: #1e8a09;
}

body {
  background: var(--bg);
  color: var(--text);
  padding-bottom: 90px;
  overflow-x: hidden;
}

/* HEADER */
.topo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: var(--primary);
  border-bottom: 4px solid var(--gold);
  padding: 0 16px; /* ðŸ”¥ remove espaÃ§o superior */
  height: 75px; /* controla altura corretamente */
}

.topo-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 40px;
}

.status {
  background: rgba(255,255,255,0.2);
  color: #00ff88;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

.menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
}

/* MENU LATERAL */
.menu-lateral {
  position: fixed;
  right: -280px;
  top: 0;
  width: 280px;
  height: 100%;
  background: var(--bg);
  transition: 0.35s ease;
  padding: 20px 16px;
  z-index: 1000;
  box-shadow: -6px 0 20px rgba(0,0,0,0.15);
}

.menu-lateral.ativo {
  right: 0;
}

/* TÍTULO (opcional depois) */
.menu-lateral::before {
  content: "Categorias";
  display: block;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 18px;
}

/* BOTÃ•ES */
.menu-lateral button {
  width: 100%;
  padding: 14px;
  border: none;
  margin-bottom: 10px;
  border-radius: 12px;
  background: white;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

/* HOVER */
.menu-lateral button:hover {
  background: var(--primary);
  color: white;
}

/* ATIVO */
.menu-lateral button.ativo {
  background: var(--primary);
  color: white;
}

/* CONTAINER */
.container {
  max-width: 900px;
  margin: auto;
  padding: 16px;
  width: 100%;
}

/* TOPO CATEGORIA */
.topo-categoria {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 9px 0 14px;
}

.titulo-cardapio {
  display: inline-block;
  font-size: 20px;
  letter-spacing: 1px;
  margin: 0;
}

.linha-titulo {
  width: 145px;
  height: 2px;
  background: var(--gold);
  margin-top: 6px;
  border-radius: 2px;
}

/* BOTÃƒO GRID */
.btn-layout {
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  cursor: pointer;
  flex: 0 0 auto;
}

.btn-layout div {
  background: #555;
  border-radius: 4px;
  transition: 0.2s;
}

.btn-layout:hover div,
.btn-layout.ativo div {
  background: var(--primary);
}

/* PRODUTOS */
.lista-produtos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}

.card {
  background: var(--card);
  position: relative;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  align-self: start;
}

.imagem {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.nome {
  font-weight: bold;
  margin: 8px 0;
  letter-spacing: 0.5px;
}

.descricao {
  font-size: 14px;
  color: var(--muted);
}

.preco {
  color: var(--price);
  font-weight: bold;
  font-size: 18px;
  margin: 8px 0;
}

/* BOTÃ•ES */
.acoes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn {
  width: 100%;
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 900;
}

.btn-detalhes {
  background: #ddd;
  color: #111;
}

.btn-whats {
  background: var(--primary);
  color: white;
}

/* DETALHES */
.info-extra {
  max-height: 0;
  overflow: hidden;
  background: #d9d9d9;
  border-radius: 12px;
  margin-top: 10px;
  padding: 0 12px;
  font-weight: 900;
  text-align: center;
  color: #000;
  transition: all 0.3s ease;
}

.info-extra.ativo {
  max-height: 120px;
  padding: 12px;
}

/* MODO GRID 2 COLUNAS */
.lista-produtos.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.lista-produtos.grid-2 .card {
  padding: 8px;
}

.lista-produtos.grid-2 .imagem {
  height: 130px;
}

.lista-produtos.grid-2 .img-slide {
  height: 130px;
}

.lista-produtos.grid-2 .nome {
  font-size: 14px;
}

.lista-produtos.grid-2 .preco {
  font-size: 15px;
}

.lista-produtos.grid-2 .btn {
  padding: 8px 6px;
  font-size: 12px;
}

/* CARRINHO FIXO */
.rodape-fixo {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: white;
  border-top: 2px solid var(--gold);
  padding: 10px;
  z-index: 900;
}

.interno {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.carrinho-itens {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.carrinho-itens::-webkit-scrollbar {
  display: none;
}

.item-carrinho {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
}

.item-carrinho img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.item-carrinho.ativo img {
  filter: brightness(0.6);
}

.remover-x {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  background: rgba(0,0,0,0.7);
  color: white;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  display: none;
  align-items: center;
  justify-content: center;
}

.item-carrinho.ativo .remover-x {
  display: flex;
}

.btn-finalizar {
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 900;
}

/* VAZIO */
.vazio {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 20px;
}

/* RESPONSIVO */
@media (min-width: 700px) {
  .lista-produtos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lista-produtos.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .container {
    padding: 12px;
  }

  .lista-produtos.grid-2 {
    gap: 8px;
  }

  .lista-produtos.grid-2 .card {
    padding: 7px;
  }

  .lista-produtos.grid-2 .imagem {
    height: 115px;
  }

  .lista-produtos.grid-2 .img-slide {
    height: 115px;
  }

  .lista-produtos.grid-2 .acoes {
    gap: 5px;
  }

  .lista-produtos.grid-2 .btn {
    font-size: 11px;
    padding: 7px 4px;
  }
}

/* CARROSSEL */
.carousel {
  overflow: hidden;
  border-radius: 14px;
}

.carousel-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.img-slide {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.selo {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.selo.indisponivel {
  background: #999;
}

.selo.mais-vendido {
  background: #00d659;
}

/* =========================
NOVO BANNER
========================= */

.banner {
  position: relative;
  width: 100%;
  margin: 0;
  background: none;
  line-height: 0;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* LOGO SOBREPOSTA */
.logo-banner {
  position: absolute;
  top: -50px;
  left: 20px;

  width: 85px;
  height: 85px;

  border-radius: 50%;
  border: 3px solid var(--primary);
  background: white;

  object-fit: cover;
  z-index: 10;
}

/* TEXTO */
.banner-texto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  text-align: center;
  color: white;
  line-height: normal;
  width: 90%;
}

.banner-texto h1 {
  font-size: 24px;
}

.banner-texto p {
  font-size: 14px;
}

body {
  margin: 0;
}

.banner {
  margin-top: 0;
}

/* CORREÇÃO FORÇADA DO BANNER */
.banner {
  height: auto !important;
  background: none !important;
}

.btn.desativado {
  background: #999;
  cursor: not-allowed;
  opacity: 0.7;
}

.titulo-categorias {
  padding: 10px;
  font-weight: bold;
  color: var(--vinho);
}