/*
Theme Name: Mercado RM Pro
Author: OpenAI
Description: Tema WordPress para marketplace afiliado Mercado RM — Grupo Rei das Multas.
Version: 6.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mercado-rm
*/
:root{
 --amarelo:#FFD701; --amarelo-2:#FFE24D; --preto:#080808; --preto-2:#171717;
 --texto:#202020; --cinza:#f4f4f4; --branco:#fff; --borda:#e7e7e7;
 --sombra:0 8px 28px rgba(0,0,0,.08); --max:1440px; --raio:14px;
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:#f5f5f5;color:var(--texto)}
a{text-decoration:none;color:inherit} img{max-width:100%;height:auto;display:block}
.container{width:min(calc(100% - 32px),var(--max));margin:0 auto}
.site-header{background:var(--preto);color:#fff;position:sticky;top:0;z-index:99;box-shadow:0 2px 12px rgba(0,0,0,.18)}
.header-main{display:grid;grid-template-columns:220px minmax(300px,1fr) auto;align-items:center;gap:26px;min-height:98px}
.brand-logo img,.brand-logo .custom-logo{max-height:82px;width:auto;object-fit:contain}
.header-search-area{min-width:0}.search-form{display:flex;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.15)}
.search-form input{flex:1;min-width:0;border:0;outline:0;padding:16px 18px;font-size:16px}
.search-form button{border:0;background:var(--amarelo);color:#000;padding:0 22px;font-weight:900;cursor:pointer}
.header-tagline{font-size:11px;color:#ccc;margin-top:7px;text-transform:uppercase;letter-spacing:.8px;font-weight:800}
.header-actions{display:flex;gap:18px;align-items:center}.header-actions a,.affiliate-mini{display:flex;flex-direction:column;font-size:12px}
.header-actions span,.affiliate-mini small{color:#aaa}.navbar{background:var(--amarelo);color:#050505}
.nav-scroll{display:flex;gap:34px;align-items:center;min-height:46px;overflow:auto;scrollbar-width:none}
.navbar a{white-space:nowrap;font-size:13px;font-weight:900;text-transform:uppercase}.navbar a:hover{opacity:.65}
.all-categories{padding-right:24px;border-right:1px solid rgba(0,0,0,.18)}
.hero-wrap{background:#000}.hero-banner,.wide-banner{width:100%;margin:0 auto;overflow:hidden;background:#000}
.hero-banner img,.wide-banner img{width:100%;height:auto;object-fit:contain;display:block}
.section{padding:26px 0}.section-title{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:14px}
.section-title h2{margin:0;font-size:25px;letter-spacing:-.4px}.section-title p{margin:4px 0 0;color:#707070;font-size:13px}
.see-all{font-size:13px;font-weight:800}.products-grid{display:grid;gap:12px}.products-grid-six{grid-template-columns:repeat(6,minmax(0,1fr))}
.products-grid-section{grid-template-columns:repeat(6,minmax(0,1fr))}
.product-card{background:#fff;border:1px solid var(--borda);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:.18s ease}
.product-card:hover{transform:translateY(-2px);box-shadow:var(--sombra)}
.product-image{position:relative;aspect-ratio:1/1;background:#fff;padding:12px;display:grid;place-items:center}
.product-image img{width:100%;height:100%;object-fit:contain}.badge{position:absolute;top:10px;left:10px;background:#111;color:var(--amarelo);padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900;z-index:2}
.product-body{padding:10px 11px 12px;display:flex;flex-direction:column;gap:6px;flex:1}.product-title{font-size:13px;line-height:1.35;min-height:36px}
.old-price{font-size:11px;color:#999;text-decoration:line-through}.price{font-size:20px;font-weight:900}.installments{font-size:11px;color:#317a46}
.buy-button{margin-top:auto;background:var(--amarelo);color:#000;border-radius:7px;padding:10px 8px;text-align:center;font-size:11px;font-weight:950;text-transform:uppercase}
.buy-button:hover{background:#000;color:var(--amarelo)}.product-disclosure{font-size:9px;color:#888;text-align:center}
.inter-banner-section{padding:0 0 10px}.wide-banner{width:min(calc(100% - 32px),var(--max));border-radius:10px;box-shadow:var(--sombra)}
.category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.category-tile{background:#fff;border:1px solid var(--borda);border-radius:12px;padding:18px;text-align:center}
.category-tile:hover{border-color:var(--amarelo);box-shadow:var(--sombra)}.category-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff7b6;margin:0 auto 10px;font-size:24px}
.category-tile strong{display:block;font-size:13px}.category-tile small{display:block;color:#888;margin-top:4px}
.benefits{background:#111;color:#fff;margin-top:22px}.benefits-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:24px 0}
.benefits-grid>div{display:grid;grid-template-columns:42px 1fr;column-gap:10px;align-items:center}.benefits-grid span{grid-row:1/3;width:42px;height:42px;border:1px solid #555;border-radius:50%;display:grid;place-items:center;color:var(--amarelo);font-weight:900}
.benefits-grid strong{font-size:13px}.benefits-grid small{color:#aaa}
.site-footer{background:#050505;color:#fff}.footer-top{border-bottom:1px solid #282828;background:#111}.footer-top-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:17px 0}.footer-top-grid div{display:flex;flex-direction:column}.footer-top-grid strong{color:var(--amarelo);font-size:13px}.footer-top-grid span{color:#bbb;font-size:11px;margin-top:3px}
.footer-grid-v6{display:grid;grid-template-columns:1.25fr 1fr 1.25fr 1fr;gap:34px;padding:34px 0}.footer-brand img{max-width:165px;margin-bottom:14px}.footer-brand p,.footer-column p{color:#bbb;font-size:12px;line-height:1.6}
.footer-column h3{color:var(--amarelo);margin:0 0 14px;font-size:14px}.footer-column a{display:block;color:#ddd;font-size:12px;margin-bottom:9px}.footer-column a:hover{color:var(--amarelo)}
.footer-disclosure{border-top:1px solid #252525;padding:18px 0;color:#aaa;font-size:11px;line-height:1.6}.footer-bottom{border-top:1px solid #202020;padding:14px 0 22px;color:#777;font-size:11px}
.empty-state{background:#fff;border-radius:12px;padding:22px;border:1px solid var(--borda)}
.entry-content,.page-content{background:#fff;border-radius:14px;padding:clamp(22px,4vw,50px);box-shadow:var(--sombra);line-height:1.72}
.mpa-product-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px}.mpa-product-gallery a{border:1px solid var(--borda);border-radius:8px;overflow:hidden}
@media(max-width:1180px){.header-main{grid-template-columns:170px 1fr}.header-actions{display:none}.products-grid-six,.products-grid-section{grid-template-columns:repeat(4,1fr)}.category-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:800px){.header-main{grid-template-columns:110px 1fr;gap:12px;min-height:78px}.brand-logo img,.brand-logo .custom-logo{max-height:68px}.header-tagline{display:none}.nav-scroll{gap:20px}.products-grid-six,.products-grid-section{grid-template-columns:repeat(2,1fr)}.category-grid{grid-template-columns:repeat(2,1fr)}.benefits-grid,.footer-top-grid,.footer-grid-v6{grid-template-columns:1fr}.section{padding:18px 0}.section-title h2{font-size:21px}}
@media(max-width:520px){.container{width:min(calc(100% - 18px),var(--max))}.header-main{grid-template-columns:86px 1fr}.brand-logo img,.brand-logo .custom-logo{max-height:58px}.search-form input{padding:12px 11px;font-size:13px}.search-form button{padding:0 12px;font-size:11px}.navbar{position:relative}.nav-scroll{min-height:42px}.navbar a{font-size:11px}.wide-banner{width:calc(100% - 18px)}.product-body{padding:9px}.price{font-size:18px}.buy-button{font-size:10px}.section-title p{display:none}}
