/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 14px;
  color: #333;
  background: var(--loja-cor-fundo, rgb(246, 242, 233));
  overflow-x: hidden;
}

/* ===== MAIN CONTAINER ===== */
.body-content {
  width: 100%;
  background: var(--loja-cor-fundo, rgb(246, 242, 233));
  min-height: 100vh;
  position: relative;
}

#app {
  position: relative;
}

/* ===== PAINEL DE PERFIL ===== */
#perfil-panel {
  position: fixed;
  top: 0;
  left: -320px;
  width: 290px;
  height: 100vh;
  background: #fff;
  z-index: 202;
  display: flex;
  flex-direction: column;
  transition: left 0.3s ease;
  box-shadow: 2px 0 16px rgba(0,0,0,0.12);
  pointer-events: none;
}
#perfil-panel.open {
  left: 0;
  pointer-events: all;
}

.perfil-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  flex-shrink: 0;
}
.perfil-back {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #555;
  padding: 2px;
}
.perfil-back:hover { color: #222; }

.perfil-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perfil-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.perfil-label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.perfil-footer {
  padding: 14px 16px;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}
.perfil-btn-salvar {
  width: 100%;
  padding: 13px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.perfil-btn-salvar:hover { background: #444; }

.perfil-vazio {
  text-align: center;
  font-size: 13px;
  color: #aaa;
  padding: 40px 0;
}

.perfil-pedido-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.perfil-pedido-nome {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}
.perfil-pedido-preco {
  font-weight: 600;
  color: #222;
}

/* ===== SIDEBAR MENU ===== */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
}

.menu.open {
  pointer-events: all;
}

.menu-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.menu.open .menu-background {
  opacity: 1;
}

.menu-container {
  position: fixed;
  top: 0;
  left: -290px;
  width: 290px;
  height: 100vh;
  background: #fff;
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.menu.open .menu-container {
  left: 0;
}

.mesa-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid #eee;
}

.logo-mesa {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}


.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #b91c1c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.itens {
  flex: 1;
  padding: 8px 0;
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.item:hover {
  background: #fafafa;
}

.iconEtext {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-menu {
  color: #666;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.text > div:first-child {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.detalhe {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.seta {
  color: #ccc;
  flex-shrink: 0;
}

.seta svg {
  width: 9px;
  height: 16px;
}

.menu-footer {
  padding: 20px 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 48px));
  border-top: 1px solid #eee;
}

/* ===== FIXED HEADER ===== */
#fixed-header {
  position: relative;
  background: var(--loja-cor-hero, #1a1a1a);
}

/* ===== NAV BAR (overlaid on banner) ===== */
#nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}

#menu-btn,
#search-btn {
  cursor: pointer;
  padding: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  border: none;
  outline: none;
}

#menu-btn:hover,
#search-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* ===== TOPO HERO ===== */
.topo-hero {
  display: block;
  height: 55px;
  background: var(--loja-cor-hero, #1a1a1a);
  position: relative;
  overflow: hidden;
}


/* ===== BANNER (CAPA) ===== */
.capa {
  overflow: hidden;
  position: relative;
}

.capa img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.capa::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.22));
  pointer-events: none;
}

/* ===== RESTAURANT HEADER ===== */
header.flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 92px 20px 16px;
  background: var(--loja-cor-fundo, rgb(246, 242, 233));
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  position: relative;
  z-index: 5;
}

.caricatura-chef {
  width: 110px;
  height: 110px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  border: 3px solid #fff;
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 9;
  flex-shrink: 0;
}

.logo-container {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.logo-container img {
  width: 92px;
  height: 92px;
  border-radius: 17px;
  object-fit: cover;
  border: 3px solid var(--loja-cor-fundo, rgb(246, 242, 233));
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

#hr-abertura {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

#hr-abertura.fechado {
  background: #fff0f0;
  color: #e53e3e;
  border: 1px solid rgba(229,62,62,0.2);
}

#hr-abertura.aberto {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid rgba(46,125,50,0.2);
}

.info-estab {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

#estabelecimento-fantasia {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
  line-height: 1;
}

.estab-nome-script {
  font-family: 'Dancing Script', cursive;
  font-size: 26px;
  font-weight: 700;
  color: #b91c1c;
  line-height: 1.1;
}

.estab-nome-serif {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 800;
  color: #2d4a3e;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
}

