/* ==========================================================================
   PÁGINA PÚBLICA DO PRODUTO — galeria, descrição e Score.

   O bundle Tailwind (garimpai.css) não é regenerado neste projeto; o que a
   página do produto precisa a mais mora aqui, carregado só nela e versionado
   por mtime (Asset::v) — o .htaccess cacheia CSS por 1 ano.

   CAUSA DA FOTO GIGANTE E "CORTADA" (2026-09-28): a imagem principal usava
   `aspect-square w-full object-cover`. Numa coluna de ~570px isso vira um
   quadrado de 570px de altura, e `object-cover` preenche o quadrado cortando
   o que sobra — a foto real do Omo tem 959×1200 (retrato), então perdia cerca
   de 20% (topo e base). Aqui: moldura de altura limitada, `object-fit:
   contain` (produto inteiro, sem esticar) e fundo branco.
   ========================================================================== */

.gp-prod-galeria { min-width: 0; }

.gp-prod-foto {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(220px, 72vw, 380px);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: .75rem;
  background: #fff;
  cursor: zoom-in;
}
@media (min-width: 1024px) {
  .gp-prod-foto { height: min(58vh, 440px); }
}
.gp-prod-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gp-prod-foto__ampliar {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  padding: .3rem .65rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--card) / .92);
  color: hsl(var(--foreground));
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: zoom-in;
}
.gp-prod-foto__ampliar:hover { background: hsl(var(--card)); }

.gp-prod-miniaturas {
  display: flex;
  gap: .5rem;
  padding-bottom: .25rem;
  overflow-x: auto;
}
.gp-prod-mini {
  flex: none;
  width: 4rem;
  height: 4rem;
  padding: 2px;
  overflow: hidden;
  border: 2px solid hsl(var(--border));
  border-radius: .5rem;
  background: #fff;
  cursor: pointer;
}
.gp-prod-mini:hover { border-color: hsl(var(--primary) / .5); }
.gp-prod-mini[aria-current="true"] { border-color: hsl(var(--primary)); }
.gp-prod-mini img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Foto ampliada (dialog nativo; sem dependência). */
.gp-zoom {
  width: min(96vw, 1000px);
  max-height: 94vh;
  margin: auto;
  padding: .75rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: #fff;
  color: #111;
}
.gp-zoom::backdrop { background: rgb(6 12 24 / .82); }
.gp-zoom img {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 2rem);
  margin: 0 auto;
  object-fit: contain;
}
.gp-zoom__fechar,
.gp-zoom__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.gp-zoom__fechar { top: .75rem; right: .75rem; }
.gp-zoom__nav { top: 50%; transform: translateY(-50%); }
.gp-zoom__ant { left: .75rem; }
.gp-zoom__prox { right: .75rem; }
.gp-zoom[data-um] .gp-zoom__nav { display: none; }

/* Descrição do catálogo: parágrafos e listas legíveis. */
.gp-desc { max-width: 46rem; }
.gp-desc p { margin-top: .85rem; line-height: 1.7; color: hsl(var(--foreground) / .8); overflow-wrap: anywhere; text-align: justify; text-align-last: left; }
.gp-desc p:first-child { margin-top: 0; }
.gp-desc ul { margin-top: .85rem; padding-left: 1.25rem; list-style: disc; }
.gp-desc li { margin-top: .4rem; line-height: 1.65; color: hsl(var(--foreground) / .8); overflow-wrap: anywhere; }
.gp-desc__origem { margin-top: .9rem; font-size: .75rem; color: hsl(var(--muted-foreground)); }

/* Em telas estreitas o justify cria espaçamento exagerado entre palavras
   (poucas por linha); volta para alinhamento à esquerda. */
@media (max-width: 480px) {
  .gp-desc p { text-align: left; text-align-last: auto; }
}

/* "Ver mais"/"Ver menos" (JS em site.js): corta com fade e expande no clique.
   Altura fechada cobre ~3 parágrafos; suficiente para decidir se vale ler o resto. */
.gp-desc--collapsible { position: relative; max-height: 10.5rem; overflow: hidden; }
.gp-desc--collapsible::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2.75rem;
  background: linear-gradient(to bottom, transparent, hsl(var(--background)));
  pointer-events: none;
}
.gp-desc--collapsible.is-expanded { max-height: none; }
.gp-desc--collapsible.is-expanded::after { display: none; content: none; }
.gp-desc__toggle {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .75rem;
  border: 0;
  background: none;
  padding: 0;
  font-size: .875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  cursor: pointer;
}
.gp-desc__toggle:hover { text-decoration: underline; }
.gp-desc__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (min-width: 1024px) {
  .gp-prod-galeria { align-self: start; position: sticky; top: 5.5rem; }
}

/* Título do produto: escala contida e linhas equilibradas (nomes do catálogo
   são longos; em text-4xl viravam um bloco de 3 linhas desiguais). */
.gp-prod-titulo {
  margin-top: .4rem;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* Tabelas de características/especificações: fundo próprio, zebra e, quando
   longas, recolhidas com "Ver mais" (mesmo JS da descrição). */
.gp-tabela {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: .85rem;
  background: hsl(var(--secondary) / .55);
}
.gp-tabela__linha {
  display: grid;
  grid-template-columns: 1fr;
  gap: .15rem;
  padding: .7rem 1rem;
  border-top: 1px solid hsl(var(--border) / .7);
}
.gp-tabela__linha:first-child { border-top: 0; }
.gp-tabela__linha:nth-child(even) { background: hsl(var(--card) / .55); }
.gp-tabela__linha dt { font-size: .875rem; font-weight: 600; color: hsl(var(--foreground)); }
.gp-tabela__linha dd { font-size: .875rem; color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .gp-tabela__linha { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; }
}
.gp-tabela--colapsavel { position: relative; max-height: 15.5rem; }
.gp-tabela--colapsavel::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, hsl(var(--secondary)));
  pointer-events: none;
}
.gp-tabela--colapsavel.is-expanded { max-height: none; }
.gp-tabela--colapsavel.is-expanded::after { display: none; content: none; }
