/* V75.127 — tela do produto (foto no cabeçalho, opções, sugestão, adicionais − 0 +). Cores do tema do app. */
body.pt-aberta { overflow: hidden; }
.pt-fundo { position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.pt-fundo[hidden] { display: none !important; }
.pt-caixa { position: relative; width: 100%; max-width: 560px; height: 100%; max-height: 100%; background: #fff; display: flex; flex-direction: column; overflow: hidden; animation: ptSobe .22s ease-out; }
@keyframes ptSobe { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pt-caixa { animation: none; } }
@media (min-width: 640px) { .pt-fundo { align-items: center; padding: 24px; } .pt-caixa { height: auto; max-height: 92vh; border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.3); } }
.pt-rolagem { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.pt-foto { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 46vh; background: #eee; }
.pt-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-fechar { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: #2b2622; font-size: 1.05rem; box-shadow: 0 2px 10px rgba(0,0,0,.18); cursor: pointer; }

.pt-corpo { position: relative; margin-top: -22px; padding: 20px 18px 24px; background: #fff; border-radius: 22px 22px 0 0; }
.pt-corpo h2 { margin: 0 0 6px; font-size: 1.3rem; line-height: 1.2; color: #2b2622; overflow-wrap: anywhere; }
.pt-desc { margin: 0 0 8px; font-size: .9rem; line-height: 1.45; color: #6f675f; overflow-wrap: anywhere; }
.pt-info { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; background: var(--cor-primaria-suave); color: #4a423b; font-size: .82rem; line-height: 1.35; }
.pt-info i { color: var(--cor-primaria-texto); margin-top: 2px; }
.pt-preco { display: block; font-size: 1.15rem; color: #2b2622; margin-bottom: 4px; }

.pt-secao { margin-top: 20px; }
.pt-secao-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin: 0 -18px 8px; background: #f7f7f7; } /* V75.129: mesmo cinza do fundo do app (atrás de "Cardápio") */
.pt-secao-cab h3 { margin: 0; font-size: .98rem; color: #2b2622; }
.pt-secao-cab small { display: block; font-size: .74rem; color: #8b837a; }
.pt-selo { flex: none; padding: 4px 10px; border-radius: 999px; background: #e7e0d6; color: #5d554d; font-size: .7rem; font-weight: 700; }
.pt-selo.obrig { background: #3b342d; color: #fff; }
.pt-selo.feito { background: #1f7a47; color: #fff; }
.pt-grupo.pt-falta .pt-secao-cab { box-shadow: inset 4px 0 0 #c62828; }
.pt-grupo.pt-falta .pt-selo { background: #fdeaea; color: #c62828; box-shadow: inset 0 0 0 1.5px #c62828; font-size: .78rem; }
.pt-grupo.pt-treme { animation: pt-treme .42s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes pt-treme { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
@media (prefers-reduced-motion: reduce) { .pt-grupo.pt-treme { animation: none; } }

.pt-op { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 2px; border-bottom: 1px solid #eeeeee; cursor: pointer; }
.pt-op:last-child { border-bottom: 0; }
.pt-op input { position: absolute; opacity: 0; pointer-events: none; }
.pt-op-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-op-txt span { font-size: .92rem; color: #2b2622; }
.pt-op-txt small { font-size: .78rem; color: var(--cor-primaria-texto); font-weight: 600; }
.pt-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9bfb3; background: #fff; }
.pt-op input:checked + .pt-radio { border-color: var(--cor-primaria); background: var(--cor-primaria); box-shadow: inset 0 0 0 4px #fff; }
.pt-op:has(input:focus-visible) { outline: 2px solid var(--cor-primaria); outline-offset: 2px; border-radius: 8px; }

/* − 0 + */
.pt-step { flex: none; display: inline-flex; align-items: center; gap: 2px; border: 1px solid #e3d9cc; border-radius: 999px; background: #fff; padding: 2px; }
.pt-step button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--cor-primaria-texto); font-size: .85rem; cursor: pointer; }
.pt-step button:disabled { color: #cbc2b8; cursor: default; }
.pt-step button:not(:disabled):active { background: var(--cor-primaria-suave); }
.pt-step span { min-width: 22px; text-align: center; font-weight: 700; font-size: .95rem; color: #2b2622; }

.pt-ad { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 2px; border-bottom: 1px solid #eeeeee; }
.pt-ad:last-child { border-bottom: 0; }
.pt-ad-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-ad-txt strong { font-size: .92rem; font-weight: 600; color: #2b2622; overflow-wrap: anywhere; }
.pt-ad-txt small { font-size: .78rem; color: var(--cor-primaria-texto); font-weight: 600; }
.pt-ad.ativo .pt-step { border-color: var(--cor-primaria); }

.pt-sug-lista { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.pt-sug-lista::-webkit-scrollbar { display: none; }
.pt-sug-card { flex: 0 0 138px; display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid #ece4da; border-radius: 16px; background: #fff; scroll-snap-align: start; }
.pt-sug-card.ativo { border-color: var(--cor-primaria); background: var(--cor-primaria-suave); }
.pt-sug-card img { width: 100%; height: 84px; object-fit: cover; border-radius: 11px; background: #eee; }
.pt-sug-card strong { font-size: .8rem; color: #2b2622; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-sug-card > span { font-size: .78rem; color: #6f675f; }
.pt-sug-card .pt-step { align-self: stretch; justify-content: space-between; }
.pt-sug-card .pt-step button { width: 32px; height: 32px; }

.pt-obs textarea { width: 100%; box-sizing: border-box; min-height: 64px; padding: 10px 12px; border: 1px solid #e3d9cc; border-radius: 12px; background: #fff; font: inherit; font-size: .9rem; color: #2b2622; resize: vertical; }
.pt-obs textarea:focus { outline: 2px solid var(--cor-primaria); outline-offset: 1px; }
.pt-obs label { cursor: pointer; }

.pt-rodape { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 18px rgba(59,52,45,.08); }
.pt-adicionar { flex: 1; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--cor-primaria); color: var(--cor-sobre-primaria); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.pt-adicionar:disabled { background: #cfc6bb; color: #fff; cursor: not-allowed; justify-content: center; }
.pt-adicionar.pt-incompleto { background: #c8c8c8; color: #fff; }
.pt-adicionar strong { white-space: nowrap; }

/* V75.128 — linha da referência, com as cores do YaPOOD */
.pt-foto { aspect-ratio: 4 / 3.4; }
.pt-loja { position: absolute; left: 14px; right: 14px; bottom: 36px; display: flex; align-items: center; gap: 10px; max-width: max-content; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.pt-loja img { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #f1ebe3; border: 2px solid #fff; }
.pt-loja > div { min-width: 0; }
.pt-loja strong { display: block; font-size: .92rem; color: #2b2622; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-selo-loja { color: #1f7a47; font-size: .85em; }
.pt-loja small { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: .78rem; color: #4a423b; }
.pt-loja small b { color: #b9afa4; font-weight: 400; }
.pt-nota i { color: #2b2622; font-size: .8em; }
.pt-nota em { font-style: normal; color: #8b837a; }
.pt-gratis { color: #1f7a47; font-weight: 700; }

.pt-preco s { margin-left: 6px; font-size: .85em; font-weight: 400; color: #9a928a; }
.pt-economia { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: #e3f3e9; color: #1f7a47; font-size: .76rem; font-weight: 700; }

.pt-combo-item { display: flex; align-items: center; gap: 12px; padding: 8px 2px; border-bottom: 1px solid #eeeeee; }
.pt-combo-item:last-child { border-bottom: 0; }
.pt-combo-item img { flex: none; width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: #eee; }
.pt-combo-item strong { display: block; font-size: .9rem; font-weight: 600; color: #2b2622; }
.pt-combo-item small { font-size: .74rem; color: #c62828; font-weight: 600; }
.pt-combo-item.falta { opacity: .7; }

/* passo − 0 +: caixinha branca com sombra; em zero mostra só o "+" */
.pt-step { border: 0; border-radius: 12px; box-shadow: 0 2px 10px rgba(59,52,45,.14); padding: 3px; }
.pt-step button { width: 40px; height: 40px; border-radius: 10px; font-size: .95rem; }
.pt-step.zero { box-shadow: none; background: transparent; }
.pt-step.zero > button[data-delta="-1"], .pt-step.zero > span { display: none; }
.pt-step.zero > button[data-delta="1"] { font-size: 1.05rem; }
.pt-ad.ativo .pt-step { border: 0; }
.pt-sug-card .pt-step { justify-content: space-between; }
.pt-sug-card .pt-step.zero { justify-content: flex-end; }

/* rodapé: − 1 + · valor · Adicionar */
.pt-rodape .pt-qtd { box-shadow: none; border: 1px solid #e3d9cc; border-radius: 14px; }
.pt-adicionar { border-radius: 14px; }
.pt-adicionar strong { font-size: 1rem; }
.pt-sinal { display: block; font-size: 1.55rem; line-height: 1; font-weight: 400; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.pt-step > span:not(.pt-sinal) { font-size: 1rem; }
.pt-step .pt-sinal { color: inherit; min-width: 0; font-weight: 400; font-size: 1.55rem; }

/* V75.130 — sem o creme: fundo branco e cinza neutro; a cor do app só como destaque (borda, ícone, botão) */
.pt-info { background: #f5f5f5; color: #444; }
.pt-selo { background: #ececec; color: #555; }
.pt-radio, .forma-op-marca { border-color: #c4c4c4; }
.pt-step, .pt-obs textarea, .pt-rodape .pt-qtd { border-color: #e2e2e2; }
.pt-step button:not(:disabled):active { background: #f2f2f2; }
.pt-sug-card { border-color: #e8e8e8; }
.pt-sug-card.ativo { background: #fff; border-color: var(--cor-primaria); box-shadow: inset 0 0 0 1px var(--cor-primaria); }
.pt-adicionar:disabled { background: #c8c8c8; }
.pt-loja img { background: #f2f2f2; }
.pt-corpo h2, .pt-preco, .pt-op-txt span, .pt-ad-txt strong, .pt-combo-item strong, .pt-secao-cab h3, .pt-sug-card strong, .pt-step span { color: #222; }
.pt-desc, .pt-sug-card > span { color: #666; }
.pt-secao-cab small { color: #888; }

/* V75.130 — bordas neutras com sombra (a cor do app fica só no texto, nos ícones, na bolinha marcada e no botão) */
.pt-sug-card { border: 1px solid #ececec; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.pt-sug-card.ativo { border-color: #e0e0e0; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.pt-ad.ativo .pt-step { border: 0; }
.pt-step { box-shadow: 0 2px 8px rgba(0,0,0,.10); }
.pt-rodape .pt-qtd { border: 1px solid #ececec; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pt-obs textarea { border-color: #e6e6e6; box-shadow: inset 0 1px 2px rgba(0,0,0,.04); }
.pt-obs textarea:focus { outline: none; border-color: #bdbdbd; box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.pt-loja { box-shadow: 0 6px 20px rgba(0,0,0,.18); }
/* V75.235 — adicional sem estoque: aparece, mas não dá para escolher */
.pt-ad.esgotado .pt-ad-txt{opacity:.55}
.pt-ad-esgotado{flex:0 0 auto;background:#eceff1;color:#6b7280;border-radius:999px;padding:6px 12px;font-weight:800;font-size:12.5px}
