* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: #f8f7f5;
  color: #333;
}

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

/* ================== TOPO ESTILO IFOOD ================== */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  z-index: 110;
}

.top-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  align-items: center;
  column-gap: 24px;
  padding: 0 24px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-logo {
  font-size: 20px;
  font-weight: 700;
  color: #ea1d2c;
}

.top-menu {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.top-menu span {
  cursor: default;
}

.top-menu .active {
  color: #ea1d2c;
  font-weight: 600;
}

.top-searchbox {
  display: flex;
  justify-content: center;
}

.top-searchbox input {
  width: 100%;
  max-width: 540px;
  border-radius: 999px;
  border: 1px solid #eee;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  background: #fafafa;
}

.top-searchbox input::placeholder {
  color: #aaa;
}

.top-right {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  font-size: 12px;
  color: #555;
}

/* ================== BLOCO DO RESTAURANTE ================== */

.main {
  margin-top: 56px;
}

.hero-wrapper {
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.hero-banner-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 0;
}

.hero-banner {
  height: 160px;
  background: #f0f0f0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-restaurant {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 18px;
  display: flex;
  align-items: center;
  margin-top: -34px;
}

.hero-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-name {
  font-size: 18px;
  font-weight: 600;
}

.hero-type {
  font-size: 12px;
  color: #999;
}

.hero-slogan {
  font-size: 12px;
  color: #f09000;
}

.hero-meta {
  font-size: 11px;
  color: #777;
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.hero-meta span strong {
  color: #333;
}

/* barra abaixo do restaurante */

.hero-toolbar {
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  background: #ffffff;
}

.hero-toolbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-toolbar .search-cardapio {
  flex: 1;
}

.hero-toolbar .search-cardapio input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #eee;
  padding: 8px 14px;
  font-size: 13px;
  background: #fafafa;
}

.hero-toolbar .search-cardapio input::placeholder {
  color: #999;
}

.select-box {
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 7px 10px;
  background: #fff;
}

.select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 120px;
  cursor: pointer;
}

/* ================== CARDÁPIO ================== */

.page-body {
  background: #f8f7f5;
}

.content {
  max-width: 1200px;
  margin: 18px auto 40px;
  padding: 0 24px;
}

.categoria {
  margin-bottom: 32px;
}

.categoria-titulo {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.grid-produtos {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.8fr);
  gap: 12px;
}

