/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--texto);
  min-height: 100vh;
  overscroll-behavior-y: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =============================================
   TOKENS DE DESIGN
   ============================================= */
:root {
  /* Paleta padrão Menu Livre — espelha admin.css.
     O JS sobrescreve estas variáveis com os valores salvos na API. */
  --bg:            #f1f5f9;   /* cor_fundo     */
  --bg-card:       #ffffff;
  --bg-nav:        #ffffff;
  --marrom:        #d97706;   /* cor_secundaria */
  --marrom-escuro: #0f172a;   /* cor_banner     */
  --marrom-btn:    #f59e0b;   /* cor_primaria   */
  --marrom-hover:  #d97706;   /* cor_primaria escurecida */
  --texto:         #0f172a;   /* cor_fonte      */
  --texto-sec:     #64748b;
  --texto-terc:    #94a3b8;
  --borda:         #e2e8f0;
  --borda-input:   #cbd5e1;
  --banner-bg:     #0f172a;   /* cor_banner (fallback sem imagem) */

  /* Feedback */
  --verde:         #2d7a3a;
  --vermelho:      #c0392b;

  /* Sombras */
  --sombra-sm:  0 1px 4px rgba(90,45,12,.10);
  --sombra-md:  0 4px 16px rgba(90,45,12,.14);
  --sombra-lg:  0 8px 32px rgba(90,45,12,.18);

  /* Raios */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  /* Alturas fixas */
  --header-h:   64px;
  --nav-h:      48px;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--borda);
  box-shadow: var(--sombra-sm);
}

.header-inner {
  height: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.header-loja {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* ── Esquerda: status + entrega ── */
.header-esquerda {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

/* ── Centro: logo + nome ── */
.header-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* ── Direita: ações ── */
.header-direita {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.header-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--borda);
}

.header-info {
  min-width: 0;
  overflow: hidden;
}

.header-nome {
  font-family: 'Roboto', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--texto);
  white-space: nowrap;
  line-height: 1.1;
  text-align: center;
  letter-spacing: .01em;
}

.header-logo:not(.hidden) + .header-nome {
  font-size: .8rem;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  white-space: nowrap;
}

.status-badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.status-aberto  { color: var(--verde); }
.status-fechado { color: var(--vermelho); }

.header-entrega {
  font-size: .68rem;
  color: var(--texto-sec);
  white-space: nowrap;
}

.header-acoes {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--texto-sec);
  transition: background .15s, color .15s;
}

.icon-btn:hover,
.icon-btn:active {
  background: var(--borda);
  color: var(--marrom);
}


/* =============================================
   BANNER
   ============================================= */
.banner {
  margin-top: var(--header-h);
  width: 100%;
  max-height: 180px;
  overflow: hidden;
  background: var(--banner-bg);
}

.banner img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}

/* =============================================
   NAV CATEGORIAS (sticky)
   ============================================= */
.nav-categorias {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--borda);
  height: var(--nav-h);
  overflow: hidden;
}

.nav-categorias:empty,
.nav-categorias--vazio,
.nav-categorias--carregando {
  display: none;
}

.nav-lista {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  overflow-x: auto;
  padding: 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-lista::-webkit-scrollbar { display: none; }

.nav-item {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  font-size: .82rem;
  font-weight: 500;
  color: var(--texto-sec);
  white-space: nowrap;
  transition: background .15s, color .15s;
  background: none;
}

.nav-item:hover {
  color: var(--marrom);
  background: var(--borda);
}

.nav-item.ativo {
  background: var(--marrom-btn);
  color: #fff;
  font-weight: 600;
}

/* =============================================
   MAIN / CARDÁPIO
   ============================================= */
.main {
  margin-top: calc(var(--header-h) + var(--nav-h));
  padding: 0 0 100px;
}

.cardapio-container {
  padding: 0;
}

/* =============================================
   SEÇÃO DE CATEGORIA
   ============================================= */
.categoria-secao {
  padding: 0px 16px 8px;
}

.categoria-titulo {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--texto);
  margin-bottom: 16px;
}

/* =============================================
   DESTAQUES — grade horizontal (scroll)
   ============================================= */