.estab-nome-by {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.8px;
  margin-top: 1px;
}

.estab-nome-simples {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.estab-experiencia {
  font-family: 'Georgia', serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  color: #8b5e3c;
  letter-spacing: 1.4px;
  margin-top: 5px;
  padding: 3px 10px;
  border-top: 1px solid rgba(139,94,60,0.25);
  border-bottom: 1px solid rgba(139,94,60,0.25);
  display: inline-block;
}

#estabelecimento-endereco {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}

.info-estabelecimento {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pagamento-label {
  font-size: 12px;
  color: #555;
  font-weight: 500;
  margin-bottom: 2px;
}

.pagamento-metodos {
  font-size: 12px;
  color: #b91c1c;
  font-weight: 500;
  line-height: 1.4;
}

.estab-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.estab-tag {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  background: #f5f5f5;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #e8e8e8;
  white-space: nowrap;
}

.estab-tag-rating {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.estab-tag-whatsapp {
  color: #fff;
  background: #25d366;
  border-color: #1db954;
  text-decoration: none;
  cursor: pointer;
}
.estab-tag-whatsapp:hover {
  background: #1aab55;
}

/* ===== TABS NAV ===== */
.nav-cardapio {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--loja-cor-fundo, rgb(246, 242, 233));
  border-bottom: 1px solid #e0d9c8;
  position: sticky;
  top: 0;
  z-index: 50;
  scrollbar-width: none;
  padding: 0 8px;
  gap: 2px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.nav-cardapio::-webkit-scrollbar {
  display: none;
}

.categoria-item {
  flex-shrink: 0;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  transition: color 0.18s, border-color 0.18s, font-weight 0.18s;
  white-space: nowrap;
  user-select: none;
  border-radius: 4px 4px 0 0;
}

.categoria-item:hover {
  color: #555;
}

.categoria-item.selected {
  color: #b91c1c;
  border-bottom-color: #b91c1c;
  font-weight: 700;
}

/* ===== PRODUCT CATALOG ===== */
.cardapio-container {
  padding-bottom: 48px;
}

.categoria {
  padding-bottom: 8px;
}

.categoria .title {
  font-size: 14px;
  font-weight: 800;
  color: #2d4a3e;
  padding: 20px 16px 10px 20px;
  border-bottom: none;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  position: relative;
}

.categoria .title::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-30%);
  width: 4px;
  height: 18px;
  background: #2d4a3e;
  border-radius: 3px;
}

/* ===== CATEGORIA SEXTA DO PARMEGIANA ===== */
.categoria-sexta {
  border-left: 3px solid #b91c1c;
  box-shadow: -2px 0 12px rgba(185,28,28,0.15);
}

.categoria-sexta .title {
  color: #b91c1c;
}

.categoria-sexta .title::before {
  background: #b91c1c;
}

.categoria-sexta .produto {
  border: 2px solid #b91c1c;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(185,28,28,0.18);
  background: linear-gradient(135deg, #fff 80%, #fff5f5 100%);
}

.categoria-sexta .produto-info-nome {
  color: #b91c1c;
  font-weight: 800;
}

.categoria-sexta .produto-add-btn {
  background: linear-gradient(135deg, #7f1d1d, #b91c1c);
  box-shadow: 0 3px 10px rgba(185,28,28,0.5);
}

/* ===== GRUPO INCLUSO (read-only) ===== */
.grupo-incluso header {
  background: #fef9f0;
  border-left: 4px solid #b91c1c;
}

.grupo-incluso header .titulo {
  color: #b91c1c;
  font-weight: 700;
}

.incluso-lista {
  background: #fef9f0;
  padding: 8px 16px 10px !important;
}

.incluso-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  color: #2d2d2d;
}

.incluso-check {
  color: #b91c1c;
  font-weight: 700;
  font-size: 14px;
}

.incluso-nome {
  font-weight: 500;
}

/* Botão + no card */
.produto-add-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #b91c1c;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(185,28,28,0.45);
  pointer-events: all;
  transition: transform 0.15s, box-shadow 0.15s;
  line-height: 1;
  padding-bottom: 1px;
}

.produto-add-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 5px 14px rgba(185,28,28,0.55);
}

.produto-add-btn:active {
  transform: scale(0.95);
}


body.loja-fechada .produto-add-btn {
  display: none;
}

