/* ============================================================
   BASE
   ============================================================ */
body.page-cardapio {
  background: #f5f0eb;
  padding-top: 68px;
  min-height: 100vh;
}

body.page-cardapio .navbar {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
body.page-cardapio .navbar .logo-name { color: var(--primary); }
body.page-cardapio .navbar .logo-sub  { color: var(--text-muted); }
body.page-cardapio .navbar .hamburger span { background: var(--dark); }
/* nav-links está fora do .navbar agora — usa seletor de irmão */
body.page-cardapio .nav-links .nav-link  { color: var(--text); }
body.page-cardapio .nav-links .nav-link:hover,
body.page-cardapio .nav-links .nav-link.active { color: var(--primary); background: rgba(230,92,0,.08); }

/* ============================================================
   BARRA DE PROGRESSO (topo)
   ============================================================ */
.progress-bar-outer {
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  height: 4px;
  background: #e8e0d8;
  z-index: 90;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width .5s cubic-bezier(.4,0,.2,1);
  border-radius: 0 4px 4px 0;
}

/* ============================================================
   WRAPPER E CONTAINER
   ============================================================ */
.wizard-wrapper {
  padding-top: 4px;
}

.wizard-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* ============================================================
   INDICADOR DE ETAPAS
   ============================================================ */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  padding: 20px 0 0;
}

.step-dot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-dot-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8e0d8;
  color: #aaa;
  font-size: .85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.step-dot-item span {
  font-size: .72rem;
  color: #bbb;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.step-dot-item.active .step-dot-circle {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(230,92,0,.4);
  transform: scale(1.1);
}
.step-dot-item.active span { color: var(--primary); font-weight: 700; }

.step-dot-item.done .step-dot-circle {
  background: var(--green);
  color: var(--white);
}
.step-dot-item.done span { color: var(--green); }

.step-connector {
  width: 60px;
  height: 2px;
  background: #e8e0d8;
  margin: -20px 4px 0;
  transition: var(--transition);
}
.step-connector.done { background: var(--green); }

/* ============================================================
   WIZARD STEPS
   ============================================================ */
.wizard-step {
  display: none;
  animation: stepIn .35s cubic-bezier(.4,0,.2,1);
}
.wizard-step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-header {
  margin-bottom: 20px;
}
.step-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.step-header p { color: var(--text-muted); font-size: .88rem; }

/* ============================================================
   TABS DE SUB-CATEGORIA (Etapa 1)
   ============================================================ */
.sub-cat-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.sub-cat-tabs::-webkit-scrollbar { display: none; }

.sct-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 2px solid #e8e0d8;
  background: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.sct-btn:hover { border-color: var(--primary); color: var(--primary); }
.sct-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.items-group { display: none; }
.items-group.active { display: block; }

/* ============================================================
   LISTA DE ITENS
   ============================================================ */
.items-list { display: flex; flex-direction: column; gap: 10px; }

.item-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--white);
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.item-row:hover { border-color: rgba(230,92,0,.25); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.item-row.has-items { border-color: var(--primary); background: #fff8f0; }
.item-row.item-destaque { border-left: 4px solid var(--secondary); }

.item-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--secondary);
  color: var(--dark);
  font-size: .63rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}

