body { 
  font-family: 'Arial', sans-serif;
  margin: 0;
  background: #f5f5f5;
}

/* 🔝 HEADER */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: 60px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-gif {
  width: 40px;
  height: 40px;
}

.titulo h1 {
  font-size: 16px;
  margin: 0;
}

.titulo span {
  font-size: 11px;
  color: #888;
}

.header-right {
  background: #5c5c94;
  color: #fff;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
}

/* 🔍 BUSCA */
.busca-container {
  position: sticky;
  top: 60px;
  display: flex;
  gap: 6px;
  padding: 10px;
  margin: 0;
  background: #fff;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.busca-container input {
  flex: 1;
  padding: 10px;
  padding-left: 35px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.busca-container button {
  background: #5c5c94;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
}

/* ÍCONE BUSCA */
.busca-container {
  position: sticky;
}

.busca-container::before {
  content: "🔍";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

/* 🎯 FILTROS */
.filtros {
  position: sticky;
  top: 120px;
  display: flex;
  gap: 8px;
  padding: 10px;
  margin: 0;
  overflow-x: auto;
  background: #fff;
  z-index: 998;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.filtros button {
  background: #fff;
  border: 1px solid #5c5c94;
  color: #5c5c94;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.filtros button:hover {
  background: #ececff;
}

.filtros .ativo {
  background: #5c5c94;
  color: #fff;
}

/* 📦 PRODUTOS (🔥 CORREÇÃO AQUI) */
#produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  justify-content: center;
  gap: 12px;
  padding: 12px;
  margin-top: 10px;
}

/* 🧾 CARD */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: 0.2s;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 60%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

.card b {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #333;
}

.card span {
  display: block;
  color: #5c5c94;
  font-weight: bold;
  font-size: 14px;
  margin-top: 2px;
}

/* 🔘 CONTROLES */
.controle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.controle button {
  background: #5c5c94;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.controle span {
  font-size: 13px;
  min-width: 20px;
}

/* 🛒 CARRINHO */
.carrinho {
  position: fixed;
  bottom: 0;
  right: 10px;
  width: 280px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: 0.3s;
  z-index: 2000;
}

.carrinho-header {
  padding: 12px;
  cursor: pointer;
  font-weight: bold;
  background: #5c5c94;
  color: #fff;
  text-align: center;
}

.carrinho-body {
  display: none;
  padding: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.carrinho.ativo .carrinho-body {
  display: block;
}

/* BOTÕES */
.carrinho button {
  background: #5c5c94;
}

/* 💰 TROCO */
.troco-opcoes button{
  border: 2px solid #5c5c94;
  color: #5c5c94;
}

.troco-opcoes button.ativo{
  background: #5c5c94;
  color: #fff;
}

/* 📱 MOBILE */
@media (max-width: 600px) {

  #produtos {
    grid-template-columns: 1fr;
  }

  .card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    max-width: 100%;
  }

  .card img {
    width: 90px;
    height: 90px;
  }

  .controle {
    margin-left: auto;
  }

  .carrinho {
    width: 100%;
    right: 0;
  }
}

/* 🔥 TRANSIÇÃO */
.header,
.busca-container,
.filtros {
  transition: all 0.3s ease;
}

/* ========================= */
/* 🎯 SCROLL GLOBAL (SITE) */
/* ========================= */

/* largura da barra */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* fundo da barra */
::-webkit-scrollbar-track {
  background: transparent;
}

/* parte que se move */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5c5c94, #7a7ab8);
  border-radius: 10px;
  transition: 0.3s;
}

/* hover */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4a4a7a, #6a6aa5);
}

/* ========================= */
/* 🛒 SCROLL DO CARRINHO */
/* ========================= */

.carrinho-body::-webkit-scrollbar {
  width: 5px;
}

.carrinho-body::-webkit-scrollbar-thumb {
  background: rgba(92,92,148,0.5);
  border-radius: 10px;
}

.carrinho-body::-webkit-scrollbar-thumb:hover {
  background: rgba(92,92,148,0.8);
}

/* ========================= */
/* 📱 FIREFOX (IMPORTANTE) */
/* ========================= */

* {
  scrollbar-width: thin;
  scrollbar-color: #5c5c94 transparent;
}

/* 🧊 SKELETON */
.skeleton {
  background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
  animation: shimmer 1.2s infinite;
  border-radius: 12px;
  height: 120px;
}

@keyframes shimmer {
  0% {background-position: -200px 0;}
  100% {background-position: 200px 0;}
}
/* ========================= */
/* 🛒 FIX COMPLETO CARRINHO  */
/* ========================= */

/* corpo do carrinho */
.carrinho-body {
  display: none;
  padding: 12px;
  max-height: 350px;
  overflow-y: auto;
}

.carrinho.ativo .carrinho-body {
  display: block;
}

/* itens do carrinho */
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

