/* ==========================================================================
   SM Pizzaria: site. Regras de visual em GUIA-DE-ESTILO.md (raiz do projeto).
   Celular primeiro; telas maiores em @media (min-width).
   ========================================================================== */

.smp-canvas { margin: 0; background: #24140D; }
html:has(.smp) { scroll-behavior: smooth; }

.smp {
	/* Cores do guia */
	--brasa: #24140D;
	--lenha: #3A2418;
	--ouro: #E2A93B;
	--molho: #C62A1F;
	--molho-escuro: #A81F16;
	--massa: #FBF1DF;
	--manjericao: #2F7D4A;
	/* Derivadas */
	--papel: #FFF8EC;
	--linha: #E6D3B3;
	--linha-forte: #D4BB93;
	--tinta: #24140D;
	--tinta-suave: #6B5444;
	--texto-escuro: #F4E6CF;
	--texto-escuro-suave: #D3BFA3;
	--foco: var(--ouro);

	--titulo: 'Fraunces', Georgia, 'Times New Roman', serif;
	--texto: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	font-family: var(--texto);
	font-size: 17px;
	line-height: 1.55;
	color: var(--texto-escuro);
	background: var(--brasa);
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	overflow-x: clip;
}
.smp *, .smp *::before, .smp *::after { box-sizing: border-box; }
/* Base com :where() (peso zero), para as regras de cada componente sempre vencerem. */
.smp :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; }
.smp :where(ul, ol) { padding: 0; list-style: none; }
.smp :where(a) { color: inherit; }
.smp [hidden] { display: none !important; }
.smp :focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }

.smp-in { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }

.smp-oculto {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.smp-icone { width: 22px; height: 22px; flex: none; }

/* ---------- Preço ---------- */
.smp-preco { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.smp-preco__moeda { font-size: .75em; font-weight: 600; }
.smp-preco--vazio { font-weight: 500; color: var(--tinta-suave); }

/* ---------- Botões ---------- */
.smp-acoes { display: flex; flex-wrap: wrap; gap: 12px; }
.smp-botao {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 22px; border-radius: 12px;
	font: 700 17px/1 var(--texto); text-decoration: none; cursor: pointer;
	border: 2px solid transparent;
	transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.smp-botao:active { transform: scale(.97); }
.smp-botao--pedir { background: var(--molho); color: #fff; }
.smp-botao--pedir:hover { filter: brightness(.86); }
.smp-botao--contorno { border-color: var(--ouro); color: var(--massa); }
.smp-botao--contorno:hover { background: rgba(226, 169, 59, .14); }
.smp-botao--contorno-escuro { border-color: var(--brasa); color: var(--brasa); }
.smp-botao--contorno-escuro:hover { background: rgba(36, 20, 13, .07); }

.smp-link-forte {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
	font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.smp-link-forte .smp-icone { width: 18px; height: 18px; transition: transform .2s ease; }
.smp-link-forte:hover .smp-icone { transform: translateX(3px); }

/* ---------- Selo SM (provisório, até chegar o logo) ---------- */
.smp-selo {
	display: inline-grid; place-items: center; flex: none;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--molho); color: var(--ouro);
	font: 800 17px/1 var(--titulo); letter-spacing: .02em;
	box-shadow: inset 0 0 0 2px var(--molho), inset 0 0 0 3.5px var(--ouro);
}
.smp-selo.is-grande { width: 76px; height: 76px; font-size: 30px; box-shadow: inset 0 0 0 3px var(--molho), inset 0 0 0 5px var(--ouro); }
/* Logo enviado no painel */
.smp-logo { display: block; flex: none; width: auto; height: 48px; max-width: 160px; object-fit: contain; }
.smp-logo.is-grande { height: 88px; max-width: 240px; }

/* ---------- Topo ---------- */
.smp-topo { border-bottom: 1px solid var(--lenha); }
.smp-topo__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.smp-marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.smp-marca__texto { display: flex; flex-direction: column; line-height: 1.15; }
.smp-marca__texto strong { font: 700 19px/1.1 var(--titulo); color: var(--massa); }
.smp-marca__texto small { font-size: 14px; color: var(--texto-escuro-suave); }
.smp-topo__nav { display: none; gap: 28px; }
.smp-topo__nav a { font-weight: 600; font-size: 16px; color: var(--texto-escuro-suave); text-decoration: none; padding: 12px 0; }
.smp-topo__nav a:hover { color: var(--ouro); }

/* ---------- Abertura ---------- */
.smp-abertura {
	position: relative;
	padding: 40px 0 72px;
	background:
		radial-gradient(120% 60% at 50% 115%, rgba(198, 42, 31, .38), transparent 62%),
		radial-gradient(60% 40% at 85% 100%, rgba(226, 169, 59, .12), transparent 70%),
		var(--brasa);
}
.smp-abertura__in { display: grid; gap: 48px; }
.smp-abertura h1 {
	font: 800 clamp(2.5rem, 1.55rem + 4.6vw, 4.5rem)/1 var(--titulo);
	letter-spacing: -.015em; color: var(--massa);
	margin-top: 22px; max-width: 13ch;
}
.smp-abertura__sub { margin-top: 18px; font-size: 18px; color: var(--texto-escuro-suave); max-width: 34ch; }
.smp-abertura .smp-acoes { margin-top: 28px; }
.smp-fatos { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; font-size: 15px; color: var(--texto-escuro-suave); }
.smp-fatos li { display: inline-flex; align-items: center; gap: 8px; }
.smp-fatos li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ouro); }

/* Letreiro "Aberto agora" (o elemento-assinatura do site) */
.smp-letreiro {
	display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 12px;
	padding: 10px 16px; border-radius: 10px;
	border: 2px solid var(--lenha); background: rgba(0, 0, 0, .22);
	transition: border-color .4s ease, box-shadow .4s ease;
}
.smp-letreiro__luz {
	width: 10px; height: 10px; border-radius: 50%; flex: none;
	background: #E0533F;
}
.smp-letreiro__titulo {
	font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--texto-escuro-suave);
}
.smp-letreiro__detalhe { font-size: 15px; color: var(--texto-escuro-suave); }
.smp-letreiro.is-aberto {
	border-color: var(--ouro);
	box-shadow: 0 0 0 1px rgba(226, 169, 59, .25), 0 0 28px rgba(226, 169, 59, .2), inset 0 0 18px rgba(226, 169, 59, .08);
	animation: smp-acender 1.1s ease-out both;
}
.smp-letreiro.is-aberto .smp-letreiro__titulo { color: var(--ouro); text-shadow: 0 0 10px rgba(226, 169, 59, .7); }
.smp-letreiro.is-aberto .smp-letreiro__luz,
.smp-barra-pedir__status.is-aberto .smp-letreiro__luz { background: #5BD08A; box-shadow: 0 0 10px #5BD08A; animation: smp-pulso 2.4s ease-in-out infinite; }
@keyframes smp-acender {
	0% { opacity: .35; } 12% { opacity: 1; } 18% { opacity: .45; } 26% { opacity: 1; } 32% { opacity: .7; } 40%, 100% { opacity: 1; }
}
@keyframes smp-pulso { 50% { box-shadow: 0 0 2px #5BD08A; } }

/* Comanda (papel de pedido com o destaque da casa) */
.smp-comanda {
	justify-self: center; width: min(100%, 340px);
	filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
	transform: rotate(-2deg);
	animation: smp-comanda .8s cubic-bezier(.2, .8, .2, 1) .15s both;
}
.smp-comanda__papel {
	position: relative;
	padding: 22px 22px 34px;
	background: var(--massa); color: var(--tinta);
	border-radius: 4px 4px 0 0;
	-webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
	mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
}
.smp-comanda__topo { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave); }
.smp-comanda__nome { margin-top: 6px; font: 700 26px/1.1 var(--titulo); max-width: 11ch; }
.smp-comanda__itens { margin-top: 14px; }
.smp-comanda__itens li { padding: 8px 0; border-bottom: 1px dashed var(--linha-forte); font-size: 16px; }
.smp-comanda__total {
	display: flex; justify-content: space-between; align-items: baseline;
	margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--tinta);
	font-weight: 700;
}
.smp-comanda__total .smp-preco { font-size: 24px; }
.smp-comanda .smp-link-forte { margin-top: 6px; --foco: var(--brasa); }
.smp-carimbo {
	position: absolute; top: 18px; right: 14px;
	padding: 4px 8px; border: 3px solid var(--molho); border-radius: 6px;
	font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--molho); transform: rotate(9deg); opacity: .9;
}
@keyframes smp-comanda { from { opacity: 0; transform: translateY(18px) rotate(-7deg); } }

/* ---------- Cardápio ---------- */
.smp-cardapio, .smp-horarios { --foco: var(--brasa); background: var(--massa); color: var(--tinta); }
.smp-cardapio { padding: 64px 0 80px; }
.smp-secao-topo p { margin-top: 8px; color: var(--tinta-suave); max-width: 60ch; }
.smp-secao-topo strong { color: var(--tinta); }
.smp :where(h2) { font: 700 clamp(1.75rem, 1.25rem + 2.4vw, 2.75rem)/1.1 var(--titulo); letter-spacing: -.01em; }

.smp-barra {
	position: sticky; top: 0; z-index: 20;
	margin-top: 24px; padding: 10px 0;
	background: var(--massa); border-bottom: 1px solid var(--linha);
}
.smp-barra__in { display: flex; flex-direction: column; gap: 10px; }
.smp-atalhos {
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
	margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px;
}
.smp-atalhos::-webkit-scrollbar { display: none; }
.smp-atalhos a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
	border: 1.5px solid var(--linha-forte); border-radius: 999px;
	font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.smp-atalhos a:hover { border-color: var(--tinta); }
.smp-atalhos a.is-ativo { background: var(--brasa); border-color: var(--brasa); color: var(--massa); }
.smp-busca {
	display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px;
	background: var(--papel); border: 1.5px solid var(--linha-forte); border-radius: 12px;
	color: var(--tinta-suave);
}
.smp-busca:focus-within { border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(36, 20, 13, .12); }
.smp-busca input {
	flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
	font: 500 16px var(--texto); color: var(--tinta); padding: 10px 0;
}
.smp-busca input::placeholder { color: var(--tinta-suave); }

.smp-grupo { padding-top: 48px; scroll-margin-top: var(--smp-barra-h, 120px); }
.smp-grupo__titulo { font: 700 clamp(1.5rem, 1.2rem + 1.4vw, 2rem)/1.15 var(--titulo); }
.smp-grupo__titulo::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; background: var(--ouro); border-radius: 2px; }