.destaques-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.destaques-grid::-webkit-scrollbar { display: none; }

.card-destaque {
  flex-shrink: 0;
  width: 130px;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--sombra-sm);
  transition: transform .15s, box-shadow .15s;
  position: relative;
}

.card-destaque:active {
  transform: scale(.97);
}

.card-destaque-foto {
  width: 130px;
  height: 110px;
  object-fit: cover;
  background: var(--borda);
}

.card-destaque-foto-placeholder {
  width: 130px;
  height: 110px;
  background: var(--borda);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.card-destaque-info {
  padding: 8px 8px 10px;
}

.card-destaque-preco {
  font-size: .78rem;
  font-weight: 700;
  color: var(--marrom);
}

.card-destaque-nome {
  font-size: .78rem;
  color: var(--texto);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-destaque-mais {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--marrom-btn);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-sm);
  line-height: 1;
}

/* =============================================
   LISTA DE PRODUTOS (categorias normais)
   ============================================= */
.produtos-lista {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-produto {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--borda);
  cursor: pointer;
  transition: background .12s;
  border-radius: 0;
}

.card-produto:last-child {
  border-bottom: none;
}

.card-produto:active {
  background: rgba(155,92,58,.06);
}

.card-produto-info {
  flex: 1;
  min-width: 0;
}

.card-produto-nome {
  font-size: .95rem;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 4px;
}

.card-produto-desc {
  font-size: .8rem;
  color: var(--texto-sec);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-produto-preco {
  font-size: .9rem;
  font-weight: 700;
  color: var(--marrom);
  margin-top: 6px;
}

.card-produto-foto-wrap {
  flex-shrink: 0;
  position: relative;
}

.card-produto-foto {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--borda);
}

.card-produto-foto-placeholder {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  background: var(--borda);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.card-produto-mais {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--marrom-btn);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-sm);
  line-height: 1;
}

/* =============================================
   LOADING / ERRO
   ============================================= */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 24px;
  color: var(--texto-sec);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--borda);
  border-top-color: var(--marrom-btn);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.erro {
  text-align: center;
  padding: 48px 24px;
  color: var(--texto-sec);
}

.erro button {
  margin-top: 16px;
  padding: 10px 24px;
  background: var(--marrom-btn);
  color: #fff;
  border-radius: var(--radius-xl);
  font-weight: 600;
}


/* =============================================
   MODAL (base) — flutuante como o drawer
   ============================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  padding: 0 8px 8px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,16,9,.55);
  backdrop-filter: blur(2px);
}

.modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 92dvh;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp .22s ease-out;
}

/* Área scrollável (foto + corpo / passos) */
.modal-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-width: 0;
  overflow-x: hidden;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--borda);
  color: var(--texto-sec);
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s;
}

.modal-fechar:hover { background: var(--borda-input); }

/* =============================================
   MODAL PRODUTO
   ============================================= */
.modal-foto-wrap {
  width: 100%;
  max-height: 240px;
  overflow: hidden;
  background: var(--banner-bg);
}

.modal-foto-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.modal-corpo {
  padding: 20px 16px 8px;
}

.modal-produto-nome {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--texto);
  padding-right: 36px;
}

.modal-produto-desc {
  font-size: .85rem;
  color: var(--texto-sec);
  line-height: 1.5;
  margin-top: 8px;
}

.modal-produto-preco {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--marrom);
  margin-top: 10px;
}

/* grupos de modificadores */
.grupo-modificador {
  margin-top: 20px;
  border-top: 1px solid var(--borda);
  padding-top: 16px;
}

.grupo-modificador-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.grupo-modificador-nome {
  font-weight: 700;
  font-size: .95rem;
  color: var(--texto);
}

.grupo-modificador-hint {
  font-size: .75rem;
  color: var(--texto-terc);
}

.grupo-obrigatorio .grupo-modificador-nome::after {
  content: ' *';
  color: var(--vermelho);
}

.modificador-opcao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--borda);
  gap: 8px;
  cursor: pointer;
}

.modificador-opcao:last-child { border-bottom: none; }

