:root{--blue:#0956ad;--navy:#123258;--ink:#172b43;--muted:#6a7e95;--line:#e2eaf5;--bg:#f5f8fd;--green:#11845e;--shadow:0 12px 35px #132a4a12;--radius:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--bg);font:15px/1.5 system-ui,-apple-system,'Segoe UI',Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:var(--blue)}.shell{width:min(1180px,calc(100% - 36px));margin:auto}.top{background:white;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.nav{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:76px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--navy)}.brandmark{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:linear-gradient(145deg,#137bf0,#064284);font-weight:900;color:white;letter-spacing:-1px;box-shadow:0 6px 16px #1255ac35}.brandname{font-size:21px;font-weight:850;letter-spacing:-.7px}.brandname span{color:var(--blue)}.navlinks{display:flex;gap:8px;align-items:center}.navlink{font-size:13px;text-decoration:none;color:var(--navy);font-weight:650;padding:10px 12px;border-radius:10px}.navlink:hover{background:var(--bg)}.primary,.outline,.ghost,.dangerbtn{padding:11px 16px;border-radius:11px;font-weight:750;border:1px solid transparent;display:inline-flex;justify-content:center;align-items:center;gap:8px;text-decoration:none;transition:transform .15s,background .15s;min-height:42px}.primary{background:var(--blue);color:white}.primary:hover{background:#08458e}.outline{border-color:#c6daf1;color:var(--blue);background:white}.outline:hover{background:#edf4ff}.ghost{color:var(--navy);background:#edf3fb}.dangerbtn{background:#fff1f0;color:#ae3333}.primary:disabled,.outline:disabled{opacity:.45;cursor:not-allowed}.hero{margin:28px 0 24px;border-radius:24px;background:linear-gradient(115deg,#083d7e,#0d64bd);color:white;min-height:200px;padding:35px 40px;display:flex;justify-content:space-between;align-items:center;gap:30px;overflow:hidden;position:relative}.hero:after{content:'';position:absolute;width:340px;height:340px;border:55px solid #ffffff16;border-radius:50%;right:-80px;top:-140px;pointer-events:none}.eyebrow{color:#b8dcff;font-size:12px;letter-spacing:1.6px;font-weight:750;text-transform:uppercase}.hero h1{font-size:clamp(27px,4vw,43px);margin:8px 0 10px;letter-spacing:-1.5px;line-height:1.16}.hero p{margin:0;color:#e0efff;max-width:480px}.heroicon{font-size:80px;position:relative;z-index:1;filter:drop-shadow(0 15px 20px #09234a4a)}.tools{background:white;padding:15px;border:1px solid var(--line);border-radius:16px;display:flex;gap:11px;margin-bottom:22px;box-shadow:0 5px 18px #182e4810}.field{padding:12px 14px;border:1px solid #d5e1ef;border-radius:10px;outline:none;background:white;color:var(--ink);width:100%;min-width:0}.field:focus{border-color:#4f91df;box-shadow:0 0 0 3px #1780d31a}.tools input{flex:1}.tools select{width:210px}.sectionhead{display:flex;justify-content:space-between;align-items:end;margin-bottom:16px;gap:14px}.sectionhead h2{margin:0;font-size:22px;letter-spacing:-.5px}.sub{font-size:13px;color:var(--muted);margin:5px 0 0}.pill{font-size:12px;font-weight:750;background:#e9f4ff;color:var(--blue);padding:6px 12px;border-radius:99px}.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:110px}.product{border-radius:17px;background:white;border:1px solid var(--line);overflow:hidden;box-shadow:0 5px 19px #192d4b0b;display:flex;flex-direction:column;min-width:0}.productphoto{aspect-ratio:1.25/1;background:linear-gradient(160deg,#edf6ff,#e7ecf4);position:relative;display:grid;place-items:center;overflow:hidden}.productphoto img{width:100%;height:100%;object-fit:contain;display:block}.placeholder{font-size:66px}.chip{position:absolute;top:11px;left:11px;font-size:10px;letter-spacing:.3px;font-weight:800;color:#0c6594;background:#fffdfaef;padding:5px 9px;border-radius:7px}.chip.soldout{color:#9a4b44}.productbody{padding:14px;flex:1;display:flex;flex-direction:column;gap:8px}.productname{font-size:15px;font-weight:780;line-height:1.32;margin:0;min-height:40px}.description{font-size:12px;color:var(--muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.price{font-weight:900;font-size:21px;color:var(--navy);margin-top:auto}.productbody .primary{width:100%;font-size:13px}.message{background:white;border:1px solid var(--line);padding:30px;border-radius:16px;text-align:center;color:var(--muted);grid-column:1/-1}.cartfloat{position:fixed;right:22px;bottom:22px;z-index:20;box-shadow:0 10px 28px #12386648;border:0;border-radius:15px;background:var(--blue);color:white;padding:15px 22px;font-weight:750;display:flex;gap:11px;align-items:center}.cartcount{background:white;color:var(--blue);border-radius:20px;padding:2px 9px;font-size:12px}.overlay{position:fixed;inset:0;background:#0c203d88;z-index:30;opacity:0;pointer-events:none;transition:opacity .2s}.overlay.active{opacity:1;pointer-events:auto}.drawer{position:fixed;right:0;top:0;bottom:0;z-index:31;width:min(440px,100%);background:white;transform:translateX(105%);transition:transform .2s;display:flex;flex-direction:column;box-shadow:-16px 0 45px #091b3560}.drawer.active{transform:translateX(0)}.drawerheader{padding:22px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.drawerheader h2{margin:0;font-size:23px}.close{background:#eef4fa;color:#1f3958;border:0;width:38px;height:38px;border-radius:10px;font-size:23px}.cartlines{padding:20px 24px;overflow-y:auto;flex:1}.cartline{display:flex;justify-content:space-between;align-items:start;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.cartline h4{margin:0 0 6px;font-size:14px}.cartline small{color:var(--muted)}.qty{display:flex;gap:10px;align-items:center;margin-top:8px}.qty button{border:1px solid var(--line);background:#f3f7fc;width:30px;height:30px;border-radius:8px;font-weight:800}.drawerfooter{border-top:1px solid var(--line);padding:20px 24px}.totalrow{display:flex;justify-content:space-between;font-size:18px;margin-bottom:14px}.full{width:100%}.note{color:var(--muted);font-size:12px}.alert{padding:12px 16px;background:#fff7dc;border:1px solid #e9d399;border-radius:12px;color:#7d5414;margin:16px 0}.footer{text-align:center;color:var(--muted);border-top:1px solid var(--line);padding:24px;font-size:12px}.hidden{display:none!important}.adminmain{max-width:1040px;margin:30px auto 70px;padding:0 18px}.panel{border:1px solid var(--line);background:white;border-radius:19px;box-shadow:var(--shadow);padding:25px;margin-bottom:20px}.panel h1,.panel h2{margin:0 0 7px;color:var(--navy)}.panel h1{font-size:28px}.panel h2{font-size:20px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.formgroup{display:flex;flex-direction:column;gap:7px}.formgroup label{font-weight:730;font-size:13px}.formgroup.wide{grid-column:1/-1}.formgroup textarea{resize:vertical;min-height:80px}.loginbox{max-width:430px;margin:70px auto}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px}.hint{color:var(--muted);font-size:12px}.status{padding:10px 13px;border-radius:10px;background:#e7f5eb;color:#17613a;margin-top:12px;font-size:13px}.status.error{background:#fff0f0;color:#a52635}.status:empty{display:none}.tablewrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;text-align:left}.table th{background:#f5f8fc;text-transform:uppercase;font-size:11px;letter-spacing:.5px;color:var(--muted)}.table td,.table th{border-bottom:1px solid var(--line);padding:12px;vertical-align:middle}.table td{font-size:13px}.thumb{width:55px;height:55px;border-radius:9px;object-fit:cover;background:#edf3f9}.rowbtns{display:flex;gap:6px}.rowbtns button{border:0;padding:8px 11px;border-radius:7px;background:#edf4ff;color:var(--blue);font-weight:750}.rowbtns button.del{background:#ffefef;color:#af3131}.stats{display:flex;gap:15px;flex-wrap:wrap;margin:16px 0}.stat{background:#f4f8ff;padding:13px 19px;border-radius:12px;min-width:130px}.stat strong{font-size:22px;display:block;color:var(--navy)}.stat small{color:var(--muted)}.preview{width:150px;max-height:150px;object-fit:contain;background:#f6f9fc;border-radius:12px;padding:8px;border:1px solid var(--line)}.loginbox .field{margin-top:7px}.loginbox label{font-size:13px;font-weight:700;display:block;margin-top:14px}@media(max-width:930px){.products{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:640px){.shell{width:calc(100% - 26px)}.nav{min-height:69px}.brandname{font-size:18px}.navlinks{gap:2px}.navlink{padding:8px;font-size:12px}.hero{padding:25px;min-height:170px;margin:18px 0}.heroicon{display:none}.tools{flex-direction:column}.tools select{width:100%}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.productbody{padding:11px}.productname{font-size:13px;min-height:38px}.price{font-size:18px}.productphoto{aspect-ratio:1/1}.placeholder{font-size:46px}.cartfloat{bottom:14px;right:14px}.panel{padding:17px}.formgrid{grid-template-columns:1fr}.formgroup.wide{grid-column:auto}.loginbox{margin:30px auto}}

/* Carrinho e compra direta — Digistore.cell */
.productactions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}
.productactions button{font-size:12px;min-height:42px;padding:9px 7px;line-height:1.18}
.productactions button:disabled{opacity:.45}
.checkoutdetails{display:grid;gap:7px;margin-bottom:14px}
.checkoutdetails label{font-size:12px;font-weight:750;color:var(--navy)}
.checkoutdetails .optional{font-size:11px;font-weight:500;color:var(--muted)}
.checkoutdetails textarea.field{resize:vertical;min-height:65px;font:inherit}
.checkoutdetails .field{font-size:14px;padding:10px 12px}
.cartnotice{font-size:12px;color:var(--muted);padding:10px 0}
.drawerfooter{max-height:52vh;overflow-y:auto}
@media(max-width:640px){.productactions{grid-template-columns:1fr}.productactions button{font-size:12px;min-height:37px}}


