:root{font-family:Inter,Arial,sans-serif;font-size:17px;color:#243c2e;background:#f3f5ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:#1d6540;text-underline-offset:4px}header{height:88px;background:white;border-bottom:1px solid #dee6d8;display:flex;align-items:center;justify-content:space-between;padding:0 3.5%;gap:20px;position:sticky;top:0;z-index:4}.brand{font-size:28px;font-weight:800;color:#236740;letter-spacing:-.7px}.tagline{font-size:13px;color:#778273;margin-top:3px}.header-user{font-size:14px;display:flex;align-items:center;gap:18px}.header-user strong{display:block;max-width:350px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.primary,.secondary,.quiet{border:0;border-radius:8px;padding:12px 16px;font-weight:700}.primary{background:#246c43;color:#fff}.primary:hover{background:#185334}.secondary{background:#e8eee2;color:#245435}.quiet{background:none;color:#35543d}.login{max-width:510px;margin:50px auto;background:white;border:1px solid #dbe4d6;border-radius:16px;padding:32px;box-shadow:0 10px 30px #17382308}.login h1{font-size:29px}.login label{display:block;font-weight:600;margin:24px 0 10px}.login input{width:100%;padding:15px;border:1px solid #a7b7a7;border-radius:8px}.login .primary{width:100%;margin-top:28px}h1,h2,h3,p{margin-top:0}.muted{font-size:14px;color:#6c7c6d;line-height:1.5}.message{padding:15px 18px;border-radius:9px;background:#e5efdc;margin-bottom:20px;line-height:1.5}.message.error{background:#fff0e9;color:#8d392a;border:1px solid #edc2b4}.switch{text-align:center;margin-top:22px}.shell{max-width:1650px;margin:25px auto;padding:0 25px}.intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.intro h1{font-size:27px;margin:0 0 8px}.intro p{font-size:14px;color:#6b7c6a;margin-bottom:0}.layout{display:grid;grid-template-columns:215px minmax(380px,1fr) 340px;gap:20px;align-items:start}.panel{background:white;border:1px solid #dce5d6;border-radius:12px}.categories{padding:18px 12px;position:sticky;top:110px;max-height:calc(100vh - 140px);overflow:auto}.categories h2{font-size:16px;padding:0 10px;margin-bottom:12px}.categories button{display:block;width:100%;text-align:left;background:none;border:0;font-size:14px;color:#4d634f;border-radius:7px;padding:12px 10px;margin-bottom:3px;line-height:1.4}.categories button.active{background:#e8f0df;color:#225b35;font-weight:700}.products{padding:22px}.search{display:flex;gap:10px;margin-bottom:14px}.search input{width:100%;padding:14px 15px;border:1px solid #b3c2ad;border-radius:8px;background:#fafcf8}.search input:focus,input:focus,textarea:focus,select:focus{outline:3px solid #d7e9c7;outline-offset:1px}.counts{font-size:13px;color:#71816d;margin:10px 0 16px}.product-head,.product-row{display:grid;grid-template-columns:64px minmax(100px,1fr) 85px 100px;gap:12px;align-items:center}.product-head{font-size:11px;font-weight:700;letter-spacing:.8px;color:#7b8876;border-bottom:1px solid #e0e7da;padding:0 0 12px}.product-row{padding:15px 0;border-bottom:1px solid #edf1e9}.product-row:last-child{border:0}.product-code{font-size:13px;color:#76836f}.product-name{font-size:15px;font-weight:600;line-height:1.4}.unit{font-size:12px;font-weight:400;color:#7d8975;margin-top:4px}.price{text-align:right;font-size:15px;font-weight:700;white-space:nowrap}.qty{width:100%;font-size:16px;padding:10px 5px;border:1px solid #bdcbb6;border-radius:7px;text-align:center;background:#fbfcf8}.summary{position:sticky;top:110px;overflow:hidden}.summary-head{background:#f4f7ef;padding:20px;border-bottom:1px solid #e3e9dc}.summary h2{font-size:19px;margin:0 0 7px}.save-state{font-size:12px;color:#6f8067}.summary-body{padding:18px}.basket{max-height:310px;overflow:auto}.basket-item{padding:12px 0;border-bottom:1px solid #e8eee1}.basket-top{display:flex;justify-content:space-between;gap:10px;font-size:13px;font-weight:600;line-height:1.45}.basket-detail{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:7px;font-size:12px;color:#738268}.remove{font-size:12px;border:0;background:none;color:#93644c;padding:3px 0}.total{display:flex;justify-content:space-between;align-items:center;font-size:20px;font-weight:800;padding:19px 0;margin:0}.checkout label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.checkout select,.checkout textarea{width:100%;padding:11px;border:1px solid #c1cdbb;border-radius:7px;background:#fff;margin-bottom:16px;font-size:14px}.checkout textarea{resize:vertical;min-height:68px}.summary .primary,.summary .secondary{width:100%;font-size:15px;margin:4px 0}.empty{text-align:center;padding:28px 5px;color:#7a8971;font-size:14px;line-height:1.6}.payment-note{font-size:12px;color:#7c8874;line-height:1.5;margin-top:13px;margin-bottom:0}.error-text{font-size:13px;color:#a14332;line-height:1.5}.overlay{position:fixed;inset:0;background:#17352380;display:flex;align-items:center;justify-content:center;z-index:20;padding:20px}.dialog{width:min(850px,100%);max-height:92vh;overflow:auto;background:white;border-radius:14px;padding:28px;box-shadow:0 24px 80px #0004}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.dialog-head h2{font-size:23px;margin:0}.dialog-head button{border:0;border-radius:50%;background:#edf2e7;width:36px;height:36px;font-size:23px;color:#3e613c}.review-table{border-collapse:collapse;width:100%;font-size:13px;margin:18px 0}.review-table th,.review-table td{padding:10px 6px;text-align:left;border-bottom:1px solid #e1e8da}.review-table th{font-size:11px;color:#74846a}.review-table td:nth-child(n+3),.review-table th:nth-child(n+3){text-align:right}.dialog-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end;margin-top:22px}.history-row{display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid #e0e8d8;padding:15px 0;font-size:14px}.history-row p{margin:5px 0;font-size:12px;color:#73816b}.small{font-size:12px}.ok-badge{color:#2b6e3e;background:#edf5e6;padding:5px 9px;border-radius:20px;font-size:12px}.mobile-summary{display:none}.hide,[hidden]{display:none!important}.loading{text-align:center;padding:80px;color:#57724d}footer{text-align:center;margin:35px 15px;color:#8b9681;font-size:12px}@media(min-width:1550px){.product-name,.price{font-size:17px}.product-row{padding:17px 0}.layout{grid-template-columns:230px minmax(450px,1fr) 370px}.categories button{font-size:16px}}@media(max-width:1150px){.layout{grid-template-columns:175px minmax(300px,1fr) 295px;gap:12px}.shell{padding:0 15px}.products{padding:16px}.product-head,.product-row{grid-template-columns:44px minmax(80px,1fr) 75px 70px;gap:7px}.product-name,.price{font-size:14px}.summary-body{padding:14px}}@media(max-width:900px){.layout{grid-template-columns:1fr 300px}.categories{position:static;grid-column:1/-1;max-height:none;display:flex;gap:7px;overflow:auto;white-space:nowrap;padding:10px}.categories h2{display:none}.categories button{display:inline-block;width:auto;flex:none;margin:0}.intro h1{font-size:23px}.tagline{display:none}}@media(max-width:650px){header{height:72px;padding:0 15px}.brand{font-size:24px}.header-user strong{display:none}.shell{padding:0 10px;margin:18px auto}.intro{display:block}.intro .secondary{margin-top:14px}.layout{display:flex;flex-direction:column}.layout>*{width:100%}.summary{position:static}.product-row,.product-head{grid-template-columns:37px minmax(90px,1fr) 74px 65px;gap:6px}.products{padding:16px 11px}.product-name{font-size:14px}.product-row{padding:14px 0}.price{font-size:14px}.product-code{font-size:11px}.categories{position:sticky;top:72px;z-index:3}.summary-body{padding:18px}.basket{max-height:none}.dialog{padding:20px 14px}.overlay{padding:8px}.review-table{font-size:11px}.review-table th,.review-table td{padding:9px 4px}.login{margin:28px 14px;padding:25px}.mobile-summary{display:block;position:fixed;bottom:15px;left:15px;right:15px;width:calc(100% - 30px);z-index:5;box-shadow:0 4px 25px #16351a44}body.has-order{padding-bottom:80px}}

/* Resumo com finalização sempre à vista e rascunho secundário. */
.summary{display:flex;flex-direction:column;max-height:calc(100dvh - 125px);overflow:hidden}.summary-head{flex:none;padding:16px 18px}.summary-body{min-height:0;overflow-y:auto;padding:0 18px 10px}.basket{max-height:none;overflow:visible}.checkout{padding-top:16px}.checkout label{font-size:14px}.checkout select,.checkout textarea{font-size:15px;margin-bottom:13px}.summary-actions{flex:none;background:#fff;border-top:1px solid #dce5d6;padding:14px 18px 12px;box-shadow:0 -5px 15px #243c2e06}.summary-actions .total{padding:0 0 12px;font-size:20px;gap:12px}.summary-actions .primary{font-size:17px;min-height:50px;margin:0;line-height:1.3}.finalize-note{font-size:13px;line-height:1.4;color:#566c58;margin:9px 0 14px}.draft-alternative{border-top:1px solid #e3e9df;padding-top:11px}.draft-alternative>span{display:block;font-size:14px;color:#5c705e;margin-bottom:7px}.summary-actions .secondary{background:white;border:1px solid #a9bba7;font-size:14px;padding:9px 12px;margin:0;color:#365c40}.payment-note{font-size:12px;line-height:1.4;margin:10px 0 0}@media(max-width:650px){.summary{max-height:none;overflow:visible}.summary-body{overflow:visible}.summary-actions{position:sticky;bottom:0;z-index:2}.summary-actions .primary{font-size:18px}.dialog-actions .primary{width:100%;order:-1}}

.brand-logo{display:block;width:170px;height:57px;object-fit:contain;object-position:left center}@media(max-width:650px){.brand-logo{width:134px;height:48px}}

.promo-panel{border:1px solid #b9ceac;border-radius:9px;background:#f1f7e9;margin-bottom:14px;overflow:hidden}.promo-panel #promo-toggle{width:100%;display:flex;justify-content:space-between;border:0;background:#246c43;color:white;font-size:18px;font-weight:700;text-align:left;padding:12px 15px}#promo-items{padding:14px}#promo-items p{margin:0 0 10px;font-size:14px}.promo-list{display:flex;gap:8px;flex-wrap:wrap}.promo-list button{background:white;border:1px solid #b9ceac;text-align:left}

.promo-banners{display:grid;gap:10px;margin:0 0 14px}.promo-banners img{display:block;width:100%;height:auto;border-radius:8px}

.promo-banners img[hidden]{display:none!important}.promo-controls{display:flex;justify-content:flex-end;gap:8px}.promo-controls button{font-size:13px;padding:7px 10px}

.intro.intro-with-promos{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,560px) auto;gap:18px;align-items:start}.promo-spot{min-width:0;background:#fff;border:1px solid #dce5d6;border-radius:12px;padding:12px}.promo-spot h2{font-size:18px;margin:0 0 8px}.promo-spot .promo-banners{margin:0}.intro-with-promos #history{white-space:nowrap}@media(max-width:900px){.intro.intro-with-promos{grid-template-columns:minmax(0,1fr) auto}.promo-spot{grid-column:1/-1;grid-row:2}.intro-with-promos #history{grid-column:2;grid-row:1;margin-top:0}}@media(max-width:460px){.intro.intro-with-promos{grid-template-columns:1fr}.intro-with-promos #history{grid-column:1;grid-row:3;justify-self:start}}

@media(min-width:901px){.intro.intro-with-promos{grid-template-columns:minmax(220px,1fr) minmax(0,680px) auto}}.promo-spot{border-color:#bfd2bb}.promo-spot h2{font-size:20px;color:#245435}.promo-controls{flex-wrap:wrap;align-items:center}.promo-controls .promo-zoom{margin-right:auto;font-size:15px;padding:9px 12px}.promo-dialog{width:min(1120px,96vw);max-height:94vh;overflow:auto;border:1px solid #b9ceac;border-radius:14px;padding:14px;color:#243c2e}.promo-dialog::backdrop{background:#11251bd9}.promo-dialog h2{display:inline-block;margin:0 0 12px}.promo-dialog button{float:right;margin:0 0 10px 8px}.promo-dialog img{clear:both;width:100%;height:auto}.promo-banners:has(dialog[open]){isolation:auto}

/* Preserve full artwork and a steady carousel height for mixed formats. */
.promo-banners>img{width:100%;height:270px;object-fit:contain;object-position:center;background:#f7f3e7;border-radius:8px}
.promo-banners>img[hidden]{display:none!important}
.promo-dialog img{height:auto;object-fit:contain;background:#fff}
@media(max-width:650px){.promo-banners>img{height:240px}}