.item-img {
  width: 72px; height: 72px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.item-img.has-img { padding: 0; }
.item-img.has-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.apc-thumb.has-img { padding: 0; }
.apc-thumb.has-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.ad-emoji-box.has-img { padding: 0; overflow: hidden; }
.ad-emoji-box.has-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.item-info { min-width: 0; }
.item-info h4 {
  font-size: .9rem; font-weight: 700; color: var(--dark);
  margin-bottom: 3px;
}
.item-info p {
  font-size: .78rem; color: var(--text-muted); line-height: 1.4;
  margin-bottom: 5px;
}
.item-price { font-size: .9rem; font-weight: 800; color: var(--primary); }

.item-ctrl { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.ctrl-add, .ctrl-remove {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ctrl-add { background: var(--primary); color: var(--white); }
.ctrl-add:hover { background: var(--primary-dark); transform: scale(1.1); }
.ctrl-remove:hover { background: #fee2e2; border-color: #ef4444; color: #ef4444; }
.ctrl-qty { font-size: .95rem; font-weight: 800; color: var(--dark); min-width: 18px; text-align: center; }

/* ============================================================
   ADICIONAIS POR PASTEL
   ============================================================ */

.adicional-pastel-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border: 1px solid #f0ebe4;
  margin-bottom: 16px;
  animation: stepIn .3s ease;
}

/* Cabeçalho do card do pastel */
.apc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff8f0, #fff3e6);
  border-bottom: 1px solid #f5ede2;
}

.apc-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.apc-info { flex: 1; }
.apc-info h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}
.apc-info small {
  font-size: .75rem;
  color: var(--text-muted);
}

.apc-adicionais-resumo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.apc-tag {
  background: var(--primary);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  animation: popIn .2s ease;
}

/* Lista de adicionais dentro do card */
.apc-list {
  padding: 8px 0;
}

.adicional-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #faf5f0;
  transition: var(--transition);
}
.adicional-row:last-child { border-bottom: none; }
.adicional-row:hover { background: #fdf9f5; }
.adicional-row.has-items { background: #fff8f0; }

.ad-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.ad-emoji-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f5f0eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.adicional-row.has-items .ad-emoji-box { background: rgba(230,92,0,.1); }

.ad-text { min-width: 0; }
.ad-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  display: block;
}
.ad-price {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
}

/* ============================================================
   SALADA TOGGLE — dentro dos cards de adicionais
   ============================================================ */
.apc-salada-separator {
  padding: 8px 20px 6px;
  border-top: 1px solid #f0ebe4;
  background: #fafaf8;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.apc-salada-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 16px;
  background: #fafaf8;
}

.salada-toggle-btn {
  background: #f0ebe4;
  color: var(--text-muted);
  border: 2px solid #e8e0d8;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.salada-toggle-btn.active {
  background: rgba(37,211,102,.12);
  color: #16a34a;
  border-color: #25d366;
}
.salada-toggle-btn:hover {
  transform: scale(1.04);
}

/* ============================================================
   SALADA — GRID DE CARDS (etapa antiga, mantido por compatibilidade)
   ============================================================ */
.salada-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.salada-card input[type="radio"] { display: none; }

.salada-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 14px;
  border: 2px solid #e8e0d8;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  background: var(--white);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.salada-box:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.salada-card input:checked + .salada-box {
  border-color: var(--primary);
  background: rgba(230,92,0,.07);
  box-shadow: 0 0 0 4px rgba(230,92,0,.12);
}

.salada-icon { font-size: 2.2rem; }
.salada-box strong { font-size: .88rem; color: var(--dark); }
.salada-box small { font-size: .74rem; color: var(--text-muted); line-height: 1.4; }
.salada-preco { font-size: .82rem; font-weight: 700; color: var(--primary); margin-top: 2px; }
.salada-preco.free { color: var(--green); }

/* ============================================================
   AÇÕES DOS STEPS
   ============================================================ */
.step-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-actions.two-btns {
  flex-direction: row;
  gap: 12px;
}

/* Card de resumo da seleção */
.step-resumo-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border: 1px solid #f0ebe4;
}

.step-resumo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fff8f0, #fff3e6);
  border-bottom: 1px solid #f5ede2;
}

.step-resumo-card-header span:first-child {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

.step-resumo-card-count {
  background: var(--primary);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}

.step-resumo-card-items {
  padding: 6px 0;
}

.step-resumo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  gap: 12px;
  border-bottom: 1px solid #faf5f0;
  animation: fadeInRow .25s ease;
}
.step-resumo-item:last-child { border-bottom: none; }

@keyframes fadeInRow {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.sri-sep {
  width: 100%;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--primary);
  padding: 6px 0 2px;
  opacity: .7;
}

.sri-sep:first-child { padding-top: 0; }

.sri-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.sri-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sri-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.sri-addon-tag {
  font-size: .68rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(230, 92, 0, .1);
  border: 1px solid rgba(230, 92, 0, .25);
  border-radius: 20px;
  padding: 1px 7px;
  white-space: nowrap;
}

.sri-qty {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  font-size: .78rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sri-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
}

.sri-price {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.step-resumo-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #faf5f0;
  border-top: 2px solid #f0e6d8;
}

.step-resumo-card-footer span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-resumo-card-footer strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

/* Estado vazio */
.step-resumo-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  color: #bbb;
  font-size: .85rem;
}
.step-resumo-empty span:first-child { font-size: 1.2rem; opacity: .4; }

.btn-next, .btn-finalizar-step {
  flex: 1;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 16px 24px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-next:hover, .btn-finalizar-step:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,92,0,.35);
}

