*{box-sizing:border-box}body{margin:0;background:#10141e;color:#f7f4ee;font:16px system-ui,sans-serif}header{background:#171d29;text-align:center;padding:0px;border-bottom:1px solid #394151}header img{width:min(880px,90%);height:150px;object-fit:contain}main{max-width:1000px;margin:auto;padding:28px 20px}h1{font-size:30px;margin:0}p{color:#b8c3d4;line-height:1.5}input{width:100%;padding:14px;border:1px solid #465269;border-radius:10px;background:#1c2433;color:white;font:inherit}section{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;margin-top:24px}article{background:#1c2433;border:1px solid #394151;border-radius:16px;overflow:hidden}article img{width:100%;aspect-ratio:1;object-fit:contain;background:white}article div{padding:18px}small{color:#e8b46c}h2{margin:8px 0;font-size:22px}strong{font-size:26px;display:block;margin:12px 0}a{display:block;background:#16834b;color:white;text-decoration:none;text-align:center;padding:13px;border-radius:9px;font-weight:bold}footer{text-align:center;padding:24px;color:#aab6c8} .gallery{position:relative;padding:0}article .gallery{padding:0} .gallery button{position:absolute;top:45%;background:#10141ecc;color:white;border:0;border-radius:8px;padding:10px;cursor:pointer}.prev{left:8px}.next{right:8px}.counter{position:absolute;bottom:8px;right:8px;background:#10141ecc;color:white;padding:4px 8px;border-radius:8px}article img{display:block} 
[hidden]{display:none!important}.tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.tools select,button,select,textarea{font:inherit;background:#273247;color:#fff;border:1px solid #465269;border-radius:8px;padding:10px}button{cursor:pointer}button:disabled{opacity:.5}#more{display:block;margin:24px auto}#cart{padding:16px;background:#1c2433;border-radius:12px;margin-top:12px}#cart button{margin:4px}#banners img{display:block;width:100%;max-height:320px;object-fit:contain;margin:12px 0}article button:not(.gallery button){width:100%;background:#16834b}del{color:#aab6c8}details{border:1px solid #394151;padding:12px;margin:12px 0;border-radius:10px}summary{cursor:pointer}header img{display:block;margin:auto} @media(max-width:550px){section{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}article div{padding:10px}h2{font-size:17px}strong{font-size:20px}}

/* Catalogo: coluna unica e carrinho fixo */
#products{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media(max-width:767px){#products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}main:has(#products){padding-inline:10px}#products article div:not(.gallery){padding:10px}#products h2{font-size:17px;overflow-wrap:anywhere}#products strong{font-size:20px}#products article button:not(.gallery button){font-size:13px;padding:8px 4px}}
body:has(#products){padding-bottom:90px}
#cartOpen{position:fixed;left: max(16px, env(safe-area-inset-left));bottom:calc(16px + env(safe-area-inset-bottom));z-index:1001;background:#16834b;border:1px solid #3cb779;border-radius:999px;padding:15px 20px;font-weight:700;box-shadow:0 4px 20px #0008;min-height:48px}
#cartOpen::before{content:"🛒 ";}
#cart{position:fixed;left:max(16px, env(safe-area-inset-left));bottom:calc(82px + env(safe-area-inset-bottom));width:min(440px,calc(100% - 32px));max-height:65vh;max-height:65dvh;overflow:auto;overscroll-behavior:contain;z-index:1000;margin:0;border:1px solid #465269;box-shadow:0 8px 32px #0009}

#products .gallery img{cursor:zoom-in}#products .gallery .zoom-photo{top:6px;right:6px;padding:8px;line-height:1;z-index:1}
#photoViewer{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:12px;background:#10141ef5;color:white;overflow:hidden}
#photoViewer[open]{display:flex;flex-direction:column;gap:8px}#photoViewer::backdrop{background:#000c}
.photo-toolbar{display:flex;align-items:center;gap:8px;justify-content:space-between}.photo-toolbar button{min-width:40px}.photo-title{flex:1;overflow-wrap:anywhere;font-size:14px}.photo-stage{flex:1;min-height:0;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none}.photo-stage img{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;user-select:none;-webkit-user-drag:none;cursor:zoom-in}.photo-nav{display:flex;align-items:center;justify-content:center;gap:20px}.photo-nav button{min-width:48px}.photo-hint{text-align:center;font-size:12px;color:#b8c3d4;margin:0}
body:has(#products){background:var(--dn-bg,#10141e);color:var(--dn-text,#f7f4ee);font-family:var(--dn-font,system-ui),sans-serif;font-size:var(--dn-size,16px)}#products{grid-template-columns:repeat(var(--dn-desktop,3),minmax(0,1fr));gap:var(--dn-gap,20px)}#products article,#cart{background:var(--dn-card,#1c2433);border-radius:var(--dn-radius,16px)}#products article p{color:inherit;opacity:.85}#products strong{color:var(--dn-price,#f7f4ee)}#products article button:not(.gallery button){background:var(--dn-button,#16834b)}#cartOpen{background:var(--dn-cart,#16834b)}.cart-right #cartOpen,.cart-right #cart{left:auto;right:16px}.product-actions{display:flex;flex-wrap:wrap;gap:5px}.product-actions button[aria-pressed=true],#favFilter[aria-pressed=true]{color:#ffb4c5;border-color:#ffb4c5}#top{position:fixed;right:16px;bottom:85px;z-index:999;border-radius:50%;width:44px;height:44px}.restock{background:#1c2433;color:white;border:1px solid #465269;border-radius:14px;width:min(420px,95%)}.restock form{display:grid;gap:12px}.restock input[type=checkbox]{width:auto}.restock::backdrop{background:#000a}#related a{margin:8px 0}@media(max-width:767px){#products{grid-template-columns:repeat(var(--dn-mobile,2),minmax(0,1fr));gap:calc(var(--dn-gap,20px)/2)}}

/* V3.1: ações compactas nos anúncios */
#products article .product-actions{display:flex;flex-wrap:wrap;gap:5px;padding:0;margin-top:8px}
#products article .product-actions button.action-icon{flex:1 1 0;width:auto;min-width:0;min-height:36px;padding:6px 2px;display:grid;place-items:center}
#products article .product-actions .action-icon svg{width:21px;height:21px;display:block;pointer-events:none}
#products article .product-actions .action-heart,#products article .product-actions .action-share{background:#273247}
#products article .product-actions .action-heart[aria-pressed=true]{color:#ff526c;border-color:#ff526c}
#products article .product-actions .action-heart[aria-pressed=true] svg{fill:currentColor}
#products article .product-actions .action-detail{flex:0 0 100%;padding:7px 4px;min-height:32px;font-size:13px;background:#273247}