.modificador-opcao input[type="radio"],
.modificador-opcao input[type="checkbox"] {
  accent-color: var(--marrom-btn);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.modificador-label {
  flex: 1;
  font-size: .9rem;
  color: var(--texto);
}

.modificador-preco {
  font-size: .82rem;
  font-weight: 600;
  color: var(--marrom);
}

/* observação no modal */
.modal-observacao {
  margin-top: 20px;
  border-top: 1px solid var(--borda);
  padding-top: 16px;
  padding-bottom: 4px;
}

.modal-observacao label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--texto-sec);
  margin-bottom: 6px;
}

.modal-observacao textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--borda-input);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--texto);
  resize: none;
  line-height: 1.4;
}

.modal-observacao textarea:focus {
  outline: none;
  border-color: var(--marrom-btn);
}

/* rodapé do modal (fixo embaixo via flexbox) */
.modal-rodape {
  flex-shrink: 0;
  background: var(--bg);
  border-top: 1px solid var(--borda);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantidade-controle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--borda-input);
  border-radius: var(--radius-xl);
  padding: 6px 12px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--borda);
  color: var(--texto);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
  font-weight: 700;
}

.qty-btn:hover { background: var(--borda-input); }

#modal-qty-valor {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
}

/* =============================================
   BOTÃO PRIMÁRIO
   ============================================= */
.btn-primario {
  flex: 1;
  padding: 14px 16px;
  background: var(--marrom-btn);
  color: #fff;
  border-radius: var(--radius-xl);
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
  transition: background .15s;
  letter-spacing: .01em;
}

.btn-primario:hover,
.btn-primario:active {
  background: var(--marrom-hover);
}

.btn-primario:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* =============================================
   DRAWER CARRINHO
   ============================================= */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  padding: 0 8px 8px;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,16,9,.55);
  backdrop-filter: blur(2px);
}

.drawer-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 90dvh;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp .22s ease-out;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--borda);
  flex-shrink: 0;
}

.drawer-header h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--texto);
}

.drawer-itens {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
  overscroll-behavior: contain;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--borda);
}

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

.drawer-item-foto {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--borda);
  flex-shrink: 0;
}

.drawer-item-foto-placeholder {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--borda);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

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

.drawer-item-nome {
  font-size: .9rem;
  font-weight: 600;
  color: var(--texto);
}

.drawer-item-mods {
  font-size: .75rem;
  color: var(--texto-terc);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-item-preco {
  font-size: .88rem;
  font-weight: 700;
  color: var(--marrom);
  margin-top: 4px;
}

.drawer-item-controles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.drawer-item-qty {
  font-size: .9rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.btn-item-remover {
  color: var(--texto-terc);
  font-size: 1rem;
  padding: 4px;
  transition: color .12s;
}

.btn-item-remover:hover { color: var(--vermelho); }

.drawer-vazio {
  padding: 48px 24px;
  text-align: center;
  color: var(--texto-terc);
  font-size: .95rem;
}

.drawer-rodape {
  flex-shrink: 0;
  border-top: 1px solid var(--borda);
  padding: 14px 16px;
  background: var(--bg);
}

.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1rem;
}

.drawer-total span { color: var(--texto-sec); }
.drawer-total strong {
  font-size: 1.1rem;
  color: var(--texto);
  font-weight: 700;
}

.drawer-tipo-servico p {
  font-size: .82rem;
  color: var(--texto-sec);
  margin-bottom: 8px;
}

.tipo-servico-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-tipo-servico {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border: 2px solid var(--borda-input);
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 600;
  color: var(--texto-sec);
  background: var(--bg-card);
  transition: border-color .15s, color .15s, background .15s;
}

.btn-tipo-servico svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-tipo-servico.ativo,
.btn-tipo-servico:hover {
  border-color: var(--marrom-btn);
  color: var(--marrom-btn);
  background: rgba(155,92,58,.07);
}

/* =============================================
   MODAL AVISO LOJA FECHADA
   ============================================= */
.modal-box-aviso {
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  gap: 16px;
  border-radius: var(--radius-lg);
}

.modal-aviso-icone svg {
  width: 52px;
  height: 52px;
  color: var(--marrom-btn);
}

.modal-aviso-msg {
  font-size: .95rem;
  color: var(--texto);
  line-height: 1.5;
}

.modal-box-aviso .btn-primario {
  width: 100%;
  margin-top: 4px;
}

/* =============================================
   MODAL FINALIZAÇÃO DE PEDIDO
   ============================================= */
.modal-box-pedido {
  padding-bottom: 0;
}

.modal-pedido-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--borda);
  flex-shrink: 0;
  background: var(--bg);
  z-index: 2;
}

