/* Página de cada modelo (/catalogo/<slug>/). Usa base.css e o cabeçalho/rodapé de catalog.css. */

.product-page main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(56px, 8vw, 104px); }
.pp-hero > *, .pp-info > *, .pp-section { min-width: 0; }

/* Breadcrumb */
.pp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 0 18px; color: var(--faint); font-size: 13px; }
.pp-breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); transition: color 0.25s ease; }
.pp-breadcrumb a:hover { color: var(--ink); }
.pp-breadcrumb svg { width: 15px; height: 15px; }
.pp-breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Topo: galeria + informações ---------- */
.pp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pp-gallery { position: sticky; top: 84px; display: grid; gap: 12px; }
.pp-stage { position: relative; overflow: hidden; aspect-ratio: 1 / 0.9; border-radius: 32px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: zoom-in; }
.pp-stage__image { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: opacity 0.3s ease, transform 0.45s var(--ease); }
.pp-stage__image.is-swapping { opacity: 0; }
.pp-stage.is-zooming .pp-stage__image { transform: scale(1.7); }
.pp-views { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pp-views[hidden] { display: none; }
.pp-view { flex: none; width: 76px; height: 64px; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: border-color 0.25s ease; }
.pp-view img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pp-view.is-active { border-color: var(--ink); }

.pp-info { display: grid; gap: 18px; padding-top: 6px; }
.pp-meta { display: flex; gap: 8px; }
.pp-meta a, .pp-meta span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-text); font-size: 12.5px; font-weight: 600; }
.pp-info h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.04em; line-height: 1.02; }
.pp-stock { padding: 12px 14px; border-radius: var(--r-md); background: #fff4f4; color: #a33; font-size: 14px; }
.pp-lead { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }

.pp-colors { display: grid; gap: 10px; }
.pp-colors__label { color: var(--muted); font-size: 14px; }
.pp-colors__label strong { color: var(--ink); font-weight: 600; }
.pp-colors__list { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-swatch { position: relative; display: block; width: 38px; height: 38px; border-radius: 50%; padding: 5px; }
.pp-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: transform 0.35s var(--ease); }
.pp-swatch::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--ink); transform: scale(0.7); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.25s ease; }
.pp-swatch:hover span { transform: scale(0.92); }
.pp-swatch.is-selected::after { transform: none; opacity: 1; }

.pp-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.pp-quick div { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.pp-quick dt { color: var(--muted); font-size: 12px; }
.pp-quick dd { margin-top: 2px; font-family: var(--font-title); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; line-height: 1.3; }

.pp-buy { display: grid; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pp-price { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 2px; }
.pp-price > span:first-child { width: 100%; color: var(--muted); font-size: 13px; }
.pp-price del { width: 100%; color: var(--faint); font-size: 14px; text-decoration-color: rgba(17, 17, 17, 0.35); }
.pp-price strong { font-family: var(--font-title); font-size: clamp(30px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pp-price__off { font-size: 13px; }
.pp-price__detail { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.pp-cta.is-disabled { opacity: 0.6; pointer-events: none; }
.pp-marketplace { color: var(--muted); font-size: 14px; text-align: center; }

.pp-store { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s ease, transform 0.4s var(--ease); }
.pp-store:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pp-store > span:nth-child(2) { flex: 1; }
.pp-store strong { display: block; font-family: var(--font-title); font-size: 14.5px; }
.pp-store small { color: var(--muted); font-size: 13px; }
.pp-store > svg { color: var(--faint); }
.pp-store__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-text); flex: none; }

/* ---------- Seções ---------- */
.pp-section__head { display: grid; gap: 10px; margin-bottom: 28px; }
.pp-section__head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.pp-section__head p { color: var(--muted); }
.pp-section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pp-section__head--row > div { display: grid; gap: 10px; }
.pp-link { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-text); font-weight: 600; font-size: 14px; }

/* Detalhes */
.pp-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pp-detail { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--line); cursor: zoom-in; }
.pp-detail--feature { grid-column: span 2; grid-row: span 2; }
.pp-detail img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.7s var(--ease); }
.pp-detail:hover img { transform: scale(1.05); }
.pp-detail__zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-sm); opacity: 0; transition: opacity 0.3s ease; }
.pp-detail:hover .pp-detail__zoom { opacity: 1; }

