/* Página de produtos — vitrine por categoria */

.pr-intro { background: var(--petroleo); color: var(--areia); padding-block: clamp(64px, 9vw, 128px) clamp(40px, 5vw, 64px); }
.pr-intro__grade { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; }
.pr-intro h1 { font-size: var(--t-display); line-height: .92; letter-spacing: -0.035em; }
.pr-intro .lead { color: #e3e0d8; }
.pr-intro .rotulo { color: var(--cobre); }
.pr-intro .nota-escura { display: inline-block; margin-top: 20px; padding: 14px 20px; background: var(--petroleo-2); border-radius: var(--raio); font-weight: 700; }

/* Barra de categorias */
.cats { position: sticky; top: var(--header-h); z-index: 800; background: var(--petroleo-2); color: var(--areia); }
.cats ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.cats ul::-webkit-scrollbar { display: none; }
.cats a { display: block; white-space: nowrap; padding: 10px 16px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: background-color .2s, color .2s; }
.cats a:hover { background: rgba(244,241,234,.1); }
.cats a.is-ativo, .cats a[aria-current="true"] { background: var(--cobre); color: var(--petroleo); }

/* Capa de cada linha (PDF: painel escuro + foto) */
.linha { scroll-margin-top: calc(var(--header-h) + 64px); }
.linha__capa { display: grid; grid-template-columns: minmax(340px, 38%) 1fr; min-height: min(78svh, 720px); background: var(--petroleo); color: var(--areia); }
.linha__capa--inv { grid-template-columns: 1fr minmax(340px, 38%); }
.linha__capa--inv .linha__texto { order: 2; }
.linha__texto { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 6vw, 96px) var(--margem); }
.linha__texto .rotulo { color: var(--cobre); }
.linha__texto h2 { font-size: clamp(2.5rem, 4.6vw, 4.5rem); line-height: .98; text-transform: uppercase; letter-spacing: -0.015em; }
.linha__texto p { margin-top: 28px; font-size: clamp(1.125rem, 1.4vw, 1.375rem); max-width: 32ch; color: #e3e0d8; }
.linha__texto small { display: block; margin-top: 28px; padding-top: 16px; border-top: 3px solid var(--cobre); font-size: 1rem; font-weight: 700; }
.linha__foto { position: relative; overflow: hidden; }
.linha__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.linha:hover .linha__foto img { transform: scale(1.03); }

.linha__pecas { background: var(--areia); padding-block: clamp(56px, 7vw, 104px); }
.linha:nth-of-type(even) .linha__pecas { background: var(--areia-2); }
.grupo + .grupo { margin-top: clamp(48px, 6vw, 88px); }
.grupo__topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 28px; }
.grupo__topo h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.05; }
.grupo__topo p { color: var(--tinta-2); font-size: 1.0625rem; max-width: 52ch; }

