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

:root {
  --primary: black;
  --primary-dark: #4a5220;
  --primary-light: #8a9840;
  --accent: #f0a500;
  --bg: #f7f5f0;
  --bg-card: #ffffff;
  --text: #2c2c2c;
  --text-muted: #777;
  --border: #e0ddd5;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
}

html,
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

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

a {
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 12px;
  /* Reduzido */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 5px;
  /* Reduzido de 10px para mobile */
}


.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.header-logo img {
  height: 40px;
  border-radius: 6px;
}

.header-logo-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  /* Evita que o nome do restaurante bata no badge central */
}

/* Badge da mesa no header */
.mesa-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 5px 10px;
  /* Mais compacto */
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  justify-self: center;
}

.mesa-badge i {
  font-size: 0.9rem;
}

/* Botão do carrinho no header */
.header-cart-wrapper {
  justify-self: end;
  display: flex;
  justify-content: flex-end;
}

.btn-carrinho-header {
  background: var(--accent);
  color: #1a1a1a;
  padding: 8px 12px;
  /* Reduzido de 16px para caber melhor */
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  /* Reduzido levemente */
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  white-space: nowrap;
  /* Impede quebra de linha */
}

.btn-carrinho-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 165, 0, 0.4);
}

.badge-count {
  background: #fff;
  color: var(--primary-dark);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== BANNER DA MESA ===================== */
.mesa-banner {
  background: linear-gradient(-180deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  text-align: center;
  padding: 10px 16px;
  display: none;
  /* visível apenas com mesa */
}

.mesa-banner.visible {
  display: block;
}

.mesa-banner-num {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.mesa-banner-label {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* ===================== CATEGORIAS ===================== */
.categorias-section {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 65px;
  z-index: 90;
}

.categorias-scroll {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.categorias-scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .categorias-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.btn-categoria {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-categoria.active,
.btn-categoria:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-categoria i {
  font-size: 0.9em;
}

/* ===================== CONTEÚDO PRINCIPAL ===================== */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 12px 120px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* ===================== GRID DE ITENS ===================== */
.itens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  overflow: visible;
}

/* ===================== CARD DE ITEM ===================== */
.item-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.item-card-img {
  width: 100%;
  height: 215px !important;
  min-height: 215px;
  object-fit: cover !important;
  object-position: center;
  background: var(--bg);
  flex-shrink: 0;
  display: block;
}

.item-card-img-placeholder {
  width: 100%;
  height: 215px !important;
  min-height: 215px;
  background: linear-gradient(135deg, #e8e3d8 0%, #d5cfbf 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #bbb;
  flex-shrink: 0;
}

.item-card-body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-novo {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-promo {
  background: #fff3e0;
  color: #e65100;
}

.item-card-nome {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.item-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.item-card-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-preco {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.item-preco-normal {
  font-size: 0.78rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.btn-adicionar-item {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-adicionar-item:hover {
  background: var(--primary-dark);
  transform: scale(1.04);
}

.btn-adicionar-item i {
  font-size: 0.9em;
}

/* Adicionais do card */
.item-adicionais {
  padding: 0 14px 10px;
  display: none;
}

.item-adicionais.visible {
  display: block;
}

.adicionais-titulo {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.adicional-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.adicional-row:last-child {
  border-bottom: none;
}

.adicional-row input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.adicional-row label {
  font-size: 0.8rem;
  flex: 1;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adicional-preco {
  color: var(--primary);
  font-weight: 600;
}

.obs-item {
  margin-top: 8px;
}

.obs-item textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  resize: none;
  height: 52px;
  background: var(--bg);
}

/* Ver mais */
.ver-mais-container {
  text-align: center;
  margin-top: 20px;
}

.btn-ver-mais {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 32px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-ver-mais:hover {
  background: var(--primary);
  color: white;
}

/* ===================== MODAL — PIZZA BUILDER ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-sheet {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  margin: auto;
  overflow-y: auto;
  padding: 0 0 20px;
  animation: slideUp 0.3s ease;
}

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

  to {
    transform: translateY(0);
  }
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 12px auto;
}

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

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-fechar-modal-overlay {
  background: var(--bg);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: background 0.2s;
}

.btn-fechar-modal-overlay:hover {
  background: #e0ddd5;
}

.modal-body {
  padding: 16px 20px;
}

.modal-footer {
  padding: 12px 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.btn-modal-cancel {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-modal-confirm {
  flex: 2;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-modal-confirm:hover {
  background: var(--primary-dark);
}

.btn-modal-confirm:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ===================== MODAL IMAGEM ===================== */
.modal-img-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95) !important;
  z-index: 9999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}

.modal-img-overlay.visible {
  display: flex !important;
}

.modal-img-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.btn-fechar-img {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-fechar-img:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Sabores */
.sabores-info {
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sabores-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.sabor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.sabor-item.selected {
  border-color: var(--primary);
  background: #f0f4e8;
}

.sabor-item input[type="checkbox"] {
  accent-color: var(--primary);
}

.sabor-item-nome {
  font-size: 0.85rem;
  font-weight: 500;
}

.sabor-item-ingr {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contador-sabores {
  text-align: center;
  background: var(--bg);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ===================== CARRINHO (DRAWER) ===================== */
.carrinho-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: none;
}

.carrinho-overlay.open {
  display: block;
}

.carrinho-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
}

.carrinho-drawer.open {
  right: 0;
}

.carrinho-header {
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carrinho-header h2 {
  font-size: 1rem;
  font-weight: 700;
}

.carrinho-mesa-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
}

.btn-fechar-carrinho {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.carrinho-etapas {
  display: flex;
  padding: 12px 20px;
  gap: 8px;
  background: #f0ede6;
  border-bottom: 1px solid var(--border);
}

.etapa-pill {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 10px;
  color: var(--text-muted);
  background: white;
  border: 1.5px solid var(--border);
  transition: all 0.2s;
}

.etapa-pill.ativa {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.etapa-pill.concluida {
  background: #e8f5e9;
  border-color: #81c784;
  color: #2e7d32;
}

.carrinho-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Etapa 1 — Itens */
.carrinho-vazio {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.carrinho-vazio i {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.4;
}

.carrinho-vazio p {
  font-size: 0.9rem;
}

.item-carrinho {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.item-carrinho-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}

.item-carrinho-info {
  flex: 1;
}

.item-carrinho-nome {
  font-size: 0.85rem;
  font-weight: 700;
}

.item-carrinho-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.item-carrinho-controles {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-qtd {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-qtd:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.qtd-valor {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.btn-remover-item {
  color: #e74c3c;
  background: #fdecea;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.btn-remover-item:hover {
  background: #e74c3c;
  color: white;
}

.item-carrinho-preco {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

/* Etapa 2 — Confirmação */
.confirmacao-mesa {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.confirmacao-mesa-num {
  font-size: 2rem;
  font-weight: 800;
}

.confirmacao-mesa-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  height: 80px;
}

.resumo-pedido {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}

.resumo-titulo {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.resumo-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

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

.resumo-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--primary);
}

/* ===================== RODAPÉ DO CARRINHO ===================== */
.carrinho-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: white;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.total-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.total-valor {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-avancar {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-avancar:hover {
  background: var(--primary-dark);
}

.btn-avancar:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-voltar {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px;
  width: 100%;
  text-align: center;
  margin-top: 6px;
  font-weight: 600;
}

.btn-voltar:hover {
  color: var(--text);
}

/* ===================== TELA DE SUCESSO ===================== */
.sucesso-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sucesso-overlay.hidden {
  display: none;
}

.sucesso-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: popIn 0.4s cubic-bezier(.175, .885, .32, 1.275);
  position: relative;
}

.sucesso-fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.sucesso-fechar:hover {
  background: var(--primary);
  color: white;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.sucesso-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounce 0.6s 0.2s;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

.sucesso-titulo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.sucesso-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.sucesso-pedido-id {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-novo-pedido {
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn-novo-pedido:hover {
  background: var(--primary-dark);
}

/* ===================== AVISO SEM MESA ===================== */
.aviso-mesa {
  background: #fff8e1;
  border: 1.5px solid #f0a500;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.aviso-mesa i {
  color: #f0a500;
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.aviso-mesa-text {
  font-size: 0.85rem;
  color: #5d4037;
  line-height: 1.5;
}

.aviso-mesa-text strong {
  display: block;
  margin-bottom: 2px;
}

/* ===================== LOADING ===================== */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 480px) {
  .itens-grid {
    grid-template-columns: 1fr;
  }

  .header-logo-title {
    display: none;
  }

  .carrinho-drawer {
    max-width: 100%;
  }
}

@media (min-width: 480px) and (max-width: 760px) {
  .itens-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 28px 16px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 44px;
  border-radius: 6px;
}

.footer-copy-col {
  text-align: center;
  font-size: 0.82rem;
  flex: 1;
}

.footer-copy-col a {
  color: var(--accent);
  font-weight: 600;
}

.footer-copy-col a:hover {
  text-decoration: underline;
}

.footer-payment-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-payment-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-payment-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-payment-col {
    align-items: center;
  }
}

/* ===================== COOKIE NOTIFICATION ===================== */
.cookie-notification {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  text-align: left;
  border: 1px solid var(--border);
  animation: slideUp 0.4s ease-out;
}

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

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .cookie-notification {
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 90%;
    text-align: center;
    animation: slideUpMobile 0.4s ease-out;
  }

  @keyframes slideUpMobile {
    from {
      transform: translate(-50%, 100%);
      opacity: 0;
    }

    to {
      transform: translate(-50%, 0);
      opacity: 1;
    }
  }
}

.cookie-notification p {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

.cookie-notification a {
  color: var(--primary);
  text-decoration: none;
}

.cookie-notification a:hover {
  text-decoration: underline;
}

#accept-cookies {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

#accept-cookies:hover {
  opacity: 0.9;
}

/* ===================== TOAST NOTIFICATION ===================== */
.toast-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  z-index: 10000;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-width: 80%;
}

.toast-notification.visible {
  opacity: 1;
}