/* V2 — layout simples + opções estilo iFood */
.product{border-radius:18px}
.productbody{gap:10px}
.description{white-space:normal;overflow:visible;text-overflow:unset;line-height:1.4;min-height:34px}
.productactions button{font-size:13px;font-weight:800}
.cartline h4{display:flex;flex-direction:column;gap:5px}
.optionbadge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:#eef4fd;color:#23508c;font-size:11px;font-weight:700;margin:2px 6px 0 0}
.lineoptions{margin-top:6px}
.optionoverlay{position:fixed;inset:0;background:#081a3470;z-index:34}
.optionsheet{position:fixed;left:50%;top:50%;transform:translate(-50%,-48%);width:min(560px,calc(100% - 22px));max-height:min(88vh,900px);background:#fff;border-radius:22px;box-shadow:0 28px 60px rgba(9,27,53,.3);z-index:35;display:flex;flex-direction:column;overflow:hidden}
.sheethead{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line)}
.sheethead h3{margin:3px 0 0;font-size:23px;color:var(--navy)}
.sheeteyebrow{display:block;font-size:11px;letter-spacing:1px;color:var(--muted);font-weight:800}
.sheetbody{padding:18px 20px;overflow:auto}
.sheetproductline{display:flex;gap:14px;align-items:center;margin-bottom:18px;padding:12px;border-radius:16px;background:#f7faff;border:1px solid #e1eaf7}
.sheetthumb{width:84px;height:84px;border-radius:14px;background:#eef4fc;display:grid;place-items:center;overflow:hidden;flex:0 0 84px}
.sheetthumb img{width:100%;height:100%;object-fit:contain}
.sheetthumb .placeholder{font-size:42px}
.sheetmeta{display:flex;flex-direction:column;gap:6px}.sheetmeta strong{font-size:15px;color:var(--navy)}.sheetmeta span{font-size:18px;font-weight:900;color:var(--blue)}
.optiongroups{display:grid;gap:18px}
.optiongroup{display:grid;gap:10px}
.optiongroup label.group-title{font-size:14px;font-weight:800;color:var(--navy)}
.optionchips{display:flex;flex-wrap:wrap;gap:9px}
.optionchip{border:1px solid #cfe0f4;background:#fff;color:var(--navy);padding:11px 14px;border-radius:13px;font-size:13px;font-weight:700;cursor:pointer;transition:.16s}
.optionchip:hover{background:#f1f7ff}.optionchip.selected{background:#0c5eb7;color:#fff;border-color:#0c5eb7;box-shadow:0 6px 16px rgba(12,94,183,.18)}
.optionchip.colorchip{display:flex;align-items:center;gap:9px;padding-right:16px}
.colorswatch{width:14px;height:14px;border-radius:50%;border:1px solid #b6c7dd;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)}
.modelgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.modelchip{justify-content:center;text-align:center}
.optiongroup select.field{max-width:100%}
.optionnote{margin-top:16px;padding:12px 14px;border-radius:13px;background:#f5f8fd;color:#4f6484;font-size:12px;line-height:1.45}
.sheetfooter{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px 20px;border-top:1px solid var(--line);background:#fff}
.hidden{display:none!important}
@media(max-width:640px){.optionsheet{top:auto;left:0;right:0;bottom:0;transform:none;width:100%;max-height:88vh;border-radius:20px 20px 0 0}.sheetfooter{grid-template-columns:1fr}.modelgrid{grid-template-columns:1fr 1fr}.productactions{grid-template-columns:1fr 1fr}.productactions button{font-size:12px}}


/* V3 — padrão mais completo */
.productphoto img{object-fit:cover}
.description{min-height:38px}
.optiongroups{display:grid;gap:20px}
.group-sub{font-size:11px;color:var(--muted);margin-top:-4px}
.optionchip{position:relative}
.optionchip.popular{border-color:#9fc1ee;background:#f4f8ff}
.optionchip.popular::after{content:'Popular';position:absolute;top:-8px;right:8px;background:#0c5eb7;color:#fff;font-size:9px;font-weight:800;padding:2px 6px;border-radius:999px}
.popular-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.group-divider{height:1px;background:#e8eef7;margin:4px 0}
.colorswatch{width:18px;height:18px;border:2px solid #fff;box-shadow:0 0 0 1px #b9cade,0 2px 6px rgba(0,0,0,.12)}
.optionchip.colorchip{padding:10px 14px 10px 10px}
.optionchip.selected .colorswatch{box-shadow:0 0 0 1px rgba(255,255,255,.7),0 0 0 2px currentColor}
.manual-model-box{display:grid;gap:10px;padding:12px;border:1px dashed #b7c9e0;border-radius:14px;background:#f7faff}
.manual-model-box .field{background:#fff}
.sheetmeta small{color:var(--muted);font-size:12px}
.option-tip{font-size:12px;color:#516883;line-height:1.45;background:#f5f8fd;padding:10px 12px;border-radius:12px}
.product-actions-note{font-size:11px;color:#5e7391;margin-top:-3px}
@media(max-width:640px){.popular-grid{grid-template-columns:1fr 1fr}}