.smp-bloco { margin-top: 32px; }
.smp-bloco__titulo {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
	font-size: 20px; font-weight: 700; line-height: 1.25;
	padding-bottom: 8px; border-bottom: 2px solid var(--tinta);
}
.smp-bloco__titulo > span { font-size: 15px; font-weight: 500; color: var(--tinta-suave); }
.smp-nota { margin-top: 12px; font-size: 15px; color: var(--tinta-suave); }

/* Tabela de preços das pizzas */
.smp-tabela-caixa { margin-top: 24px; }
.smp-tabela {
	width: 100%; border-collapse: separate; border-spacing: 0;
	background: var(--papel); border: 1px solid var(--linha); border-radius: 14px; overflow: hidden;
	font-size: 15px; font-variant-numeric: tabular-nums;
}
.smp-tabela caption {
	text-align: left; padding-bottom: 8px;
	font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave);
}
.smp-tabela th, .smp-tabela td { padding: 11px 8px; text-align: right; }
.smp-tabela th:first-child { text-align: left; padding-left: 14px; }
.smp-tabela th:last-child, .smp-tabela td:last-child { padding-right: 14px; }
.smp-tabela thead th { font-size: 14px; font-weight: 700; color: var(--tinta-suave); background: #F6E8CF; }
.smp-tabela tbody th { font-weight: 700; }
.smp-tabela tbody tr > * { border-top: 1px solid var(--linha); }

/* Sabores (pizza) */
.smp-sabores { display: grid; column-gap: 40px; }
.smp-item {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
	padding: 12px 0; border-bottom: 1px dashed var(--linha-forte);
}
.smp-item__nome { display: block; font-weight: 700; font-size: 17px; line-height: 1.3; }
.smp-item__desc { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--tinta-suave); }

