/* Maxtec – site novo AMIGAÇO + ELAVI (Leitura Fácil 0.2.9 — acabamento do topo e do rodapé). Complementa referencia.css (visual aprovado). */

/* ---------- base / contêiner ---------- */
.mx-ref.mxs { background: #f4f6f8; }
.mx-ref .mxs-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.mx-ref .mxs-main { padding: 1.25rem 0 2.5rem; }
.mx-ref .mxs-main .mxr-home { margin-bottom: 2rem; }
.mx-ref .mxs-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mx-ref .mxs-pular { position: absolute; left: 1rem; top: -4rem; z-index: 100000; background: #17212b; color: #fff !important; padding: .75rem 1rem; border-radius: .5rem; font-weight: 700; }
.mx-ref .mxs-pular:focus { top: 1rem; }
.mx-ref .mxr h1 { margin: 0; }
.mx-ref #mxs-conteudo:focus { outline: none; }

/* ---------- topo (0.2.9: compacto, carrinho e busca integrados) ---------- */
.mx-ref header.header.mxs-cab { position: relative !important; top: auto !important; left: auto; width: 100%; z-index: 50; background: #fff; border-bottom: 1px solid #dfe4e8; box-shadow: 0 1px 8px rgba(16, 23, 29, .05); }
.mx-ref .mxs-cab > .mxr { margin: 0 !important; padding: 0 !important; }
.mx-ref .mxs-cab .mxr-portal { display: flex; flex-direction: column; justify-content: center; text-decoration: none !important; color: #17212b !important; line-height: 1.1; }
.mx-ref .mxs-cab .mxr-portal-nome { font-size: 1.25rem !important; font-weight: 800; letter-spacing: .02em; color: #17212b !important; }
.mx-ref .mxs-cab .mxr-portal-sub { font-size: .72rem !important; letter-spacing: .14em; color: #5b6772 !important; margin-top: .15rem; }
/* linha 1: marca | AMIGAÇO · ELAVI | onde estou */
.mx-ref .mxs-l1-in { display: grid; grid-template-columns: minmax(10rem, 1fr) auto minmax(10rem, 1fr); align-items: center; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.mx-ref .mxs-cab .mxr-troca { display: flex; gap: .5rem; justify-self: center; }
.mx-ref .mxs-cab .mxr-troca a { min-height: 52px !important; min-width: 11rem; padding: .4rem 1rem !important; border-radius: .7rem; text-decoration: none !important; }
.mx-ref .mxs-cab .mxr-troca a[aria-current] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #17212b; }
.mx-ref .mxs-cab .mxr-troca a:focus-visible { outline: 3px solid #0b63c5; outline-offset: 4px; }
.mx-ref .mxs-cab .mxr-onde { justify-self: end; margin: 0 !important; font-size: .85rem !important; white-space: nowrap; }
.mx-ref .mxs-cab .mxr-onde[hidden] { display: none !important; }
/* linha 2: voltar · menu | busca | carrinho */
.mx-ref .mxs-l2 { background: #f6f8fa; border-top: 1px solid #e6eaee; }
.mx-ref .mxs-l2-in { display: flex; align-items: center; gap: .75rem; min-height: 56px; }
.mx-ref .mxs-voltar-slot:empty { display: none; }
.mx-ref .mxs-voltar-slot { display: flex; align-items: center; margin-right: .35rem !important; }
.mx-ref .mxs-voltar { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; padding: 0 .7rem; border: 1px solid #c9d1d8; border-radius: .5rem; background: #fff; color: #17212b !important; font-weight: 700; font-size: .9rem !important; text-decoration: none !important; white-space: nowrap; }
.mx-ref .mxs-menu { flex: 1 1 auto; min-width: 0; }
.mx-ref .mxs-menu ul { display: flex; flex-wrap: nowrap; gap: .15rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.mx-ref .mxs-menu ul::-webkit-scrollbar { display: none; }
.mx-ref .mxs-menu a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .7rem; border-radius: .5rem; color: #26323c !important; font-weight: 600; text-decoration: none !important; font-size: .95rem !important; white-space: nowrap; }
.mx-ref .mxs-menu a:hover { background: #e9eef2; }
.mx-ref .mxs-menu a[aria-current="page"] { background: #17212b; color: #fff !important; }
.mx-ref .mxs-menu a:focus-visible, .mx-ref .mxs-voltar:focus-visible, .mx-ref .mxs-carrinho:focus-visible { outline: 3px solid #0b63c5; outline-offset: 2px; }
.mx-ref .mxs-busca { display: flex; flex: 0 1 380px; min-width: 220px; margin: 0; }
.mx-ref .mxs-busca input[type=search] { flex: 1 1 auto; min-width: 0; height: 42px; margin: 0; padding: 0 .85rem; border: 1px solid #b7c1ca; border-right: 0; border-radius: .55rem 0 0 .55rem; background: #fff; color: #17212b; font-size: .95rem !important; box-shadow: none; }
.mx-ref .mxs-busca input[type=search]::placeholder { color: #66727d; opacity: 1; }
.mx-ref .mxs-busca input[type=search]:focus { outline: 3px solid #0b63c5; outline-offset: 0; border-color: #0b63c5; }
.mx-ref .mxs-busca button { display: inline-flex; align-items: center; gap: .35rem; height: 42px; margin: 0; padding: 0 .9rem; border: 0; border-radius: 0 .55rem .55rem 0; background: #17212b; color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .04em; cursor: pointer; }
.mx-ref .mxs-busca button:hover { background: #2a3a47; }
.mx-ref .mxs-busca button:focus-visible { outline: 3px solid #0b63c5; outline-offset: 2px; }
.mx-ref .mxs-carrinho { display: inline-flex; align-items: center; gap: .4rem; flex: none; min-height: 42px; padding: 0 .9rem; border: 1px solid #17212b; border-radius: .55rem; background: #fff; color: #17212b !important; font-weight: 700; font-size: .85rem !important; letter-spacing: .04em; text-decoration: none !important; white-space: nowrap; }
.mx-ref .mxs-carrinho:hover { background: #17212b; color: #fff !important; }
.mx-ref .mxs-cart-q:empty { display: none; }
.mx-ref .mxs-carrinho-m { display: none; }
.mx-ref .mxs-pulso { animation: mxs-pulso .6s ease-out; }
@keyframes mxs-pulso { 0% { box-shadow: 0 0 0 0 rgba(23, 33, 43, .45); } 100% { box-shadow: 0 0 0 10px rgba(23, 33, 43, 0); } }
/* as faixas antigas da Leitura Fácil (Voltar/Início/Carrinho e Buscar) ficam integradas ao topo novo */
.mx-ref.mxs #mx-topo, .mx-ref.mxs #mx-busca { display: none !important; }

/* ---------- títulos h1 nas telas novas (mesmo desenho do h2 da referência) ---------- */
.mx-ref .mxr-loja-cab h1 { font-size: 2rem !important; line-height: 1.05 !important; font-weight: 800 !important; letter-spacing: .05em; margin: 0; }
.mx-ref .mxr-loja.mxr-amigaco .mxr-loja-cab h1 { color: var(--aco-txt) !important; }
.mx-ref .mxr-loja.mxr-elavi .mxr-loja-cab h1 { color: var(--verde-esc) !important; font-weight: 700 !important; }
.mx-ref .mxr-loja.mxr-neutro .mxr-loja-cab h1 { color: #17212b !important; }
.mx-ref .mxr-quem h2, .mx-ref .mxr-contato h2 { font-size: 1.6rem !important; font-weight: 800 !important; letter-spacing: .05em; margin: 0; }
.mx-ref .mxr-quem h3 { font-size: 1.1rem !important; margin: 1.1rem 0 .4rem !important; }
.mx-ref .mxs-acoes { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem !important; }

/* ---------- home: link "ver todos os setores" ---------- */
.mx-ref .mxr-comercial-cab { position: relative; }
.mx-ref .mxs-ver-loja { display: inline-flex; align-items: center; min-height: 44px; margin-top: .35rem; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
.mx-ref .mxr-amigaco .mxs-ver-loja { color: #c9a35b !important; }
.mx-ref .mxr-elavi .mxs-ver-loja { color: #145646 !important; }

/* ---------- contato: formulário existente ---------- */
.mx-ref .mxs-form { margin-top: 1.5rem; }
.mx-ref .mxs-form input:not([type=submit]), .mx-ref .mxs-form textarea { width: 100%; max-width: 40rem; min-height: 44px; padding: .6rem .75rem; border: 1px solid #8a96a1; border-radius: .5rem; font-size: 1rem; }
.mx-ref .mxs-form input[type=submit] { min-height: 48px; padding: .6rem 1.5rem; border: 0; border-radius: .6rem; background: #17212b; color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- rodapé (0.2.9: claro, leve, três colunas alinhadas) ---------- */
.mx-ref .mxs-rodape { margin-top: 1rem; background: #eef1f4; border-top: 1px solid #dde3e8; color: #33404b; }
.mx-ref .mxs-rod-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 2.25rem 0 2rem; }
.mx-ref .mxs-rod-col { padding-top: 1rem; border-top: 3px solid #17212b; }
.mx-ref .mxs-rod-amigaco { border-top-color: #b78b3e; }
.mx-ref .mxs-rod-elavi { border-top-color: #2f9e7f; }
.mx-ref .mxs-rodape .mxs-rod-nome { margin: 0 0 .2rem !important; font-size: 1.15rem !important; font-weight: 800 !important; letter-spacing: .08em; line-height: 1.2 !important; color: #17212b !important; }
.mx-ref .mxs-rod-area { margin: 0 0 .85rem !important; font-size: .88rem !important; font-weight: 600; color: #4b5762 !important; }
.mx-ref .mxs-rod-amigaco .mxs-rod-area { color: #85601c !important; }
.mx-ref .mxs-rod-elavi .mxs-rod-area { color: #17614e !important; }
.mx-ref .mxs-rod-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.mx-ref .mxs-rod-lista li { margin: 0; font-size: .92rem !important; line-height: 1.45; color: #33404b; }
.mx-ref .mxs-rod-lista a { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; color: #17212b !important; text-decoration: none !important; border-bottom: 1px solid transparent; }
.mx-ref .mxs-rod-lista a:hover { border-bottom-color: currentColor; }
.mx-ref .mxs-rod-lista a:focus-visible, .mx-ref .mxs-rod-fim a:focus-visible { outline: 3px solid #0b63c5; outline-offset: 2px; }
.mx-ref .mxs-rod-wa { font-weight: 700; }
.mx-ref .mxs-rod-amigaco .mxs-rod-wa svg { color: #85601c; }
.mx-ref .mxs-rod-elavi .mxs-rod-wa svg { color: #17614e; }
.mx-ref .mxs-rod-hora { color: #4b5762 !important; font-size: .86rem !important; }
.mx-ref .mxs-rod-fim { background: #e4e9ed; border-top: 1px solid #d6dde3; padding: 1rem 0 1.1rem; text-align: center; }
.mx-ref .mxs-rod-fim p { margin: .15rem 0 !important; font-size: .78rem !important; letter-spacing: .08em; line-height: 1.6; color: #3b4651 !important; }
.mx-ref .mxs-rod-fim a { color: #17212b !important; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mx-ref .mxs-rod-fim a:hover { color: #000 !important; }
.mx-ref .mxs-rod-acessos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; padding: 1rem 0 1.4rem; border-top: 1px solid #dde3e8; }
.mx-ref .mxs-rod-acessos-tit { margin: 0 !important; font-size: .75rem !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #4b5762 !important; }
.mx-ref .mxs-rod-acessos ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.mx-ref .mxs-rod-acessos li { margin: 0; }
.mx-ref .mxs-rod-acessos a { display: inline-flex; align-items: center; gap: .35rem; min-height: 42px; padding: 0 1rem; border: 1px solid #b7c1ca; border-radius: 999px; background: #fff; color: #17212b !important; font-weight: 700; font-size: .88rem !important; text-decoration: none !important; }
.mx-ref .mxs-rod-acessos a:hover { border-color: #17212b; background: #17212b; color: #fff !important; }
.mx-ref .mxs-rod-acessos a:focus-visible { outline: 3px solid #0b63c5; outline-offset: 2px; }
/* rodapé e topo antigos do tema não são usados quando o site novo está ligado */
.mx-ref.mxs footer.mover, .mx-ref.mxs #bottom-bar, .mx-ref.mxs #top.icons-arrow-up7 { display: none !important; }

/* ---------- WhatsApp flutuante ---------- */
.mx-ref .mxs-wa-host .mxp-wa[hidden] { display: none !important; }

/* ---------- páginas do WooCommerce com o topo novo ---------- */
.mx-ref.mxs #wrap { overflow-x: clip; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .mx-ref .mxs-l1-in { grid-template-columns: 1fr auto; }
  .mx-ref .mxs-cab .mxr-onde { grid-column: 1 / -1; justify-self: start; }
  .mx-ref .mxs-l2-in { flex-wrap: wrap; padding-top: .45rem; padding-bottom: .45rem; }
  .mx-ref .mxs-menu { flex: 1 1 100%; order: 3; }
  .mx-ref .mxs-busca { flex: 1 1 auto; order: 1; max-width: none; }
  .mx-ref .mxs-carrinho-d { order: 2; }
}
/* ---------- celular ---------- */
@media (max-width: 760px) {
  .mx-ref .mxs-l1-in { grid-template-columns: 1fr auto; gap: .5rem; padding-top: .55rem; padding-bottom: .5rem; }
  .mx-ref .mxs-cab .mxr-portal-nome { font-size: 1.1rem !important; }
  .mx-ref .mxs-cab .mxr-portal-sub { display: none; }
  .mx-ref .mxs-carrinho-m { display: inline-flex; grid-column: 2; grid-row: 1; min-height: 40px; padding: 0 .7rem; }
  .mx-ref .mxs-carrinho-d { display: none; }
  .mx-ref .mxs-cab .mxr-troca { grid-column: 1 / -1; justify-self: stretch; }
  .mx-ref .mxs-cab .mxr-troca a { flex: 1 1 0; min-width: 0; min-height: 50px !important; padding: .35rem .7rem !important; }
  .mx-ref .mxs-cab .mxr-troca small { font-size: .72rem !important; }
  .mx-ref .mxs-cab .mxr-onde { grid-column: 1 / -1; justify-self: center; font-size: .8rem !important; padding: .2rem .7rem !important; }
  .mx-ref .mxs-l2-in { gap: .45rem; padding-top: .5rem; padding-bottom: .35rem; }
  .mx-ref .mxs-busca { flex: 1 1 100%; min-width: 0; }
  .mx-ref .mxs-busca button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mx-ref .mxs-busca button { padding: 0 .9rem; }
  .mx-ref .mxs-voltar { min-height: 36px; padding: 0 .55rem; }
  .mx-ref .mxs-menu { flex: 1 1 100%; order: 3; }
  .mx-ref .mxs-menu a { min-height: 40px; padding: 0 .6rem; font-size: .92rem !important; }
  .mx-ref .mxr-loja-cab h1 { font-size: 1.6rem !important; }
  .mx-ref .mxs-rod-grade { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem 0 1.5rem; }
  .mx-ref .mxs-rod-fim { padding-bottom: 5rem; }
  .mx-ref .mxs-rod-acessos { flex-direction: column; align-items: stretch; }
  .mx-ref .mxs-rod-acessos-tit { text-align: center; }
  .mx-ref .mxs-rod-acessos ul { flex-direction: column; }
  .mx-ref .mxs-rod-acessos a { width: 100%; justify-content: center; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .mx-ref * { scroll-behavior: auto !important; } .mx-ref .mxs-pulso { animation: none; } }
