body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fffdfa;
  color: #43270a;
  margin: 0;
  padding: 0;
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

header {
  background: #ff901a;
  padding: 28px 0 10px 0;
  text-align: center;
  box-shadow: 0 1px 16px #ffd6a699;
  position: relative;
}
.logo-oficial {
  width: 290px;
  max-width: 94vw;
  margin: 0 auto 6px auto;
  display: block;
}
.slogan {
  margin: 8px auto 18px auto;
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px #ffecbc, 0 2px 6px #ffce5c99;
}
.promocao-banner {
  margin: 12px auto 0 auto;
  background: #ffb642;
  color: #7e3f00;
  font-weight: bold;
  border-radius: 13px;
  max-width: 96%;
  padding: 7px 17px;
  font-size: 1.13em;
  box-shadow: 0 2px 8px #fff5b2;
  letter-spacing: .02em;
  text-align: center;
}
.menu-categorias {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background: #fff7ee;
  box-shadow: 0 2px 8px #ffd6a499;
  border-radius: 0 0 18px 18px;
  padding: 14px 6vw 9px 6vw;
  position: sticky;
  top: 0;
  z-index: 999;
  margin-bottom: 28px;
}
.menu-categorias a {
  color: #ff8800;
  background: #fff3d1;
  font-weight: bold;
  border-radius: 9px;
  text-decoration: none;
  padding: 8px 18px;
  font-size: 1.07em;
  transition: background .14s, color .14s, box-shadow .18s;
  box-shadow: 0 1px 5px #ffb64218;
}
.menu-categorias a:hover, .menu-categorias a.active {
  background: #ffe5b6;
  color: #d26a00;
  box-shadow: 0 4px 16px #ffb64238;
}
@media (max-width: 700px) {
  .menu-categorias {
    gap: 6px;
    padding: 10px 3vw 7px 3vw;
    font-size: 0.97em;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .menu-categorias::-webkit-scrollbar { display: none; }
  .menu-categorias a {
    padding: 8px 11px;
    font-size: 1em;
    min-width: 86px;
    text-align: center;
  }
}

main {
  max-width: 760px;
  margin: 28px auto;
  background: #fff;
  padding: 32px 18px 26px 18px;
  border-radius: 24px;
  box-shadow: 0 0 24px #e7c17a27;
}
.categoria {
  margin-bottom: 44px;
}
.categoria h2 {
  color: #7e4600;
  background: #fff4e0;
  border-radius: 7px;
  padding: 5px 20px 5px 12px;
  margin-bottom: 19px;
  margin-top: 0;
  display: inline-block;
  font-size: 1.23em;
  letter-spacing: .02em;
  box-shadow: 0 1px 8px #ffd6a055;
}
.produtos-categoria {
  display: flex;
  flex-wrap: wrap;
  gap: 34px 26px;
  justify-content: flex-start;
}
.card-produto {
  background: #fffdfa;
  border-radius: 18px;
  box-shadow: 0 3px 17px #ffb64222;
  padding: 14px 17px 19px 17px;
  width: 202px;
  transition: box-shadow .22s, transform .19s;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.card-produto:hover {
  box-shadow: 0 7px 34px #ffb64277, 0 2px 14px #ffb64255;
  transform: scale(1.045);
  z-index: 2;
}
.card-produto img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px auto;
  background: #fff5e7;
  border-radius: 14px;
  box-shadow: 0 2px 14px #ffb64225;
}
.card-produto .nome {
  font-size: 1.09em;
  font-weight: bold;
  color: #e5630e;
  text-align: center;
  margin-bottom: 7px;
}
.card-produto .preco {
  color: #5b2a01;
  margin-bottom: 11px;
  font-size: 1.05em;
}
.card-produto button {
  background: linear-gradient(90deg, #ffb642, #ff901a);
  border: none;
  color: #fffdfa;
  font-weight: bold;
  border-radius: 9px;
  padding: 8px 24px;
  margin-top: 3px;
  cursor: pointer;
  font-size: 1.11em;
  box-shadow: 0 3px 10px #ffb64238;
  transition: background .15s, box-shadow .2s, transform .13s;
}
.card-produto button:hover {
  background: linear-gradient(90deg, #ff901a, #ffb642);
  color: #fffdfa;
  box-shadow: 0 8px 32px #ffb64280;
  transform: scale(1.05);
}

/* Modal */
.modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}
#modal-sabores {
  display: none;
}
.modal-content {
  background: #fffdfa;
  border-radius: 22px;
  box-shadow: 0 6px 40px #e7c17a88;
  padding: 26px 28px 24px 28px;
  min-width: 320px;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-content h2 {
  color: #e5630e;
  font-size: 1.22em;
  margin-top: 0;
  margin-bottom: 11px;
}
#modal-sabores-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}
.sabor-linha {
  display: flex;
  align-items: center;
}
.sabor-linha.sabor-clickable {
  cursor: pointer;
  border-radius: 7px;
  padding: 7px 12px;
  margin-bottom: 4px;
  transition: background 0.15s;
  font-size: 1.09em;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff7e6;
}
.sabor-linha.sabor-clickable:hover {
  background: #ffe5b6;
}
.sabor-linha.sabor-clickable .contador {
  background: #ff901a;
  color: #fff;
  border-radius: 8px;
  padding: 2px 8px;
  margin-left: 9px;
  min-width: 22px;
  text-align: center;
  font-weight: bold;
}
.sabor-linha.desabilitado {
  opacity: 0.5;
  pointer-events: none;
}
.modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 15px;
  justify-content: center;
}
.modal-buttons button {
  background: linear-gradient(90deg, #ffb642, #ff901a);
  color: #fffdfa;
  font-weight: bold;
  border-radius: 7px;
  padding: 8px 20px;
  border: none;
  font-size: 1.06em;
  cursor: pointer;
  transition: background .16s, box-shadow .16s;
}
.modal-buttons button:hover {
  background: linear-gradient(90deg, #ff901a, #ffb642);
  color: #fffdfa;
  box-shadow: 0 3px 14px #ffb64288;
}

/* WhatsApp flutuante */
#zap-flutuante {
  position: fixed;
  right: 17px;
  bottom: 72px;
  z-index: 999;
  background: #22d96f;
  color: #fff;
  padding: 13px 18px 12px 16px;
  border-radius: 50px;
  font-size: 1.23em;
  box-shadow: 0 4px 14px #0003;
  border: none;
  display: flex;
  align-items: center;
  transition: box-shadow .2s;
  margin-bottom: env(safe-area-inset-bottom, 0px);
}
#zap-flutuante:hover { box-shadow: 0 4px 24px #00800045; }

@media (max-width: 700px) {
  #zap-flutuante {
    font-size: 1.14em;
    padding: 11px 14px 11px 13px;
    right: 12px;
    bottom: 72px;
  }
}

/* Carrinho sidebar */
.carrinho-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 350px;
  max-width: 98vw;
  height: 100vh;
  background: #fffdfa;
  box-shadow: -4px 0 30px #ffb64245;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right .33s cubic-bezier(.7,.2,.3,1);
  border-radius: 28px 0 0 28px;
}
.carrinho-sidebar.aberto { right: 0; }
.carrinho-header {
  font-size: 1.16em;
  color: #ff9800;
  font-weight: bold;
  padding: 16px 22px 9px 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close-carrinho {
  border: none;
  background: none;
  font-size: 2em;
  color: #e5630e;
  cursor: pointer;
}
.carrinho-itens {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 0 20px;
}
.carrinho-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #ffe3b3;
  margin-bottom: 11px;
  padding-bottom: 8px;
}
.carrinho-item-nome {
  font-weight: bold;
  color: #e5630e;
}
.carrinho-item-sabores {
  font-size: .97em;
  color: #5b2a01;
}
.carrinho-remove {
  background: none;
  border: none;
  color: #c40c0c;
  cursor: pointer;
  font-size: 1.3em;
  margin-left: auto;
}
.carrinho-total {
  font-size: 1.1em;
  font-weight: bold;
  color: #ff901a;
  text-align: right;
  margin: 9px 20px 7px 0;
}
.finalizar-btn {
  background: linear-gradient(90deg,#ffb642,#ff901a);
  color: #fffdfa;
  border: none;
  border-radius: 9px;
  padding: 13px 30px;
  font-size: 1.14em;
  font-weight: bold;
  margin: 16px 21px 18px 21px;
  box-shadow: 0 2px 8px #ffb64238;
  cursor: pointer;
}
.finalizar-btn:hover {
  background: linear-gradient(90deg,#ff901a,#ffb642);
}
.carrinho-fab {
  position: fixed;
  top: 28px;
  right: 28px;
  background: #ffb642;
  color: #fffdfa;
  border-radius: 50%;
  width: 59px;
  height: 59px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px #ffb64255;
  z-index: 1500;
  cursor: pointer;
}
.carrinho-fab span {
  position: absolute;
  top: 11px;
  right: 11px;
  background: #e5630e;
  color: #fff;
  border-radius: 50%;
  padding: 1px 7px;
  font-size: 1.05em;
  font-weight: bold;
}
.carrinho-mobile, #carrinho-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #ff9d2f, #ff7200);
  color: #fffdfa;
  z-index: 950;
  height: 58px;
  font-size: 1.16em;
  font-weight: bold;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 -2px 8px #0001;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  letter-spacing: 0.03em;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 700px) {
  .carrinho-fab { display: none; }
  .carrinho-sidebar { width: 99vw; max-width: 99vw; }
}

/* Checkout Modal */
.modal-checkout input {
  width: 96%;
  padding: 9px;
  margin: 5px 0 7px 0;
  border-radius: 7px;
  border: 1px solid #ffd49a;
  font-size: 1.07em;
}
.card-produto.inativo img {
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.6;
}

.card-produto.inativo button {
  background: #ccc !important;
  color: #888 !important;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.card-produto.inativo button:hover {
  background: #ccc !important;
  box-shadow: none;
}

#info-taxa, #total-checkout {
  font-size: 1.04em;
  color: #e5630e;
  margin: 7px 0;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 18px 0 7px 0;
  color: #a67c52;
  font-size: 14px;
  background: transparent;
}
/* Mostrar 2 cards por linha no mobile */
@media (max-width: 700px) {
  .produtos-categoria {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 44px;
    justify-items: center;
  }

  .card-produto {
    width: 100% !important;
    max-width: 180px;
  }
}