
/* Revisão 20 — style.css original da v16 permanece intacto. */
h1,h2,h3,#intro .lo button { text-transform: uppercase; }
:root { --hh: 88px; }
.pad { padding-top: calc(var(--actual-header,var(--hh)) + 32px); }

/* Cabeçalho idêntico em TODAS as páginas. Terceiro item no eixo da janela. */
body[data-page] .hdr {
  min-height: 88px;
  padding: 8px 24px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}
body[data-page] .hdr .logo { margin-left: 26px; }
body[data-page] .hdr .logo img { width: 70px; height: 70px; }
body[data-page] .hdr nav {
  position: absolute;
  left: calc(50% - 310px); top: 0; bottom: 0;
  transform: none;
  display: grid;
  grid-template-columns: repeat(5,124px);
  justify-content: center;
  align-items: stretch;
  gap: 0;
  flex: none;
}
body[data-page] .hdr nav .ni { justify-content: center; }
body[data-page] .hdr nav .ni > a {
  font-size: .76rem;
  font-weight: 400;
  padding: 0 5px;
  min-height: 48px;
  justify-content: center;
  transform: none;
  letter-spacing: .05em;
}
body[data-page] .hdr nav .ni > a:hover,
body[data-page] .hdr nav .ni > a:focus-visible { transform: none; }
body[data-page] .hdr .tools { margin-left: auto; gap: 7px; }
body[data-page] .hdr .tools > button { min-width: 40px; padding: 0 8px; }

/* Menus: painel encosta na faixa inferior do cabeçalho, sem espaço morto.
   Removidos os estados CSS de hover concorrentes com o controlador JavaScript. */
body[data-page] .hdr nav .mega {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  left: 0; right: 0;
  top: var(--actual-header,88px);
  max-height: 60svh;
  transform: none;
  transition: none;
  z-index: 60;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px,1fr);
  padding: 22px 40px 30px;
  gap: 24px;
}
body[data-page] .hdr:not(.nomega) nav .ni.mega-open .mega {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none;
}
/* Painel deve se referenciar à JANELA, não ao nav transformado. */
body[data-page] .hdr nav { transform: none; translate: none; }
body[data-page] .hdr .mega { contain: none; }
body[data-page] .hdr nav .mega a { min-height: 44px; display: block; }

.contact-menu { position: relative; }
.contact-menu summary {
  min-height: 48px; display: flex; align-items: center; cursor: pointer;
  font-size: .9rem; font-weight: 700; list-style: none;
  text-transform: uppercase; letter-spacing: 0;
}
.contact-menu summary::-webkit-details-marker { display: none; }
.contact-panel {
  position: absolute; right: 0; top: 100%; min-width: 245px;
  display: flex; flex-wrap: wrap; gap: 10px; padding: 18px;
  background: var(--bg); color: var(--fg); text-shadow: none; box-shadow: 0 10px 28px #0004;
}
.contact-panel a,.contact-panel .unconfigured-social {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none;
}
.contact-panel svg { width: 24px; height: 24px; }
.unconfigured-social { opacity: .6; }
.contact-panel .mail-contact { width: 100%; font-size: .78rem; text-transform: uppercase; padding-top: 10px; }

/* Entrada e banner: mantém animações, diminui apenas os títulos pedidos. */
#intro { background-size: cover; background-position: center; }
#intro .lo button { background: transparent; font-size: .86rem; letter-spacing: .07em; }
#intro.go { background-image: none !important; }
.cap h2 { font-size: clamp(0.5rem,2.5vw,1rem); }

/* Foto em uma coluna central com colunas laterais SIMÉTRICAS.
   A descrição permanece à direita; não desloca o centro da imagem. */