/* Linhas com preço */
.smp-precos { display: grid; column-gap: 48px; }
/* Texto | preço(s) | botão "+": as colunas extras se ajustam sozinhas */
.smp-linha, .smp-cabecalho-precos, .smp-placa {
	display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: auto;
	align-items: center; column-gap: 12px;
}
.smp-linha { padding: 12px 0; border-bottom: 1px dashed var(--linha-forte); }
.smp-linha .smp-preco { font-size: 18px; }
.smp-linha--dupla, .smp-cabecalho-precos { column-gap: 8px; }
.smp-linha__preco { width: 72px; text-align: right; }
.smp-cabecalho-precos {
	padding: 4px 0 8px; border-bottom: 2px solid var(--tinta);
	font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave);
}

/* Botão "+" (coloca no pedido) */
.smp-add {
	display: inline-grid; place-items: center; flex: none;
	width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
	border: 1.5px solid var(--linha-forte); background: var(--papel); color: var(--tinta);
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.smp-add:hover { background: var(--brasa); border-color: var(--brasa); color: var(--massa); }
.smp-add:active { transform: scale(.92); }
.smp-add-vazio { display: block; width: 44px; }
.smp-dica { margin-top: 12px; font-size: 15px; color: var(--tinta-suave); max-width: 60ch; }
.smp-dica__mais {
	display: inline-grid; place-items: center; vertical-align: middle; margin: -4px 2px 0; width: 26px; height: 26px; border-radius: 50%;
	border: 1.5px solid var(--linha-forte); background: var(--papel); color: var(--tinta); font-weight: 800; line-height: 1;
}
.smp-selo-texto { color: var(--molho); }

/* Placas (Combos Aloprado): moldura dourada dupla, como nos cardápios da SM */
.smp-placas { display: grid; gap: 14px; margin-top: 16px; }
.smp-placa {
	padding: 16px 14px 16px 18px; border-radius: 14px;
	background: var(--brasa); color: var(--texto-escuro);
	box-shadow: inset 0 0 0 4px var(--brasa), inset 0 0 0 5px rgba(226, 169, 59, .6);
}
.smp-placa .smp-item__nome { color: var(--massa); font-size: 18px; }
.smp-placa .smp-item__desc { color: var(--texto-escuro-suave); }
.smp-placa .smp-preco { font-size: 22px; color: var(--ouro); }
.smp-placa .smp-add { background: transparent; border-color: rgba(226, 169, 59, .6); color: var(--ouro); --foco: var(--ouro); }
.smp-placa .smp-add:hover { background: var(--ouro); color: var(--brasa); }

/* Item com foto (enviada no painel) */
.tem-foto > .smp-item__texto, .tem-foto > .smp-linha__texto, .tem-foto > .smp-placa__texto {
	display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; align-items: center; align-content: center;
}
.smp-item__foto { grid-row: 1 / span 2; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; display: block; }
.smp-placa .smp-item__foto { box-shadow: 0 0 0 1px rgba(226, 169, 59, .5); }

/* Esgotado hoje: continua no cardápio, apagado */
.is-esgotado .smp-item__nome, .is-esgotado .smp-item__desc, .is-esgotado .smp-preco { opacity: .55; }
.is-esgotado .smp-item__nome { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.smp-esgotado {
	display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
	background: var(--tinta-suave); color: var(--massa);
	font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; vertical-align: 1px;
}
.is-esgotado .smp-item__nome .smp-esgotado { display: inline-block; text-decoration: none; }
.smp-placa .smp-esgotado { background: var(--lenha); color: var(--texto-escuro); }

.smp-adicionais .smp-bloco__titulo { font-size: 17px; border-bottom-width: 1px; }
.smp-vazio { padding: 40px 0 0; font-size: 18px; }

/* ---------- Como pedir ---------- */
.smp-pedir { padding: 80px 0; background: var(--brasa); }
.smp-pedir h2 { color: var(--massa); }
.smp-passos { display: grid; gap: 24px; margin-top: 32px; counter-reset: passo; }
.smp-passos li { counter-increment: passo; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; color: var(--texto-escuro-suave); font-size: 18px; }
.smp-passos li::before { content: counter(passo); font: 800 44px/1 var(--titulo); color: var(--ouro); }
.smp-passos strong { color: var(--massa); }
.smp-pedir .smp-acoes { margin-top: 36px; }
.smp-info { display: grid; gap: 20px 32px; margin-top: 48px; }
.smp-info > div { padding-top: 14px; border-top: 1px solid var(--lenha); }
.smp-info dt { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ouro); }
.smp-info dd { margin-top: 6px; color: var(--massa); }

/* ---------- Horários e endereço ---------- */
.smp-horarios { padding: 80px 0; }
.smp-horarios__in { display: grid; gap: 48px; }
.smp-dias { width: 100%; max-width: 460px; margin-top: 24px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.smp-dias th, .smp-dias td { padding: 12px 10px; border-bottom: 1px dashed var(--linha-forte); }
.smp-dias th { text-align: left; font-weight: 500; }
.smp-dias td { text-align: right; }
.smp-dias .is-hoje { background: #F3E3C7; }
.smp-dias .is-hoje th, .smp-dias .is-hoje td { font-weight: 700; }
.smp-dias .is-hoje .smp-hoje { display: inline-block; }
.smp-avisos { margin-top: 24px; }
.smp-avisos ul { margin-top: 8px; }
.smp-avisos li { padding: 6px 0; }
.smp-hoje {
	display: none; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
	background: var(--brasa); color: var(--massa);
	font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px;
}
.smp-endereco__rotulo { margin-top: 28px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave); }
.smp-endereco__rotulo:first-child { margin-top: 0; }
.smp-endereco__texto { margin-top: 6px; font-size: 18px; }
.smp-endereco .smp-acoes { margin-top: 16px; }

/* ---------- Rodapé ---------- */
.smp-rodape { padding: 56px 0 120px; text-align: center; color: var(--texto-escuro-suave); font-size: 15px; border-top: 1px solid var(--lenha); }
.smp-rodape__in { display: grid; justify-items: center; gap: 10px; }
.smp-rodape__frase { margin-top: 8px; font: 600 22px/1.25 var(--titulo); color: var(--ouro); }
.smp-rodape__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.smp-rodape__links a { display: inline-block; padding: 10px 0; color: var(--massa); text-underline-offset: 4px; }

/* ---------- Página de texto (privacidade) ---------- */
.smp-voltar { color: var(--texto-escuro); font-size: 16px; }
.smp-texto { --foco: var(--brasa); background: var(--massa); color: var(--tinta); padding: 56px 0 80px; }
.smp-texto .smp-in { max-width: 760px; }
.smp-texto h1 { font: 800 clamp(2rem, 1.5rem + 2.5vw, 3rem)/1.05 var(--titulo); letter-spacing: -.01em; }
.smp-texto h2 { margin-top: 40px; font: 700 clamp(1.35rem, 1.2rem + .8vw, 1.7rem)/1.2 var(--titulo); }
.smp-texto p { margin-top: 12px; max-width: 65ch; }
.smp-texto__intro { font-size: 18px; color: var(--tinta-suave); }
.smp-texto a:not(.smp-botao) { font-weight: 700; text-underline-offset: 3px; }
.smp-texto .smp-acoes { margin-top: 16px; }
.smp-texto .smp-botao { font: 700 16px/1 var(--texto); background: transparent; }
.smp-rodape--curto { padding: 32px 0; }

/* ---------- Barra fixa de pedido (celular) ---------- */
.smp-barra-pedir {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	display: flex; align-items: center; gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(36, 20, 13, .96); border-top: 1px solid var(--lenha);
	transform: translateY(110%); transition: transform .3s ease;
}
.smp-barra-pedir.is-visivel, .smp-barra-pedir.tem-pedido { transform: none; }
.smp-barra-pedir .smp-botao { flex: 1; }
.smp-barra-pedir__status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--texto-escuro-suave); }
.smp-barra-pedir__status.is-aberto { color: var(--ouro); }
.smp-sacola-resumo { font-weight: 600; font-variant-numeric: tabular-nums; }
.smp-barra-pedir.tem-pedido .smp-barra-pedir__status { display: none; }
.smp-barra-pedir [data-smp-abrir-sacola] { white-space: nowrap; gap: 6px; }
.smp-dialogo h2:focus { outline: none; }