/* botões + e - dentro do carrinho */
.qtd-btn {
  background: #5c5c94;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* inputs e selects */
.carrinho input,
.carrinho select {
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 13px;
}

/* botões principais */
.carrinho button {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: #5c5c94;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.carrinho button:hover {
  transform: scale(1.02);
  background: #4a4a7a;
}

/* total e header mais bonitos */
.carrinho-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* scroll interno suave */
.carrinho-body::-webkit-scrollbar {
  width: 6px;
}

.carrinho-body::-webkit-scrollbar-thumb {
  background: rgba(92,92,148,0.4);
  border-radius: 10px;
}
/* ========================= */
/* 📄 RODAPÉ CENTRALIZADO */
/* ========================= */

.rodape-simples {
  background: #f5f5f5;
  color: #666;
  padding: 30px 15px;
  margin-top: 40px;
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid #ddd;
  text-align: center;
}

/* container que limita largura */
.rodape-simples .container {
  max-width: 700px; /* 🔥 controla a largura igual da imagem */
  margin: 0 auto;
}

/* parágrafos */
.rodape-simples p {
  margin-bottom: 12px;
}

/* destaque no topo */
.rodape-simples p:first-child {
  font-weight: bold;
  color: #333;
}

/* BOTÃO FLUTUANTE */
.btn-flutuante-rota {
  position: fixed;
  bottom: 90px;
  right: 15px;
  width: 55px;
  height: 55px;
  background: #5c5c94;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
 box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  z-index: 9999;
}

/* WHATS */
.btn-whats {
  display: block;
  text-align: center;
  background: #25D366;
  color: #fff;
  padding: 12px;
  border-radius: 25px;
  margin-top: 10px;
  text-decoration: none;
}

/* MOBILE */
@media (max-width: 600px){
  .rodape-container {
    flex-direction: column;
    text-align: center;
  }
}
/* ========================= */
/* 🔥 ÍCONES EM COLUNAS */
/* ========================= */

.acoes-rota {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

/* cada botão */
.acao-item {
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: 0.2s;
}

/* texto */
.acao-item span {
  font-size: 12px;
  font-weight: bold;
}

/* hover */
.acao-item:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255,255,255,0.25);
}

/* clique */
.acao-item:active {
  transform: scale(0.95);
}

/* cores específicas */
.acao-item.whatsapp {
  background: #25D366;
}

.acao-item:nth-child(1) {
  background: #ffffff;
  color: #5c5c94;
}

.acao-item:nth-child(2) {
  background: #33ccff;
  color: #000;
}
/* ========================= */
/* 🗺️ MAPA COMPACTO (IFOOD STYLE) */
/* ========================= */

.mapa-compacto {
  position: relative;
  width: 160px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.mapa-compacto iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(20%) brightness(0.9);
}

/* overlay estilo app */
.mapa-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  z-index: 2;
  transition: 0.3s;
}

/* hover */
.mapa-compacto:hover .mapa-overlay {
  background: rgba(0,0,0,0.55);
}

/* layout lado a lado */
.rodape-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* endereço ocupa mais espaço */
.endereco-box {
  flex: 1;
}
/* ========================= */
/* 🔝 VOLTAR AO TOPO */
/* ========================= */

.voltar-topo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 30px auto 10px;
  cursor: pointer;
  max-width: 900px;
}

.voltar-topo span {
  flex: 1;
  height: 1px;
  background: #ddd;
}

.voltar-topo p {
  font-size: 13px;
  color: #5c5c94;
  white-space: nowrap;
  transition: 0.2s;
}

/* hover */
.voltar-topo:hover p {
  color: #3f3f70;
  transform: translateY(-2px);
}
/* ========================= */
/* 🔥 BANNER PROMOÇÕES */
/* ========================= */

.banner {
  padding: 10px;
  background: transparent;
}

.banner-container {
  position: relative;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #5c5c94, #7a7ab8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.98);
  transition: all 0.5s ease;
  text-align: center;
  padding: 0 10px;
}

/* slide ativo */
.banner-slide.ativo {
  opacity: 1;
  transform: scale(1);
}

/* efeito glow leve */
.banner-slide::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: brilho 6s infinite;
}

@keyframes brilho {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* mobile */
@media (max-width:600px){
  .banner-container {
    height: 50px;
  }

  .banner-slide {
    font-size: 12px;
  }
}
/* ========================= */
/* 🔥 MAIS VENDIDOS */
/* ========================= */

.mais-vendidos {
  padding: 10px;
}

.mais-vendidos h2 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}

/* scroll lateral estilo app */
.scroll-horizontal {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

/* 🔥 CARD MAIS VENDIDOS */

.card-mini{
  min-width:110px;
  max-width:110px;
  min-height:210px;

  flex:0 0 auto;

  background:#fff;

  border-radius:16px;

  padding:8px;

  text-align:center;

 box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position:relative;

  display:flex;
  flex-direction:column;

  transition:0.2s;
}

/* hover premium */
.card-mini:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
}

/* imagem */
.card-mini img{
  width:60px;
  height:60px;
  object-fit:cover;
  margin:0 auto;
}

/* nome */
.card-mini b{
  font-size:12px;
  margin-top:8px;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;

  overflow:hidden;

  min-height:32px;
}

/* preço */
.card-mini span{
  color:#2ecc71;
  font-weight:bold;
  font-size:13px;
  margin-top:4px;
}

/* botão vai pro FINAL */
.card-mini button,
.controle-mini{
  margin-top:auto;
}

/* selo destaque */
.card-mini::before {
  content: "🔥";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 14px;
}

.card-mini img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.card-mini b {
  font-size: 12px;
  display: block;
  margin-top: 5px;
}

.card-mini span {
  color: #2ecc71;
  font-weight: bold;
  font-size: 13px;
}

/* botões */
.card-mini button {
  margin-top: 5px;
  background: #5c5c94;
  color: #fff;
  border: none;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}
@media (max-width:600px){
  .card-mini {
    min-width: 120px;
    max-width: 120px;
  }
}
/* 🔥 CONTROLE MINI */

.controle-mini{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:6px;
}

.controle-mini button{
  background:#5c5c94;
  color:#fff;
  border:none;
  width:24px;
  height:24px;
  border-radius:6px;
  font-size:14px;
  cursor:pointer;
}

.controle-mini span{
  min-width:18px;
  text-align:center;
  font-size:12px;
  font-weight:bold;
}
.card,
.card-mini,
.banner-slide{
  will-change: transform;
  transform: translateZ(0);
}
img{
  content-visibility:auto;
}
html{
  scroll-behavior:smooth;
}