/* MESTRE TV — CSS enxuto / Cloudflare Pages */
:root{--red:#d90429;--red2:#a60320;--black:#111;--bg:#f5f5f5;--white:#fff;--muted:#6b7280;--line:#e5e7eb;--max:1200px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--black);font:15px/1.5 "Plus Jakarta Sans",system-ui,sans-serif}button,input{font:inherit}button{cursor:pointer}.container{width:min(var(--max),calc(100% - 32px));margin:auto}
.topbar{background:var(--black);color:#ddd;font-size:11px;padding:7px 0}.topbar .container{display:flex;justify-content:space-between}
.header{background:#fff;position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line)}.header-row{min-height:74px;display:flex;align-items:center;gap:22px}.logo{color:var(--black);text-decoration:none;font-size:22px;font-weight:800;white-space:nowrap}.logo b{color:var(--red)}
.search{display:flex;flex:1;max-width:650px;margin:auto}.search input{width:100%;border:1px solid var(--line);border-right:0;border-radius:9px 0 0 9px;background:#f8f8f8;padding:12px 15px;outline:0}.search input:focus{border-color:var(--red);background:#fff}.search button{width:48px;border:0;border-radius:0 9px 9px 0;background:var(--red);color:#fff;font-size:22px}
.cart-button{border:0;background:var(--black);color:#fff;border-radius:9px;padding:11px 14px;font-weight:700;display:flex;gap:8px;align-items:center}.cart-button strong{background:var(--red);border-radius:20px;padding:1px 7px;font-size:11px}.nav{border-top:1px solid var(--line);overflow:auto}.nav .container{display:flex;gap:8px;padding-top:7px;padding-bottom:7px}.nav button{border:0;background:transparent;padding:8px 11px;white-space:nowrap;font-weight:700;font-size:12px}.nav button.active,.nav button:hover{color:var(--red)}
.hero{background:linear-gradient(115deg,#111 0%,#1d1d1d 55%,#370611 100%);color:#fff;padding:76px 0}.hero-content{max-width:760px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:var(--red);text-transform:uppercase}.hero h1{font-size:clamp(36px,6vw,68px);line-height:1.02;margin:12px 0 18px}.hero h1 b{color:#ff3655}.hero p{color:#ddd;max-width:560px;font-size:17px;margin-bottom:28px}.btn{border:0;border-radius:9px;padding:13px 18px;font-weight:800;text-decoration:none;display:inline-block}.primary{background:var(--red);color:#fff}.primary:hover{background:var(--red2)}
.benefits{background:#fff;border-bottom:1px solid var(--line)}.benefits-grid{display:grid;grid-template-columns:repeat(4,1fr)}.benefits-grid div{padding:18px 14px;border-right:1px solid var(--line)}.benefits-grid div:last-child{border:0}.benefits b,.benefits span{display:block}.benefits b{font-size:13px}.benefits span{font-size:11px;color:var(--muted)}
.section{padding:58px 0}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px}.section-head h2{margin:6px 0 0;font-size:30px}.section-head #resultCount{font-size:12px;color:var(--muted)}
.products{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.product{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;transition:.18s}.product:hover{transform:translateY(-2px);box-shadow:0 8px 25px #0000000d}.product-img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#eee}.product-body{padding:15px}.tag{display:inline-block;background:#ffe8ec;color:var(--red);font-size:10px;font-weight:800;padding:4px 7px;border-radius:5px;margin-bottom:8px}.product h3{font-size:14px;line-height:1.35;margin:0 0 8px}.desc{font-size:11px;color:var(--muted);min-height:34px}.old{display:block;color:#999;text-decoration:line-through;font-size:11px}.price{font-size:21px;font-weight:800;margin:2px 0}.install{font-size:10px;color:var(--muted)}.product-actions{display:flex;gap:7px;margin-top:13px}.product-actions button{flex:1;padding:10px;border-radius:8px;border:1px solid var(--line);font-weight:800;font-size:11px}.product-actions .buy{background:var(--black);color:#fff;border-color:var(--black)}
.footer{background:#111;color:#fff;padding:35px 0}.footer-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.footer p,.footer small{display:block;color:#aaa;font-size:12px}.footer span{display:block;color:#aaa;font-size:11px}.footer a{color:#fff}.whatsapp{position:fixed;right:20px;bottom:20px;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#20b858;color:#fff;text-decoration:none;font-size:24px;box-shadow:0 8px 25px #0003;z-index:25}
.overlay{position:fixed;inset:0;background:#0008;z-index:30}.drawer{position:fixed;right:0;top:0;width:min(420px,100%);height:100dvh;background:#fff;z-index:31;display:flex;flex-direction:column;box-shadow:-10px 0 30px #0002}.drawer[hidden],.overlay[hidden]{display:none}.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:18px;border-bottom:1px solid var(--line)}.drawer-head h2{margin:0;font-size:18px}.drawer-head button,.dialog-close{border:0;background:transparent;font-size:28px}.cart-items{padding:15px;overflow:auto;flex:1}.cart-item{display:grid;grid-template-columns:60px 1fr auto;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.cart-item img{width:60px;height:60px;object-fit:cover;border-radius:7px}.cart-item h4{margin:0;font-size:12px}.cart-item p{margin:3px 0;font-size:11px;color:var(--muted)}.qty{display:flex;align-items:center;gap:6px}.qty button{border:1px solid var(--line);background:#fff;width:24px;height:24px;border-radius:5px}.cart-footer{padding:18px;border-top:1px solid var(--line)}.cart-footer>div{display:flex;justify-content:space-between;margin-bottom:13px}.cart-footer button{width:100%}
.product-dialog{border:0;border-radius:14px;width:min(760px,calc(100% - 30px));padding:0;box-shadow:0 20px 60px #0004}.product-dialog::backdrop{background:#0009}.dialog-close{position:absolute;right:10px;top:5px;z-index:2}.detail{display:grid;grid-template-columns:1fr 1fr}.detail img{width:100%;height:100%;max-height:520px;object-fit:cover}.detail-body{padding:30px}.detail-body h2{font-size:25px;line-height:1.15}.detail-body p{color:var(--muted);font-size:13px}.detail-body .btn{margin-top:15px;width:100%;text-align:center}
.loading{text-align:center;padding:60px;color:var(--muted)}.empty{text-align:center;padding:60px;background:#fff;border-radius:12px;color:var(--muted)}
@media(max-width:900px){.products{grid-template-columns:repeat(3,1fr)}.benefits-grid{grid-template-columns:repeat(2,1fr)}.benefits-grid div:nth-child(2){border-right:0}.footer-row{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.topbar span:last-child{display:none}.header-row{gap:10px;flex-wrap:wrap;padding:12px 0}.logo{font-size:19px}.search{order:3;flex-basis:100%}.cart-button span{display:none}.hero{padding:55px 0}.products{grid-template-columns:repeat(2,1fr);gap:10px}.product-body{padding:11px}.product h3{font-size:12px}.price{font-size:18px}.section{padding:40px 0}.section-head h2{font-size:24px}.footer-row{grid-template-columns:1fr}.detail{grid-template-columns:1fr}.detail img{max-height:280px}.benefits-grid div{padding:14px 8px}}