/* Botão "Ver pedido" flutuante (computador) */
.smp-sacola-flutuante {
	position: fixed; right: 24px; bottom: 24px; z-index: 50;
	display: none; align-items: center; gap: 8px; min-height: 56px; padding: 0 24px; border: 0; border-radius: 999px;
	background: var(--molho); color: #fff; font: 700 17px/1 var(--texto); cursor: pointer;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.smp-sacola-flutuante:hover { filter: brightness(.86); }

/* Aviso rápido ("entrou no pedido") */
.smp-aviso-rapido {
	position: fixed; left: 50%; bottom: 96px; z-index: 60; margin: 0;
	max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px;
	background: var(--massa); color: var(--tinta); font-weight: 600; font-size: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
}
.smp-aviso-rapido.is-visivel { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Janelas (opções do item e "Seu pedido") ---------- */
.smp-dialogo {
	--foco: var(--brasa);
	width: 100%; max-width: 560px; max-height: 92dvh; margin: auto auto 0; padding: 0;
	border: 0; border-radius: 20px 20px 0 0; background: var(--massa); color: var(--tinta);
	font-family: var(--texto); font-size: 17px; line-height: 1.5;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, .35);
}
.smp-dialogo[open] { display: flex; animation: smp-subir .28s cubic-bezier(.2, .8, .2, 1); }
.smp-dialogo::backdrop { background: rgba(20, 10, 5, .62); }
@keyframes smp-subir { from { transform: translateY(40px); opacity: 0; } }
.smp-dialogo__form { display: flex; flex-direction: column; width: 100%; max-height: 92dvh; margin: 0; }
.smp-dialogo__topo {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 18px 16px 12px 20px; border-bottom: 1px solid var(--linha);
}
.smp-dialogo__topo h2 { font: 700 24px/1.15 var(--titulo); }
.smp-fechar {
	display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--tinta); cursor: pointer;
}
.smp-fechar:hover { background: rgba(36, 20, 13, .08); }
.smp-dialogo__corpo { flex: 1; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.smp-dialogo__rodape {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); background: var(--massa);
	border-radius: 0 0 20px 20px;
}
.smp-botao--largo { width: 100%; }
.smp-continuar { border: 0; background: none; font-size: 16px; color: var(--tinta); cursor: pointer; }

