/* Layout: faixa de cabeçalho fixa, conteúdo em coluna de até 1200px, grade de produtos fluida.
   Paleta derivada do logo: verde Pertinaz + cinza "PORTAS". */
:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --sunken: #eceff0;
  --ink: #17201d;
  --muted: #5d6764;
  --line: #dde3e1;
  --green: #0a6b55;
  --green-2: #13917a;
  --green-ink: #ffffff;
  --green-soft: #e3f1ec;
  --gray: #767676;
  --wa: #1f9d57;
  --logo-chip: transparent;
  --shadow: 0 1px 2px rgba(16, 40, 32, .06), 0 8px 24px rgba(16, 40, 32, .06);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --r: 10px;
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1513; --surface: #161e1b; --sunken: #1d2723; --ink: #e7eeeb; --muted: #9eaaa6;
    --line: #2a3632; --green: #2fae8c; --green-2: #47c4a1; --green-ink: #06231b; --green-soft: #173229;
    --gray: #a3a3a3; --wa: #2fbf6f; --logo-chip: #ffffff;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1513; --surface: #161e1b; --sunken: #1d2723; --ink: #e7eeeb; --muted: #9eaaa6;
  --line: #2a3632; --green: #2fae8c; --green-2: #47c4a1; --green-ink: #06231b; --green-soft: #173229;
  --gray: #a3a3a3; --wa: #2fbf6f; --logo-chip: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.num { font-variant-numeric: tabular-nums; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover { background: var(--green-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.08); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-block { width: 100%; }

/* Cabeçalho */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; background: var(--logo-chip); border-radius: 8px; padding: 4px 6px; flex: none; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a.ativo { color: var(--green); background: var(--green-soft); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.lista-btn { position: relative; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--green); color: var(--green-ink); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; display: block; }
@media (max-width: 920px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 20px 16px; }
  .nav.aberto { display: flex; }
  .menu-btn { display: block; }
  .top-actions { margin-left: auto; }
  .loja-top { display: none !important; }
}
@media (max-width: 420px) { .logo img { height: 36px; } .lista-btn .lbl { display: none; } }

/* Hero */
.hero { padding-block: 56px 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 700; margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 52ch; margin-top: 18px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; color: var(--muted); }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .tag { position: absolute; left: 20px; bottom: 18px; font-size: 13px; }
.hero-art.com-foto { padding: 0; overflow: hidden; aspect-ratio: 4 / 3.4; max-width: 100%; }
.hero-art.com-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art.com-foto .tag { left: 0; right: 0; bottom: 0; padding: 28px 18px 14px; color: #ffffff; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 420px; } }

/* Faixa de números */
.fatos { border-block: 1px solid var(--line); background: var(--surface); }
.fatos .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fato { padding: 22px 16px; border-left: 1px solid var(--line); }
.fato:first-child { border-left: 0; padding-left: 0; }
.fato strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--green); letter-spacing: -.02em; }
.fato span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .fatos .wrap { grid-template-columns: 1fr 1fr; } .fato { border-left: 0; padding-left: 0; } .fato:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Seções */
.secao { padding-block: 64px; }
.secao-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.secao-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 8px; }
.secao-head p { color: var(--muted); max-width: 60ch; margin-top: 8px; }

/* Categorias */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--green); transform: translateY(-2px); }
.cat .mini { height: 92px; display: grid; place-items: center; color: var(--muted); }
.cat .mini svg, .cat .mini img { height: 92px; width: auto; max-width: 100%; object-fit: contain; }
.cat strong { font-weight: 700; font-size: 15px; }
.cat span { font-size: 13px; color: var(--muted); }