.pecas { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.2vw, 32px) clamp(14px, 1.6vw, 24px); }
.pecas--3 { grid-template-columns: repeat(3, 1fr); }
.peca { display: flex; flex-direction: column; }
.peca[hidden] { display: none; }
.peca__foto { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--papel); overflow: hidden; aspect-ratio: 9 / 10; cursor: zoom-in; }
.pecas--3 .peca__foto { aspect-ratio: 5 / 4; }
.peca__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.peca__foto:hover img, .peca__foto:focus-visible img { transform: scale(1.05); }
.peca__foto .mais { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; background: var(--petroleo); color: var(--areia); font-size: .875rem; font-weight: 700; }
.peca h3, .peca h4 { margin-top: 16px; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.01em; }
.peca p { margin-top: 6px; font-size: 1rem; line-height: 1.45; color: var(--tinta-2); }
.peca__acoes { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.peca__acoes .btn { min-height: 44px; padding: 10px 14px; font-size: .9375rem; flex: 1 1 auto; }
.peca__add { display: none; }
.js .peca__add { display: inline-flex; }
.peca__add[aria-pressed="true"] { background: var(--cobre); color: var(--petroleo); box-shadow: none; }

/* Filtros das mesas */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtros button { min-height: 44px; padding: 10px 18px; border: 0; background: var(--papel); color: var(--tinta); font-weight: 700; font-size: 1rem; transition: background-color .2s, color .2s; }
.filtros button:hover { background: var(--salvia); }
.filtros button[aria-pressed="true"] { background: var(--petroleo); color: var(--areia); }
.filtros { display: none; }
.js .filtros { display: flex; }

/* Chamada final */
.pr-cta { background: var(--salvia); padding-block: clamp(64px, 8vw, 120px); }
.pr-cta__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.pr-cta h2 { font-size: var(--t-h2); }
.pr-cta p { margin-top: 12px; font-size: clamp(1.125rem, 1.4vw, 1.375rem); color: var(--tinta-2); max-width: 46ch; }

/* Lista de orçamento */
.lista { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 950; width: min(720px, calc(100% - 24px)); transform: translate(-50%, calc(100% + 40px)); transition: transform .35s var(--ease); background: var(--petroleo); color: var(--areia); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.lista.is-on { transform: translate(-50%, 0); }
.lista__barra { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; }
.lista__barra strong { font-size: 1.0625rem; }
.lista__ver { margin-right: auto; background: none; border: 0; color: var(--cobre); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px 4px; }
.lista__barra .btn { min-height: 44px; padding: 10px 16px; font-size: .9375rem; }
.lista__itens { display: none; max-height: 40vh; overflow-y: auto; padding: 4px 20px 12px; }
.lista.is-aberta .lista__itens { display: block; }
.lista__itens li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
.lista__itens li + li { box-shadow: inset 0 1px 0 var(--petroleo-2); }
.lista__itens button { background: none; border: 0; color: #e3e0d8; padding: 6px 8px; font-size: .9375rem; text-decoration: underline; }
.lista__itens .limpar { margin-top: 8px; color: var(--cobre); }
body.tem-lista .zap-flutuante { opacity: 0; pointer-events: none; }

/* Visualizador de fotos */
html:has(.cats) { scroll-padding-top: calc(var(--header-h) + 72px); }
.visor { overscroll-behavior: contain; width: min(1200px, 100vw - 24px); max-height: calc(100vh - 24px); padding: 0; border: 0; background: var(--petroleo); color: var(--areia); }
.visor::backdrop { background: rgba(8, 18, 19, .86); }
.visor__in { display: grid; grid-template-columns: 1fr 340px; max-height: calc(100vh - 24px); }
.visor__foto { position: relative; background: #0a1516; display: grid; place-items: center; min-height: 0; }
.visor__foto img { max-width: 100%; max-height: calc(100vh - 24px); width: auto; height: auto; object-fit: contain; }
.visor__info { display: flex; flex-direction: column; padding: 32px 28px; overflow-y: auto; }
.visor__info .rotulo { color: var(--cobre); }
.visor__info h2 { font-size: 2.25rem; }
.visor__info p { margin-top: 14px; color: #e3e0d8; }
.visor__info .btn { margin-top: auto; }
.visor__info .btn + .btn { margin-top: 10px; }
.visor__fechar, .visor__nav { position: absolute; z-index: 2; width: 48px; height: 48px; border: 0; display: grid; place-items: center; background: var(--petroleo); color: var(--areia); font-size: 1.5rem; line-height: 1; }
.visor__fechar:hover, .visor__nav:hover { background: var(--cobre); color: var(--petroleo); }
.visor__fechar { top: 10px; right: 10px; }
.visor__nav--ant { left: 10px; top: 50%; transform: translateY(-50%); }
.visor__nav--prox { right: 10px; top: 50%; transform: translateY(-50%); }
.visor__miniaturas { display: flex; gap: 8px; margin-top: 18px; }
.visor__miniaturas button { width: 64px; height: 64px; padding: 0; border: 0; opacity: .55; }
.visor__miniaturas button[aria-current="true"] { opacity: 1; outline: 2px solid var(--cobre); outline-offset: 2px; }
.visor__miniaturas img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) { .pecas { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .pr-intro__grade { grid-template-columns: 1fr; }
  .linha__capa, .linha__capa--inv { grid-template-columns: 1fr; min-height: 0; }
  .linha__capa--inv .linha__texto { order: 0; }
  .linha__foto { order: -1; aspect-ratio: 16 / 11; }
  .pecas, .pecas--3 { grid-template-columns: 1fr 1fr; }
  .visor__in { grid-template-columns: 1fr; overflow-y: auto; }
  .visor__foto img { max-height: 62vh; }
  .visor__info { padding: 22px 20px 24px; }
  .visor__info .btn { margin-top: 20px; }
}
@media (max-width: 520px) {
  .pecas, .pecas--3 { gap: 24px 12px; }
  .peca h3, .peca h4 { font-size: 1.1875rem; }
  .peca__acoes { flex-direction: column; }
  .lista__barra { flex-wrap: wrap; padding: 12px 14px; }
  .lista__barra .btn { flex: 1 1 100%; }
}