body.loja-fechada #panel-footer {
  display: none;
}

/* ===== CÍRCULO PROMOÇÃO ===== */
.promo-wrapper {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 9;
}

.promo-circulo {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--loja-cor-promo, linear-gradient(145deg, #7f1d1d 0%, #b91c1c 100%));
  box-shadow: var(--loja-cor-promo-shadow, 0 4px 18px rgba(185,28,28,0.5)), inset 0 1px 0 rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.promo-circulo:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(185,28,28,0.6), inset 0 1px 0 rgba(255,255,255,0.15);
}

.promo-circulo:active {
  transform: scale(0.96);
}

.promo-tag {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.promo-titulo {
  font-family: 'Georgia', serif;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .promo-wrapper {
    left: auto;
    right: calc(50% + 130px);
    top: 50%;
    transform: translateY(-50%);
  }
  .promo-wrapper:hover .promo-circulo { transform: scale(1.06); }
  .promo-circulo {
    width: 130px;
    height: 130px;
  }
  .promo-tag   { font-size: 9px; }
  .promo-titulo { font-size: 14px; }
}

.badge-mais-pedido {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b00, #ff3d00);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(255,80,0,0.35);
  white-space: nowrap;
}

.aviso-loja-fechada {
  text-align: center;
  background: #fee2e2;
  color: #991b1b;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  margin: 16px 16px 0;
}

/* Mobile: card list */
.produtos {
  display: flex;
  flex-direction: column;
  padding: 4px 10px 8px;
  gap: 10px;
}

.produto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 0 1px rgba(0,0,0,0.05);
  gap: 12px;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}

.produto * {
  pointer-events: none;
}

.produto:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.11), 0 0 1px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.produto:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.produto-sem-estoque {
  opacity: 0.45;
  cursor: default;
}
.produto-sem-estoque:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 0 1px rgba(0,0,0,0.05);
}
.produto-sem-estoque:active {
  transform: none;
}
.produto-sem-estoque .produto-add-btn {
  visibility: hidden;
}
.produto-esgotado-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #999;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 20px;
  pointer-events: none;
  text-transform: uppercase;
}

.produto-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.produto-info-nome {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
  line-height: 1.3;
}

.produto-info-ingredientes {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.produto-info-preco {
  font-size: 14px;
  font-weight: 800;
  color: #b91c1c;
}

.produto-img {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
}

.produto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== DESKTOP BREAKPOINT ===== */
@media (min-width: 768px) {

  body {
    background: var(--loja-cor-fundo, rgb(246, 242, 233));
  }

/* Taller banner on desktop */
  .capa img {
    height: 300px;
  }

  /* Larger restaurant header */
  #fixed-header {
    padding-top: 48px;
  }
  header.flex {
    padding-top: 110px;
  }

  .logo-container img {
    width: 110px;
    height: 110px;
    border-radius: 20px;
  }

  .caricatura-chef {
    width: 140px;
    height: 140px;
    left: calc(50% + 130px);
    right: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  #estabelecimento-fantasia {
    margin-bottom: 8px;
  }

  .estab-nome-script {
    font-size: 34px;
  }

  .estab-nome-serif {
    font-size: 22px;
    letter-spacing: 3px;
  }

  #estabelecimento-endereco {
    font-size: 14px;
    margin-bottom: 12px;
  }

  /* Desktop: sempre 4 colunas fixas, independente da quantidade de itens */
  .produtos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 4px 12px 8px;
    gap: 10px;
  }

  .produto {
    margin: 0;
    border: none;
    border-radius: 18px;
    padding: 14px;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07), 0 0 1px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
  }

  .produto:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    background: #fff;
  }

  .produto:active {
    transform: translateY(0);
  }

  .produto-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
  }

  .produto-info-ingredientes {
    -webkit-line-clamp: 2;
  }

  .categoria .title {
    padding: 22px 16px 10px 22px;
    font-size: 13px;
  }
}

/* ===== UTILITY ===== */
.btn-ripple {
  -webkit-tap-highlight-color: transparent;
}

/* ===== PRODUCT PANEL ===== */
#panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

#product-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

#product-panel.open {
  transform: translateX(0);
  pointer-events: all;
}

/* Mobile: tela inteira */
@media (max-width: 767px) {
  #product-panel {
    width: 100%;
  }

  /* Mobile: topo compacto */
  #fixed-header {
    padding-top: 20px;
  }
}