body[data-page="item"] .pad { max-width: 1800px; padding-left: 24px; padding-right: 24px; }
body[data-page="item"] .ip {
  grid-template-columns: 240px minmax(0,1fr) 240px;
  gap: 24px;
  align-items: start;
}
body[data-page="item"] .thumbcol { align-items: flex-end; padding-right: 12px; }
body[data-page="item"] .stage {
  width: 100%; height: min(78svh,900px); min-height: 410px;
  aspect-ratio: auto; background: var(--bg);
}
body[data-page="item"] .big { cursor: zoom-in; }
body[data-page="item"] .big img { object-fit: contain; object-position: center; }
/* Ampliação passa a ocorrer no clique: nada de recorte por hover. */
body[data-page="item"] .big:hover img { transform: none; }
body[data-page="item"] .info { max-width: 240px; }
body[data-page="item"] .info h1 { font-size: clamp(1.25rem,1.8vw,1.65rem); }
body[data-page="item"] .info > p:not(.sub) { font-size: .9rem; line-height: 1.8; }
.sw { width: 48px; height: 22px; min-height: 22px; padding: 0; border-radius: 0; box-shadow: inset 0 0 0 1px #8885; }
.sw[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 3px; }
.sw:focus-visible { outline-offset: 5px; }
.pills:has(.sw) { gap: 14px; padding: 8px 3px; }

/* Filtros: sem bordas, caixas, fundos pesados ou linhas divisórias. */
.category-band { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 36px; }
.category-block { min-width: 220px; max-width: 320px; flex: 1 0 220px; height: 125px; display: flex; align-items: center; gap: 16px; border: 0; border-radius: 0; background: transparent; color: var(--fg); cursor: pointer; text-align: left; padding: 0; }
.category-block img { width: 43%; height: 100%; object-fit: contain; padding: 8px; }
.category-block > span:last-child { font-size: .74rem; text-transform: uppercase; }
.category-block[aria-pressed="true"] span:last-child {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  width: fit-content;
}
.category-empty { width: 43%; text-align: center; }
.catalog-layout { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 42px; }
.catalog-filters summary { text-transform: uppercase; padding: 8px 0 20px; font-size: .8rem; cursor: pointer; }
.catalog-filters label { text-transform: uppercase; font-weight: 400; font-size: .72rem; letter-spacing: .04em; padding-top: 14px; border: 0; }
.catalog-filters select.f { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 8px 0; font-size: .85rem; }
.catalog-filters .btn { border: 0; border-radius: 0; background: transparent; width: 100%; margin-top: 16px; font-size: .75rem; justify-content: flex-start; padding-left: 0; }
.catalog-filters .btn:hover { color: var(--accent); text-decoration: underline; }
.catalog-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: .75rem; color: var(--mut); margin-bottom: 28px; }
.catalog-meta label { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: .75rem; margin: 0; }
.catalog-meta select.f { border: 0; background: transparent; min-width: 145px; width: auto; font-size: .75rem; }
.catalog-results .grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,225px),1fr)); gap: 34px 30px; }
body[data-page="products"] .card .im,body[data-page="products"] .card .tx { max-width: 250px; margin: auto; }
body[data-page="products"] .card .im,
body[data-page="products"] .card .tx {
    max-width: 250px;
    margin: auto;
}

.card .im {
    background: transparent;
}
body[data-page="products"] .card h3 { font-size: 1.02rem; font-weight: 400; }

