/* =========================================================
   PedidoPop SaaS 5.0 - Produtos estável
   Fonte única do layout da página Produtos.
   O tema não deve controlar esta tela.
   ========================================================= */

body .pp-product-save-ok{
  position:sticky!important;
  top:10px!important;
  z-index:50!important;
  margin:0 0 12px!important;
  border-radius:18px!important;
  padding:12px 14px!important;
  background:#ecfdf5!important;
  border:1px solid #bbf7d0!important;
  color:#047857!important;
  font-weight:950!important;
  box-shadow:0 14px 34px rgba(4,120,87,.12)!important;
}

body .pp-product-form-guided{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  background:#fff!important;
  border:1px solid #e6edf5!important;
  border-radius:24px!important;
  padding:16px!important;
  margin:0 0 18px!important;
  box-shadow:0 18px 45px rgba(15,23,42,.06)!important;
  overflow:hidden!important;
}
body .pp-product-form-guided *,
body .pp-products-admin-premium *,
body .pp-products-admin *{box-sizing:border-box!important;}

body .pp-guided-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin:0 0 12px!important;}
body .pp-guided-kicker{display:inline-flex!important;align-items:center!important;height:24px!important;padding:0 10px!important;border-radius:999px!important;background:#fff1f2!important;color:#e11d48!important;font-size:11px!important;font-weight:950!important;}
body .pp-guided-head h3{margin:6px 0 2px!important;font-size:22px!important;line-height:1.05!important;letter-spacing:-.04em!important;color:#0f172a!important;}
body .pp-guided-head p{margin:0!important;font-size:12px!important;line-height:1.35!important;color:#64748b!important;font-weight:800!important;}

body .pp-guided-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(280px,.82fr)!important;gap:12px!important;align-items:start!important;}
body .pp-guide-step{min-width:0!important;background:#fff!important;border:1px solid #edf2f7!important;border-radius:18px!important;padding:12px!important;margin:0!important;box-shadow:none!important;}
body .pp-step-title{display:grid!important;grid-template-columns:28px 1fr!important;gap:9px!important;align-items:start!important;margin:0 0 9px!important;}
body .pp-step-title>span{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:28px!important;border-radius:999px!important;background:linear-gradient(135deg,#ef1d2b,#ff5b36)!important;color:#fff!important;font-size:13px!important;font-weight:1000!important;box-shadow:0 8px 18px rgba(239,29,43,.22)!important;}
body .pp-step-title b{display:block!important;font-size:15px!important;line-height:1.1!important;color:#0f172a!important;font-weight:1000!important;margin:0!important;}
body .pp-step-title small{display:block!important;font-size:11px!important;line-height:1.2!important;color:#64748b!important;font-weight:800!important;margin-top:2px!important;}

body .pp-product-form-guided input,
body .pp-product-form-guided select,
body .pp-product-form-guided textarea{width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:42px!important;border:1px solid #dce5ef!important;border-radius:14px!important;background:#fff!important;padding:9px 11px!important;font-size:14px!important;line-height:1.2!important;font-weight:800!important;color:#0f172a!important;box-shadow:none!important;outline:none!important;}
body .pp-product-form-guided textarea{min-height:84px!important;resize:vertical!important;}
body .pp-product-form-guided label{display:block!important;font-size:12px!important;font-weight:950!important;color:#334155!important;line-height:1.15!important;margin:0!important;}
body .pp-product-form-guided label small{font-size:10px!important;color:#64748b!important;font-weight:850!important;}

body .pp-photo-drop{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-height:96px!important;border:1.5px dashed #ff8a8a!important;border-radius:18px!important;background:linear-gradient(180deg,#fff,#fff8f8)!important;text-align:center!important;cursor:pointer!important;padding:12px!important;}
body .pp-photo-drop input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important;}
body .pp-photo-drop strong{font-size:13px!important;font-weight:1000!important;color:#0f172a!important;}
body .pp-photo-drop em{font-style:normal!important;font-size:11px!important;font-weight:850!important;color:#16a34a!important;word-break:break-word!important;}
body .pp-photo-drop.has-photo{background:#ecfdf5!important;border-color:#86efac!important;}

body .pp-step-photo,
body .pp-step-name,
body .pp-step-category,
body .pp-step-price,
body .pp-step-desc{grid-column:1!important;}
body .pp-step-promo,
body .pp-step-addons{grid-column:2!important;}
body .pp-step-promo{grid-row:1 / span 4!important;background:#f8fffb!important;border-color:#d8f5e4!important;}
body .pp-step-addons{grid-row:5 / span 2!important;}
body .pp-step-available{grid-column:1/-1!important;padding:10px 12px!important;background:#ecfdf5!important;border-color:#bbf7d0!important;}

body .pp-category-line{display:grid!important;grid-template-columns:minmax(0,1fr) 118px!important;gap:8px!important;align-items:end!important;}
body .pp-category-line input[name="new_cat"]::placeholder{color:#64748b!important;}
body .pp-price-row{display:grid!important;grid-template-columns:minmax(0,1fr) 128px!important;gap:8px!important;align-items:center!important;}
body .pp-money-field{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;align-items:center!important;width:100%!important;border:1px solid #dce5ef!important;border-radius:14px!important;background:#fff!important;overflow:hidden!important;}
body .pp-money-field span{display:flex!important;align-items:center!important;justify-content:center!important;height:42px!important;background:#f8fafc!important;color:#0f172a!important;font-weight:1000!important;border-right:1px solid #e2e8f0!important;}
body .pp-money-field input{border:0!important;border-radius:0!important;min-height:42px!important;box-shadow:none!important;padding:8px 10px!important;}
body .pp-promo-toggle{width:100%!important;height:42px!important;border:1px solid #fecaca!important;border-radius:14px!important;background:#fff1f2!important;color:#dc2626!important;font-size:12px!important;font-weight:1000!important;cursor:pointer!important;}
body .pp-promo-toggle.is-on{background:#dc2626!important;border-color:#dc2626!important;color:#fff!important;}
body .pp-price-tip{margin:8px 0 0!important;border-radius:999px!important;background:#ecfdf5!important;color:#15803d!important;padding:6px 9px!important;font-size:11px!important;font-weight:900!important;line-height:1.15!important;}

body .pp-step-promo:not(.is-open){display:none!important;}
body .pp-promo-fields{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
body .pp-promo-fields label:first-child{grid-column:1/-1!important;}

body .pp-addon-admin{display:grid!important;gap:10px!important;}
body .pp-add-addon-group{width:100%!important;height:42px!important;min-height:42px!important;border-radius:14px!important;}
body .pp-addon-group-admin{display:grid!important;gap:10px!important;border:1px solid #ffe2e2!important;border-radius:18px!important;background:#fff!important;padding:12px!important;margin:0!important;}
body .pp-addon-empty{display:none!important;}
body .pp-addon-group-top{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;}
body .pp-addon-group-top b{font-size:15px!important;color:#0f172a!important;font-weight:1000!important;}
body .pp-addon-pill{display:inline-flex!important;align-items:center!important;height:24px!important;padding:0 9px!important;border-radius:999px!important;background:#f1f5f9!important;color:#64748b!important;font-size:11px!important;font-weight:900!important;}
body .pp-addon-compact-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
body .pp-addon-compact-grid label:first-child{grid-column:1/-1!important;}
body .pp-check{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;min-height:42px!important;border:1px solid #edf2f7!important;border-radius:14px!important;background:#f8fafc!important;font-weight:950!important;color:#334155!important;}
body .pp-check input{width:22px!important;height:22px!important;min-height:22px!important;max-width:22px!important;padding:0!important;flex:0 0 22px!important;}
body .pp-addon-required{grid-column:1/-1!important;}
body .pp-addon-items-builder{display:grid!important;gap:8px!important;border:1px solid #edf2f7!important;border-radius:16px!important;background:#fbfcfe!important;padding:10px!important;}
body .pp-addon-builder-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;}
body .pp-addon-builder-title strong{font-size:13px!important;color:#0f172a!important;font-weight:1000!important;}
body .pp-addon-builder-title small{font-size:11px!important;color:#64748b!important;font-weight:900!important;}
body .pp-addon-admin-list{display:grid!important;gap:8px!important;}
body .pp-addon-admin-item{display:grid!important;grid-template-columns:minmax(0,1fr) 120px 32px!important;gap:8px!important;align-items:end!important;background:#fff!important;border:1px solid #edf2f7!important;border-radius:14px!important;padding:8px!important;}
body .pp-addon-admin-del{width:32px!important;height:42px!important;border:1px solid #fecaca!important;border-radius:12px!important;background:#fff1f2!important;color:#dc2626!important;font-weight:1000!important;}
body .pp-addon-empty-note{border:1px dashed #cbd5e1!important;border-radius:14px!important;background:#fff!important;color:#64748b!important;padding:14px!important;text-align:center!important;font-size:12px!important;font-weight:900!important;line-height:1.3!important;}

body .pp-available-line{display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;align-items:center!important;}
body .pp-available-line .pp-check{justify-content:flex-start!important;background:transparent!important;border:0!important;min-height:0!important;padding:0!important;}
body .pp-available-line .pp-check span{font-size:14px!important;color:#15803d!important;font-weight:1000!important;}
body .pp-available-line small{font-size:11px!important;color:#15803d!important;font-weight:850!important;line-height:1.1!important;}
body .pp-save-product-btn{grid-column:1/-1!important;width:100%!important;height:50px!important;min-height:50px!important;border-radius:16px!important;font-size:15px!important;font-weight:1000!important;margin-top:12px!important;}

/* Lista compacta dos produtos cadastrados */
body .pp-products-admin,
body .pp-products-admin-premium{display:block!important;background:#fff!important;border:1px solid #e7edf5!important;border-radius:22px!important;overflow:hidden!important;box-shadow:0 16px 42px rgba(15,23,42,.06)!important;margin-top:12px!important;gap:0!important;}
body .pp-admin-product-row,
body .pp-products-admin-premium .pp-admin-product-row{display:grid!important;grid-template-columns:56px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;padding:10px 14px!important;margin:0!important;border:0!important;border-bottom:1px solid #edf2f7!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;min-height:78px!important;}
body .pp-admin-product-row:last-child{border-bottom:0!important;}
body .pp-admin-product-row img{width:56px!important;height:56px!important;border-radius:14px!important;object-fit:cover!important;background:#f4f6fb!important;box-shadow:0 6px 18px rgba(15,23,42,.08)!important;}
body .pp-admin-product-info{min-width:0!important;padding:0!important;}
body .pp-admin-product-info b{display:block!important;font-size:15px!important;line-height:1.1!important;font-weight:1000!important;color:#101827!important;margin:0 0 4px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body .pp-admin-product-info span{display:block!important;font-size:12px!important;line-height:1.1!important;font-weight:850!important;color:#64748b!important;margin:0 0 5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body .pp-admin-product-info strong{display:block!important;font-size:14px!important;line-height:1!important;font-weight:1000!important;color:#dc2626!important;margin:0!important;}
body .pp-product-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;grid-column:auto!important;min-width:116px!important;}
body .pp-product-actions form{margin:0!important;display:block!important;}
body .pp-product-actions .pp-mini-btn,
body .pp-product-actions button.pp-mini-btn,
body .pp-product-actions a.pp-mini-btn{width:auto!important;min-width:54px!important;height:38px!important;min-height:38px!important;padding:0 10px!important;border-radius:13px!important;font-size:11px!important;line-height:1!important;font-weight:950!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid #dfe6f0!important;background:#fff!important;color:#0f172a!important;box-shadow:none!important;text-decoration:none!important;}
body .pp-product-actions .pp-delete-product-btn,
body .pp-product-actions .pp-red{background:#ecfdf5!important;color:#16a34a!important;border-color:#bbf7d0!important;}

@media(max-width:760px){
  body .pp-product-form-guided{border-radius:20px!important;padding:12px!important;margin-bottom:14px!important;}
  body .pp-guided-head h3{font-size:20px!important;}
  body .pp-guided-grid{grid-template-columns:1fr!important;gap:8px!important;}
  body .pp-guide-step,
  body .pp-step-photo,
  body .pp-step-name,
  body .pp-step-category,
  body .pp-step-price,
  body .pp-step-promo,
  body .pp-step-desc,
  body .pp-step-addons,
  body .pp-step-available{grid-column:1!important;grid-row:auto!important;width:100%!important;max-width:100%!important;}
  body .pp-step-promo:not(.is-open){display:none!important;}
  body .pp-guide-step{padding:10px!important;border-radius:16px!important;}
  body .pp-step-title{grid-template-columns:26px 1fr!important;gap:8px!important;margin-bottom:8px!important;}
  body .pp-step-title>span{width:26px!important;height:26px!important;font-size:12px!important;}
  body .pp-step-title b{font-size:14px!important;}
  body .pp-step-title small{font-size:10.5px!important;}
  body .pp-photo-drop{min-height:82px!important;border-radius:15px!important;padding:10px!important;}
  body .pp-category-line{grid-template-columns:1fr 96px!important;gap:7px!important;}
  body .pp-category-line input[name="new_cat"]{font-size:12px!important;padding-left:8px!important;padding-right:8px!important;}
  body .pp-price-row{grid-template-columns:1fr!important;gap:7px!important;}
  body .pp-promo-toggle{height:38px!important;}
  body .pp-promo-fields{grid-template-columns:1fr!important;}
  body .pp-addon-compact-grid{grid-template-columns:1fr 1fr!important;gap:7px!important;}
  body .pp-addon-admin-item{grid-template-columns:1fr 96px 30px!important;gap:6px!important;padding:7px!important;}
  body .pp-addon-admin-del{width:30px!important;height:40px!important;}
  body .pp-available-line{grid-template-columns:1fr!important;gap:3px!important;}
  body .pp-save-product-btn{height:48px!important;min-height:48px!important;margin-top:10px!important;}
  body .pp-admin-product-row,
  body .pp-products-admin-premium .pp-admin-product-row{grid-template-columns:52px minmax(0,1fr) 104px!important;gap:9px!important;padding:9px 10px!important;min-height:72px!important;}
  body .pp-admin-product-row img{width:52px!important;height:52px!important;border-radius:13px!important;}
  body .pp-admin-product-info b{font-size:14px!important;margin-bottom:3px!important;}
  body .pp-admin-product-info span{font-size:11px!important;margin-bottom:4px!important;}
  body .pp-admin-product-info strong{font-size:13px!important;}
  body .pp-product-actions{min-width:104px!important;gap:6px!important;}
  body .pp-product-actions .pp-mini-btn,
  body .pp-product-actions button.pp-mini-btn,
  body .pp-product-actions a.pp-mini-btn{min-width:48px!important;height:34px!important;min-height:34px!important;padding:0 6px!important;font-size:10px!important;border-radius:11px!important;}
}

@media(max-width:390px){
  body .pp-admin-product-row,
  body .pp-products-admin-premium .pp-admin-product-row{grid-template-columns:48px minmax(0,1fr)!important;gap:8px!important;padding:8px!important;}
  body .pp-admin-product-row img{width:48px!important;height:48px!important;}
  body .pp-product-actions{grid-column:1/-1!important;width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;min-width:0!important;}
  body .pp-product-actions .pp-mini-btn,
  body .pp-product-actions button.pp-mini-btn,
  body .pp-product-actions a.pp-mini-btn{width:100%!important;min-width:0!important;}
  body .pp-addon-admin-item{grid-template-columns:1fr!important;}
  body .pp-addon-admin-del{width:100%!important;}
}
