/*
Theme Name: Armazem Brasileiro
Theme URI: https://armazembrasileiro.com
Author: Rodney Moore
Description: Marketplace de produtos brasileiros (grafia Brasileiro).
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: armazembrasileiro
*/

:root{
  --cream:#fbf4eb; --paper:#fff9f2; --ink:#2a1810; --muted:#7a5648;
  --green:#009c3b; --yellow:#ffdf00; --blue:#002776; --terr:#c45c26;
  --warm:#e8a054; --card:#fff; --line:#ecd9c6;
}
*{box-sizing:border-box} html,body{margin:0;background:var(--cream);color:var(--ink);font-family:Nunito,system-ui,sans-serif}
a{color:inherit;text-decoration:none}.wrap{width:min(1180px,100% - 40px);margin:0 auto}
.ribbon{background:linear-gradient(90deg,var(--green) 0 33%,var(--yellow) 33% 66%,var(--blue) 66% 100%);height:8px}
.topbar{background:var(--paper);border-bottom:1px solid var(--line)}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;padding:16px 0;gap:16px}
.brand{display:flex;align-items:center;gap:12px}
.brand .mark{width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,#fff,#f3e0c8);border:2px solid var(--green);display:grid;place-items:center;box-shadow:0 4px 0 rgba(0,155,59,.2)}
.brand strong{display:block;font-size:1.25rem;font-weight:800;letter-spacing:-.01em}
.brand small{color:var(--muted);font-weight:600;font-size:.78rem}
.nav{display:flex;gap:16px;align-items:center;font-weight:700;color:var(--muted);font-size:.92rem}
.nav a:hover{color:var(--terr)}
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;font-weight:800;border:0}
.btn-primary{background:var(--terr);color:#fff;box-shadow:0 6px 0 #8f3d14}
.btn-outline{background:#fff;border:2px solid var(--green);color:var(--green)}

.hero{padding:36px 0 20px}
.hero-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:28px;align-items:center}
.hero-copy .eyebrow{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);padding:6px 12px;border-radius:999px;font-size:.8rem;font-weight:800;color:var(--green);margin-bottom:12px}
.hero-copy h1{font-family:"Source Serif 4",Georgia,serif;font-size:clamp(2.2rem,4.2vw,3.4rem);line-height:1.05;margin:0 0 12px}
.hero-copy h1 em{font-style:italic;color:var(--terr)}
.hero-copy p{color:var(--muted);font-size:1.05rem;line-height:1.55;margin:0 0 20px;max-width:34rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-collage{display:grid;grid-template-columns:1.2fr .8fr;grid-template-rows:180px 160px;gap:12px}
.hero-collage .tile{border-radius:18px;overflow:hidden;position:relative;border:2px solid #fff;box-shadow:0 12px 30px rgba(42,24,16,.12)}
.hero-collage .tile img{width:100%;height:100%;object-fit:cover}
.hero-collage .big{grid-row:1 / span 2}
.hero-collage .label{position:absolute;left:10px;bottom:10px;background:rgba(255,249,242,.92);padding:6px 10px;border-radius:8px;font-size:.75rem;font-weight:800}

.cats{padding:8px 0 28px}
.cat-row{display:flex;flex-wrap:wrap;gap:10px}
.cat{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);padding:10px 16px;border-radius:999px;font-weight:800;font-size:.9rem;box-shadow:0 2px 0 rgba(42,24,16,.04)}
.cat svg{width:20px;height:20px}
.cat:hover{border-color:var(--terr);color:var(--terr)}

.section{padding:18px 0 40px}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:18px}
.section-head h2{margin:0;font-family:"Source Serif 4",Georgia,serif;font-size:1.7rem}
.section-head p{margin:0;color:var(--muted);font-weight:600}

.storefront{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.product{background:var(--card);border-radius:20px;overflow:hidden;border:1px solid var(--line);box-shadow:0 10px 24px rgba(42,24,16,.06);display:flex;flex-direction:column}
.product .ph{height:210px;position:relative;background:#eee}
.product .ph img{width:100%;height:100%;object-fit:cover}
.product .tag{position:absolute;top:12px;left:12px;background:var(--green);color:#fff;font-size:.72rem;font-weight:800;padding:5px 10px;border-radius:999px}
.product .body{padding:16px 16px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.product .origin{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.78rem;font-weight:700}
.product h3{margin:0;font-size:1.08rem;font-weight:800}
.product .desc{margin:0;color:var(--muted);font-size:.88rem;line-height:1.4;flex:1}
.product .row{display:flex;justify-content:space-between;align-items:center;margin-top:8px}
.product .price{font-weight:800;font-size:1.15rem;color:var(--terr)}
.product .add{background:var(--ink);color:#fff;border:0;border-radius:999px;padding:8px 14px;font-weight:800;font-size:.82rem}

.seller{background:linear-gradient(120deg,#fff 55%,#fff3e4);border:1px solid var(--line);border-radius:24px;padding:22px;display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center}
.seller img{width:96px;height:96px;border-radius:50%;object-fit:cover;border:3px solid var(--yellow);box-shadow:0 0 0 4px var(--green)}
.seller h3{margin:0 0 4px;font-family:"Source Serif 4",Georgia,serif;font-size:1.35rem}
.seller p{margin:0;color:var(--muted);font-weight:600;line-height:1.45}
.seller .badge{display:inline-flex;align-items:center;gap:6px;background:rgba(0,156,59,.1);color:var(--green);font-weight:800;font-size:.78rem;padding:5px 10px;border-radius:999px;margin-bottom:8px}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.step{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;text-align:center}
.step .ico{width:48px;height:48px;margin:0 auto 10px;border-radius:14px;background:#fff3e4;display:grid;place-items:center;color:var(--terr)}
.step h3{margin:0 0 6px;font-size:1rem}
.step p{margin:0;color:var(--muted);font-size:.88rem;font-weight:600}

.pw-foot{background:#2a1810;color:#d9c4b4;padding:28px 0 36px;margin-top:10px;font-size:.88rem}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1.2fr;gap:20px}
.pw-foot a{color:#ffdf00;font-weight:700}
.pw-foot strong{color:#fff}
@media(max-width:900px){.hero-grid,.storefront,.steps,.seller,.foot-grid{grid-template-columns:1fr}.hero-collage{grid-template-columns:1fr 1fr;grid-template-rows:140px 140px}.hero-collage .big{grid-row:auto}}

/* WP admin bar + content helpers */
body.admin-bar .topbar, body.admin-bar .site-header { top: 32px; }
.entry-content { line-height: 1.65; }
.entry-content img { max-width: 100%; height: auto; }
.site-main .wrap, .wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
