:root {
  /* Identidade Porção Nobre: preto, dourado e vermelho */
  /* Fundo claro; topo preto com a logo, vermelho nas ações, dourado nos detalhes */
  color-scheme: light;
  --brand: #c8102e;
  --brand-dark: #8e0b20;
  --brand-soft: #fcebed;
  --ink: #000000;
  --gold: #c9973f;
  --gold-light: #8a5d0e;      /* dourado escuro para texto sobre branco */
  --gold-bright: #f2d38c;     /* dourado claro para texto sobre preto */
  --gold-soft: #fbf3e2;
  --accent: var(--gold);
  --ok: #1f8a4c;
  --whats: #25d366;
  --bg: #f5f3f0;
  --card: #ffffff;
  --field: #ffffff;
  --text: #1a1715;
  --muted: #6f6760;
  --line: #e6e1dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
  --max: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  padding-bottom: 96px;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.view { max-width: var(--max); margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; text-align: center; padding: 28px 16px 22px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: #000; /* mesmo preto do fundo da logo */
  border-bottom: 2px solid var(--gold);
}
.hero.has-logo { padding-top: 8px; }
.hero.has-logo .logo {
  width: min(260px, 70vw); height: auto; aspect-ratio: 1; border-radius: 0; border: 0;
  background: transparent; box-shadow: none; margin-bottom: 0;
}
.hero.has-logo h1, .hero.has-logo .tagline {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hero.has-logo .hero-meta { margin-top: -6px; }
@media (min-width: 761px) { .hero { border-radius: 0 0 var(--radius) var(--radius); } }
.hero-inner { position: relative; }
.logo {
  width: 92px; height: 92px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--field); display: grid; place-items: center; font-size: 44px;
  box-shadow: 0 4px 18px rgba(0,0,0,.25); overflow: hidden; border: 3px solid rgba(255,255,255,.85);
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.tagline { margin: 4px 0 12px; opacity: .88; }
.hero-meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
  background: rgba(255,255,255,.16); font-weight: 600; font-size: 13px;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9e9e9e; }
.badge.open::before { background: #4ade80; }
.badge.closed::before { background: #fbbf24; }
.btn-whats {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
  background: var(--whats); color: #fff; font-weight: 600; font-size: 13px; text-decoration: none;
}

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 12px 16px; }
.welcome { text-align: center; margin-top: -2px; }
.welcome strong { font-size: 16px; }
.welcome p { margin: 4px 0 0; color: var(--muted); }
.welcome .notice { color: var(--gold-light); font-weight: 500; font-size: 13px; margin-top: 8px; }
h3 { font-size: 15px; margin: 0 0 10px; }
h3 em { font-style: normal; font-weight: 500; color: var(--gold); font-size: 13px; }
.mt { margin-top: 18px; }

/* ---------- Tabs ---------- */
/* barra fixa: só aparece depois que o cliente rola para baixo (nome + lupa + categorias em abas),
   na mesma largura dos quadros de produtos */
.stick { display: none; }
.stick.scrolled { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 30; margin: 0 auto;
  width: calc(100% - 32px); max-width: calc(var(--max) - 32px); background: #fff; border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 12px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.08); animation: mhIn .18s ease-out; overflow: hidden; }
.mini-head { display: flex; align-items: center; gap: 10px; padding: 10px 8px 8px 16px; border-bottom: 1px solid #f1ede9; }
@keyframes mhIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mh-txt { flex: 1; min-width: 0; text-align: center; padding-left: 36px; }
.mh-txt strong { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-txt small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-search { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.mh-search:hover { background: #f1ede9; }
.tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 8px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 13px 14px 11px; border-bottom: 2.5px solid transparent;
  text-decoration: none; color: var(--text); font-weight: 500; font-size: 14px; white-space: nowrap;
}
.tabs a:hover { color: var(--brand); }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.search-wrap { padding: 12px 16px 0; position: relative; scroll-margin-top: 60px; }
.search-wrap input { padding-right: 42px !important; }
.search-wrap input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.search-close { position: absolute; right: 24px; top: 50%; transform: translateY(calc(-50% + 6px)); width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: #f1ede9; color: var(--muted); font-size: 13px; cursor: pointer; }
/* tela de busca */
.search-ov { position: fixed; inset: 0; z-index: 60; background: rgba(20,16,14,.45); display: flex; justify-content: center; }
.so-panel { width: 100%; max-width: var(--max); height: 100%; background: #fff; display: flex; flex-direction: column; animation: soIn .18s ease-out; }
@keyframes soIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body.so-open { overflow: hidden; }
.so-bar { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.so-field { display: flex; align-items: center; gap: 10px; border: 2px solid var(--brand); border-radius: 12px; padding: 0 6px 0 12px; color: var(--muted); background: #fff; }
.so-field input { flex: 1; min-width: 0; border: 0; outline: none; padding: 12px 0; font: inherit; font-size: 16px; color: var(--text); background: transparent; }
.so-field input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.so-close { flex: none; width: 34px; height: 34px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.so-close:hover { background: #f1ede9; color: var(--text); }
.so-body { flex: 1; overflow-y: auto; padding: 8px 0 24px; }
.so-empty { min-height: 70%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.so-empty h3 { margin: 14px 0 6px; font-size: 18px; }
.so-empty p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.so-list { margin-top: 8px; box-shadow: none; border: 1px solid var(--line); }
.so-none { text-align: center; color: var(--muted); margin: 40px 16px; }
/* lupa no canto de cima da foto de capa */
.search-fab { position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; border-radius: 12px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: #1a1715; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.search-fab:hover { background: #fff; }
.search-wrap input {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--field);
}

/* ---------- Produtos ---------- */
.cat { scroll-margin-top: 112px; }
.cat h2 { margin: 22px 16px 8px; font-size: 18px; font-weight: 800; }
.plist { list-style: none; margin: 0 16px; padding: 0; background: var(--field); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pitem { display: flex; gap: 12px; padding: 14px; border-top: 1px solid var(--line); cursor: pointer; align-items: center; }
.pitem:first-child { border-top: 0; }
.pitem:hover { background: #faf8f6; }
.pinfo { flex: 1; min-width: 0; }
.pname { font-weight: 600; margin: 0; }
.pdesc { color: var(--muted); font-size: 13px; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pprice { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pprice .now { font-weight: 600; color: var(--text); }
.pprice .old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.pprice .unit { color: var(--muted); font-size: 12px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-bottom: 4px; }
.tag.promo { background: var(--gold-soft); color: var(--gold-light); }
.tag.star { background: var(--brand-soft); color: var(--brand); }
.pside { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; align-self: center; }
.pthumb {
  width: 76px; height: 76px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; font-size: 34px; overflow: hidden; flex: none;
}
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.btn-ask {
  border: 0; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px;
  padding: 6px 16px; border-radius: 99px; cursor: pointer;
}
.in-cart { font-size: 11px; font-weight: 700; color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 24px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 28px 16px; }

/* ---------- Barra do carrinho ---------- */
.cart-bar {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(calc(100% - 32px), calc(var(--max) - 32px)); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  border: 1px solid var(--gold);
}
.cart-qty { background: var(--brand); border-radius: 8px; padding: 2px 9px; }
#cart-bar-total { color: var(--gold-bright); }

/* ---------- Linha de boas-vindas com setinha + janela "Sobre a loja" ---------- */
.hero .welcome { position: relative; cursor: pointer; padding-right: 40px !important; padding-left: 40px !important; }
.hero .welcome:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.welcome-chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; }
.about-dlg:not([open]) { display: none; }
.about-dlg[open] { display: flex; flex-direction: column; }
.ab-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.ab-back { border: 0; background: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.ab-back:hover { background: #f1ede9; }
.ab-body { overflow-y: auto; padding: 0 18px 18px; }
.ab-sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ab-sec:last-child { border-bottom: 0; }
.ab-sec h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.ab-txt { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.ab-status { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.ab-status.open { color: #166534; } .ab-status.closed { color: #991b1b; }
.ab-hours, .ab-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.ab-hours li.today { color: var(--text); font-weight: 600; }
.ab-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 99px; padding: 3px; margin: 4px 0 12px; }
.ab-seg button { border: 0; background: none; border-radius: 99px; padding: 8px; font: inherit; font-size: 14px; cursor: pointer; color: var(--muted); }
.ab-seg button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--brand); }

/* ---------- Modal produto ---------- */
dialog.sheet {
  border: 0; padding: 0; width: min(100%, 520px); max-height: 92vh; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden;
}
dialog.sheet::backdrop { background: rgba(20,10,8,.55); }
@media (max-width: 560px) {
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 18px 18px 0 0; }
}
#product-form { display: flex; flex-direction: column; max-height: 92vh; }
.close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0,0,0,.7) !important; color: #fff; }
/* Foto do produto: faixa de altura fixa, a imagem nunca vaza para o resto da janela */
.pm-img {
  position: relative; height: clamp(170px, 34vh, 260px); overflow: hidden; flex: none;
  background: var(--brand-soft); display: grid; place-items: center; font-size: 64px;
}
.pm-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-img.has-photo { background: #000; border-bottom: 2px solid var(--gold); }
.pm-img.has-photo::after { /* leve sombra embaixo para a foto "assentar" */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent); pointer-events: none;
}
.pm-body { padding: 16px; overflow-y: auto; background: var(--card); }
.pm-body h2 { margin: 0; font-size: 20px; }
.pm-desc { color: var(--muted); margin: 4px 0 6px; }
.pm-price { font-weight: 700; color: var(--brand); margin: 0 0 16px; }
.pm-body h3 { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--field); padding: 8px 14px; border-radius: 99px;
  font-weight: 600; font-size: 13px; cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-light); }
.stepper { display: flex; align-items: center; gap: 0; margin: 12px 0 4px; width: max-content; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 46px; height: 44px; border: 0; background: var(--field); font-size: 22px; cursor: pointer; color: var(--brand); }
.stepper button:disabled { color: #ccc; cursor: default; }
.stepper output { min-width: 96px; text-align: center; font-weight: 700; font-size: 16px; }
.pm-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex: none; }
.pm-foot .btn-primary { width: 100%; display: flex; justify-content: space-between; }

/* ---------- Forms ---------- */
.f { display: block; margin-top: 12px; }
.f > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.f input, .f select, .f textarea, #slot {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field);
}
.f input:focus, .f select:focus, .f textarea:focus, #slot:focus, .search-wrap input:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand);
}
.row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.hint.warn { color: var(--gold-light); font-weight: 600; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: var(--brand); color: #fff; font-weight: 700; padding: 14px 18px;
  border-radius: 12px; cursor: pointer; text-decoration: none; font-size: 15px;
}
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { border: 0; background: none; color: var(--gold-light); font-weight: 600; padding: 12px; cursor: pointer; }
.icon-btn { border: 0; background: var(--field); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 18px; box-shadow: var(--shadow); }

/* ---------- Carrinho ---------- */
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 2px; }
.topbar h2 { margin: 0; font-size: 20px; }
.link-add { border: 0; background: none; color: var(--gold-light); font-weight: 700; padding: 0 0 8px; cursor: pointer; }
.cart-items { list-style: none; margin: 0; padding: 0; }
.ci { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-weight: 600; }
.ci-meta { color: var(--muted); font-size: 12px; }
.ci-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.ci-actions button { border: 1px solid var(--line); background: var(--field); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: var(--brand); font-weight: 700; }
.ci-actions .qty { font-weight: 700; min-width: 64px; text-align: center; font-size: 13px; }
.ci-actions .rm { width: auto; padding: 0 10px; color: var(--muted); font-weight: 500; font-size: 12px; }
.ci-price { font-weight: 700; white-space: nowrap; }
.totals { border-top: 1px solid var(--line); padding-top: 10px; }
.totals > div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.totals .grand { color: var(--text); font-weight: 800; font-size: 17px; padding-top: 6px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label, .pay label { position: relative; }
.seg input, .pay input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .pay span {
  display: block; text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  font-weight: 600; cursor: pointer; background: var(--field);
}
.seg input:checked + span, .pay input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-light); }
.seg input:focus-visible + span, .pay input:focus-visible + span { outline: 2px solid var(--brand); }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pay span { font-size: 13px; padding: 10px; }

.form-error { margin: 0 16px; padding: 12px 14px; background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #f3b6bf; border-radius: 12px; font-weight: 600; }
.send-bar { padding: 12px 16px 24px; }
.send-bar .btn-primary { width: 100%; padding: 16px; font-size: 16px; }

/* ---------- Concluído ---------- */
.done { text-align: center; padding: 32px 20px; margin-top: 40px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 32px; display: grid; place-items: center; }
.done h2 { margin: 6px 0 0; }
.done p { color: var(--muted); margin: 0 0 8px; }
/* Pix na tela final do pedido */
.pix-box { width: 100%; max-width: 360px; border: 2px solid #16a34a; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; background: #f0fdf4; margin: 4px 0 6px; }
.pix-title { font-size: 17px; color: #14532d; }
.pix-box .pix-sub { font-size: 13px; margin: 0; }
.pix-box .pix-qr { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid #bbf7d0; }
.pix-box .pix-qr svg { width: 100%; height: 100%; display: block; }
.pix-box textarea { width: 100%; font: 11px ui-monospace, Consolas, monospace; padding: 8px; border: 1px solid #bbf7d0; border-radius: 10px; background: #fff; resize: none; word-break: break-all; }
.pix-box .pix-copy { width: 100%; background: #16a34a; border-color: #16a34a; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 50;
  background: #000; color: var(--gold-bright); border: 1px solid var(--gold); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* ---------- Ajustes do tema escuro ---------- */
dialog { background: var(--card); color: var(--text); }
.welcome strong { color: var(--gold-light); }
/* boas-vindas agora fica DENTRO do quadro do topo (um quadro só, com a linha dourada embaixo) */
.hero .welcome { margin: 0; padding: 12px 16px 16px; background: none; box-shadow: none; border: 0; border-radius: 0; text-align: center; }
.hero .welcome strong { font-size: 15px; }
.hero .welcome p { font-size: 14px; }
.hero:not(.with-cover) .welcome p { color: rgba(255,255,255,.8); }
.hero:not(.with-cover) .welcome strong { color: var(--gold-bright); }
/* pílula de aberto/fechado dentro do quadro */
/* pílula pequena, do tamanho do texto, centralizada e "flutuando" (com espaço embaixo) */
/* tamanho igual ao do modelo: faixa larga e baixinha (~30 px), texto pequeno e sem negrito forte */
.hero .status-bar { margin: 2px 16px 16px; border-radius: 99px; padding: 6px 14px; gap: 6px; font-size: 12px; line-height: 18px; }
.hero .status-bar svg { width: 14px; height: 14px; }
.hero .status-txt strong { font-size: 12px; font-weight: 500; }
.cat h2 { color: var(--text); border-left: 3px solid var(--gold); padding-left: 10px; }
.btn-primary { box-shadow: 0 6px 18px rgba(209,26,53,.3); }
.totals .grand span:last-child { color: var(--brand); }

/* ---------- Capa da categoria (foto acima dos produtos) ---------- */
.cat-banner { margin: 22px 16px 10px; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.cat-banner h2 {
  margin: 0; padding: 10px 14px; text-align: center; font-size: 19px; font-weight: 800;
  background: #000; color: var(--gold-bright); border: 0; border-bottom: 2px solid var(--gold);
}
.cat-banner img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Pacotes fixos ---------- */
.chip.pack { display: inline-flex; flex-direction: column; align-items: center; min-width: 92px; border-radius: 12px; padding: 10px 14px; line-height: 1.2; }
.chip.pack small { font-weight: 600; color: var(--brand); margin-top: 2px; font-size: 12px; }

/* ---------- Banner da promoção (topo do cardápio) ---------- */
.status-bar { margin: 12px 16px 0; padding: 7px 12px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 7px;
  text-align: center; font-size: 13px; line-height: 1.3; }
.status-bar svg { flex: none; width: 15px; height: 15px; }
.status-txt { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 6px; }
.status-txt strong { font-weight: 600; font-size: 13px; }
.status-txt small { font-size: 12px; opacity: .85; }
.status-bar.is-open { background: #dcfce7; color: #166534; }
.status-bar.is-closed { background: #fee2e2; color: #991b1b; }
.promo-banner { margin: 14px 16px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.promo-banner img { display: block; width: 100%; height: auto; }

/* ---------- Botão de compartilhar a loja (topo, à direita) ---------- */
.share-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--gold);
  background: rgba(0,0,0,.55); color: var(--gold-bright); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .12s, background .12s;
}
.share-btn:hover { background: var(--whats); color: #fff; border-color: var(--whats); }
.share-btn:active { transform: scale(.94); }

/* ---------- Topo com foto de capa + logo em bolinha (quando há capa) ---------- */
.hero.with-cover { padding: 0; text-align: left; color: var(--text); background: var(--card); }
.hero.with-cover .hero-bg { display: none; }
.hero-cover { height: clamp(150px, 44vw, 250px); background: #000; overflow: hidden; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.with-cover .hero-inner {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: end;
  padding: 0 16px 14px;
}
.hero.with-cover .logo,
.hero.with-cover.has-logo .logo {
  width: 122px; height: 122px; aspect-ratio: auto; margin: -61px 0 0; border-radius: 50%;
  background: #000; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold), 0 6px 18px rgba(0,0,0,.25);
  padding: 3px; overflow: hidden;
}
.hero.with-cover .logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
/* nome e frase visíveis ao lado da bolinha */
.hero.with-cover .hero-title { padding: 14px 0 2px; min-width: 0; } /* respiro entre a foto de capa e o nome */
/* nome + boas-vindas clicável, com a setinha à direita (abre "Sobre a loja") */
.hero .hero-title { position: relative; cursor: pointer; padding-right: 30px !important; }
.hero .hero-title:hover h1 { text-decoration: underline; text-underline-offset: 3px; }
.title-chev { position: absolute; right: 0; top: 50%; transform: translateY(-30%); color: var(--muted); display: grid; }
.hero:not(.with-cover) .title-chev { color: rgba(255,255,255,.8); }
/* boas-vindas embaixo do nome: no máximo 2 linhas com "…" (o texto todo fica na janela) */
.hero #store-tagline { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden !important; }
.hero.with-cover h1, .hero.with-cover.has-logo h1,
.hero.with-cover .tagline, .hero.with-cover.has-logo .tagline {
  position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
}
.hero.with-cover h1 { font-size: 20px; line-height: 1.15; color: var(--text); }
.hero.with-cover .tagline { margin: 3px 0 0; font-size: 13px; color: var(--gold-light); opacity: 1; }
.hero.with-cover .hero-meta, .hero.with-cover.has-logo .hero-meta { grid-column: 1 / -1; justify-content: flex-start; margin-top: 12px; }
.hero.with-cover .badge { background: #f1ede9; color: var(--text); }

/* topo com capa alinhado com os quadros de baixo (mesma largura) e com respiro */
@media (min-width: 761px) {
  .hero.with-cover { margin: 0 16px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
}

/* botão de compartilhar mais visível: pílula branca com texto */
.share-btn {
  width: auto; height: auto; padding: 8px 14px 8px 11px; gap: 7px; display: inline-flex; align-items: center;
  border-radius: 99px; border: 0; background: #fff; color: var(--brand);
  font-weight: 700; font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.share-btn span { color: var(--text); }
.share-btn:hover { background: var(--whats); color: #fff; }
.share-btn:hover span { color: #fff; }

/* Compartilhar na fileira de botões do topo (não fica mais sobre a foto) */
.hero .share-btn {
  position: static; box-shadow: none; transform: none;
  display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto;
  padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--gold-bright); border: 1px solid var(--gold);
}
.hero .share-btn span { color: inherit; }
.hero.with-cover .share-btn { color: var(--text); background: #fff; border-color: var(--gold); }
.hero.with-cover .share-btn svg { color: var(--brand); }
.hero .share-btn:hover, .hero.with-cover .share-btn:hover { background: var(--whats); border-color: var(--whats); color: #fff; }
.hero .share-btn:hover svg { color: #fff; }

/* WhatsApp e Compartilhar discretos: só ícone + texto, sem fundo (como no modelo) */
.hero .btn-whats, .hero .share-btn, .hero.with-cover .share-btn {
  background: none; border: 0; box-shadow: none; padding: 4px 2px; border-radius: 6px;
  font-size: 15px; font-weight: 700; gap: 6px; color: var(--text);
}
.hero .btn-whats svg { color: var(--whats); width: 18px; height: 18px; }
.hero .share-btn svg, .hero.with-cover .share-btn svg { color: var(--muted); width: 17px; height: 17px; }
.hero .btn-whats:hover, .hero .share-btn:hover, .hero.with-cover .share-btn:hover { background: none; color: var(--text); text-decoration: underline; }
.hero .share-btn:hover svg { color: var(--muted); }
.hero .hero-meta { gap: 18px; align-items: center; }
/* Aberto (bolinha verde) / Fechado (bolinha vermelha), no mesmo estilo do WhatsApp e Compartilhar */
.hero .badge, .hero.with-cover .badge { background: none; padding: 0; font-size: 15px; font-weight: 700; color: var(--text); gap: 7px; }
.hero:not(.with-cover) .badge { color: #fff; }
.hero .badge::before { width: 10px; height: 10px; }
.hero .badge.open::before { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.hero .badge.closed::before { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); }
.hero .badge:empty { display: none; }
/* Aberto/Fechado, WhatsApp e Compartilhar: centralizados, um pouco menores e mais abaixo (celular e computador) */
.hero .hero-meta, .hero.with-cover .hero-meta, .hero.with-cover.has-logo .hero-meta {
  justify-content: center; flex-wrap: nowrap; gap: 16px; margin-top: 18px; padding-bottom: 4px;
}
.hero .badge, .hero.with-cover .badge, .hero .btn-whats, .hero .share-btn, .hero.with-cover .share-btn { font-size: 14px; white-space: nowrap; }
.hero .btn-whats svg { width: 16px; height: 16px; }
.hero .share-btn svg, .hero.with-cover .share-btn svg { width: 15px; height: 15px; }
.hero .badge::before { width: 9px; height: 9px; }
/* título e subtítulo um tiquinho menores */
.hero.with-cover h1 { font-size: 18px; }
.hero.with-cover .tagline { font-size: 12px; }
@media (max-width: 360px) { .hero .hero-meta, .hero.with-cover .hero-meta, .hero.with-cover.has-logo .hero-meta { gap: 12px; } }
/* topo preto (sem capa): texto claro */
.hero:not(.with-cover) .btn-whats, .hero:not(.with-cover) .share-btn { color: #fff; }
.hero:not(.with-cover) .btn-whats:hover, .hero:not(.with-cover) .share-btn:hover { color: #fff; }

/* topo preto (sem capa): a faixa aberta/fechada continua embaixo dos botões; linhas do cartão só existem com capa */
.hero:not(.with-cover) .hero-inner { display: flex; flex-direction: column; }
.hero:not(.with-cover) .status-bar { order: 5; }
.hero-info, .hero-entrega { display: none; }

/* ---------- Topo com capa no estilo iFood: cartão branco sobre a foto, logo pequena centralizada ---------- */
.hero.with-cover { background: transparent; overflow: visible; }
.hero.with-cover .hero-cover { height: clamp(150px, 46vw, 240px); }
.hero.with-cover .hero-inner {
  display: block; position: relative; z-index: 1;
  margin: -46px 12px 0; padding: 42px 16px 4px;
  background: var(--card); border-radius: 18px; text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.10);
}
.hero.with-cover .logo, .hero.with-cover.has-logo .logo {
  position: absolute; top: -36px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 72px; margin: 0; padding: 2px;
  border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.hero.with-cover .hero-title { padding: 0 28px 0 0 !important; }
.hero.with-cover h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.hero.with-cover #store-tagline { display: none !important; } /* a frase de boas-vindas fica na janela "Sobre a loja" */
.hero.with-cover .title-chev { top: 50%; transform: translateY(-50%); }
.hero.with-cover .hero-info { display: block; margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.hero.with-cover .hero-info:empty { display: none; }
/* linhas separadas por um fio, como no cartão do iFood */
.hero.with-cover .status-bar, .hero.with-cover .hero-entrega {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line);
  border-radius: 0; background: none; text-align: left;
}
.hero.with-cover .status-bar[hidden] { display: none; }
.hero.with-cover .status-bar svg, .hero.with-cover .hero-entrega svg { width: 18px; height: 18px; flex: none; }
.hero.with-cover .status-txt { justify-content: flex-start; }
.hero.with-cover .status-txt strong { font-size: 14px; font-weight: 600; }
.hero.with-cover .status-bar.is-open { color: #15803d; }
.hero.with-cover .status-bar.is-closed { color: #b91c1c; }
.hero.with-cover .hero-entrega { color: var(--muted); }
.hero.with-cover .hero-entrega span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hero.with-cover .hero-entrega strong { font-size: 14px; font-weight: 600; color: var(--text); }
.hero.with-cover .hero-entrega small { font-size: 12.5px; }
/* WhatsApp e Compartilhar na última linha do cartão; o "Aberto" já aparece na linha de cima */
.hero.with-cover .badge { display: none; }
.hero.with-cover .hero-meta, .hero.with-cover.has-logo .hero-meta {
  justify-content: center; gap: 28px; margin: 12px 0 0; padding: 10px 0 8px; border-top: 1px solid var(--line);
}
@media (min-width: 761px) {
  .hero.with-cover { margin: 0 16px; border-radius: 0; box-shadow: none; }
  .hero.with-cover .hero-cover { border-radius: 0 0 var(--radius) var(--radius); }
  .hero.with-cover .hero-inner { margin: -56px 24px 0; }
}

/* opções de marcar várias: mostra um ✓ nas marcadas */
.chips.multi .chip[aria-pressed="true"]::before { content: "✓ "; font-weight: 800; }

/* ===== Aplicativo: convite para instalar e avisos do pedido ===== */
.app-inst { display: flex; align-items: center; gap: 12px; max-width: var(--max); margin: 12px auto 0; padding: 10px 10px 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); width: calc(100% - 24px); }
.app-inst[hidden] { display: none; }
.app-inst img { border-radius: 11px; flex: none; }
.ai-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ai-txt strong { font-size: 14px; }
.ai-txt small { font-size: 12.5px; color: var(--muted); }
.ai-btn { flex: none; background: var(--brand); color: #fff; border: 0; border-radius: 99px; padding: 9px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ai-x { flex: none; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 6px; cursor: pointer; }
.push-box { width: 100%; max-width: 360px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--gold-soft); display: flex; flex-direction: column; gap: 6px; align-items: center; margin: 4px 0 6px; }
.push-box[hidden] { display: none; }
.push-box p { font-size: 13px; margin: 0 0 4px; }
.push-box .btn-primary { width: 100%; background: var(--ink); box-shadow: none; }
.push-box.ok { background: #f0fdf4; border-color: #bbf7d0; }
.ios-inst { border: 0; border-radius: 20px; padding: 24px 22px 20px; max-width: 340px; width: calc(100% - 32px); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.ios-inst::backdrop { background: rgba(0,0,0,.5); }
.ios-inst img { border-radius: 15px; }
.ios-inst h3 { margin: 12px 0 10px; }
.ios-inst ol { text-align: left; margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.ios-ic { display: inline-grid; place-items: center; vertical-align: -4px; color: #0a84ff; }
.ios-inst .btn-primary { width: 100%; }

/* Pix com confirmação automática (Mercado Pago) */
.pix-status { margin: 0; font-size: 14px; font-weight: 700; color: #78350f; display: flex; align-items: center; gap: 8px; }
.pix-status[hidden] { display: none; }
.pix-status .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #f5c98a; border-top-color: #b45309; animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.pix-box.pago { border-color: #16a34a; }
.pix-box.pago .pix-status { color: #14532d; font-size: 16px; }

/* Cartão de crédito pela loja (Mercado Pago) */
.card-box { width: 100%; max-width: 420px; border: 2px solid #2563eb; border-radius: var(--radius); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; background: #f8fbff; margin: 4px 0 6px; text-align: center; }
.card-box[hidden] { display: none; }
.card-box .pix-sub { font-size: 13px; margin: 0; color: var(--muted); }
#card-brick { text-align: left; min-height: 120px; }
.card-msg { margin: 0; font-size: 14px; font-weight: 700; color: #b91c1c; }
.card-msg[hidden] { display: none; }
.card-box.ok { border-color: #16a34a; background: #f0fdf4; }
.card-box.ok .card-msg { color: #14532d; font-size: 16px; }
.card-box .pix-title { color: #1e3a8a; }

/* ---------- Sacola no estilo iFood (duas etapas: sacola → finalizar) ---------- */
#view-cart { background: var(--card); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
#view-cart:not([hidden]) { animation: sb-sobe .25s ease-out; }
@keyframes sb-sobe { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
#view-cart #checkout { flex: 1; display: flex; flex-direction: column; }
#view-cart:not([data-step="sacola"]) .step-sacola, #view-cart:not([data-step="entrega"]) .step-entrega,
#view-cart:not([data-step="pagamento"]) .step-pagamento, #view-cart[data-step="entrega"] .step-resumo,
#view-cart[data-step="pagamento"] .step-avancar, #view-cart[data-step="entrega"] .step-loja { display: none !important; }
#view-cart[data-step="sacola"] .ic-left, #view-cart:not([data-step="sacola"]) .ic-down { display: none; }

.sb-top { position: sticky; top: 0; z-index: 20; background: var(--card); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 12px 16px; }
.sb-top h2 { margin: 0; text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sb-back { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f2f0ee; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.sb-clear { justify-self: end; border: 0; background: none; color: var(--brand); font-weight: 700; font-size: 15px; cursor: pointer; padding: 8px 0; }

.sb-store { display: flex; align-items: center; gap: 12px; padding: 14px 20px 6px; }
.sb-logo { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); overflow: hidden; flex: none; background: #fff; }
.sb-logo:empty { display: none; }
.sb-logo img { width: 100%; height: 100%; object-fit: cover; }
.sb-store strong { display: block; font-size: 16px; }
.sb-link { border: 0; background: none; padding: 2px 0 0; color: var(--brand); font-weight: 700; font-size: 14px; cursor: pointer; }

.sb-warn { display: flex; gap: 10px; align-items: flex-start; margin: 12px 20px 4px; padding: 12px 14px; border-radius: 10px; background: #fdf3e1; color: #6b4a12; font-size: 13px; line-height: 1.4; }
.sb-warn[hidden] { display: none; }
.sb-warn svg { flex: none; color: #7a5a1c; margin-top: 1px; }
.sb-warn strong { color: #3d2a08; }

.sb-h { margin: 22px 20px 6px; font-size: 17px; font-weight: 700; }
#view-cart .cart-items { padding: 0 20px; }
#view-cart .cart-items .empty { color: var(--muted); padding: 16px 0; }
#view-cart .ci { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 0; border-bottom: 1px solid var(--line); }
#view-cart .ci:last-child { border-bottom: 0; }
.ci-img { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: #f2f0ee; display: grid; place-items: center; font-size: 28px; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
#view-cart .ci-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
#view-cart .ci-meta { margin-top: 2px; font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#view-cart .ci-price { margin-top: 6px; font-weight: 700; font-size: 15px; }
#view-cart .ci-actions { margin: 0; gap: 0; background: #f2f0ee; border-radius: 10px; padding: 2px; align-self: center; }
#view-cart .ci-actions button { width: 34px; height: 34px; border: 0; background: none; border-radius: 8px; color: var(--brand); font-size: 20px; line-height: 1; display: grid; place-items: center; }
#view-cart .ci-actions .qty { min-width: 26px; padding: 0 2px; font-size: 14px; font-weight: 600; white-space: nowrap; }

.sb-more { display: block; width: calc(100% - 40px); margin: 14px 20px 4px; padding: 13px; border: 0; border-radius: 10px; background: #f2f0ee; color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; }

.sb-resumo { padding: 0 20px 8px; }
.sb-resumo .sb-h { margin-left: 0; margin-right: 0; }
.sb-resumo .totals { border-top: 0; padding-top: 2px; }
.sb-resumo .totals > div { padding: 5px 0; font-size: 14px; }
.sb-resumo .totals .grand { font-size: 16px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); }

/* barra de baixo: total à esquerda, botão à direita (presa no rodapé) */
#view-cart .send-bar { position: sticky; bottom: 0; z-index: 20; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--card); box-shadow: 0 -4px 14px rgba(0,0,0,.07); }
.sb-total { display: flex; flex-direction: column; min-width: 0; }
.sb-total small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.sb-total strong { font-size: 18px; }
.sb-total > span { white-space: nowrap; }
.sb-total em { font-style: normal; color: var(--muted); font-size: 13px; }
#view-cart .send-bar .btn-primary { width: auto; flex: 0 1 auto; min-width: 140px; white-space: nowrap; padding: 14px 22px; font-size: 15px; box-shadow: none; border-radius: 10px; }
#view-cart .form-error { margin: 8px 20px; }

/* etapa "Finalizar pedido": quadros com borda fina sobre o fundo branco */
#view-cart .card.step-pagamento { box-shadow: none; border: 1px solid var(--line); }
#view-cart[data-step="pagamento"] .sb-resumo { margin: 4px 0 0; }

/* etapa Entrega: endereço resumido com "Trocar", opções em cartões com bolinha à direita */
.step-entrega .sb-h { font-weight: 600; font-size: 16px; }
.step-entrega section[hidden] { display: none; }
.en-resumo { display: flex; align-items: center; gap: 14px; padding: 6px 20px 4px; }
.en-resumo[hidden] { display: none; }
.en-resumo svg { flex: none; color: var(--text); }
.en-resumo > div { flex: 1; min-width: 0; }
.en-resumo strong { display: block; font-size: 15px; font-weight: 600; }
.en-resumo small { display: block; color: var(--muted); font-size: 13px; }
.en-resumo .sb-link { flex: none; padding: 6px 0; }
.en-form { padding: 0 20px; }
.en-form[hidden] { display: none; }
.en-opcoes { display: grid; gap: 10px; padding: 0 20px; }
.en-op { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.en-op[hidden] { display: none; }
.en-op input { position: absolute; opacity: 0; pointer-events: none; }
.en-op > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.en-op strong { font-size: 15px; font-weight: 600; }
.en-op small { color: var(--muted); font-size: 12.5px; }
.en-op b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.en-op i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9c3bd; }
.en-op:has(input:checked) { border-color: var(--text); }
.en-op input:checked ~ i { border: 6px solid var(--brand); }
.en-op:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.en-quando { padding: 0 20px 20px; }
.en-quando .hint { margin: 0 0 8px; }
.en-quando select { width: 100%; padding: 13px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); font-size: 15px; }
@media (max-width: 360px) { #view-cart .send-bar .btn-primary { min-width: 0; padding: 13px 16px; } .sb-total strong { font-size: 16px; } .sb-total em { display: none; } }
body:has(#view-cart:not([hidden])) { padding-bottom: 0; }

/* etapa Pagamento (como no iFood): quadro com a forma escolhida e a setinha; tocar abre a lista */
.pg-sec { padding: 0 20px; }
.pg-sec .sb-h { margin-left: 0; margin-right: 0; }
.pg-box { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; background: #f2f0ee; text-align: left; cursor: pointer; overflow: hidden; }
.pg-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 12.5px; font-weight: 700; color: var(--brand); }
.pg-row { display: flex; align-items: center; gap: 12px; margin: 0 4px 4px; padding: 14px 12px; background: var(--card); border-radius: 11px; box-shadow: 0 1px 3px rgba(0,0,0,.08); color: var(--text); }
.pg-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #f7f5f3; }
.pg-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pg-txt strong { font-size: 15px; font-weight: 600; }
.pg-txt small { color: var(--muted); font-size: 12.5px; }
.pg-sec #change-wrap { margin-top: 12px; }
#view-cart .card.step-pagamento { margin: 18px 20px 0; }

dialog.pg-dlg { background: var(--card); }
.pg-dlg-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.pg-dlg-top strong { font-size: 17px; }
.pg-x { border: 0; background: #f2f0ee; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.pg-lista { display: grid; gap: 10px; padding: 4px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 70vh; overflow: auto; }
.pg-grupo { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.en-op.pg-op > span.pg-ico { flex: 0 0 34px; width: 34px; height: 34px; }

/* no pagamento o botão ocupa a barra toda e já mostra o total ("Enviar pedido • R$ 59,97") */
#view-cart[data-step="pagamento"] .sb-total { display: none; }
#view-cart[data-step="pagamento"] .send-bar .btn-primary { flex: 1; width: 100%; }

/* quadro do pagamento enxuto (só ícone, nome e setinha, como no iFood) */
.pg-box { border-radius: 12px; }
.pg-head { padding: 8px 12px; font-size: 12px; gap: 5px; }
.pg-head svg { width: 12px; height: 12px; }
.pg-row { gap: 10px; margin: 0 3px 3px; padding: 11px 12px; border-radius: 10px; }
.pg-row .pg-ico { width: 24px; height: 24px; background: none; border-radius: 0; }
.pg-row .pg-ico svg { width: 22px; height: 22px; }
.pg-txt strong { font-size: 14.5px; font-weight: 500; }
.pg-txt small:empty { display: none; }
.pg-row > svg { width: 18px; height: 18px; color: var(--muted); }
/* lista também mais baixinha */
.pg-lista { gap: 8px; }
.en-op.pg-op { padding: 11px 12px; }
.en-op.pg-op > span.pg-ico { flex: 0 0 28px; width: 28px; height: 28px; background: none; }
.pg-op strong { font-size: 14.5px; font-weight: 500; }

/* =====================================================================
   Refino tipográfico no estilo iFood: fundo branco, pesos mais leves
   (500/600 no lugar de 700/800), tamanhos menores e cinza mais suave.
   ===================================================================== */
:root { --bg: #ffffff; --text: #2b2724; --muted: #76706a; --line: #ece8e4; }
body { font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
strong, b { font-weight: 600; }
h3 { font-weight: 600; }

/* topo (cartão sobre a capa) */
.hero.with-cover .hero-inner { box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.08); }
.hero.with-cover h1 { font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
.hero.with-cover .hero-info { font-size: 13px; }
.hero.with-cover .status-txt strong, .hero.with-cover .hero-entrega strong { font-size: 14px; font-weight: 500; }
.hero.with-cover .hero-entrega small { font-size: 12.5px; }
.hero .btn-whats, .hero .share-btn, .hero.with-cover .share-btn, .hero .badge, .hero.with-cover .badge { font-size: 14px; font-weight: 500; }
.mh-txt strong { font-weight: 600; }
.tabs a { font-weight: 400; }
.tabs a.active { font-weight: 500; }

/* títulos das categorias: limpos, sem a barrinha */
.cat h2 { margin: 28px 16px 2px; padding-left: 0; border-left: 0; font-size: 18px; font-weight: 600; letter-spacing: -.005em; }
.cat-banner h2 { font-size: 17px; font-weight: 600; }

/* lista de produtos lisa: texto à esquerda, foto à direita, um fio entre os itens */
.plist { margin: 0 16px; background: none; border-radius: 0; box-shadow: none; overflow: visible; }
.pitem { gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.pitem:first-child { border-top: 0; }
.pitem:hover { background: none; }
.pitem:hover .pname { color: var(--brand); }
.pname { font-size: 15px; font-weight: 500; line-height: 1.3; }
.pdesc { font-size: 13.5px; line-height: 1.4; margin: 4px 0 8px; }
.pprice .now { font-size: 15px; font-weight: 400; color: var(--text); }
.pprice .old { font-size: 13px; }
.pprice .unit { font-size: 12.5px; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; margin-bottom: 6px; }
.in-cart { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 500; }
.pthumb { width: 96px; height: 96px; border-radius: 8px; background: #f5f3f0; }
.so-list { border: 0; }

/* barra da sacola branca embaixo, como no iFood: total à esquerda, botão "Ver sacola" à direita */
.cart-bar {
  left: 0; right: 0; bottom: 0; transform: none; width: auto; max-width: var(--max); margin: 0 auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: var(--card); color: var(--text); font-weight: 400; box-shadow: 0 -4px 16px rgba(0,0,0,.07); text-align: left;
}
.cb-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cb-txt small { font-size: 12.5px; color: var(--muted); }
.cb-txt strong { font-size: 17px; font-weight: 600; }
.cb-txt em { font-style: normal; font-size: 13px; color: var(--muted); }
.cb-btn { flex: none; background: var(--brand); color: #fff; font-size: 15px; font-weight: 500; padding: 13px 30px; border-radius: 10px; }
.toast { bottom: 96px; }

/* janela do produto */
.pm-body h2 { font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
.pm-desc { font-size: 14px; line-height: 1.45; }
.pm-price { font-size: 16px; font-weight: 600; }
.chip { font-weight: 500; }
.stepper output { font-weight: 600; }

/* formulários e botões */
.f > span { font-weight: 500; }
.btn-primary { font-weight: 600; box-shadow: none; }

/* sacola, entrega e pagamento */
.sb-h { font-size: 17px; font-weight: 600; }
.step-entrega .sb-h { font-size: 16px; font-weight: 500; }
.sb-store strong { font-size: 15px; font-weight: 600; }
.sb-link { font-weight: 500; }
.sb-clear { font-size: 14px; font-weight: 500; }
.sb-top h2 { font-weight: 500; font-size: 13px; }
#view-cart .ci-name { font-size: 15px; font-weight: 500; }
#view-cart .ci-price { font-weight: 500; }
#view-cart .ci-actions .qty { font-weight: 500; }
.totals > div { font-size: 14px; }
.totals .grand { font-weight: 600; font-size: 16px; }
.sb-total strong { font-weight: 600; }
.en-resumo strong, .en-op strong { font-weight: 500; }
.pg-head { font-weight: 600; }
.pg-grupo { font-weight: 600; font-size: 12px; }
#view-cart .card.step-pagamento h3 { font-size: 16px; font-weight: 600; }
#cart-bar-total { color: var(--text); }
.ai-btn { font-weight: 600; }
.ai-txt strong { font-weight: 600; }
@media (max-width: 360px) { .cb-btn { padding: 12px 18px; } .cb-txt strong { font-size: 16px; } }
/* sem contorno azul nem "piscada" cinza ao tocar nos produtos (o contorno continua para quem navega pelo teclado) */
.pitem, .pitem * { -webkit-tap-highlight-color: transparent; }
.pitem:focus:not(:focus-visible) { outline: none; }
.pitem:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