/* Ficha técnica */
.pp-specs-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 16px; }
.pp-specs-grid--solo { grid-template-columns: 1fr; }
.pp-specs { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.pp-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); transition: background 0.25s ease; }
.pp-specs div:last-child { border-bottom: 0; }
.pp-specs div:hover { background: var(--bg); }
.pp-specs dt { color: var(--muted); font-size: 14.5px; }
.pp-specs dd { font-weight: 600; font-size: 14.5px; text-align: right; }
.pp-features { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.pp-features h3 { margin-bottom: 14px; font-size: 17px; }
.pp-features ul { display: grid; gap: 10px; list-style: none; }
.pp-features li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.pp-features li svg { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-text); stroke-width: 2.2; }
.pp-note { margin-top: 12px; color: var(--faint); font-size: 12.5px; }
.pp-specs-empty { display: grid; justify-items: start; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--line-2); color: var(--muted); }

/* Onde comprar */
.pp-local__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.pp-local__card { display: grid; justify-items: start; gap: 8px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.pp-local__card p { color: var(--muted); font-size: 14.5px; }
.pp-local__card a { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-text); font-weight: 600; font-size: 14px; }
.pp-local__card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }

/* Veja também */
.pp-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pp-card { position: relative; isolation: isolate; display: grid; gap: 4px; padding-bottom: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.pp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pp-card__image { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.pp-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform 0.7s var(--ease); }
.pp-card:hover .pp-card__image img { transform: scale(1.05); }
.pp-card__meta { padding: 0 18px; color: var(--muted); font-size: 12px; }
.pp-card strong { padding: 0 18px; font-family: var(--font-title); font-size: 16.5px; letter-spacing: -0.02em; }
.pp-card small { padding: 0 18px; color: var(--muted); font-size: 13px; }

/* Tela cheia */
.pp-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(250, 250, 247, 0.86); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.pp-lightbox[open] { display: grid; place-items: center; animation: pp-fade 0.35s var(--ease); }
.pp-lightbox::backdrop { background: transparent; }
@keyframes pp-fade { from { opacity: 0; } }
.pp-lightbox figure { display: grid; justify-items: center; gap: 12px; }
.pp-lightbox img { max-width: min(92vw, 900px); max-height: 80dvh; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); object-fit: contain; }
.pp-lightbox figcaption { color: var(--muted); font-size: 13px; }
.pp-lightbox__close, .pp-lightbox__nav { position: fixed; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pp-lightbox__close { top: 18px; right: 18px; }
.pp-lightbox__nav { top: 50%; translate: 0 -50%; }
.pp-lightbox__nav--prev { left: 18px; }
.pp-lightbox__nav--next { right: 18px; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .pp-hero { grid-template-columns: minmax(0, 1fr); }
  .pp-gallery { position: static; }
  .pp-related { grid-template-columns: repeat(2, 1fr); }
  .pp-specs-grid { grid-template-columns: 1fr; }
  .pp-details { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pp-breadcrumb { padding: 14px 0 12px; }
  .pp-stage { border-radius: 24px; cursor: default; }
  .pp-buy { padding: 18px; }
  .pp-specs div { padding: 14px 16px; }
  .pp-related { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .pp-card { flex: 0 0 70%; scroll-snap-align: start; }
  .pp-lightbox__nav { top: auto; bottom: 20px; translate: none; }
  .pp-lightbox__nav--prev { left: calc(50% - 58px); }
  .pp-lightbox__nav--next { right: calc(50% - 58px); }
}