.panel-scrollable {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.panel-img-container {
  position: relative;
}


.panel-img-container img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.panel-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Botão flutuante: fica fixo no topo do painel, nunca some com o scroll */
.panel-back-float {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  transition: background 0.2s, box-shadow 0.2s;
}
.panel-back-float:hover {
  background: #f5f5f5;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.panel-header {
  padding: 18px 16px 12px;
  border-bottom: 1px solid #eee;
  border-radius: 16px 16px 0 0;
  margin-top: -66px;
  background: #fff;
  position: relative;
}

.panel-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
  line-height: 1.3;
}

.panel-header p {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

.grupo-adicionais {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.grupo-adicionais > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.grupo-adicionais .titulo {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  flex: 1;
  margin-right: 8px;
}

.grupo-header-direita {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.grupo-obrigatorio {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #e53935;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.grupo-adicionais .maximo {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

/* Estado de erro de validação */
.grupo-adicionais.grupo-invalido {
  border-left: 3px solid #e53935;
  padding-left: 13px;
  background: #fff8f8;
}

.grupo-limite-msg {
  font-size: 11px;
  color: #2d7a3e;
  background: #f0faf3;
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 6px;
  font-weight: 500;
}

.grupo-erro-msg {
  font-size: 11px;
  color: #e53935;
  margin-bottom: 6px;
  font-weight: 500;
}

.item-adicional {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.item-adicional:last-child {
  border-bottom: none;
}

.item-incluso-tag {
  font-size: 12px;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.item-adicional-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-adicional-info img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.item-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.item-nome {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.item-desc-mini {
  font-size: 11px;
  color: #999;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2px;
}

.item-preco {
  font-size: 12px;
  color: #b91c1c;
  font-weight: 500;
}

/* Radio button items */
.item-radio {
  cursor: pointer;
  justify-content: space-between;
}

.item-radio:hover {
  background: #fafafa;
}

.radio-input {
  width: 18px;
  height: 18px;
  accent-color: #b91c1c;
  cursor: pointer;
  flex-shrink: 0;
}

/* Checkbox items (ex: remover ingredientes -> vira observacao) */
.item-checkbox {
  cursor: pointer;
  justify-content: space-between;
}

.item-checkbox:hover {
  background: #fafafa;
}

.checkbox-input {
  width: 20px;
  height: 20px;
  accent-color: #b91c1c;
  cursor: pointer;
  flex-shrink: 0;
}

/* Itens de composição fixos (não removíveis) */
.item-incluso-fixo {
  justify-content: space-between;
  cursor: default;
}

/* Itens de composição removíveis (checked = incluso, unchecked = sem X) */
.item-removivel {
  cursor: pointer;
  justify-content: space-between;
}
.item-removivel:hover {
  background: #fafafa;
}
.incluso-check {
  width: 20px;
  height: 20px;
  accent-color: #2e7d32;
  cursor: pointer;
  flex-shrink: 0;
}
.item-removivel:has(.incluso-check:not(:checked)) .item-nome {
  text-decoration: line-through;
  color: #bbb;
}
.item-removivel:has(.incluso-check:not(:checked)) {
  opacity: 0.55;
}

.item-qtd {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.item-qtd .btn-sub,
.item-qtd .btn-add {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #333;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: #333;
}

.item-qtd .qtd-val {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  min-width: 16px;
  text-align: center;
}

.item-observacao {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-observacao span {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.item-observacao input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  outline: none;
  font-family: inherit;
}

.item-observacao input:focus {
  border-color: #b91c1c;
}

#panel-footer {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  background: #fff;
  flex-shrink: 0;
}

.panel-footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-qtd-control {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  flex-shrink: 0;
}

.panel-qtd-control button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: #333;
  line-height: 1;
  padding: 0;
}

.panel-qtd-control span {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  min-width: 20px;
  text-align: center;
}

#btn-adicionar {
  flex: 1;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

#btn-adicionar:hover {
  background: #222;
}

/* ===== BOTTOM CART BAR ===== */
#btn-revisar-pedido {
  position: fixed;
  bottom: 14px;
  left: 16px;
  right: 16px;
  z-index: 100;
  padding: 11px 18px;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.15);
  display: none;
  cursor: pointer;
  border: none;
  transition: box-shadow 0.2s, transform 0.15s;
}

#btn-revisar-pedido:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 2px 10px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

#btn-revisar-pedido.visible {
  display: block;
}

.btn-revisar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.bag-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

.bag-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #4a90e2;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  animation: badge-pulse 2s ease-in-out infinite;
}

.revisar-text {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.2px;
}

.revisar-preco {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Espaço extra no cardápio para não ficar atrás da barra */
.cardapio-container {
  padding-bottom: 80px;
}

/* ===== MODAL DADOS DO CLIENTE ===== */
.cliente-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 600;
  backdrop-filter: blur(2px);
}
.cliente-overlay.open { display: block; }

.cliente-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 601;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34,1.1,0.64,1);
  max-height: 92vh;
  overflow-y: auto;
  pointer-events: none;
}
.cliente-modal.open { transform: translateY(0); pointer-events: all; }