/* Galeria modal com focus trap, fundo no tema e miniaturas inferiores. */
#photoGallery {
  inset: 0; margin: 0; padding: 56px 30px 20px;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  border: 0; background: var(--bg); color: var(--fg); overflow: hidden;
}
#photoGallery[open] { display: grid; grid-template-rows: minmax(0,1fr) 96px; gap: 14px; }
#photoGallery::backdrop { background: var(--bg); }
.gallery-close { position: absolute; right: 16px; top: 6px; width: 48px; height: 48px; font-size: 2rem; border: 0; background: none; color: var(--fg); cursor: pointer; }
.gallery-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; }
.gallery-stage > img { width: 100%; height: 100%; object-fit: contain; }
.gallery-stage > button { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 64px; border: 0; background: none; color: var(--fg); cursor: pointer; z-index: 1; }
.gallery-prev { left: 0; }.gallery-next { right: 0; }
.gallery-stage svg { width: 22px; height: 38px; filter: drop-shadow(0 0 2px #888); }
.gallery-thumbs { display: flex; justify-content: safe center; gap: 12px; overflow-x: auto; padding: 4px; }
.gallery-thumbs button { padding: 0; width: 78px; height: 78px; min-width: 78px; border: 1px solid transparent; background: none; cursor: pointer; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs [aria-pressed="true"] { border-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.demo-notice { font-size: .82rem; color: var(--accent); margin: 12px 0; }.demo-notice:empty { display: none; }

/* Editor do admin. */
.frame-editor { width: min(1000px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; background: var(--bg); color: var(--fg); border: 1px solid var(--line); padding: 22px; }
.frame-editor::backdrop { background: #000b; }
.frame-editor > p { font-size: .85rem; margin: 12px 0; }
.frame-canvas { background: #292522; max-height: 45vh; overflow: auto; }
.frame-canvas canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 45vh; margin: auto; touch-action: none; cursor: grab; }
.frame-options { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 18px; }
.frame-options label { font-size: .8rem; }
.frame-arrows { display: flex; justify-content: center; gap: 6px; }
.frame-arrows button { min-width: 44px; min-height: 44px; border: 0; background: var(--card); color: var(--fg); cursor: pointer; }
.frame-editor .actions { flex-wrap: wrap; }
.thumbs button.recrop { right: auto; left: 0; top: auto; bottom: 0; width: 38px; }
.intro-preview { max-width: 480px; margin: 20px 0; }.intro-preview img { width: 100%; max-height: 280px; object-fit: contain; }

@media(max-width:1240px) {
  :root { --hh: 136px; }
  body[data-page] .hdr { flex-wrap: wrap; min-height: 136px; padding: 6px 18px; }
  body[data-page] .hdr .logo { margin-left: 6px; }
  body[data-page] .hdr nav { position: static; order: 3; flex-basis: 100%; translate: none; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); width: 100%; min-height: 44px; align-self: auto; }
  body[data-page] .hdr nav .mega { top: var(--actual-header,136px); }
  body[data-page] .ip { grid-template-columns: 180px minmax(0,1fr) 180px; gap: 18px; }
  body[data-page="item"] .info { max-width: 180px; }
}
@media(max-width:1000px) {
  body[data-page="item"] .ip { grid-template-columns: 1fr; }
  body[data-page="item"] .stage { order: 1; height: min(67svh,750px); min-height: 330px; }
  body[data-page="item"] .thumbcol { order: 2; flex-direction: row; align-items: center; padding-right: 0; max-height: none; }
  body[data-page="item"] .info { order: 3; max-width: 560px; margin: 0 auto; width: 100%; }
}
@media(max-width:820px) {
  body[data-page] .hdr nav .ni > a { font-size: .64rem; letter-spacing: .01em; padding: 0 2px; }
  body[data-page] .hdr nav .mega { display: none !important; grid-auto-flow: row; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 18px; }
  body[data-page] .hdr:not(.nomega) nav .ni.mega-open .mega { display: grid !important; }
  .catalog-layout { grid-template-columns: 1fr; gap: 22px; }
  .catalog-results .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 18px; }
  .catalog-meta { align-items: flex-start; font-size: .68rem; gap: 8px; }.catalog-meta label { display: block; font-size: .68rem; }.catalog-meta select.f { min-width: 110px; padding: 5px 0; font-size: .7rem; }
}
@media(max-width:560px) {
  body[data-page] .hdr { padding: 5px 10px; }
  body[data-page] .hdr .logo { margin-left: 2px; }
  body[data-page] .hdr .tools { gap: 3px; }
  body[data-page] .hdr .tools > button { min-width: 36px; padding: 0 5px; }
  .contact-menu summary { font-size: .8rem; }
  .contact-panel { right: -75px; min-width: 230px; }
  body[data-page] .hdr nav .ni > a { font-size: .58rem; }
  body[data-page="item"] .pad { padding-left: 16px; padding-right: 16px; }
  .category-block { min-width: 190px; flex-basis: 190px; height: 110px; }
  .frame-options { grid-template-columns: 1fr; gap: 0; }
  #photoGallery { padding: 56px 10px 12px; grid-template-rows: minmax(0,1fr) 80px; }
  .gallery-thumbs button { width: 64px; height: 64px; min-width: 64px; }
}
@media(prefers-reduced-motion:reduce) { .frame-editor *,#intro { transition: none !important; } }
/* Linhas de cadastros existentes mais compactas */
body.admin #body .row {
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  margin-bottom: 6px;
  flex-wrap: nowrap;
}

body.admin #body .row img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  flex: 0 0 48px;
}

body.admin #body .row .g {
  min-width: 0;
  flex: 1 1 auto;
}

body.admin #body .row .g b {
  display: block;
  font-size: .9rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.admin #body .row .g small {
  display: block;
  font-size: .72rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.admin #body .row .b {
  flex: 0 0 auto;
  gap: 4px;
  flex-wrap: nowrap;
}

body.admin #body .row .b .btn {
  min-height: 30px;
  padding: 3px 9px;
  font-size: .74rem;
  white-space: nowrap;
}
/* Sobre nós — grade de blocos */
.about-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.about-block {
    grid-column: span var(--cols, 12);
    min-width: 0;
}

.about-block img {
    width: 100%;
    height: auto;
    display: block;
}

.about-block figcaption {
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 6px;
}

.about-block[data-align="left"] {
    text-align: left;
}

.about-block[data-align="center"] {
    text-align: center;
}

.about-block[data-align="right"] {
    text-align: right;
}
/* Foto inteira em miniaturas e cards, sem mudar o tamanho da caixa */
.th img,
.im img {
  object-fit: contain;
  object-position: center;
}

.th,
.im {
  background: var(--bg);
}