.btn-finalizar-step {
  background: linear-gradient(135deg, var(--primary), #ff7b2e);
  font-size: 1rem;
}

.btn-back {
  background: #f0ebe4;
  color: var(--text-muted);
  border: none;
  padding: 16px 20px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-back:hover { background: #e8e0d8; color: var(--text); }

/* ============================================================
   MODAL CHECKOUT
   ============================================================ */
.checkout-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1100;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.checkout-overlay.open { display: flex; }

.checkout-modal {
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}

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

.checkout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
  border-radius: 24px 24px 0 0;
}
.checkout-header h2 { font-size: 1.2rem; font-weight: 800; }
.checkout-header p  { color: var(--text-muted); font-size: .85rem; margin-top: 2px; }
.checkout-close {
  width: 44px; height: 44px; background: #f0f0f0;
  border: none; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.checkout-close:hover { background: #ddd; }

.checkout-body { display: grid; grid-template-columns: 1fr 1fr; }

.checkout-resumo {
  padding: 20px 24px;
  background: #faf7f4;
  border-right: 1px solid #f0f0f0;
}
.checkout-resumo h3,
.checkout-form h3 {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-muted); margin-bottom: 12px;
}

.checkout-resumo-item {
  display: flex; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid #f0ebe4; font-size: .85rem;
}
.checkout-resumo-item span:last-child { color: var(--primary); font-weight: 700; }

.checkout-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px;
}
.checkout-total span { font-size: .88rem; color: var(--text-muted); font-weight: 600; }
.checkout-total strong { font-size: 1.3rem; color: var(--primary); }

.checkout-form { padding: 20px 24px; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.cf-group { margin-bottom: 12px; }
.cf-row .cf-group { margin-bottom: 0; }
.cf-group label { display: block; font-size: .78rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cf-group input, .cf-group textarea {
  width: 100%; padding: 10px 13px;
  border: 2px solid #e8e0d8; border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif; font-size: .85rem; color: var(--text);
  outline: none; transition: var(--transition);
}
.cf-group input:focus, .cf-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,92,0,.1); }
.cf-group textarea { resize: none; height: 54px; }

.entrega-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opcao-radio input { display: none; }
.opcao-box {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 2px solid #e8e0d8; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
}
.opcao-radio input:checked + .opcao-box { border-color: var(--primary); background: rgba(230,92,0,.06); }
.opcao-icon { font-size: 1.3rem; }
.opcao-box strong { display: block; font-size: .8rem; color: var(--dark); }
.opcao-box small  { font-size: .7rem; color: var(--text-muted); }

.pix-info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #25d366;
  border-radius: var(--radius-sm);
  background: rgba(37,211,102,.07);
}
.pix-icon { font-size: 1.4rem; flex-shrink: 0; }
.pix-info-box strong { display: block; font-size: .88rem; color: var(--dark); font-weight: 700; }
.pix-info-box small  { font-size: .75rem; color: var(--text-muted); }
.pix-check {
  margin-left: auto;
  width: 24px; height: 24px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pix-aviso {
  background: rgba(249,168,37,.12);
  border: 1px solid rgba(249,168,37,.4);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .78rem;
  color: #7a5800;
  line-height: 1.5;
  margin-top: 4px;
}
.pix-aviso strong { color: #5a3e00; }

.btn-confirmar-pedido {
  width: 100%; background: #e65c00; color: #ffffff; border: none;
  padding: 15px; border-radius: 50px;
  font-family: 'Poppins', sans-serif; font-size: .92rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 6px; transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(230,92,0,.3);
  appearance: none; -webkit-appearance: none;
}
.btn-confirmar-pedido:hover { background: #c44d00; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,92,0,.4); }
.btn-confirmar-pedido:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Mobile geral */
@media (max-width: 640px) {
  /* Wizard */
  .wizard-container { padding: 12px 12px 80px; }
  .step-header { margin-bottom: 16px; }
  .step-header h2 { font-size: 1.4rem; }
  .step-header p { font-size: .83rem; }
  .step-connector { width: 28px; }

  /* Tabs */
  .sct-btn { padding: 7px 15px; font-size: .8rem; }

  /* Linhas de produto */
  .item-row { grid-template-columns: 56px 1fr auto; gap: 10px; padding: 11px 12px; }
  .item-img { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 10px; }
  .item-info h4 { font-size: .85rem; }
  .item-info p { font-size: .75rem; }
  .item-price { font-size: .85rem; }
  .ctrl-add, .ctrl-remove { width: 40px; height: 40px; font-size: 1rem; }
  .ctrl-qty { font-size: .88rem; }

  /* Adicional cards */
  .apc-header { padding: 13px 14px; gap: 10px; }
  .apc-thumb { width: 44px; height: 44px; font-size: 1.4rem; border-radius: 10px; }
  .apc-info h4 { font-size: .88rem; }
  .apc-info small { font-size: .7rem; }
  .adicional-row { padding: 10px 14px; gap: 8px; }
  .ad-emoji-box { width: 34px; height: 34px; font-size: 1.1rem; border-radius: 8px; }
  .ad-name { font-size: .84rem; }
  .ad-price { font-size: .75rem; }

  /* Salada toggle */
  .apc-salada-separator { padding: 7px 14px 5px; font-size: .64rem; }
  .apc-salada-row { padding: 10px 14px 13px; gap: 8px; }
  .salada-toggle-btn { padding: 7px 12px; font-size: .74rem; }

  /* Resumo cards */
  .step-resumo-card-header { padding: 11px 14px; }
  .step-resumo-card-header span:first-child { font-size: .72rem; }
  .step-resumo-item { padding: 8px 14px; }
  .sri-name { font-size: .84rem; }
  .sri-price { font-size: .84rem; }
  .step-resumo-card-footer { padding: 10px 14px; }
  .step-resumo-card-footer span { font-size: .78rem; }
  .step-resumo-card-footer strong { font-size: 1rem; }

  /* Botões de etapa */
  .btn-next, .btn-finalizar-step { font-size: .88rem; padding: 14px 16px; }
  .btn-back { padding: 14px 14px; font-size: .84rem; }

  /* Checkout — bottom sheet no mobile */
  .checkout-overlay { padding: 0; align-items: flex-end; }
  .checkout-modal { border-radius: 20px 20px 0 0; max-height: 92vh; width: 100%; }
  .checkout-header { padding: 16px 16px 12px; border-radius: 20px 20px 0 0; }
  .checkout-header h2 { font-size: 1.05rem; }
  .checkout-header p { font-size: .78rem; }
  .checkout-body { grid-template-columns: 1fr; }
  .checkout-resumo { border-right: none; border-bottom: 1px solid #f0f0f0; padding: 14px 16px; }
  .checkout-resumo h3 { font-size: .68rem; }
  .checkout-resumo-item { font-size: .82rem; padding: 6px 0; }
  .checkout-total { padding-top: 10px; }
  .checkout-total span { font-size: .82rem; }
  .checkout-total strong { font-size: 1.15rem; }
  .checkout-form { padding: 14px 16px; }
  .checkout-form h3 { font-size: .68rem; margin-bottom: 10px; }
  .cf-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .cf-group { margin-bottom: 10px; }
  .cf-group label { font-size: .74rem; }
  .cf-group input, .cf-group textarea { padding: 12px; font-size: 1rem; }
  .entrega-opcoes { gap: 8px; }
  .opcao-box { padding: 9px 10px; gap: 7px; }
  .opcao-icon { font-size: 1.2rem; }
  .opcao-box strong { font-size: .78rem; }
  .opcao-box small  { font-size: .67rem; }
  .pix-info-box { padding: 10px 12px; gap: 10px; }
  .pix-info-box strong { font-size: .84rem; }
  .pix-info-box small { font-size: .72rem; }
  .pix-aviso { font-size: .74rem; padding: 9px 12px; }
  .btn-confirmar-pedido { padding: 14px; font-size: .88rem; }
}

/* Telemóvel estreito */
@media (max-width: 420px) {
  .wizard-container { padding: 10px 10px 80px; }
  .step-actions.two-btns { flex-direction: column-reverse; gap: 8px; }
  .btn-back { text-align: center; }
  .apc-info small { display: none; }
  .sct-btn { padding: 7px 13px; font-size: .77rem; }
  .item-row { grid-template-columns: 52px 1fr auto; gap: 8px; padding: 10px 10px; }
  .item-img { width: 52px; height: 52px; font-size: 1.5rem; }
}

/* Telemóvel muito pequeno */
@media (max-width: 380px) {
  .step-dot-item span { display: none; }
  .step-connector { width: 20px; }
  .step-dot-circle { width: 30px; height: 30px; font-size: .78rem; }
  .checkout-modal { max-height: 96vh; }
}

/* ─── Validação de campos ────────────────────────────────────────────────── */
.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220,38,38,.2);
  animation: shake .3s ease;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

.entrega-warn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff8e1;
  border: 1.5px solid #f59e0b;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 10px;
  color: #92400e;
  font-size: .82rem;
  font-weight: 600;
  animation: shake .3s ease;
}
.entrega-warn.hidden { display: none; }
.entrega-warn i { color: #f59e0b; font-size: 1rem; flex-shrink: 0; }

.entrega-sem-selecao {
  outline: 2px solid #dc2626;
  outline-offset: 4px;
  border-radius: 12px;
}

/* ─── Staff: modal de pagamento ───────────────────────────────────────────── */
.spm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f4ef;
  border: 1px solid #e8e0d8;
  border-radius: 8px;
  padding: 8px 10px;
  transition: border-color .15s;
}
.spm-row:has(.spm-cb:checked) {
  border-color: #e65c00;
  background: rgba(230,92,0,.04);
}
.spm-label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  font-size: .82rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  color: #1a1a1a;
}
.spm-cb {
  accent-color: #e65c00;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.spm-val {
  width: 88px;
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 6px;
  padding: 5px 8px;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  text-align: right;
  transition: border-color .15s;
  flex-shrink: 0;
}
.spm-val:focus { outline: none; border-color: #e65c00; }
.spm-val:disabled { opacity: .3; background: #f8f4ef; cursor: default; }