/* Cards de produto */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.card .foto { aspect-ratio: 5 / 4; background: var(--sunken); display: grid; place-items: center; padding: 14px; color: var(--muted); cursor: pointer; border: 0; width: 100%; max-width: 100%; }
.card .foto svg, .card .foto img { height: 100%; width: 100%; object-fit: contain; }
.card .corpo { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card .cat-nome { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.card h3 button { all: unset; cursor: pointer; }
.card h3 button:hover { color: var(--green); }
.card .marca { font-size: 14px; color: var(--muted); }
.card .rodape { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sunken); color: var(--muted); }
.pill.online { background: var(--green-soft); color: var(--green); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.add-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.add-btn:hover { border-color: var(--green); color: var(--green); }
.add-btn.ok { background: var(--green); border-color: var(--green); color: var(--green-ink); }

/* Quem atendemos / diferenciais */
.dif { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dif > div { background: var(--surface); padding: 26px 24px; }
.dif h3 { font-size: 19px; margin-bottom: 8px; }
.dif p { color: var(--muted); font-size: 15px; }
.dif .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 16px; }
.dif .ico svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .dif { grid-template-columns: 1fr; } }
.publico { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.publico span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 14px; }

/* Marcas */
.marcas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.marca-item { display: flex; flex-direction: column; justify-content: center; min-height: 76px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.marca-item strong { font-family: var(--font-display); font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
.marca-item small { color: var(--muted); font-size: 12px; }

/* Banner loja */
.banner-loja { background: var(--green); color: var(--green-ink); border-radius: 16px; padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.banner-loja h2 { font-size: clamp(22px, 3vw, 30px); }
.banner-loja p { opacity: .85; margin-top: 6px; max-width: 54ch; }
.banner-loja .btn { background: var(--green-ink); color: var(--green); }

/* Contato */
.contato { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contato .bloco { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dados { display: grid; gap: 14px; }
.dados div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dados div:last-child { border-bottom: 0; padding-bottom: 0; }
.dados dt { color: var(--muted); font-size: 14px; }
.dados dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.copiar { margin-left: 8px; border: 0; background: none; color: var(--green); cursor: pointer; font-size: 13px; font-weight: 600; padding: 0; }
@media (max-width: 860px) { .contato { grid-template-columns: 1fr; } .dados div { grid-template-columns: 1fr; gap: 2px; } }

.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 14px; font-weight: 600; }
.campo input, .campo textarea, .campo select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.campo textarea { resize: vertical; min-height: 96px; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: 2px solid var(--green-2); outline-offset: 0; border-color: transparent; }
.linha2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .linha2 { grid-template-columns: 1fr; } }

/* Catálogo */
.cat-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filtros { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; max-height: calc(100vh - 110px); overflow: auto; }
.filtros h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 15px; cursor: pointer; }
.check input { accent-color: var(--green); width: 16px; height: 16px; }
.check .qt { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.segment { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sunken); border-radius: 8px; padding: 3px; }
.segment button { border: 0; background: none; padding: 7px 4px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.segment button.ativo { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cat-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.busca { flex: 1 1 260px; position: relative; }
.busca input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.busca svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.ordem select { padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.resultado { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 600; border: 0; cursor: pointer; }
.vazio { padding: 48px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.vazio strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.filtros-btn { display: none; }
.filtros-head { display: none; }
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .filtros { display: none; position: fixed; inset: 0; z-index: 60; max-height: none; border-radius: 0; top: 0; padding-top: calc(20px + env(safe-area-inset-top, 0px)); }
  .filtros.aberto { display: flex; }
  .filtros-btn { display: inline-flex; }
  .filtros-head { display: flex; justify-content: space-between; align-items: center; }
}

/* Página de dúvidas */
.medir { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.medir svg { width: 100%; height: auto; color: var(--muted); }
.passos { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: p; }
.passos li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.passos li::before { content: counter(p); width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; display: grid; place-items: center; font-family: var(--font-display); }
.passos strong { display: block; }
.passos span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .medir { grid-template-columns: 1fr; padding: 22px; } }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; max-width: 70ch; }
.tabela-wrap { overflow-x: auto; margin-top: 8px; }
.tabela { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.tabela th, .tabela td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Modal de produto */
dialog { border: 0; padding: 0; border-radius: 16px; background: var(--surface); color: var(--ink); width: min(920px, calc(100% - 32px)); max-height: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(10, 20, 16, .55); }
.modal { display: grid; grid-template-columns: 1fr 1fr; }
.modal .foto { background: var(--sunken); display: grid; place-items: center; padding: 32px; color: var(--muted); min-height: 320px; }
.modal .foto svg, .modal .foto img { width: 100%; max-height: 420px; object-fit: contain; }
.modal .info { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.modal h2 { font-size: 24px; }
.modal .desc { color: var(--muted); }
.campo .dica { font-size: 13px; color: var(--muted); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.qtd { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qtd button { border: 0; background: none; width: 36px; height: 36px; cursor: pointer; font-size: 18px; }
.qtd input { width: 44px; border: 0; text-align: center; background: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qtd input::-webkit-inner-spin-button { -webkit-appearance: none; }
.modal .acoes { display: grid; gap: 10px; margin-top: 4px; }
.fechar { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 20px; line-height: 1; z-index: 2; }
@media (max-width: 760px) { .modal { grid-template-columns: 1fr; } .modal .foto { min-height: 220px; padding: 20px; } .modal .foto svg { max-height: 240px; } .modal .info { padding: 20px; } }

/* Gaveta da lista de orçamento */
.gaveta { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); z-index: 70; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.2); transform: translateX(100%); transition: transform .25s ease; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); visibility: hidden; }
.gaveta.aberta { transform: none; visibility: visible; }
.veu { position: fixed; inset: 0; background: rgba(10, 20, 16, .45); z-index: 65; }
.gaveta header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.gaveta header h2 { font-size: 20px; }
.gaveta .itens { flex: 1; overflow: auto; padding: 8px 20px; }
.item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item .mini { width: 56px; height: 56px; background: var(--sunken); border-radius: 8px; padding: 4px; color: var(--muted); }
.item .mini svg, .item .mini img { width: 100%; height: 100%; object-fit: contain; }
.item strong { display: block; font-size: 14px; line-height: 1.3; }
.item small { color: var(--muted); font-size: 13px; }
.item select { margin-top: 4px; font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); max-width: 100%; }
.item .lado { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.item .qtd button { width: 28px; height: 28px; font-size: 15px; }
.item .qtd input { width: 32px; font-size: 14px; }
.remover { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.gaveta footer { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.gaveta .vazio { margin-top: 20px; }

/* Rodapé */
.rodape-site { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px 28px; }
.rodape-site .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.rodape-site h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rodape-site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rodape-site a { color: var(--ink); text-decoration: none; }
.rodape-site a:hover { color: var(--green); }
.rodape-site .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; color: var(--muted); }
.rodape-site p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .rodape-site .wrap { grid-template-columns: 1fr; } }

/* WhatsApp flutuante */
.wa-flutuante { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-flutuante svg { width: 28px; height: 28px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.view { display: none; }
.view.ativa { display: block; }
.page-head { padding-block: 40px 8px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 44px); margin-top: 8px; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 64ch; }
.wrap > * { min-width: 0; }

/* Kit porta pronta (página inicial) */
.kit-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.kit-txt { display: flex; flex-direction: column; gap: 14px; }
.kit-txt h2 { font-size: clamp(26px, 3.4vw, 36px); }
.kit-txt > p { color: var(--muted); }
.kit-inclui { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kit-inclui li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.kit-inclui span { color: var(--muted); }
.kit-medidas { font-size: 14px; color: var(--muted); }
.kit-cores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.kit-cor { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: var(--r); background: var(--sunken); text-align: center; position: relative; transition: transform .15s; }
.kit-cor:hover { transform: translateY(-3px); }
.kit-cor:focus-visible { outline: 2px solid var(--green-2); }
.kit-cor img { width: 100%; aspect-ratio: 1 / 2; object-fit: contain; }
.kit-cor strong { font-size: 13px; line-height: 1.2; }
.kit-cor .selo { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 900px) { .kit-box { grid-template-columns: 1fr; padding: 22px; } .kit-inclui li { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 520px) { .kit-cores { grid-template-columns: repeat(3, 1fr); } }
.selo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--green); color: var(--green-ink); padding: 3px 8px; border-radius: 999px; }
.card { position: relative; }
.card > .selo { position: absolute; top: 10px; left: 10px; z-index: 1; }

/* Lado de abertura */
.lado { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.lado-img { background: #ffffff; border-radius: var(--r); padding: 12px; }
.lado-img img { width: 100%; height: auto; }
@media (max-width: 860px) { .lado { grid-template-columns: 1fr; padding: 22px; } }

/* Nossa loja (galeria) */
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.galeria .g-item { all: unset; position: relative; border-radius: var(--r); overflow: hidden; background: var(--sunken); cursor: zoom-in; }
.galeria .g-item:first-child { grid-column: span 2; grid-row: span 2; }
.galeria .g-item:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galeria .g-item:hover img { transform: scale(1.04); }
.galeria .g-leg { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #ffffff; font-weight: 600; font-size: 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.galeria .g-item.vazio-foto { cursor: default; border: 1px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 16px; }
.galeria .vazio-foto svg { width: 34px; height: 34px; opacity: .6; }
.galeria .vazio-foto strong { color: var(--ink); font-size: 15px; }
.galeria .vazio-foto small { font-size: 13px; }
@media (max-width: 760px) {
  .galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
}
.foto-dlg { width: min(1100px, calc(100% - 32px)); background: #0c0f0e; color: #ffffff; }
.foto-dlg::backdrop { background: rgba(0, 0, 0, .85); }
.foto-dlg figure { margin: 0; }
.foto-dlg img { width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: #0c0f0e; }
.foto-dlg figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-weight: 600; font-size: 15px; }
.foto-dlg figcaption .num { opacity: .7; font-weight: 500; }
.foto-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #111111; font-size: 26px; line-height: 1; cursor: pointer; }
.foto-nav.ant { left: 12px; }
.foto-nav.prox { right: 12px; }

/* Logos das marcas */
.marca-item.com-logo { align-items: center; padding: 14px 18px; background: #ffffff; }
.marca-item.com-logo img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }

/* Fotos de produto: cabem inteiras na moldura (cards, ficha e lista) */
.card .foto, .item .mini { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .foto img, .item .mini img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.card .foto svg { width: 100%; height: 100%; }
.modal .foto img { width: auto; height: auto; max-width: 100%; max-height: 420px; object-fit: contain; }
@media (max-width: 760px) { .modal .foto img { max-height: 260px; } }
.fato strong span { font-size: inherit; color: inherit; }
/* Galeria com quadros quadrados (as fotos da loja são quadradas) */
.galeria { grid-auto-rows: auto; }
.galeria .g-item { aspect-ratio: 1 / 1; }
.galeria .g-item:first-child { aspect-ratio: auto; }
@media (max-width: 760px) { .galeria { grid-auto-rows: auto; } }
.banner-loja .btn svg { width: 18px; height: 18px; }
