:root{
  --bg:#090a13;--surface:#121526;--card:#171a2e;--card2:#1d2138;
  --line:rgba(255,255,255,.08);--text:#f8fafc;--muted:#98a2b3;--soft:#667085;
  --primary:#6d5ef8;--blue:#3ba7ff;--success:#34d399;--warn:#fbbf24;--danger:#f87171;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:radial-gradient(circle at 92% 0,rgba(59,167,255,.13),transparent 28rem),radial-gradient(circle at 95% 58%,rgba(248,113,113,.07),transparent 24rem),#070912;
  color:var(--text);font-family:Inter,Geist,system-ui,-apple-system,Segoe UI,sans-serif;
}
a{text-decoration:none;color:inherit}
button,.button{
  border:0;border-radius:13px;background:linear-gradient(135deg,var(--primary),#7667ff);
  color:white;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  font-weight:850;min-height:40px;padding:.72rem 1rem;transition:.18s ease;
}
button:hover,.button:hover{transform:translateY(-1px);filter:brightness(1.06)}
.button.ghost,.ghost{background:#25293f}.button.light{background:white;color:#111}
.button.mini,button.mini{min-height:32px;border-radius:10px;padding:.45rem .75rem;font-size:.8rem}
input,select,textarea{
  width:100%;min-height:42px;border:1px solid var(--line);border-radius:13px;background:#0c0f1c;color:var(--text);
  padding:.72rem .85rem;outline:none;
}
input:focus,select:focus,textarea:focus{border-color:rgba(109,94,248,.72);box-shadow:0 0 0 3px rgba(109,94,248,.14)}
textarea{min-height:92px;resize:vertical}
label{display:grid;gap:.45rem;color:#a7b7d7;font-size:.79rem;font-weight:800}

.promo-strip{
  height:30px;background:#050506;color:#fff;display:flex;gap:4rem;align-items:center;justify-content:center;
  font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.03em;overflow:auto;white-space:nowrap;
}
.public-nav{
  height:78px;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);color:#111;display:flex;align-items:center;
  justify-content:space-between;padding:0 3.6vw;border-bottom:1px solid #e8e8e8;position:sticky;top:0;z-index:5;
}
.public-logo{display:flex;align-items:center;gap:.75rem;font-weight:950;letter-spacing:-.03em}
.public-logo img{height:46px;width:46px;border-radius:12px;display:block;object-fit:cover;background:#f3f4f6}
.public-nav nav{display:flex;gap:1.25rem;align-items:center;font-weight:850}.pill{background:#111;color:white;border-radius:999px;padding:.75rem 1.15rem}
.hero{
  min-height:560px;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.14)),url('https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=1800');
  background-size:cover;background-position:center;display:flex;align-items:center;padding:5vw;
}
.hero>div{max-width:680px}.eyebrow{color:#3ba7ff;font-size:.72rem;letter-spacing:.17em;text-transform:uppercase;font-weight:950}
.hero h1{font-size:clamp(2.7rem,6vw,5.9rem);letter-spacing:-.075em;line-height:.92;margin:.8rem 0 1rem}.hero p{max-width:620px;color:#dce3ee;font-size:1.08rem;line-height:1.55}
.store{background:#fff;color:#111;min-height:100vh;padding:0 5vw 5rem}
.catalog-tabs{min-height:78px;display:flex;gap:.65rem;align-items:center;justify-content:center;border-bottom:1px solid #eee;overflow:auto;padding:.8rem 0}
.catalog-tabs a{border:1px solid #ddd;border-radius:999px;padding:.68rem 1.05rem;font-weight:850;white-space:nowrap;background:#fff}.catalog-tabs .active{background:#111;color:#fff;border-color:#111}
.section-title{max-width:820px;text-align:center;margin:3.5rem auto 2rem}.section-title .eyebrow{color:#006b5f}.section-title h2{font-size:clamp(2.1rem,4.3vw,4.2rem);letter-spacing:-.065em;margin:.35rem 0}.section-title p{color:#6b7280}
.catalog-tools{max-width:760px;margin:0 auto 2.6rem;display:grid;grid-template-columns:1fr 180px;gap:.7rem}.catalog-tools input,.catalog-tools select{background:#f8f8f8;color:#111;border-color:#dcdfe4;border-radius:999px}
.product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1.25rem}.product-card{border:1px solid #e5e7eb;border-radius:22px;background:white;padding:1rem;box-shadow:0 18px 40px rgba(0,0,0,.06)}
.photo{aspect-ratio:1;border-radius:18px;background:linear-gradient(135deg,#edf5f2,#dfece7);display:grid;place-items:center;overflow:hidden}.photo img{width:100%;height:100%;object-fit:cover}.photo span{font-size:2rem;font-weight:950;color:#006b62}
.product-card small,.product-card p{color:#6b7280}.product-card h3{margin:.8rem 0 .25rem;letter-spacing:-.02em}.product-card strong{display:block;color:#047857;margin:.65rem 0}.product-card .button{width:100%;background:#111}
.login-panel{max-width:520px;margin:4rem auto 0;background:#f8fafc;border:1px solid #e5e7eb;border-radius:26px;padding:2rem;box-shadow:0 20px 50px rgba(0,0,0,.08)}.login-panel h2{margin-top:0}.login-panel form{display:grid;gap:1rem}.login-panel input{background:white;color:#111;border-color:#ddd}

.sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:#050711;border-right:1px solid var(--line);padding:1rem;display:flex;flex-direction:column;gap:.42rem}
.brand{display:grid;gap:.35rem;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}.brand img{width:58px;height:58px;border-radius:16px;object-fit:cover;background:#101424}.brand span{font-weight:950}.brand small{color:#9fb6d9}
.sidebar a{padding:.78rem 1rem;border-radius:13px;color:#dce5f7;font-weight:850}.sidebar a.active,.sidebar a:hover{background:linear-gradient(135deg,#1f9df4,#6d5ef8);color:white}
.app{margin-left:246px;padding:1.65rem;min-height:100vh}.app-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.15rem}.app-head h1{margin:.22rem 0 0;font-size:1.75rem;letter-spacing:-.045em}
.notice{background:rgba(109,94,248,.12);border:1px solid rgba(109,94,248,.24);border-radius:14px;color:#dcd8ff;padding:.75rem .9rem}.notice.slim{font-size:.82rem}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem;margin-bottom:.9rem}.metrics div,.panel{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:1rem}.metrics div{min-height:110px}.metrics small{color:var(--muted)}.metrics strong{display:block;font-size:1.55rem;margin-top:.8rem;letter-spacing:-.035em}
.quick-grid,.two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem;margin-bottom:.9rem}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.panel{margin-bottom:.9rem}.panel h2{font-size:1rem;margin:0 0 .9rem}
.row{display:grid;grid-template-columns:1.35fr repeat(4,.75fr) auto auto auto;gap:.7rem;align-items:center;border:1px solid var(--line);background:rgba(255,255,255,.025);border-radius:14px;padding:.78rem;margin:.55rem 0}.row.compact{grid-template-columns:1.4fr repeat(3,.75fr) auto}.row small{display:block;color:var(--muted);margin-top:.22rem}
.avatar{width:42px;height:42px;border-radius:13px;background:#123748;border:1px solid rgba(59,167,255,.25);color:#51fff0;display:grid;place-items:center;font-weight:950}
.product-row{grid-template-columns:auto 1.6fr auto auto auto auto}.customer-row{grid-template-columns:auto 1.45fr auto auto auto auto auto}.team-row{grid-template-columns:1.3fr .8fr .6fr 1fr auto auto}
.sale.paid{border-color:rgba(52,211,153,.35);background:rgba(52,211,153,.08)}.sale.open{border-color:rgba(59,167,255,.26);background:rgba(59,167,255,.06)}.sale.partial{border-color:rgba(251,191,36,.36);background:rgba(251,191,36,.075)}.sale.soon{border-color:rgba(251,146,60,.52);background:rgba(251,146,60,.1)}.sale.late{border-color:rgba(248,113,113,.45);background:rgba(248,113,113,.1)}
.sale em{display:block;color:var(--muted);font-style:normal;font-size:.82rem;margin-top:.28rem}.row-actions{display:flex;flex-wrap:wrap;gap:.45rem;justify-content:flex-end}.row-actions form{margin:0}
.unread{border-color:rgba(251,191,36,.34);background:rgba(251,191,36,.08)}.danger{background:rgba(248,113,113,.2)!important}
.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}.grid-form .wide{grid-column:1/-1}.check{display:flex;align-items:center;gap:.6rem;background:#20243a;border:1px solid var(--line);border-radius:14px;padding:.85rem}.check input{width:auto;min-height:auto}
.inline-form,.inline-actions{display:flex;gap:.7rem;align-items:center}.sale-form{grid-template-columns:repeat(3,minmax(0,1fr))}.muted{color:var(--muted)}.catalog-admin-panel p{margin-top:-.35rem}
.calc-box,.sale-summary{background:rgba(52,211,153,.08);border:1px solid rgba(52,211,153,.18);border-radius:16px;padding:1rem;color:#d7fff0;display:grid;gap:.35rem}
.calc-box strong,.sale-summary strong{font-size:1.45rem;color:var(--success)}
.calc-box span,.sale-summary span{color:var(--muted);font-size:.9rem}
.install-screen{min-height:100vh;display:grid;place-items:center;padding:1rem}.install-card{width:min(760px,100%);background:var(--card);border:1px solid var(--line);border-radius:22px;padding:2rem}.install-card form{display:grid;gap:1rem}
.receipt{background:#fff;color:#111}.receipt main{max-width:820px;margin:2rem auto;padding:2rem}.receipt table{width:100%;border-collapse:collapse;margin:2rem 0}.receipt th,.receipt td{border-bottom:1px solid #ddd;text-align:left;padding:.8rem}.signature{margin-top:5rem;border-top:1px solid #111;width:320px;text-align:center;padding-top:.8rem}
@media(max-width:1020px){.sale-form{grid-template-columns:repeat(2,1fr)}.metrics,.quick-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:860px){
  .promo-strip{justify-content:flex-start}.public-nav{padding:0 1rem}.public-logo span{font-size:.9rem}.public-logo img{height:42px;width:42px}.hero{margin:.8rem;border-radius:24px;min-height:380px;padding:1.5rem}.store{padding:0 1rem 3rem}.catalog-tabs{justify-content:flex-start}.catalog-tools{grid-template-columns:1fr}
  .sidebar{position:static;width:auto;display:grid;grid-template-columns:repeat(2,1fr)}.brand{grid-column:1/-1}.app{margin:0;padding:1rem}.app-head{display:grid}.metrics,.quick-grid,.two-cols,.grid-form,.sale-form{grid-template-columns:1fr}.row,.row.compact,.product-row,.customer-row,.team-row{grid-template-columns:1fr}.inline-form,.inline-actions{flex-direction:column;align-items:stretch}.product-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:520px){.product-grid{grid-template-columns:1fr}.hero h1{font-size:2.55rem}.promo-strip span{min-width:max-content}.notice.slim{width:100%}}

/* v11 polish: catálogo compacto, login dedicado, logo correta, PWA e alinhamentos */
.public-logo img{width:230px!important;height:54px!important;max-width:48vw!important;object-fit:contain!important;border-radius:0!important;background:transparent!important}
.public-nav nav{gap:1rem}.seller-link{font-weight:850;color:#111;white-space:nowrap}
.store{padding-left:clamp(1rem,4vw,4rem);padding-right:clamp(1rem,4vw,4rem)}
.product-grid{max-width:1280px;margin:0 auto;grid-template-columns:repeat(4,minmax(0,1fr));justify-content:start;align-items:start}
.product-card{max-width:100%;padding:.85rem;border-radius:18px}.product-card .photo{border-radius:15px}.product-card h3{font-size:1rem;line-height:1.25}.product-card p,.product-card small{font-size:.86rem}.product-card .button{min-height:38px}
.login-page{min-height:calc(100vh - 108px);display:grid;place-items:center;background:radial-gradient(circle at 10% 0,rgba(59,167,255,.10),transparent 24rem),#f6f7fb;padding:2rem}
.login-panel{margin:0;display:grid;gap:1rem}.login-logo{width:min(260px,100%);height:auto;display:block;margin:0 auto .4rem}.seller-cta{display:flex;align-items:center;justify-content:center;border:1px solid #d9dde7;border-radius:999px;padding:.8rem 1rem;font-weight:850;color:#111;background:#fff}
.notice.error{background:rgba(248,113,113,.13)!important;border-color:rgba(248,113,113,.45)!important;color:#ef4444!important;font-weight:850}
.brand-logo{width:190px!important;height:auto!important;max-height:58px!important;border-radius:0!important;object-fit:contain!important;background:transparent!important}.brand{align-content:start}.brand span{font-size:1rem}
.app-head{min-height:auto;margin-bottom:1.3rem}.app-head p{margin:.35rem 0 0}.app-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:.65rem;flex-wrap:wrap}.theme-toggle,.install-chip,.notice-pill{min-height:36px;border:1px solid var(--line);border-radius:999px;background:#171a2e;color:#f8fafc;padding:.55rem .85rem;font-weight:850}.install-chip{background:linear-gradient(135deg,#1fc8b1,#2585ff)}.notice-pill{display:inline-flex;align-items:center;gap:.42rem;color:#ffd97a}.notice-pill span{width:8px;height:8px;border-radius:999px;background:#f87171}
.panel-title{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.9rem}.panel-title h2{margin:0}
.icon-actions{display:flex;gap:.45rem;align-items:center;justify-content:flex-end}.icon-actions form{margin:0}.icon-btn{width:34px;min-width:34px;height:34px;min-height:34px;border-radius:11px;border:1px solid var(--line);background:#242940;color:#fff;display:grid;place-items:center;font-weight:950;padding:0}.icon-btn:hover{transform:translateY(-1px);filter:brightness(1.08)}
.product-row{grid-template-columns:auto 1.6fr auto auto auto;min-height:68px;padding:.7rem}.product-row .avatar{width:38px;height:38px}.products-panel .row{margin:.45rem 0}
.team-row{grid-template-columns:1.2fr .8fr .55fr .85fr 1fr}.team-row>span,.customer-row>span,.sale>span{border-left:1px solid var(--line);padding-left:.75rem}.status-pill{border:1px solid var(--line);border-radius:999px;padding:.45rem .7rem;text-align:center}.status-pill.ok{color:#34d399;background:rgba(52,211,153,.08);border-color:rgba(52,211,153,.25)}.status-pill.off{color:#98a2b3;background:rgba(255,255,255,.04)}
.sale{grid-template-columns:1.5fr .72fr .72fr .75fr .85fr 1.2fr;align-items:center}.sale.paid{border-color:rgba(52,211,153,.62);background:linear-gradient(90deg,rgba(52,211,153,.16),rgba(52,211,153,.04))}.sale.open{border-color:rgba(59,167,255,.42);background:linear-gradient(90deg,rgba(59,167,255,.13),rgba(59,167,255,.04))}.sale.partial{border-color:rgba(251,191,36,.58);background:linear-gradient(90deg,rgba(251,191,36,.16),rgba(251,191,36,.04))}.sale.soon{border-color:rgba(251,146,60,.68);background:linear-gradient(90deg,rgba(251,146,60,.18),rgba(251,146,60,.05))}.sale.late{border-color:rgba(248,113,113,.65);background:linear-gradient(90deg,rgba(248,113,113,.18),rgba(248,113,113,.05))}
.sale-summary strong{font-size:1.7rem}.sale-summary span{display:block;line-height:1.45}.install-panel{max-width:820px}.install-actions{display:flex;gap:.75rem}.install-ios{display:none;gap:.5rem;color:var(--muted);padding-left:1.2rem}.light-theme{--bg:#f7f8fb;--surface:#fff;--card:#fff;--card2:#f2f4f8;--line:rgba(15,23,42,.10);--text:#0f172a;--muted:#475467;--soft:#667085;background:#f7f8fb;color:#0f172a}.light-theme .sidebar{background:#fff}.light-theme input,.light-theme select,.light-theme textarea{background:#fff;color:#0f172a;border-color:#d8dee9}.light-theme .button.ghost,.light-theme .ghost,.light-theme .theme-toggle{background:#eef2f7;color:#0f172a}.light-theme .check{background:#f3f6fb}
@media(max-width:1020px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sale{grid-template-columns:1fr}.team-row>span,.customer-row>span,.sale>span{border-left:0;padding-left:0}}
@media(max-width:860px){.public-nav{height:68px}.public-logo img{width:190px!important;height:46px!important}.public-nav nav{gap:.55rem}.seller-link{display:none}.hero{margin:0;border-radius:0;min-height:360px}.catalog-tabs{gap:.5rem;padding:.7rem .2rem}.section-title{margin:2.2rem auto 1.4rem}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.product-card{padding:.65rem;border-radius:16px}.product-card h3{font-size:.9rem}.product-card p,.product-card small{font-size:.76rem}.product-card .button{font-size:.78rem;padding:.55rem .6rem}.sidebar{gap:.2rem}.brand-logo{width:170px!important}.app-top-actions{justify-content:flex-start}.panel-title{align-items:stretch;flex-direction:column}.sale-form{grid-template-columns:1fr}.product-row,.team-row{grid-template-columns:1fr}.icon-actions{justify-content:flex-start}}
@media(max-width:520px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store{padding-left:.75rem;padding-right:.75rem}.catalog-tools{gap:.55rem}.promo-strip{gap:2rem}.public-logo img{width:172px!important}.product-card{box-shadow:none}.photo span{font-size:1.35rem}.login-page{padding:1rem}.login-panel{padding:1.35rem;border-radius:22px}}

/* v19 ajustes: identidade por tema, instalação e venda rápida */
.logo-light-theme{display:none}
.brand{gap:.55rem}
.brand small{font-weight:700;letter-spacing:.01em}
.quick-customer-field{background:rgba(59,167,255,.06);border:1px solid rgba(59,167,255,.16);border-radius:14px;padding:.75rem}
.notice.success{background:rgba(52,211,153,.10);border-color:rgba(52,211,153,.30);color:#bff8dc}
.install-panel{display:grid;gap:.9rem}
.install-panel ol{margin:.25rem 0 0}
.install-panel li{margin:.35rem 0}
.light-theme .logo-dark-theme{display:none}
.light-theme .logo-light-theme{display:block}
.light-theme{--bg:#f7f8fb;--surface:#fff;--card:#fff;--card2:#f2f4f8;--line:rgba(15,23,42,.12);--text:#0f172a;--muted:#475467;--soft:#667085;background:#f7f8fb;color:#0f172a}
.light-theme .sidebar{background:#fff;border-color:#e4e7ec}
.light-theme .sidebar a{color:#344054}
.light-theme .sidebar a.active,.light-theme .sidebar a:hover{color:#fff}
.light-theme .brand small{color:#667085}
.light-theme .panel,.light-theme .metrics div,.light-theme .row,.light-theme .product-row,.light-theme .customer-row,.light-theme .team-row{background:#fff;color:#101828;border-color:#e4e7ec}
.light-theme .muted,.light-theme small,.light-theme label{color:#667085}
.light-theme input,.light-theme select,.light-theme textarea{background:#fff;color:#101828;border-color:#d0d5dd}
.light-theme .button.ghost,.light-theme .ghost,.light-theme .theme-toggle{background:#eef2f7;color:#101828}
.light-theme .check,.light-theme .quick-customer-field{background:#f3f6fb;color:#344054}
.light-theme .sale-summary{background:#ecfdf3;border-color:#bbf7d0;color:#064e3b}
.light-theme .sale-summary span{color:#667085}
.light-theme .notice.success{background:#ecfdf3;border-color:#bbf7d0;color:#067647}

/* v22: correções fortes para tema, logo única, miniaturas e instalação iOS */
.brand .logo-light-theme{display:none!important}
.brand .logo-dark-theme{display:block!important}
.light-theme .brand .logo-dark-theme{display:none!important}
.light-theme .brand .logo-light-theme{display:block!important}
.brand-logo{object-fit:contain!important;background:transparent!important}
.light-theme .sidebar a{color:#1f2937!important}
.light-theme .sidebar a:not(.active){opacity:1!important}
.light-theme .sidebar a.active,.light-theme .sidebar a:hover{color:#fff!important}
.light-theme .app-head h1,.light-theme h1,.light-theme h2,.light-theme strong{color:#0b1220}
.product-thumb{overflow:hidden}
.product-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.products-panel .product-thumb,.product-row .product-thumb{width:48px;height:48px;border-radius:13px;padding:0}
.install-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.install-options article{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:16px;padding:1rem;display:grid;gap:.65rem}
.install-options button{width:max-content}
.install-ios{display:grid!important}
.light-theme .install-options article{background:#f8fafc}
@media(max-width:760px){.install-options{grid-template-columns:1fr}.products-panel .product-thumb,.product-row .product-thumb{width:44px;height:44px}}

/* v23: correções reais após validação visual */
.brand .brand-logo{
  display:block!important;
  width:190px!important;
  height:auto!important;
  max-height:58px!important;
  object-fit:contain!important;
  object-position:left center!important;
  border-radius:0!important;
  background:transparent!important;
}
.brand .logo-dark-theme,
.brand .logo-light-theme{display:none!important}
.light-theme .sidebar{background:#ffffff!important;border-color:#d0d5dd!important}
.light-theme .sidebar a{
  color:#243041!important;
  opacity:1!important;
  font-weight:850!important;
}
.light-theme .sidebar a:not(.active):hover{background:#eef2ff!important;color:#111827!important}
.light-theme .sidebar a.active{color:#fff!important}
.light-theme .brand small{color:#475467!important}
.light-theme .muted,
.light-theme small,
.light-theme label{color:#475467!important}
.light-theme .sidebar .brand + a,
.light-theme .sidebar a{ text-shadow:none!important; }

.instagram-link{display:inline-flex;align-items:center;gap:.45rem}
.instagram-link img{width:18px;height:18px;object-fit:contain;display:block}
.public-instagram{color:#111;font-weight:850;white-space:nowrap}
.sidebar-instagram{margin-top:auto;border:1px solid var(--line);background:rgba(255,255,255,.035)}
.sidebar-instagram img{filter:invert(1)}
.light-theme .sidebar-instagram{background:#f8fafc;border-color:#d0d5dd}
.light-theme .sidebar-instagram img{filter:none}

@media(max-width:860px){
  .public-instagram{font-size:0;width:40px;height:40px;padding:0;justify-content:center}
  .public-instagram img{width:20px;height:20px}
}

.catalog-price{display:block;margin:.35rem 0 .65rem;font-weight:900;color:#111;font-size:1rem}
.share-product{margin-top:.5rem;background:#25d366!important;color:#07120b!important}
.share-product:hover{filter:brightness(1.04)}
@media(max-width:860px){.share-product{font-size:.72rem!important;padding:.5rem!important}.catalog-price{font-size:.9rem}}

.app .product-row .product-thumb,
.app .products-panel .product-thumb{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  max-height:52px!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:14px!important;
}
.app .product-row .product-thumb img,
.app .products-panel .product-thumb img,
.app .product-row img{
  width:52px!important;
  height:52px!important;
  max-width:52px!important;
  max-height:52px!important;
  object-fit:cover!important;
  display:block!important;
}
.public-catalog .product-card .photo,
.product-card .photo{
  aspect-ratio:1/1!important;
  max-height:290px!important;
}
.product-card .photo img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  background:#fff!important;
}
.customer-editor{max-width:980px}
.panel-title form{margin:0}


/* v28: trava real de miniaturas, botoes legiveis e alerta de upload */
.products-panel{overflow:hidden!important;}
.products-panel .product-row{overflow:hidden!important;align-items:center!important;grid-template-columns:56px minmax(0,1fr) auto auto auto!important;gap:.75rem!important;min-height:66px!important;}
.products-panel .product-row .product-thumb,
.products-panel .product-row .avatar.product-thumb{width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;min-height:52px!important;max-height:52px!important;overflow:hidden!important;border-radius:14px!important;display:grid!important;place-items:center!important;padding:0!important;background:#0f3f54!important;}
.products-panel .product-row .product-thumb img,
.products-panel .product-row .avatar.product-thumb img,
.products-panel img{width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;min-height:52px!important;max-height:52px!important;object-fit:cover!important;display:block!important;position:static!important;inset:auto!important;transform:none!important;margin:0!important;border-radius:14px!important;background:transparent!important;}
.products-panel .product-row > div:nth-child(2){min-width:0!important;overflow:hidden!important;}
.products-panel .product-row > div:nth-child(2) strong,
.products-panel .product-row > div:nth-child(2) small{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.icon-actions{display:flex!important;gap:.4rem!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;}
.icon-actions form{margin:0!important;display:inline-flex!important;}
.icon-btn.text{width:auto!important;min-width:auto!important;height:32px!important;min-height:32px!important;padding:0 .62rem!important;border-radius:10px!important;font-size:.74rem!important;line-height:1!important;white-space:nowrap!important;}
.notice.error,.app-head .notice.error{background:rgba(248,113,113,.14)!important;border-color:rgba(248,113,113,.55)!important;color:#fecaca!important;}
.light-theme .notice.error,.light-theme .app-head .notice.error{background:#fff1f2!important;border-color:#fecdd3!important;color:#b42318!important;}
.product-card .photo{height:auto!important;max-height:none!important;overflow:hidden!important;}
.product-card .photo img{width:100%!important;height:100%!important;object-fit:contain!important;}
@media(max-width:860px){.products-panel .product-row{grid-template-columns:52px minmax(0,1fr)!important;}.products-panel .product-row span,.products-panel .product-row .icon-actions{grid-column:2!important;justify-content:flex-start!important;}.icon-actions{flex-wrap:wrap!important;}}


/* v29: trava definitiva de miniaturas internas e botões */
.products-panel .product-row,
.app .product-row{
  position:relative!important;
  overflow:hidden!important;
}
.products-panel .product-thumb,
.app .product-row .product-thumb{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  min-height:52px!important;
  max-height:52px!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  overflow:hidden!important;
  flex:0 0 52px!important;
}
.products-panel .product-thumb img,
.app .product-row .product-thumb img{
  display:none!important;
}
.products-panel .product-row > img,
.app .product-row > img{
  display:none!important;
}

/* v35: compartilhar produto no painel interno */
.share-app-product{
  background:rgba(52,211,153,.12)!important;
  border-color:rgba(52,211,153,.28)!important;
  color:#bbf7d0!important;
}
.light-theme .share-app-product{
  background:#ecfdf5!important;
  border-color:#bbf7d0!important;
  color:#047857!important;
}
.icon-actions .icon-btn.text{
  width:auto!important;
  min-width:0!important;
  height:32px!important;
  min-height:32px!important;
  padding:0 .65rem!important;
  font-size:.76rem!important;
  border-radius:10px!important;
}
.notice.error{
  border-color:rgba(248,113,113,.55)!important;
  color:#fecaca!important;
  background:rgba(248,113,113,.12)!important;
}


/* v30: miniatura visível via data-photo e sem botão instalar no topo */
.product-thumb.has-photo,
.product-thumb[data-photo]{
  color:transparent!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  border-color:rgba(59,167,255,.35)!important;
}
.products-panel .product-thumb[data-photo],
.app .product-row .product-thumb[data-photo]{
  width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;
}
.app-top-actions .install-chip{display:none!important;}


/* v31: foto real verificada, miniatura nunca fica vazia e nunca explode */
.product-thumb{
  display:grid!important;
  place-items:center!important;
}
.product-thumb .thumb-img{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  max-width:52px!important;
  min-height:52px!important;
  max-height:52px!important;
  object-fit:cover!important;
  display:block!important;
  border-radius:14px!important;
}
.product-thumb .thumb-fallback{
  width:100%!important;
  height:100%!important;
  display:grid;
  place-items:center;
}
.products-panel .product-thumb img,
.app .product-row .product-thumb img{
  display:block!important;
}
.products-panel .product-row > img,
.app .product-row > img{
  display:none!important;
}
/* Mobile-friendly autocomplete for Nova venda */
.product-picker,.customer-picker{position:relative}
.product-picker datalist,.customer-picker datalist{display:none!important}
.product-picker input::-webkit-calendar-picker-indicator,
.customer-picker input::-webkit-calendar-picker-indicator{display:none!important;opacity:0}
.autocomplete-list{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 8px);
  display:grid;
  gap:.55rem;
  margin:0;
  padding:.62rem;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:#090a13;
  box-shadow:0 20px 44px rgba(0,0,0,.42);
  max-height:min(320px,42vh);
  overflow:auto;
  z-index:80;
  overscroll-behavior:contain;
}
.autocomplete-list[hidden]{display:none!important}
.autocomplete-item{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:.75rem;
  align-items:center;
  text-align:left;
  padding:.78rem .85rem;
  border-radius:13px;
  background:#171a2e;
  border:1px solid rgba(255,255,255,.06);
  color:#f8fafc;
  min-height:58px;
}
.autocomplete-item:hover,.autocomplete-item:focus{border-color:rgba(109,94,248,.65);background:#1d2140;transform:none}
.autocomplete-item strong,.autocomplete-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.autocomplete-item small{margin-top:.18rem;color:#98a2b3;font-size:.82rem}
.autocomplete-item em{font-style:normal;color:#34d399;font-weight:800;white-space:nowrap;font-size:.86rem}
.autocomplete-empty{padding:.8rem;color:#98a2b3}
.light-theme .autocomplete-list{background:#ffffff;border-color:#d0d5dd;box-shadow:0 18px 40px rgba(16,24,40,.18)}
.light-theme .autocomplete-item{background:#f8fafc;color:#101828;border-color:#e4e7ec}
.light-theme .autocomplete-item small{color:#667085}
@media(max-width:760px){
  .autocomplete-list{max-height:36vh;padding:.5rem;border-radius:15px;box-shadow:0 16px 34px rgba(0,0,0,.45)}
  .autocomplete-item{grid-template-columns:1fr;gap:.35rem;min-height:58px;padding:.72rem .78rem}
  .autocomplete-item em{font-size:.82rem}
}

/* v39 - ajustes do catalogo publico no mobile */
@media(max-width:760px){
  .promo-strip{
    height:28px;
    justify-content:flex-start;
    gap:1.6rem;
    padding:0 .85rem;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .promo-strip::-webkit-scrollbar{display:none}
  .public-nav{
    height:auto!important;
    min-height:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:.55rem!important;
    padding:.7rem .85rem .85rem!important;
    align-items:start!important;
  }
  .public-logo{min-width:0}
  .public-logo img{
    width:min(210px,74vw)!important;
    height:46px!important;
    max-width:74vw!important;
    object-fit:contain!important;
    object-position:left center!important;
  }
  .public-nav nav{
    width:100%;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:.45rem!important;
    overflow-x:auto;
    padding-bottom:.1rem;
    scrollbar-width:none;
  }
  .public-nav nav::-webkit-scrollbar{display:none}
  .public-nav nav a{
    flex:0 0 auto;
    white-space:nowrap;
    font-size:.86rem;
  }
  .public-instagram{
    display:inline-flex!important;
    width:auto!important;
    height:36px!important;
    padding:0 .72rem!important;
    border:1px solid #e5e7eb;
    border-radius:999px;
    font-size:.86rem!important;
  }
  .public-instagram img{width:17px!important;height:17px!important}
  .seller-link{
    display:inline-flex!important;
    align-items:center;
    height:36px;
    padding:0 .78rem;
    border-radius:999px;
    border:1px solid #e5e7eb;
    background:#fff;
    font-size:.86rem;
  }
  .pill{
    height:38px;
    display:inline-flex;
    align-items:center;
    padding:.55rem .9rem;
  }
}

/* v40 - menu publico mobile sem cortes */
@media(max-width:760px){
  .promo-strip{
    height:auto!important;
    min-height:44px!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:.15rem .5rem!important;
    padding:.38rem .55rem!important;
    overflow:visible!important;
    white-space:normal!important;
    text-align:center!important;
    line-height:1.12!important;
    font-size:.62rem!important;
  }
  .promo-strip span{
    display:block!important;
    min-width:0!important;
    overflow:visible!important;
    white-space:normal!important;
  }
  .public-nav{
    display:block!important;
    height:auto!important;
    padding:.75rem .9rem!important;
  }
  .public-logo{
    display:flex!important;
    justify-content:center!important;
    width:100%!important;
    margin:0 0 .7rem!important;
  }
  .public-logo img{
    width:min(230px,82vw)!important;
    max-width:82vw!important;
    height:48px!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  .public-nav nav{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:.5rem!important;
    width:100%!important;
    overflow:visible!important;
    padding:0!important;
  }
  .public-nav nav a,
  .public-instagram,
  .seller-link,
  .public-nav .pill{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    height:40px!important;
    padding:0 .55rem!important;
    border-radius:999px!important;
    border:1px solid #e5e7eb!important;
    background:#fff!important;
    color:#111!important;
    font-size:.82rem!important;
    font-weight:850!important;
    line-height:1.05!important;
    text-align:center!important;
    white-space:normal!important;
  }
  .public-nav .pill{
    background:#111!important;
    color:#fff!important;
    border-color:#111!important;
  }
  .public-instagram{
    gap:.35rem!important;
  }
  .public-instagram img{
    width:16px!important;
    height:16px!important;
    flex:0 0 auto!important;
  }
}