@media (min-width: 560px) {
  .cliente-modal {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -40%) scale(0.96);
    opacity: 0;
    width: 440px;
    border-radius: 18px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: 90vh;
    pointer-events: none;
  }
  .cliente-modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
  }
}

.cliente-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.cliente-modal-icone {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cliente-modal-titulo {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin-bottom: 3px;
}
.cliente-modal-subtitulo {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

.cliente-modal-fechar {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: background 0.15s;
}
.cliente-modal-fechar:hover { background: #eee; }

.cliente-modal-body {
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Pergunta simples no topo do passo 1 */
.passo1-pergunta {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.cliente-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cliente-label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cliente-input-wrap {
  position: relative;
}

.cliente-input-icone {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  pointer-events: none;
}

.cliente-input {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  color: #222;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #fafafa;
}
.cliente-input:focus {
  border-color: #222;
  background: #fff;
}
.cliente-input::placeholder { color: #bbb; }
.cliente-select {
  width: 100%;
  padding: 12px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  color: #222;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #fafafa;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bbb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.cliente-select:focus { border-color: #222; background-color: #fff; }

.cliente-erro {
  font-size: 11px;
  color: #e53e3e;
  min-height: 14px;
}

.cliente-privacidade {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.cliente-privacidade input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: #222;
  flex-shrink: 0;
  cursor: pointer;
}
.cliente-privacidade-link {
  color: #b91c1c;
  text-decoration: none;
}
.cliente-privacidade-link:hover { text-decoration: underline; }

/* Indicador de passos */
.cliente-steps {
  display: flex;
  align-items: center;
  padding: 14px 20px 0;
  gap: 0;
}
.cliente-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #bbb;
  font-weight: 500;
}
.cliente-step.active { color: #222; }
.cliente-step.done   { color: #4caf50; }
.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #bbb;
  background: #fff;
  transition: all 0.2s;
}
.cliente-step.active .step-dot {
  border-color: #222;
  background: #222;
  color: #fff;
}
.cliente-step.done .step-dot {
  border-color: #4caf50;
  background: #4caf50;
  color: #fff;
}
.step-linha {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 8px;
}

/* Opções de entrega */
.entrega-opcoes {
  display: flex;
  gap: 10px;
}
.entrega-opcao {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.entrega-opcao.active {
  border-color: #222;
  background: #fff;
  color: #222;
}
.entrega-opcao svg { transition: stroke 0.2s; }

/* Opções de pagamento */
.pagamento-opcoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pagamento-opcao {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pagamento-opcao.active {
  border-color: #222;
  background: #fff;
  color: #222;
}

/* Bloco de troco */
.bloco-troco {
  flex-direction: column;
  gap: 10px;
  background: #f8f8f8;
  border-radius: 10px;
  padding: 14px;
}
.bloco-pix {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px;
  margin-top: 4px;
}
.troco-opcoes {
  display: flex;
  gap: 8px;
}
.troco-opcao {
  flex: 1;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
}
.troco-opcao.active {
  border-color: #222;
  color: #222;
}

/* Linha dupla (número + bairro) */
.cliente-linha-dupla {
  display: flex;
  gap: 10px;
}
.cliente-linha-dupla .cliente-campo:first-child { flex: 1; }

/* Campos de endereço empilhados como flex column */
#campos-endereco {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Telas de status (enviando / sucesso) */
.cliente-status-tela {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 28px;
  gap: 14px;
  text-align: center;
  min-height: 280px;
}

/* Spinner de carregamento */
.status-spinner {
  width: 64px;
  height: 64px;
  animation: girar 1s linear infinite;
}
.spinner-svg { width: 100%; height: 100%; }

@keyframes girar {
  to { transform: rotate(360deg); }
}

/* Check de sucesso */
.status-check {
  width: 72px;
  height: 72px;
}
.check-svg { width: 100%; height: 100%; }
.check-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: desenhar-check 0.5s 0.2s ease forwards;
}
@keyframes desenhar-check {
  to { stroke-dashoffset: 0; }
}

.status-titulo {
  font-size: 20px;
  font-weight: 700;
  color: #222;
}
.status-subtitulo {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  max-width: 260px;
}
.sucesso-pedido-id {
  font-size: 22px;
  font-weight: 800;
  color: #4caf50;
  letter-spacing: 0.5px;
  margin: 2px 0 4px;
}
.status-erro-icone {
  margin-bottom: 4px;
}

.cliente-modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 20px 24px;
}

.cliente-btn-cancelar {
  padding: 13px 18px;
  background: #f0f0f0;
  color: #555;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.cliente-btn-cancelar:hover { background: #e4e4e4; }

.cliente-btn-confirmar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.cliente-btn-confirmar:hover { background: #444; }

/* ===== COOKIE BANNER (LGPD) ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  display: flex;
  justify-content: center;
  padding: 12px 16px 16px;
  animation: cookie-subir 0.4s ease;
}

@keyframes cookie-subir {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#cookie-banner.saindo {
  animation: cookie-descer 0.35s ease forwards;
}

@keyframes cookie-descer {
  to { transform: translateY(100%); opacity: 0; }
}

.cookie-inner {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 -2px 24px rgba(0,0,0,0.14), 0 4px 24px rgba(0,0,0,0.1);
  padding: 18px 18px 14px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-topo {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cookie-icone {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-titulo {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.cookie-texto {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.cookie-link {
  color: #b91c1c;
  text-decoration: none;
}
.cookie-link:hover { text-decoration: underline; }

/* Painel de configuração */
.cookie-config {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-config.hide { display: none; }

.cookie-config-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.cookie-config-nome {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  margin-bottom: 2px;
}

.cookie-config-desc {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.cookie-toggle {
  width: 16px;
  height: 16px;
  accent-color: #b91c1c;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

/* Botões */
.cookie-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn-config,
.cookie-btn-salvar,
.cookie-btn-aceitar {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.cookie-btn-config {
  background: #f0f0f0;
  color: #555;
}
.cookie-btn-config:hover { background: #e4e4e4; }

.cookie-btn-salvar {
  background: #e8f5e9;
  color: #2e7d32;
}
.cookie-btn-salvar:hover { background: #d0ecd2; }
.cookie-btn-salvar.hide { display: none; }

.cookie-btn-aceitar {
  background: #222;
  color: #fff;
}
.cookie-btn-aceitar:hover { background: #444; }

/* ===== QUANTIDADE BOX ===== */
.quantidade-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: #999;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  border-radius: 3px;
  flex-shrink: 0;
  line-height: 1;
}

/* ===== PEDIDO PANEL ===== */
#pedido-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
}
#pedido-overlay.open { display: block; }

#pedido-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  pointer-events: none;
}
#pedido-panel.open { transform: translateX(0); pointer-events: all; }

.pedido-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #222;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.pedido-back {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.pedido-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* "Itens adicionados" título */
.pedido-secao-titulo {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  padding: 16px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
}

/* Área dos itens */
.pedido-itens-lista {
  padding: 0;
}

.pedido-item {
  padding: 10px 16px 8px;
  border-bottom: 1px solid #f0f0f0;
}
.pedido-item:last-child { border-bottom: none; }

/* Linha principal do item: [qtd] Nome  Preço */
.pedido-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.pedido-item-esquerda {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.pedido-item-nome {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  line-height: 1.2;
}
.pedido-item-preco {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

/* Grupo de adicionais dentro do item */
/* degrau 2: título do grupo recua 10px */
.pedido-grupo {
  margin-top: 3px;
  padding-left: 10px;
  border-left: 2px solid #f0f0f0;
}
.pedido-grupo-titulo {
  font-size: 10px;
  color: #aaa;
  margin-bottom: 2px;
  line-height: 1.3;
}
/* degrau 3: sub-itens recuam mais 10px */
.pedido-grupo-item {
  font-size: 11px;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.6;
  padding-left: 10px;
}
.pedido-grupo-item-esquerda {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pedido-grupo-item-preco {
  font-size: 11px;
  color: #aaa;
  white-space: nowrap;
}

.pedido-obs-linha {
  border-left-color: #ffe0b2;
}
.pedido-obs-texto {
  font-size: 11px;
  color: #e67e22;
  font-style: italic;
  padding-left: 4px;
}

/* Rodapé */
.pedido-panel-footer {
  border-top: 1px solid #eee;
  flex-shrink: 0;
}
.pedido-obs-pedido-wrap {
  padding: 10px 16px 8px;
  border-bottom: 1px solid #f0f0f0;
}
.pedido-obs-pedido-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.pedido-obs-pedido-input {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  color: #333;
  resize: none;
  outline: none;
  background: #fafafa;
  line-height: 1.5;
  transition: border-color 0.2s;
}
.pedido-obs-pedido-input:focus {
  border-color: #aaa;
  background: #fff;
}
.obs-pedido-modal-wrap {
  margin-top: 4px;
}
.obs-pedido-modal-input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 12px;
  resize: none;
  outline: none;
  background: #fafafa;
  line-height: 1.5;
  transition: border-color 0.2s;
}
.obs-pedido-modal-input:focus {
  border-color: #aaa;
  background: #fff;
}
.pedido-subtotal-row {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  font-size: 13px;
  color: #666;
  padding: 12px 16px 4px;
}
.pedido-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  padding: 8px 16px 16px;
  border-top: 1px solid #eee;
  margin-top: 4px;
}
.btn-continuar-pedido {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 14px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-continuar-pedido:hover { background: #444; }
.btn-continuar-pedido:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Direita do item: preço + botão lixeira */
.pedido-item-direita {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pedido-btn-editar,
.pedido-btn-remover {
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.pedido-btn-editar:hover {
  color: #b91c1c;
  background: #fff5ee;
}
.pedido-btn-remover:hover {
  color: #e53e3e;
  background: #fff0f0;
}

/* ===== CONFIRMAÇÃO ===== */
#confirmacao-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
#confirmacao-overlay.open {
  display: flex;
}
#confirmacao-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px 20px;
  width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  text-align: center;
}
#confirmacao-msg {
  font-size: 14px;
  color: #222;
  line-height: 1.5;
  margin-bottom: 20px;
}
#confirmacao-btns {
  display: flex;
  gap: 10px;
}
.conf-btn {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.conf-btn-nao {
  background: #f0f0f0;
  color: #555;
}
.conf-btn-nao:hover { background: #e4e4e4; }
.conf-btn-sim {
  background: #e53e3e;
  color: #fff;
}
.conf-btn-sim:hover { background: #c53030; }

/* Carrinho vazio */
.pedido-vazio {
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

/* Mobile: painel ocupa tela inteira */
@media (max-width: 600px) {
  #pedido-panel { width: 100%; }
  #pedido-overlay { display: none !important; }
}

/* Mobile: botão hambúrguer sempre visível ao rolar */
@media (max-width: 767px) {
  #menu-btn {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 199;
    background: rgba(0, 0, 0, 0.55);
  }
  #menu-btn:hover {
    background: rgba(0, 0, 0, 0.75);
  }
}

/* ===== CARD RECOMENDAÇÃO DO DIA ===== */
.produto.produto-rec-dia {
  background: linear-gradient(145deg, #7f1d1d 0%, #b91c1c 100%) !important;
  box-shadow: 0 4px 18px rgba(185,28,28,0.5), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.produto.produto-rec-dia::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 14px 14px 0 0;
}
.produto.produto-rec-dia .produto-info-nome {
  color: #fff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.produto.produto-rec-dia .produto-info-ingredientes {
  color: rgba(255,255,255,0.8) !important;
}
.produto.produto-rec-dia .produto-info-preco {
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.produto.produto-rec-dia .produto-add-btn {
  background: #fff !important;
  color: #b91c1c !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25) !important;
  font-weight: 900 !important;
}
.produto.produto-rec-dia:hover {
  box-shadow: 0 8px 28px rgba(185,28,28,0.6), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  transform: translateY(-2px);
}