.modal-voltar {
  font-size: 1.2rem;
  color: var(--texto-sec);
  padding: 4px 8px 4px 0;
  transition: color .12s;
}

.modal-voltar:hover { color: var(--marrom); }

.modal-pedido-header h2 {
  flex: 1;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--texto);
}

.modal-pedido-total-header {
  font-size: .9rem;
  font-weight: 700;
  color: var(--marrom);
}

.passo {
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.passo + .passo {
  border-top: 1px solid var(--borda);
}

.passo label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--texto-sec);
}

#row-tipo-pedido,
#campo-agendamento {
  width: 100%;
  min-width: 0;
}

.passo input,
.passo textarea,
.passo select {
  width: 100%;
  /* cap absoluto: viewport - padding do modal (16px) - padding do passo (32px) */
  max-width: calc(100vw - 48px);
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--borda-input);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--texto);
  font-size: .95rem;
  transition: border-color .15s;
}

.passo input:focus,
.passo textarea:focus,
.passo select:focus {
  outline: none;
  border-color: var(--marrom-btn);
}

#campo-agendamento {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.info-pagamento {
  font-size: .82rem;
  color: var(--texto-sec);
  background: rgba(155,92,58,.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 4px;
}

/* =============================================
   BOTÃO FLUTUANTE CARRINHO
   ============================================= */
.btn-flutuante-carrinho {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  width: calc(100% - 32px);
  max-width: 480px;
  animation: slideUpCentered .2s ease-out;
}

@keyframes slideUpCentered {
  from { transform: translateX(-50%) translateY(100%); }
  to   { transform: translateX(-50%) translateY(0); }
}

.btn-flutuante-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--marrom-btn);
  color: #fff;
  border-radius: var(--radius-xl);
  font-size: .95rem;
  font-weight: 700;
  box-shadow: var(--sombra-lg);
  transition: background .15s;
  gap: 12px;
}

.btn-flutuante-inner:hover,
.btn-flutuante-inner:active {
  background: var(--marrom-hover);
}

.btn-flutuante-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  background: rgba(255,255,255,.25);
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 700;
}

.btn-flutuante-total {
  font-size: .9rem;
  font-weight: 700;
  opacity: .9;
}

/* =============================================
   UTILITÁRIOS
   ============================================= */
.hidden { display: none !important; }

/* =============================================
   RESPONSIVO — DESKTOP (≥ 600px)
   ============================================= */
@media (min-width: 600px) {
  .header-inner { padding: 0 24px; }

  .header-nome { font-size: 32px; }

  .status-badge { font-size: .78rem; }
  .header-entrega { font-size: .74rem; }

  .main {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Nav centralizada com bordas arredondadas embaixo */
  .nav-categorias {
    max-width: 1024px;
    margin: 0 auto;
    border-left: 1px solid var(--borda);
    border-right: 1px solid var(--borda);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .banner { max-height: 240px; }
  .banner img { height: 240px; }

  .modal,
  .drawer {
    align-items: center;
    justify-content: center;
  }

  .modal-box,
  .drawer-box {
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    animation: fadeScale .2s ease-out;
  }

  .btn-flutuante-carrinho {
    max-width: 560px;
  }

  @keyframes fadeScale {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: scale(1); }
  }
}

/* =============================================
   RESPONSIVO — MOBILE (< 600px)
   ============================================= */
@media (max-width: 599px) {
  :root {
    --header-h: 72px;
  }

  .header-nome { font-size: 24px; }

  .header-inner {
    padding: 0 10px;
    gap: 4px;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
  }

}