@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
html {
  scroll-behavior: smooth;
}

body {
  background: #121212;
  color: white;
  max-width: 768px;
  margin: auto;
  font-family: "Lato", sans-serif;
  position: relative;
}

.hide {
  display: none !important;
}

.btn {
  border-radius: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.loading-app {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 5;
  font-size: 50px;
  background-color: #121212;
}

header {
  background-size: cover;
  background-position: center;
  height: 250px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
header h2 {
  margin-bottom: 20px;
  font-weight: 900;
}
header p {
  margin-bottom: 0;
}
header .container {
  position: relative;
}
header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.8;
}
header .store-links {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 30px;
}

section.copyright {
  margin-top: 20px;
  text-align: center;
  margin-bottom: 120px;
  font-size: 12px;
}
section.copyright a {
  border-bottom: 1px dotted;
}

.categories-list {
  position: sticky;
  top: 0;
  display: flex;
  overflow: auto;
  flex-wrap: nowrap;
  text-wrap: nowrap;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #7E4BB0 #1f1f1f;
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.categories-list::-webkit-scrollbar {
  height: 6px;
}
.categories-list::-webkit-scrollbar-thumb {
  background: #7E4BB0;
}
.categories-list:active {
  cursor: grabbing;
}
.categories-list .nav-link {
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 4px solid transparent;
  -webkit-user-drag: none;
  transition: 0.3s all;
}
.categories-list .nav-link.active {
  border-color: #dc3545;
}

section.category {
  padding: 20px 0;
  scroll-margin-top: 40px;
}
section.category h4 {
  margin-left: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}
section.category .scroll-container {
  display: flex;
  gap: 20px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #7E4BB0 #1f1f1f;
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
section.category .scroll-container img,
section.category .scroll-container a {
  -webkit-user-drag: none;
}
section.category .scroll-container:active {
  cursor: grabbing;
}
section.category .scroll-container::-webkit-scrollbar {
  height: 6px;
}
section.category .scroll-container::-webkit-scrollbar-thumb {
  background: #7E4BB0;
}
section.category .scroll-container .item {
  flex: 0 0 35%;
}
@media (min-width: 768px) {
  section.category .scroll-container .item {
    flex: 0 0 25%;
  }
}
section.category .item:first-child {
  margin-left: 20px;
}
section.category .item:last-child {
  margin-right: 20px;
}
section.category .item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  margin-bottom: 10px;
}
section.category .item p {
  margin-bottom: 0;
}
section.category .item small {
  height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}

.footer-overlay {
  z-index: 4;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  background-color: black;
  opacity: 0;
  transition: 0.3s opacity;
}
.footer-overlay.show {
  opacity: 0.5;
  pointer-events: all;
}

footer {
  position: fixed;
  z-index: 5;
  bottom: 0;
  left: 50%;
  height: 65px;
  width: 100%;
  padding: 15px 5px;
  color: black;
  transition: 0.3s all;
  max-width: 768px;
  margin: auto;
  transform: translateX(-50%);
}
footer .container {
  display: flex;
  flex-flow: column;
  max-height: 100%;
}
footer .container .cart-container {
  flex: 1;
  overflow: auto;
}
footer .btn-footer-toggle {
  position: absolute;
  top: -30px;
  right: 30px;
  border-radius: 5px 5px 0 0;
  border: none;
  background-color: #ffc107;
  color: black;
}
footer .btn-footer-toggle:focus, footer .btn-footer-toggle:hover, footer .btn-footer-toggle:active {
  background-color: #ffc107;
  color: black;
}
footer .btn-footer-toggle .fa-chevron-up {
  display: inline-block;
}
footer .btn-footer-toggle .fa-chevron-down {
  display: none;
}
footer.expand {
  height: calc(100% - 40px);
  padding: 30px 5px 20px 5px;
  border-radius: 10px 10px 0 0;
}
footer.expand .btn-footer-toggle .fa-chevron-down {
  display: inline-block;
}
footer.expand .btn-footer-toggle .fa-chevron-up {
  display: none;
}
footer .empty-message {
  text-align: center;
  margin: 0;
  margin-top: 5px;
}
footer .items-message {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
footer .cart-container {
  display: flex;
  flex-flow: column;
  gap: 20px;
}
footer .cart-container p {
  font-size: 14px;
}
footer .cart-container img {
  width: 100%;
  aspect-ratio: 1/1;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}
footer .cart-container .product-observations {
  font-size: 13px;
  margin-top: 5px;
}

.modal .modal-title {
  font-size: 18px;
}
.modal .modal-content {
  border-radius: 0;
  font-size: 15px;
}
.modal .modal-content input,
.modal .modal-content select {
  font-size: 15px;
}
.modal .modal-content .quantity {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 120px;
}
/* Cores da marca (teste: roxo e amarelo do Mesa Fácil). Trocar aqui para mudar o site todo. */
:root {
  --marca: #5B2A86;
  --destaque: #F5C542;
  --fundo: #F7F4FB;
  --texto: #222222;
  --cinza: #6B6B6B;
}
body {
  background: var(--fundo);
  color: var(--texto);
}
.loading-app {
  background-color: var(--fundo);
  color: var(--marca);
}
header {
  background-color: var(--marca);
  color: #fff;
}
header:before {
  display: none;
}
header small, header .store-delivery {
  color: #222;
}
.categories-list {
  background: #fff !important;
  scrollbar-color: var(--marca) #e9e2f3;
}
.categories-list::-webkit-scrollbar-thumb,
section.category .scroll-container::-webkit-scrollbar-thumb {
  background: var(--marca);
}
.categories-list .nav-link {
  color: var(--marca);
}
.categories-list .nav-link.active {
  border-color: var(--destaque);
}
section.category h4 {
  color: var(--marca);
}
section.category .item p.item-price,
section.category .item .item-price {
  color: var(--marca);
}
section.copyright {
  color: var(--cinza);
}
footer {
  background: var(--destaque) !important;
}
footer .btn-footer-toggle {
  background-color: var(--destaque);
}
.btn-add {
  background-color: var(--marca) !important;
  border-color: var(--marca) !important;
}

/* Cor por seção: roxo (açaí e tudo abaixo de café) ou amarelo (sorvete e milk-shake). */
.cor-roxo .category-name,
.cor-amarelo .category-name {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 6px;
  color: #fff;
}
.cor-roxo .category-name { background: #5B2A86; }
.cor-amarelo .category-name { background: #F5C542; color: #222; }
.cor-marrom .category-name { display: inline-block; padding: 2px 12px; border-radius: 6px; color: #fff; background: #7B4A2A; }
.cor-verde .category-name { display: inline-block; padding: 2px 12px; border-radius: 6px; color: #fff; background: #2E7D32; }
.cor-laranja .category-name { display: inline-block; padding: 2px 12px; border-radius: 6px; color: #fff; background: #E67E22; }
.store-logo { display: block; height: 64px; width: auto; margin: 0 auto 6px; }

/* Layout branco, abas, faixas e cards (referência de UI/UX). */
:root { --fundo: #FFFFFF; --texto: #1F1F1F; }
body { background: #FFFFFF; color: var(--texto); }
header { background: #FFFFFF !important; color: var(--texto); height: auto; padding: 14px 0 6px; }
header:before { display: none; }
header small, header .store-delivery, header p { color: #555; }
.categories-list { background: #FFFFFF !important; border-bottom: 1px solid #EEEEEE; gap: 18px; padding: 0 16px; }
.categories-list .nav-link { color: #555; font-weight: 700; border-bottom: 3px solid transparent; padding: 12px 0; }
.categories-list .nav-link.active { color: var(--marca); border-color: var(--marca); }
section.category { padding: 18px 0 8px; background: #FFFFFF; }
section.category .scroll-container .item {
  flex: 0 0 44%;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 10px;
  overflow: hidden;
}
@media (min-width: 768px) {
  section.category .scroll-container .item { flex: 0 0 30%; }
}
section.category .item img {
  border-radius: 10px;
  margin-bottom: 8px;
}
section.category .item .item-name { font-weight: 700; font-size: 15px; color: var(--texto); margin: 0 0 4px; }
section.category .item .item-price { font-weight: 900; font-size: 15px; color: var(--marca); }
section.category .scroll-container { gap: 14px; }
section.category .item:first-child { margin-left: 16px; }
section.category .item:last-child { margin-right: 16px; }
section.category h4 { margin-left: 16px; color: var(--texto); }

/* Hover no card: sobe um pouco e ganha sombra. */
section.category .scroll-container .item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
section.category .scroll-container .item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(91, 42, 134, 0.18);
}

/* Uma seção por vez; produtos em matriz que muda de colunas conforme a largura da tela. */
body { max-width: 1200px; }
section.category .scroll-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  overflow: visible;
  padding: 0 12px;
}
section.category .scroll-container .item,
section.category .scroll-container .item:first-child,
section.category .scroll-container .item:last-child {
  flex: none;
  width: auto;
  margin: 0;
}

/* Cabeçalho horizontal: logo e nome à esquerda, horário no centro, links e taxa à direita. */
header { height: auto; padding: 10px 12px; display: block; }
header .container.hdr {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; text-align: left;
}
header .hdr-esq { display: flex; align-items: center; gap: 10px; }
header .hdr-esq .store-name { font-size: 18px; margin: 0; font-weight: 900; }
header .store-logo { height: 44px; margin: 0; }
header .hdr-meio { text-align: center; font-size: 12px; line-height: 1.3; }
header .hdr-dir { display: flex; align-items: center; gap: 10px; }
header .store-links { display: flex; gap: 8px; font-size: 22px; margin: 0; }
header .store-delivery { font-size: 12px; }
@media (max-width: 600px) {
  
}

/* Subcategorias dentro de uma aba. */
section.category .sub { margin-bottom: 22px; }
section.category .sub .category-name { margin-bottom: 12px; }

/* Rodapé do carrinho mais baixo; horário em duas linhas no cabeçalho. */
footer { height: 42px; padding: 6px 5px; }
footer .empty-message { margin-top: 0; }
header .store-time { white-space: pre-line; }

/* Modo claro fixo (o celular não escurece a página) e cabeçalho em uma linha só. */
:root { color-scheme: light; }
header .container.hdr { flex-wrap: nowrap; gap: 8px; }
header .hdr-esq, header .hdr-dir, header .hdr-meio { min-width: 0; }
header .hdr-esq .store-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header .hdr-meio { white-space: nowrap; }
@media (max-width: 480px) {
  header { padding: 8px 8px 4px; }
  header .store-logo { height: 34px; }
  header .hdr-esq { gap: 6px; }
  header .hdr-esq .store-name { font-size: 14px; }
  header .hdr-meio { font-size: 10px; }
  header .store-links { font-size: 18px; gap: 4px; }
  header .taxa-txt { display: none; }
  header .store-delivery { font-size: 11px; padding: 4px 6px; }
}

/* Regra fixa: sempre 4 colunas por linha, em qualquer tela. */
section.category .scroll-container {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 10px;
}
section.category .scroll-container .item { padding: 8px; min-width: 0; }
section.category .scroll-container .item .item-name { font-size: 13px; line-height: 1.2; }
section.category .scroll-container .item .item-price { font-size: 13px; }
@media (max-width: 480px) {
  section.category .scroll-container { gap: 6px; padding: 0 6px; }
  section.category .scroll-container .item { padding: 5px; border-radius: 10px; }
  section.category .scroll-container .item .item-name { font-size: 11px; }
  section.category .scroll-container .item .item-price { font-size: 11px; }
}

/* Evita a página "andar" de lado: a faixa de abas cabe na largura (padding não estoura) e nada passa da tela. */
.categories-list { box-sizing: border-box; width: 100%; }
html, body { overflow-x: hidden; }

/* Barra de rolagem sempre reservada: sem isso, a página curta (Salada) perde a barra e o conteúdo centralizado anda para a direita. */
html { scrollbar-gutter: stable; }

/* Ajustes visuais do modal e dos botões. */
.btn-add.btn-cor-roxo { background-color: #5B2A86 !important; border-color: #5B2A86 !important; color: #fff; }
.btn-add.btn-cor-amarelo { background-color: #F5C542 !important; border-color: #F5C542 !important; color: #222; }
.btn-add.btn-cor-marrom { background-color: #7B4A2A !important; border-color: #7B4A2A !important; color: #fff; }
.btn-add.btn-cor-verde { background-color: #2E7D32 !important; border-color: #2E7D32 !important; color: #fff; }
.btn-add.btn-cor-laranja { background-color: #E67E22 !important; border-color: #E67E22 !important; color: #fff; }
/* Quantidade: um controle só (− e +), sem setinhas do campo, tudo na mesma altura. */
.modal .quantity { align-items: center; flex: 0 0 auto; gap: 6px; }
.modal .quantity .btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.modal .quantity input[name="quantity"] { width: 56px; height: 38px; text-align: center; padding: 0; }
.modal .quantity input[name="quantity"]::-webkit-inner-spin-button,
.modal .quantity input[name="quantity"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.modal .quantity input[name="quantity"] { -moz-appearance: textfield; appearance: textfield; }
/* Adicionais: seletor de quantidade compacto, sem aumentar a linha. */
.qty-step { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; flex: 0 0 auto; }
.qty-step .btn { width: 24px; height: 24px; padding: 0; line-height: 1; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.qty-step strong { min-width: 16px; text-align: center; font-size: 14px; }
.options .form-check-label { font-size: 14px; line-height: 1.25; }

/* Barra do carrinho: mesma largura da coluna do cardápio e altura do botão Finalizar. */
footer { left: 50%; right: auto; width: 100%; max-width: 1200px; margin: 0; transform: translateX(-50%); border-radius: 0; height: 38px; padding: 0 8px; display: flex; align-items: center; }
footer .container { height: 100%; padding: 0; }
footer .btn-finish { padding-top: 4px; padding-bottom: 4px; }
footer.expand { height: calc(100dvh - 130px); height: calc(100vh - 130px); }

/* Logo novo (com fundo transparente) substitui o logo e o nome no cabeçalho. */
header .hdr-esq .store-name { display: none; }
header .store-logo { height: 52px; width: auto; }
@media (max-width: 480px) {
  header .store-logo { height: 40px; }
}

/* Roxo da marca: taxa de entrega, barra do carrinho e botão Finalizar. */
header .store-delivery.text-bg-warning { background-color: var(--marca) !important; color: #fff !important; }
footer { background: var(--marca) !important; color: #fff; }
footer .btn-footer-toggle,
footer .btn-footer-toggle:hover,
footer .btn-footer-toggle:focus,
footer .btn-footer-toggle:active { background-color: var(--marca) !important; color: #fff !important; }
footer .btn-finish { background-color: var(--marca) !important; border-color: #fff !important; color: #fff !important; }

/* Barra do carrinho volta a amarela; botão Finalizar branco com texto roxo. */
footer { background: var(--destaque) !important; color: #222; }
footer .btn-footer-toggle,
footer .btn-footer-toggle:hover,
footer .btn-footer-toggle:focus,
footer .btn-footer-toggle:active { background-color: var(--destaque) !important; color: #222 !important; }
footer .btn-finish { background-color: #fff !important; border-color: var(--marca) !important; color: var(--marca) !important; }

/* Barra do carrinho alinhada às bordas dos cards: mesma largura da coluna, conteúdo com o mesmo recuo. */
footer { box-sizing: border-box; max-width: 1200px; padding: 0 10px; }

/* Barra do carrinho roxa (pedido do dono); botão Finalizar continua branco. */
footer { background: var(--marca) !important; color: #fff; }
footer .btn-footer-toggle,
footer .btn-footer-toggle:hover,
footer .btn-footer-toggle:focus,
footer .btn-footer-toggle:active { background-color: var(--marca) !important; color: #fff !important; }

/* O rodapé tem a classe bg-warning do Bootstrap (amarelo com !important): precisa vencer essa classe. */
footer.bg-warning { background-color: var(--marca) !important; }

/* Finalizar pedido: sem borda e sem fundo, só texto branco. */
footer .btn-finish,
footer .btn-finish:hover,
footer .btn-finish:focus,
footer .btn-finish:active { background-color: transparent !important; border: none !important; color: #fff !important; box-shadow: none !important; }

/* Ícones do cabeçalho (WhatsApp e localização) em branco. */
header .store-links a,
header .store-links a.text-success,
header .store-links a.text-danger { color: #fff !important; }

/* Ícones do cabeçalho (WhatsApp e localização) em roxo: o cabeçalho é branco. */
header .store-links a,
header .store-links a.text-success,
header .store-links a.text-danger { color: var(--marca) !important; }

/* Modal de produto: seleção em roxo; rodapé roxo com botões brancos. */
.details-modal input[type="radio"],
.details-modal input[type="checkbox"] { accent-color: var(--marca); }
.details-modal .form-check-input:checked { background-color: var(--marca); border-color: var(--marca); }
.details-modal .modal-footer { background-color: var(--marca); border-top: none; }
.details-modal .modal-footer .quantity .btn-minus,
.details-modal .modal-footer .quantity .btn-plus { background-color: #fff !important; color: var(--marca) !important; border-color: #fff !important; }
.details-modal .modal-footer .quantity input[name="quantity"] { background-color: #fff; color: var(--texto); border-color: #fff; }
.details-modal .modal-footer .btn-add,
.details-modal .modal-footer .btn-add.btn-cor-roxo,
.details-modal .modal-footer .btn-add.btn-cor-amarelo,
.details-modal .modal-footer .btn-add.btn-cor-marrom,
.details-modal .modal-footer .btn-add.btn-cor-laranja,
.details-modal .modal-footer .btn-add.btn-cor-verde { background-color: #fff !important; border-color: #fff !important; color: var(--marca) !important; }

#nl-badge-frame { right: auto !important; left: 0 !important; }

/* Faixa inferior e espaço para o selo "Powered by Netlify" (fica à esquerda, sob a barra do carrinho). */
body { padding-bottom: 128px; }
footer { bottom: 64px !important; }
.faixa-rodape { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; z-index: 4; background: #fff; border-top: 1px solid #eee; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 12px 0 180px; box-sizing: border-box; }
.faixa-rodape .btn-faixa { background: #1b3a45; color: #d5e3e6; border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 400; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,0.25); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.faixa-rodape .btn-faixa i { color: #25d366; font-size: 16px; }
.faixa-rodape .btn-faixa b { color: #f4f9f9; font-weight: 700; }

/* Aviso de imagem ilustrativa no modal do produto (abaixo da foto). */
.details-modal .aviso-ilustrativa { display: block; width: 100%; font-size: 8px; line-height: 1.2; letter-spacing: 0.3px; color: #6b6b6b; text-align: center; margin: 4px 0 12px; }

/* Aviso do copo (milk-shakes): abaixo do aviso de imagem ilustrativa. */
.details-modal .aviso-copo { display: block; width: 100%; font-size: 11px; line-height: 1.35; color: #444; text-align: center; margin: 0 0 12px; padding: 0 12px; }
