:root{--ink:#1c3329;--muted:#67766e;--green:#147d5a;--green-dark:#116747;--light-green:#eaf6ef;--line:#e1e9e3;--bg:#f4f7f3;--surface:#fff;--red:#a93333;--radius:19px}
*{box-sizing:border-box}html{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-text-size-adjust:100%}body{margin:0;background:radial-gradient(circle at 90% 0,#e5f6e9 0,transparent 37%),var(--bg);color:var(--ink);min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #61c58f;outline-offset:2px}.hidden{display:none!important}.page{width:min(100% - 28px,740px);margin:auto}.site-header{padding:24px 0 21px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;gap:10px;align-items:center;color:inherit;text-decoration:none}.brand-icon{width:48px;height:48px;background:var(--green);border-radius:15px;display:grid;place-items:center;font-size:24px;box-shadow:0 5px 14px #147d5a22}.brand strong{display:block;font-weight:800;font-size:16px;letter-spacing:.055em}.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.14em;font-weight:750;margin-top:3px}.small-action{padding:11px 14px;background:white;color:var(--green);border:1px solid var(--line);border-radius:12px;font-size:13px;font-weight:700}.card{background:var(--surface);border:1px solid #e5ebe6;border-radius:var(--radius);box-shadow:0 13px 45px #244a3010}.welcome{max-width:625px;margin:30px auto;padding:42px;text-align:center}.intro-emoji{font-size:55px}.eyebrow{color:var(--green);font-size:11px;font-weight:850;letter-spacing:.16em;text-transform:uppercase;margin:4px 0 7px}h1{line-height:1.15;letter-spacing:-.035em;margin:0;font-size:clamp(27px,5vw,39px)}.intro{color:var(--muted);font-size:16px;line-height:1.65;margin:18px auto 28px;max-width:490px}.create-form{text-align:left;max-width:420px;margin:auto;display:grid;gap:11px}label{font-size:13px;font-weight:750;display:block;margin-bottom:8px}input{background:#fff;border:1.5px solid #dce6df;border-radius:11px;padding:14px;color:var(--ink);width:100%;min-width:0;font-size:16px}input::placeholder{color:#99a69d}.primary{background:var(--green);border:1px solid var(--green);color:#fff;border-radius:11px;font-weight:800;padding:15px 18px;white-space:nowrap}.primary:hover{background:var(--green-dark)}button:disabled{opacity:.55;cursor:wait}.feature-row{display:flex;flex-wrap:wrap;justify-content:center;gap:9px 17px;color:var(--muted);font-size:12px;margin:28px 0 0}.shopping-card{padding:30px}.list-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:24px}.list-heading h1{font-size:clamp(26px,5vw,34px);overflow-wrap:anywhere}.connection{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);border:1px solid var(--line);padding:8px 10px;border-radius:99px;white-space:nowrap;margin-top:8px}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ddac43}.connection.ok .status-dot{background:#32a667}.connection.bad .status-dot{background:#cf5555}.share-box{display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--light-green);padding:18px;border:1px solid #d7eadd;border-radius:14px}.share-copy{display:grid;gap:5px;min-width:130px}.share-copy strong{font-size:14px}.share-copy span{font-size:12px;line-height:1.5;color:#567264}.share-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.share-actions button{border:1px solid #c6dfce;padding:10px 12px;border-radius:10px;font-size:12px;font-weight:800;background:#fff;color:#236447}.share-actions .share-whatsapp{background:#1f9a65;color:white;border-color:#1f9a65}.add-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:27px 0 21px}.input-grow{flex:1 1 190px}.input-quantity{flex:0 1 140px}.input-quantity span{font-weight:450;color:var(--muted)}.add-button{flex:0 0 auto;padding:15px}.progress-area{border-top:1px solid var(--line);padding:22px 0 15px}.progress-label{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:12px}.progress-label span{color:var(--muted)}.progress-track{height:9px;border-radius:99px;background:#ebf0eb;overflow:hidden}.progress-bar{height:100%;border-radius:99px;width:0;background:#21a66e;transition:width .2s}.section-title{display:flex;align-items:center;gap:8px;margin:23px 0 12px}.section-title h2{font-size:16px;margin:0;letter-spacing:-.015em}.count-pill{border-radius:99px;background:#edf1ee;color:#65746a;padding:3px 9px;font-size:11px;font-weight:800}.product-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.product-row{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-height:60px}.check-button{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;border:2px solid #bdd0c3;background:#fff;flex:0 0 auto;color:transparent;font-size:18px}.check-button.checked{background:var(--green);border-color:var(--green);color:#fff}.product-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.product-name{font-weight:730;font-size:15px}.product-quantity{font-size:12px;color:var(--muted)}.completed-list .product-name{text-decoration:line-through;color:#91a098}.completed-list .product-quantity{color:#a0aaa3}.delete-button{border:0;background:transparent;color:#a2aca5;border-radius:9px;padding:7px 10px;font-size:22px;line-height:1}.delete-button:hover{color:var(--red);background:#fff1f1}.completed-heading{margin-top:29px}.empty-message{padding:25px 15px;text-align:center;color:#7c8b81;background:#f9fbf9;border:1px dashed #d9e5dc;border-radius:12px;font-size:13px}.bottom-actions{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line);padding-top:22px;margin-top:24px}.secondary{border:1px solid #dbe7df;color:var(--green);background:#fff;border-radius:10px;padding:11px 15px;font-size:13px;font-weight:750}.secondary:hover{background:var(--light-green)}.privacy-note{max-width:600px;color:#738278;font-size:12px;line-height:1.65;margin:16px auto 25px;text-align:center}.message{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#1d3a2b;color:white;border-radius:12px;padding:13px 18px;box-shadow:0 7px 24px #0002;z-index:10;font-size:13px;text-align:center;max-width:calc(100vw - 20px)}.message.error{background:#8f3434}footer{text-align:center;padding:26px 0 32px;font-size:12px;color:#859488}
@media(max-width:640px){.site-header{padding-top:18px}.brand-icon{width:43px;height:43px}.brand strong{font-size:14px}.welcome{margin:6px auto;padding:30px 22px}.shopping-card{padding:22px 16px}.share-box{display:grid;gap:13px}.share-actions{justify-content:stretch}.share-actions button{flex:1}.add-form{gap:10px}.input-quantity{flex:1 1 115px}.add-button{width:100%}.list-heading{align-items:start}.connection{font-size:10px}.bottom-actions .secondary{flex:1}.privacy-note{padding:0 7px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Lista de Compras v2 — apenas valor estimado por produto e total */
.price-field{flex:0 0 104px;min-width:0;display:flex;align-items:center;gap:4px;border:1.5px solid #dce6df;border-radius:10px;padding:0 8px;background:#fff}
.price-field:focus-within{outline:2px solid #61c58f;outline-offset:1px}
.price-input{width:100%;min-width:0;border:0;outline:0!important;border-radius:0;background:transparent;padding:10px 0;text-align:right;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;box-shadow:none!important}
.price-input:focus-visible{outline:0!important}
.price-currency{font-size:13px;color:#51685c;font-weight:800;flex:0 0 auto}
.estimated-box{margin:12px 0 18px;padding:16px 18px;border:1px solid #c9e5d3;border-radius:13px;background:#eaf6ef}
.estimated-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:14px}
.estimated-total{color:#09693e;font-size:clamp(19px,4vw,27px);white-space:nowrap;font-variant-numeric:tabular-nums}
.estimated-box p{font-size:12px;color:#567264;margin:9px 0 0;line-height:1.5}
@media(max-width:420px){.product-row{gap:6px;padding:9px 8px}.product-name{font-size:14px}.price-field{flex-basis:87px;padding:0 5px}.price-input{font-size:13px}.delete-button{padding:6px 5px}.estimated-box{padding:14px 12px}}
@media(max-width:340px){.product-row{flex-wrap:wrap}.product-info{flex-basis:calc(100% - 72px)}.price-field{margin-left:35px;flex:1 0 90px}.delete-button{margin-left:auto}}