.card-produto {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 136px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card-produto:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.card-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-nome {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.card-descricao {
  font-size: 11px;
  color: #777;
  margin-bottom: 6px;
}

.card-detalhe {
  font-size: 11px;
  color: #666;
  margin-bottom: 6px;
}

/* preço normal */
.card-preco {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* preço promocional */
.card-preco.promo {
  color: #1a7f37; /* verde estilo promo */
}

.card-preco.promo small {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
  margin-left: 4px;
}

.card-imagem {
  position: relative;
}

.card-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================== MODAIS ================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal {
  background: #fff;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 16px 18px 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.modal-subtitle {
  font-size: 12px;
  color: #777;
  margin-bottom: 12px;
}

.modal-options {
  margin-bottom: 12px;
}

.modal-option {
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
}

.modal-option.active {
  border-color: #ea1d2c;
  box-shadow: 0 0 0 1px rgba(234,29,44,0.15);
}

.modal-option-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-option-title {
  font-size: 13px;
  font-weight: 600;
}

.modal-option-desc {
  font-size: 11px;
  color: #777;
}

.modal-option-right {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ddd;
}

.modal-option.active .modal-option-right {
  border-color: #ea1d2c;
  box-shadow: inset 0 0 0 4px #ea1d2c;
}

.modal-footer {
  margin-top: 8px;
}

.modal-footer .btn {
  width: 100%;
}

/* modal horário */

.modal-horario-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-dia-atual {
  border-radius: 8px;
  border: 1px solid #ea1d2c;
  color: #ea1d2c;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.modal-horario-col {
  font-size: 12px;
  color: #666;
}

.modal-horario-lista {
  max-height: 360px;
  overflow-y: auto;
  margin-top: 8px;
}

.modal-horario-item {
  border-radius: 10px;
  border: 1px solid #eee;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

/* ================== ADMIN / LOGIN ================== */

.admin-wrapper {
  max-width: 1120px;
  margin: 80px auto 40px;
  padding: 0 16px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-header h1 {
  font-size: 18px;
}

.admin-header a {
  font-size: 13px;
  color: #ea1d2c;
}

.admin-box {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #eee;
  margin-bottom: 16px;
}

.admin-box h2 {
  font-size: 14px;
  margin-bottom: 8px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.admin-form-row label {
  font-size: 11px;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.admin-form-row input[type="text"],
.admin-form-row input[type="number"],
.admin-form-row input[type="file"],
.admin-form-row textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 6px 8px;
  font-size: 12px;
}

.admin-form-row textarea {
  resize: vertical;
  min-height: 60px;
}

.table-itens {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 12px;
}

.table-itens th,
.table-itens td {
  border-bottom: 1px solid #f0f0f0;
  padding: 6px 4px;
}

.table-itens th {
  text-align: left;
  font-weight: 600;
}

.table-itens td.acoes {
  text-align: right;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
}

.btn-red {
  background: #ea1d2c;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid #ddd;
  color: #444;
}

.login-wrapper {
  max-width: 320px;
  margin: 90px auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  border: 1px solid #eee;
}

.login-wrapper h1 {
  font-size: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.login-wrapper label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.login-wrapper input[type="password"] {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.login-wrapper .btn {
  width: 100%;
}

/* ================== EDITAR PRODUTO ================== */

.edit-wrapper {
  max-width: 640px;
  margin: 80px auto 40px;
  padding: 0 16px;
}

/* ================== RESPONSIVO ================== */

@media (max-width: 1024px) {
  .top-nav-inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
    padding: 4px 12px 8px;
    height: auto;
  }
  .top-left {
    display: none;
  }
  .top-searchbox {
    order: 1;
  }
  .top-right {
    order: 2;
    justify-content: space-between;
  }
  .hero-banner-area,
  .hero-restaurant,
  .hero-toolbar-inner,
  .content {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 900px) {
  .grid-produtos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-card {
    padding: 12px 14px;
  }
}
/* ===== SACOLA (CARRINHO) ===== */

.carrinho-wrapper {
  max-width: 900px;
  margin: 80px auto 40px;
  padding: 0 16px;
}

.carrinho-box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 16px;
}

.carrinho-box h1 {
  font-size: 18px;
  margin-bottom: 12px;
}

.carrinho-vazio {
  font-size: 13px;
}

.carrinho-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 10px;
}

.carrinho-tabela th,
.carrinho-tabela td {
  border-bottom: 1px solid #f0f0f0;
  padding: 6px 4px;
}

.carrinho-tabela th {
  text-align: left;
  font-weight: 600;
}

.carrinho-tabela input[type="number"] {
  width: 60px;
}

.carrinho-acoes {
  margin-top: 6px;
}

.carrinho-resumo {
  margin-top: 10px;
  font-size: 13px;
}

.carrinho-resumo strong {
  font-size: 14px;
}

.carrinho-botoes-finais {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* botão adicionar na card */

.card-add-form {
  margin-top: 6px;
}

.btn-add {
  border-radius: 999px;
  border: none;
  background: #ea1d2c;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
}

/* ===== CHECKOUT ===== */

.checkout-wrapper {
  max-width: 1100px;
  margin: 80px auto 40px;
  padding: 0 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}

.checkout-box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  padding: 14px 16px;
  font-size: 13px;
}

.checkout-box h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.checkout-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.checkout-row label {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
  display: block;
}

.checkout-row input[type="text"],
.checkout-row input[type="number"],
.checkout-row select,
.checkout-row textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 6px 8px;
  font-size: 12px;
}

.checkout-itens {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.checkout-itens li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.checkout-resumo-valores {
  font-size: 13px;
}

.checkout-resumo-valores > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.checkout-total span:last-child {
  font-weight: 700;
}

.resumo-final textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 6px 8px;
  font-size: 11px;
  resize: vertical;
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-row {
    grid-template-columns: 1fr;
  }
}
/* card clicável */
.card-produto {
  cursor: pointer;
}

/* ===== MODAL PRODUTO (estilo iFood) ===== */

.modal-produto {
  max-width: 960px;
  width: 100%;
  padding: 16px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.modal-produto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: stretch;
}

.modal-produto-img {
  background: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-produto-img img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-produto-info {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-nome {
  font-size: 18px;
  font-weight: 600;
}

.mp-desc {
  font-size: 13px;
  color: #555;
}

.mp-detalhe {
  font-size: 12px;
  color: #777;
}

.mp-preco {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

.mp-preco small {
  font-size: 12px;
  text-decoration: line-through;
  color: #999;
  margin-left: 6px;
}

.mp-label {
  font-size: 11px;
  margin-top: 8px;
}

.modal-produto textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 6px 8px;
  font-size: 12px;
  resize: vertical;
  min-height: 60px;
}

.mp-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.mp-qtd {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #ddd;
  overflow: hidden;
}

.mp-qtd-btn {
  border: none;
  background: #f5f5f5;
  padding: 4px 10px;
  font-size: 14px;
  cursor: pointer;
}

.mp-qtd span {
  padding: 4px 12px;
  font-size: 13px;
}

.mp-add {
  flex: 1;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* responsivo */
@media (max-width: 900px) {
  .modal-produto-grid {
    grid-template-columns: 1fr;
  }
}
/* link "Ver mais" no topo */
.link-vermais {
  border: none;
  background: transparent;
  color: #ea1d2c;
  font-size: 11px;
  margin-left: 8px;
  cursor: pointer;
}

/* ===== MODAL LOJA (Sobre / Horário / Pagamento) ===== */

.modal-loja {
  max-width: 520px;
  width: 100%;
  padding: 16px 20px;
  position: relative;
}

.modal-loja .modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.ml-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 10px;
}

.ml-tab {
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  color: #777;
}

.ml-tab.active {
  color: #ea1d2c;
  font-weight: 600;
}

.ml-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #ea1d2c;
}

.ml-conteudo {
  font-size: 13px;
  margin-top: 8px;
}

.ml-conteudo h3 {
  font-size: 13px;
  margin: 10px 0 4px;
}

.ml-texto {
  font-size: 12px;
  color: #444;
  line-height: 1.4;
}

.ml-rodape {
  margin-top: 12px;
  font-size: 11px;
  color: #999;
}

.ml-horario-lista {
  list-style: none;
  padding: 0;
  margin: 4px 0 10px;
  font-size: 12px;
}

.ml-horario-lista li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.ml-dia-ativo span:first-child::before {
  content: "• ";
  color: #ea1d2c;
  font-weight: bold;
}

.ml-pay-lista {
  list-style: none;
  padding: 0;
  margin: 4px 0 10px;
  font-size: 12px;
}

.ml-pay-lista li {
  padding: 3px 0;
}

/* já existia modal-produto, só garantimos cursor no card */
.card-produto {
  cursor: pointer;
}/* ===== AJUSTES DE ALINHAMENTO DOS CARDS DO CARDÁPIO ===== */

/* 2 colunas sempre do mesmo tamanho, com espaçamento um pouco maior */
.grid-produtos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* card com altura mínima e colunas bem proporcionadas */
.card-produto {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 150px;
  align-items: stretch;
  min-height: 150px;
}

/* texto ocupando toda a altura, preço sempre colado embaixo */
.card-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* garante que nome/descrição não “estourem” o layout */
.card-nome {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.3;
}

.card-descricao,
.card-detalhe {
  font-size: 11px;
  line-height: 1.3;
}

/* bloco de imagem com altura fixa para alinhar as linhas */
.card-imagem {
  position: relative;
  height: 150px;
  overflow: hidden;
}

/* imagem sempre cobrindo o espaço sem distorcer */
.card-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* mobile continua 1 coluna, mas aproveita os mesmos ajustes */
@media (max-width: 900px) {
  .grid-produtos {
    grid-template-columns: 1fr;
  }

  .card-produto {
    grid-template-columns: minmax(0, 2fr) 120px;
    min-height: 130px;
  }

  .card-imagem {
    height: 130px;
  }
}
/* ===== TOPO ESTILO IFOOD ===== */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.top-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* logo "ifood" simples */
.top-logo {
  font-weight: 700;
  color: #e1001a;
  font-size: 20px;
  margin-right: 16px;
}

/* menu do topo */
.top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.top-menu span {
  color: #666;
  cursor: pointer;
}

.top-menu span.active {
  color: #e1001a;
  font-weight: 600;
}

/* busca central */
.top-searchbox {
  flex: 1;
  max-width: 520px;
}

.top-searchbox input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #eee;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  background: #fafafa;
}

.top-searchbox input:focus {
  border-color: #e1001a;
  background: #fff;
}

/* lado direito: endereço + sacola */
.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  white-space: nowrap;
}

.top-right span {
  color: #555;
}

/* ===== META DA LOJA / WHATSAPP ===== */

.hero-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #777;
}

.hero-meta-sep {
  color: #ddd;
}

.hero-minimo {
  color: #555;
}

.hero-minimo strong {
  font-weight: 600;
}

/* botão WhatsApp loja */
.btn-whats-loja {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border: none;
}

.btn-whats-loja::before {
  content: "📲";
  font-size: 13px;
}

.btn-whats-loja:hover {
  background: #16a34a;
}

/* link "Ver mais" no mesmo estilo do ifood */
.link-vermais {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #e1001a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== RESPONSIVO TOPO ===== */
@media (max-width: 900px) {
  .top-nav-inner {
    height: auto;
    padding: 8px 10px;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .top-left {
    width: 100%;
    justify-content: flex-start;
  }

  .top-searchbox {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .top-right {
    order: 2;
    font-size: 11px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-meta {
    flex-wrap: wrap;
  }
}
/* ===== AJUSTE ESPECÍFICO PARA CELULAR (TOPO + META LOJA) ===== */
@media (max-width: 768px) {

  /* topo vira “grade” igual app: logo + cart em cima, busca embaixo */
  .top-nav-inner {
    max-width: 100%;
    padding: 6px 8px 10px;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo cart"
      "search search";
    column-gap: 8px;
    row-gap: 6px;
  }

  /* só o logo fica visível, menu some no mobile */
  .top-left {
    grid-area: logo;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .top-menu {
    display: none;
  }

  .top-logo {
    font-size: 18px;
    margin-right: 0;
  }

  .top-searchbox {
    grid-area: search;
    max-width: 100%;
  }

  .top-searchbox input {
    font-size: 12px;
    padding: 7px 12px;
  }

  .top-right {
    grid-area: cart;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    white-space: normal;
    text-align: right;
  }

  .top-right span {
    line-height: 1.2;
  }

  /* bloco da loja encosta mais nas bordas no mobile */
  .hero-banner-area,
  .hero-restaurant,
  .hero-toolbar-inner,
  .content {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* meta da loja (ver mais | mínimo | whatsapp) quebra em linhas bonitinhas */
  .hero-meta {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
    font-size: 11px;
  }

  .btn-whats-loja {
    margin-top: 2px;
  }
}
/* container do link da sacola no topo */
.top-cart {
  font-size: 12px;
  color: #555;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.15s ease;
}

/* quando tiver itens: cor e “pílula” destacada */
.top-cart-full {
  color: #e1001a;
  border-color: #ffe2e6;
  background: #fff5f7;
  font-weight: 600;
}
/* ===== CARRINHO – LAYOUT FACIL PARA LEIGO ===== */

.carrinho-wrapper {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 0 10px;
}

.carrinho-box {
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.carrinho-header-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.carrinho-header-linha h1 {
  font-size: 20px;
  margin: 0;
}

.link-voltar-cardapio {
  font-size: 13px;
  color: #e1001a;
  text-decoration: none;
}

.carrinho-vazio {
  margin-top: 10px;
  font-size: 14px;
}

/* blocos de etapas */
.carrinho-step {
  margin-top: 12px;
  margin-bottom: 12px;
}

.carrinho-step-titulo {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

/* tabela */
.carrinho-tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.carrinho-tabela th,
.carrinho-tabela td {
  border-bottom: 1px solid #eee;
  padding: 6px 4px;
}

.carrinho-tabela th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: #555;
}

.carrinho-tabela input[type=number] {
  width: 70px;
}

/* formulários */
.carrinho-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 4px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.campo label {
  font-size: 12px;
  color: #555;
}

.campo input,
.campo select,
.campo textarea {
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 6px 8px;
  font-size: 13px;
}

#campo_troco {
  grid-column: 1 / -1;
}

/* ações */
.carrinho-acoes {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.carrinho-resumo {
  margin-top: 12px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.carrinho-botoes-finais {
  margin-top: 14px;
}

.btn-whats-final {
  width: 100%;
  font-size: 15px;
}

/* responsivo */
@media (max-width: 768px) {
  .carrinho-box {
    padding: 14px 12px 18px;
  }

  .carrinho-form {
    grid-template-columns: 1fr;
  }

  .carrinho-resumo {
    flex-direction: column;
    align-items: flex-start;
  }

  .carrinho-header-linha {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== BOTÃO STATUS ATIVO / INATIVO (PAINEL) ===== */

.btn-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  min-width: 70px;
}

.status-ativo {
  background: #16a34a;      /* verde */
  border-color: #15803d;
  color: #ffffff;
}

.status-ativo:hover {
  background: #15803d;
}

.status-inativo {
  background: #fee2e2;      /* fundo claro */
  border-color: #dc2626;
  color: #b91c1c;           /* vermelho escuro no texto */
}

.status-inativo:hover {
  background: #fecaca;
}
/* ===== CARRINHO MAIS BONITO NO CELULAR ===== */
@media (max-width: 768px) {

  .carrinho-wrapper {
    margin: 16px auto 32px;
    padding: 0 8px;
  }

  .carrinho-box {
    padding: 12px 10px 18px;
    border-radius: 10px;
  }

  .carrinho-header-linha h1 {
    font-size: 18px;
  }

  .carrinho-header-linha {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* tabela vira "cards" empilhados */
  .carrinho-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border: 0;
  }

  .carrinho-tabela thead {
    display: none; /* some o cabeçalho no celular */
  }

  .carrinho-tabela tbody,
  .carrinho-tabela tr,
  .carrinho-tabela td {
    display: block;
    width: 100%;
  }

  .carrinho-tabela tr {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fafafa;
  }

  .carrinho-tabela td {
    border: 0;
    padding: 3px 0;
  }

  /* primeira célula (nome do item) em negrito */
  .carrinho-tabela td:first-child {
    font-weight: 600;
    margin-bottom: 2px;
  }

  /* input de quantidade ocupa a linha inteira, fácil de tocar */
  .carrinho-tabela input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 6px;
  }

  .carrinho-resumo {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 14px;
    margin-top: 12px;
  }

  .carrinho-acoes {
    flex-direction: column;
  }

  .carrinho-acoes .btn,
  .carrinho-botoes-finais .btn {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 8px 0;
  }

  .btn-whats-final {
    font-size: 15px;
  }
}
/* Detalhe tipo "Serve 1 pessoa (500g)" igual iFood */
.card-detalhe {
  font-size: 11px;
  color: #222;        /* mais escuro */
  font-weight: 600;   /* negrito na linha toda */
  margin-bottom: 6px;
}
/* ========= UPSELL NO CARRINHO ========= */

.upsell-box {
  margin: 10px 0 18px;
  padding: 12px;
  border-radius: 8px;
  background: #fff7f5;
  border: 1px solid #ffe0d5;
}

.upsell-titulo {
  font-size: 14px;
  margin: 0 0 2px;
}

.upsell-subtitulo {
  font-size: 11px;
  color: #666;
  margin: 0 0 8px;
}

.upsell-grid {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.upsell-item {
  display: flex;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  min-width: 220px;
  max-width: 260px;
  padding: 6px;
}

.upsell-img-wrap {
  flex: 0 0 70px;
  margin-right: 6px;
}

.upsell-img-wrap img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.upsell-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.upsell-nome {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.upsell-detalhe {
  font-size: 11px;
  color: #666;
  margin-bottom: 2px;
}

.upsell-preco {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.btn-upsell {
  padding: 4px 8px;
  font-size: 11px;
  width: 100%;
}

/* em telas pequenas deixa a grid 100% */
@media (max-width: 600px) {
  .upsell-grid {
    flex-wrap: nowrap;
  }
}
