
/* Ajustes de acabamento na versao oficial. */
html{scroll-padding-top:100px}section[id],footer[id]{scroll-margin-top:105px}
@media(min-width:900px){body{padding-left:180px} .page-scroll header{width:180px;padding:28px 20px;gap:34px;align-items:stretch}.page-scroll header nav{align-items:stretch}.page-scroll header .brand{font-size:1.45rem}.page-scroll header>.bag-trigger{position:static;width:100%;margin-top:auto;justify-content:center}.demo{margin-left:0}}
header nav a[aria-current="location"],.menu-movel a[aria-current="location"]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
.pack-area{height:auto;aspect-ratio:4/3;background:#eaf4ff}.pack-area:before{display:none}.pack-area .product-photo{width:100%;height:100%;object-fit:cover}.pack-area small,.pack-area:has(.product-photo) small{font-size:.65rem;bottom:6px;left:6px;padding:3px 5px}.card-actions [data-card-add]{background:#173b63;color:white}.card-actions [data-card-plus],.card-actions [data-card-minus]{background:#fffdf8;color:#173b63}.card-actions{width:100%}
.recipe-index{padding-top:65px;padding-bottom:70px}.recipe-index .recipe-feature{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);max-width:none;gap:28px;align-items:center;padding:20px}.recipe-index .recipe-feature img{width:100%;height:280px;max-height:none;object-fit:cover}.recipe-feature h3{font:2rem Georgia,serif;margin:10px 0}.recipe-feature p{margin:12px 0}.recipe-feature .button{padding:12px 20px;color:#fff}.recipe-dialog{border:0;padding:0;max-width:min(900px,95vw);width:95vw;max-height:90dvh;background:#173b63;color:#fff;overflow:auto}.recipe-dialog::backdrop{background:#10253f99}.recipe-dialog #close-recipe{position:sticky;top:0;z-index:3;float:right;margin:12px;background:#fff;color:#173b63;border:1px solid #173b63;border-radius:10px;min-height:44px;padding:8px 16px}.recipe-dialog .recipe{clear:both}.recipe-dialog .recipe-copy{padding:40px 7%}.recipe-dialog .recipe-photo{min-height:320px}
#bag[open]{display:flex;flex-direction:column;overflow:hidden}#bag .bag-top{position:static;flex:none}#bag .list-section{flex:1;min-height:0;overflow-y:auto;padding:8px 0}#bag .list-layout{padding:0 16px}#bag .list-box{border:0;padding:8px 0;background:transparent}#bag .list-box h3{font:700 1rem Arial,sans-serif;padding:8px 0}#bag .list-row{display:grid;grid-template-columns:48px minmax(0,1fr) 38px 24px 38px;gap:5px;padding:10px 0}#bag .bag-thumb{width:48px;height:48px}#bag .list-row button{min-width:38px;min-height:44px}#bag .list-row .remove{grid-column:2/-1}.bag-footer{flex:none;padding:12px 16px max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d2e3f0}.bag-footer .button{width:100%}#message-box{padding:12px 0;margin:10px 0}#bag-recipe-feedback{margin:0 16px}
@media(max-width:899px){html,body{height:auto;overflow:visible}body{display:block;padding:0}.page-scroll{overflow:visible;min-height:0}.page-scroll header{position:sticky;top:0;min-height:64px;padding:8px 4%;gap:8px}.page-scroll header .brand{font-size:1.45rem;margin-right:auto}.page-scroll header>.bag-trigger{order:2;position:static;width:auto;min-height:44px;height:44px;padding:8px 10px;border-radius:30px;font-size:.8rem}.page-scroll header .menu-toggle{order:1;width:44px;height:44px}.menu-pronto .page-scroll header{justify-content:flex-start}.recipe-index .recipe-feature{grid-template-columns:1fr;gap:14px}.recipe-index .recipe-feature img{height:220px}.recipe-dialog .recipe-photo{height:240px;min-height:0}.recipe-dialog .recipe-copy{padding:28px 6%}.product-grid .card{display:flex}.pack-area{height:auto}body:has(dialog[open]){overflow:hidden}}
@media(prefers-reduced-motion:reduce){.recipe-dialog,#bag{animation:none!important}}
@media(max-width:899px){body.aberto .page-scroll header .brand,body.aberto .page-scroll header .bag-trigger{visibility:hidden}}

@media(min-width:900px){html.header-pronto .page-scroll > header.escondido{transform:none}}

@media(max-width:899px){html.header-pronto .page-scroll > header{background:#fffdf8}html.header-pronto .page-scroll > header::before{background:#fffdf8}}

/* Ritmo comum na grade e nos controles da vitrine. */
.product-grid{align-items:stretch;row-gap:24px}
.product-grid .card{display:grid;grid-template-rows:auto minmax(2.4em,auto) auto 1fr;align-content:start;min-width:0;height:100%}
.product-grid .card .pack-area{width:100%;aspect-ratio:4/3;height:auto}
.product-grid .card h3{margin:14px 0 5px;line-height:1.2}
.product-grid .card p{margin:0 0 12px;line-height:1.35}
.product-grid .card-actions{align-self:end;display:flex;width:100%;height:48px;min-height:48px;gap:6px;margin:0 0 20px}
.product-grid .card-actions button{height:48px;min-height:48px;margin:0!important;padding:6px 8px;line-height:1.15}
.product-grid .card-actions span{flex:none;min-width:24px}
@supports(grid-template-rows:subgrid){.product-grid .card{grid-template-rows:subgrid;grid-row:span 4;row-gap:0}.product-grid .card-actions{align-self:end}}
:is(.hero .button,.filters button,.card-actions button,.bag-top button,.bag-footer button,#copy,.list-row button,.recipe-index .button,.recipe-dialog button,.recipe-dialog .button){min-height:48px;border-radius:12px;padding:10px 16px;font-weight:700;line-height:1.15;transition:background-color .18s,color .18s,border-color .18s,box-shadow .18s}
:is(.hero .button,.card-actions [data-card-add],.bag-footer button,#add-recipe-all,.recipe-index .button){background:#173b63;color:#fff;border:1px solid #173b63}
:is(.filters button,.card-actions [data-card-minus],.card-actions [data-card-plus],.bag-top button,#copy,.list-row button,.recipe-dialog button:not(#add-recipe-all),.recipe-dialog .button:not(#add-recipe-all)){background:#fffdf8;color:#173b63;border:1px solid #60788d}
.filters button[aria-pressed=true]{background:#173b63;color:#fff;border-color:#173b63}
:is(.hero .button,.filters button,.card-actions button,.bag-top button,.bag-footer button,#copy,.list-row button,.recipe-index .button,.recipe-dialog button,.recipe-dialog .button):not(:disabled):hover{box-shadow:inset 0 0 0 2px #648fb2}
:is(.hero .button,.filters button,.card-actions button,.bag-top button,.bag-footer button,#copy,.list-row button,.recipe-index .button,.recipe-dialog button,.recipe-dialog .button):not(:disabled):active{box-shadow:inset 0 0 0 3px #92b9d6}
:is(.hero .button,.filters button,.card-actions button,.bag-top button,.bag-footer button,#copy,.list-row button,.recipe-index .button,.recipe-dialog button,.recipe-dialog .button):focus-visible{outline:3px solid #a43c10;outline-offset:3px}
:is(.hero .button,.filters button,.card-actions button,.bag-top button,.bag-footer button,#copy,.list-row button,.recipe-index .button,.recipe-dialog button,.recipe-dialog .button):disabled{background:#e2e8ee;color:#3d5368;border-color:#889cad;box-shadow:none;cursor:not-allowed;opacity:1}
#bag .list-row button{min-width:44px;padding:8px}#bag .list-row{grid-template-columns:48px minmax(0,1fr) 44px 24px 44px}.list-row .remove{font-size:.85rem}
@media(max-width:400px){.product-grid .card-actions button{font-size:.8rem;padding-inline:4px}.product-grid .card-actions{gap:4px}.product-grid .card-actions span{min-width:18px}}
@media(prefers-reduced-motion:reduce){.product-grid button,.filters button,.bag-footer button,.recipe-dialog button{transition:none}}

#filters.filters button[aria-pressed="true"]{background:#173b63;color:#fff;border-color:#173b63}


/* Faixa reservada ao contato, fora dos cards e do rodape. */
body{padding-right:0}
.whatsapp-compacto{position:fixed;z-index:45;right:max(8px,env(safe-area-inset-right,0px));bottom:max(18px,calc(env(safe-area-inset-bottom,0px) + 10px));display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#25a95a;color:#fff;text-decoration:none;box-shadow:0 3px 12px #10243a33}
.whatsapp-compacto svg{width:27px;height:27px}.whatsapp-compacto:focus-visible{outline:3px solid #a43c10;outline-offset:3px}
body.aberto .whatsapp-compacto,body:has(dialog[open]) .whatsapp-compacto{visibility:hidden;pointer-events:none}

/* Apenas a imagem e a moldura recebem o efeito; o card nao se desloca. */
.product-grid .pack-area{overflow:hidden}.product-grid .product-photo{transform-origin:center;transition:transform .3s ease,filter .3s ease}.product-grid .pack-area{transition:box-shadow .3s ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.product-grid .card:hover .product-photo{transform:scale(1.06)}.product-grid .card:hover .pack-area{box-shadow:0 7px 18px #10243a40}}
@media(prefers-reduced-motion:no-preference){.product-grid .card:focus-within .product-photo{transform:scale(1.06)}.product-grid .card:focus-within .pack-area{box-shadow:0 7px 18px #10243a40}}
@media(prefers-reduced-motion:reduce){.product-grid .product-photo,.product-grid .pack-area{transition:none}.product-grid .card:focus-within .product-photo{filter:brightness(1.08)} }
@media(hover:hover) and (prefers-reduced-motion:reduce){.product-grid .card:hover .product-photo{filter:brightness(1.08)}}

footer{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
