diff --git a/web/checkout.js b/web/checkout.js
index 001e145..ceeb468 100644
--- a/web/checkout.js
+++ b/web/checkout.js
@@ -475,10 +475,15 @@
if (draftId && quotedCart === cartSnapshot()) { await refresh(true); return; }
if (draftId) clearDraft();
if (!clienteOk() || !entrega.cotado) return;
- if (!enderecoOk()) return message('Preencha o endereço de entrega.','error');
+ // Guidance: the customer fills it in (Sentry DTF-WEB-24).
+ if (!enderecoOk()) return message('Preencha o endereço de entrega.','warn');
// Guidance, not a failure: the customer still has a quality note to
// confirm, and the page takes them to it (Sentry DTF-WEB-Y).
if (!cartPodeEnviar()) {
+ if (itensAPagar().some(semMargem)) {
+ document.querySelector('.item .avisoF')?.scrollIntoView({behavior:'smooth',block:'center'});
+ return message('Uma folha do carrinho foi montada antes dos 8 mm entre as cópias: remova e adicione de novo.','warn');
+ }
document.querySelector('.aceiteRes input:not(:checked)')?.closest('label')?.scrollIntoView({behavior:'smooth',block:'center'});
return message('Revise a qualidade e confirme a ressalva de cada item antes de enviar o pedido.','warn');
}
diff --git a/web/site-cart.js b/web/site-cart.js
index 587b755..876f801 100644
--- a/web/site-cart.js
+++ b/web/site-cart.js
@@ -118,9 +118,18 @@ function invalidaItemAtual(){
pintaPedido();
}
function itemPodeEnviar(item){
+ if(semMargem(item)) return false;
return item.qualityStatus==='ok' || item.qualityStatus==='unverified' ||
(item.qualityStatus==='warning' && item.qualityAcknowledged===true);
}
+// Uma folha pronta guardada no carrinho antes dos 8 mm entre as cópias
+// (27/11/2026): o servidor a recusa no pagamento, então o carrinho diz já,
+// no próprio item, para refazê-lo (Sentry DTF-WEB-22).
+function semMargem(item){
+ if(!['file','uvfile','premium'].includes(item.modo) || !item.production?.placements) return false;
+ const ps=[...item.production.placements].sort((a,b)=>a.y_cm-b.y_cm);
+ return ps.some((p,i)=>i>0 && p.y_cm < ps[i-1].y_cm+ps[i-1].length_cm+MARGEM_FOLHA_CM-0.02);
+}
// Os itens marcados no carrinho são os que vão para o pagamento; um item
// desmarcado fica guardado para depois. O item aberto no produto sempre vai.
function itensAPagar(){
@@ -209,7 +218,8 @@ function pintaPedido(){
' aria-label="Incluir '+escapeHTML(it.tit)+' no pagamento">'+
''+(it.mini ? '' : ''+escapeHTML(it.ext||'')+'')+
(it.arquivos>1 ? '+'+(it.arquivos-1)+'' : '')+''+
- '