.smp-op-desc { margin-top: 8px; color: var(--tinta-suave); font-size: 15px; }
.smp-op-grupo { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.smp-op-grupo legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 16px; }
.smp-escolhas { display: flex; flex-wrap: wrap; gap: 8px; }
.smp-escolha { position: relative; cursor: pointer; }
.smp-escolha input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.smp-escolha span {
	display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 14px;
	border: 1.5px solid var(--linha-forte); border-radius: 12px; background: var(--papel);
	font-weight: 600; font-size: 16px; line-height: 1.25;
}
.smp-escolha small { font-size: 14px; font-weight: 700; color: var(--tinta-suave); font-variant-numeric: tabular-nums; }
.smp-escolha input:checked + span { border-color: var(--brasa); background: var(--brasa); color: var(--massa); }
.smp-escolha input:checked + span small { color: var(--ouro); }
.smp-escolha input:focus-visible + span { outline: 3px solid var(--brasa); outline-offset: 2px; }
.smp-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }
.smp-check input { width: 20px; height: 20px; accent-color: var(--brasa); }
.smp-op-meio { margin-top: 4px; }
.smp-op-nota { margin-top: 8px; font-size: 14px; color: var(--tinta-suave); }
.smp-op-campo { display: block; margin-top: 16px; font-weight: 700; font-size: 16px; }
.smp-op-campo > span { font-weight: 400; color: var(--tinta-suave); }
.smp-op-campo input, .smp-op-campo select, .smp-op-campo textarea {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px; min-height: 48px;
	border: 1.5px solid var(--linha-forte); border-radius: 12px; background: var(--papel);
	font: 500 16px/1.4 var(--texto); color: var(--tinta);
}
.smp-op-campo :focus { outline: 3px solid rgba(36, 20, 13, .25); outline-offset: 0; border-color: var(--tinta); }
.smp-op-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.smp-op-rotulo { font-weight: 700; font-size: 16px; }
.smp-qtd { display: inline-flex; align-items: center; border: 1.5px solid var(--linha-forte); border-radius: 999px; background: var(--papel); }
.smp-qtd button {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 0; background: none; color: var(--tinta); font: 700 22px/1 var(--texto); cursor: pointer; border-radius: 50%;
}
.smp-qtd output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.smp-qtd--pequeno button { width: 38px; height: 38px; font-size: 19px; }

