/* produto-detalhe.css — página individual de produto (/produto.html?slug=...).
   Reaproveita tokens/cores/tipografia de tokens.css e produtos.css (mesmas
   variáveis, mesmo grid, mesmos componentes de card/badge/botão) — nenhuma
   cor, fonte ou espaçamento novo é introduzido aqui. */

.pdp-section { padding: 40px 0 80px; }
.pdp-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 80px 20px; text-align: center; color: var(--text-dark-muted);
}
.pdp-state i { font-size: 40px; color: var(--rb-blue); }
.pdp-state h2 { font-size: 22px; color: var(--text-dark); margin: 0; }

.pdp-layout { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 48px; }
@media (max-width: 900px) { .pdp-layout { grid-template-columns: 1fr; gap: 28px; } }

.pdp-gallery-main {
  aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; background: var(--bg-light-alt);
  border: 1px solid var(--line-light); display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.pdp-gallery-main:hover { z-index: 20; overflow: visible; }
.pdp-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.pdp-gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.pdp-gallery-thumbs img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--line-light); transition: border-color .2s ease;
}
.pdp-gallery-thumbs img.is-active, .pdp-gallery-thumbs img:hover { border-color: var(--rb-blue); }
.pdp-gallery-disclaimer { margin: 10px 0 0; font-size: 12px; color: var(--text-dark-muted); text-align: center; font-style: italic; }

/* Zoom desktop (lupa que acompanha o mouse) */
.pdp-gallery-main { cursor: zoom-in; }
.pdp-zoom-lens {
  display: none; position: absolute; top: 0; left: 0; width: 140px; height: 140px;
  border: 2px solid #fff; border-radius: 10px; background: rgba(255,255,255,.15);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; z-index: 2;
}
.pdp-zoom-pane {
  display: none; position: absolute; top: 0; left: calc(100% + 20px); width: 100%; height: 100%;
  border-radius: 16px; border: 1px solid var(--line-light); background-color: var(--bg-light-alt);
  background-repeat: no-repeat; box-shadow: 0 12px 32px rgba(0,0,0,.18); z-index: 5;
}
@media (max-width: 1200px) { .pdp-zoom-pane { left: 0; } }

/* Mobile: a área da imagem sinaliza que é tocável para ampliar */
.pdp-zoom-touchable { cursor: zoom-in; }

/* Lightbox mobile/touch */
.pdp-lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(5,7,11,.94);
  align-items: center; justify-content: center; padding: 24px;
}
.pdp-lightbox.is-open { display: flex; }
.pdp-lightbox-scroll { max-width: 100%; max-height: 100%; overflow: auto; touch-action: pinch-zoom; }
.pdp-lightbox-img { max-width: 100%; max-height: 86vh; display: block; margin: 0 auto; object-fit: contain; }
.pdp-lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff;
  font-size: 18px; cursor: pointer;
}

.pdp-info h1 { font-size: 28px; margin: 4px 0 12px; }
.pdp-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.pdp-meta .code { font-size: 13px; color: var(--text-dark-muted); font-weight: 600; }
.pdp-short-desc { color: var(--text-dark-muted); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.pdp-price { font-size: 24px; font-weight: 800; color: var(--text-dark); margin: 4px 0 16px; }
.pdp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 32px; }
.pdp-cta-row .pdp-cta { margin: 0; flex: 1 1 220px; }

.pdp-specs, .pdp-description { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-light); }
.pdp-specs h2, .pdp-description h2 { font-size: 17px; margin: 0 0 14px; }
.pdp-specs dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin: 0; }
.pdp-specs dt { font-size: 12px; color: var(--text-dark-muted); text-transform: uppercase; letter-spacing: .03em; }
.pdp-specs dd { font-size: 14px; color: var(--text-dark); margin: 2px 0 0; font-weight: 600; }
.pdp-description-html { font-size: 14.5px; line-height: 1.7; color: var(--text-dark-muted); }