.smp-alerta { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #F6E1C8; font-size: 15px; }
.smp-sacola-itens { margin-top: 4px; }
.smp-sacola-item { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--linha-forte); }
.smp-sacola-item__texto { min-width: 0; }
.smp-sacola-item__texto strong { display: block; font-size: 17px; line-height: 1.3; }
.smp-sacola-item__texto span { display: block; font-size: 15px; color: var(--tinta-suave); }
.smp-sacola-item__lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.smp-sacola-item__preco { font-weight: 800; font-variant-numeric: tabular-nums; }
.smp-sacola-vazia { padding: 24px 0; color: var(--tinta-suave); }
.smp-sacola-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: 18px; }
.smp-sacola-total strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.smp-sacola-campos { margin-top: 8px; padding-top: 4px; }
.smp-enviado { padding: 24px 0 8px; }
.smp-enviado__titulo { font: 700 22px/1.2 var(--titulo); margin-bottom: 8px; }
.smp-enviado .smp-acoes { margin-top: 20px; align-items: center; }
.smp-enviado button.smp-link-forte { border: 0; background: none; font-size: 16px; color: var(--tinta); cursor: pointer; }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
	.smp-in { padding-inline: 24px; }
	.smp-dialogo { margin: auto; border-radius: 20px; max-height: 88dvh; }
	.smp-dialogo__form { max-height: 88dvh; }
	.smp-atalhos { margin-inline: 0; padding-inline: 0; }
	.smp-sabores, .smp-precos--colunas, .smp-placas { grid-template-columns: repeat(2, 1fr); }
	.smp-info { grid-template-columns: repeat(2, 1fr); }
	.smp-tabela { font-size: 16px; }
	.smp-tabela th, .smp-tabela td { padding: 12px 14px; }
}
@media (min-width: 900px) {
	.smp-topo__nav { display: flex; }
	.smp-abertura { padding: 88px 0 112px; }
	.smp-abertura__in { grid-template-columns: 1.25fr .75fr; align-items: center; gap: 64px; }
	.smp-abertura__in.sem-destaque { grid-template-columns: 1fr; }
	.smp-comanda { justify-self: end; }
	.smp-barra__in { flex-direction: row; align-items: center; justify-content: space-between; }
	.smp-busca { width: 300px; flex: none; }
	.smp-cardapio { padding: 96px 0 112px; }
	.smp-tabela-caixa { max-width: 720px; }
	.smp-passos { grid-template-columns: repeat(3, 1fr); gap: 32px; }
	.smp-pedir, .smp-horarios { padding: 112px 0; }
	.smp-info { grid-template-columns: repeat(4, 1fr); }
	.smp-horarios__in { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
	.smp-rodape { padding-bottom: 56px; }
	.smp-barra-pedir { display: none; }
	.smp-sacola-flutuante:not([hidden]) { display: inline-flex; }
	.smp-aviso-rapido { bottom: 100px; }
}
@media (min-width: 1000px) {
	.smp-sabores, .smp-placas { grid-template-columns: repeat(3, 1fr); }
}

/* Quem pediu ao aparelho para reduzir movimento */
@media (prefers-reduced-motion: reduce) {
	html:has(.smp) { scroll-behavior: auto; }
	.smp *, .smp *::before, .smp *::after { animation: none !important; transition: none !important; }
}
