/* ==========================================================================
   Páginas de produto (dermacryl.html, dermacryl-fix.html)
   Alternância de fundos: branco → azul institucional (#003399) → branco…
   O roxo do produto entra só como acento, via data-brand no <main>.
   ========================================================================== */

/* ---------- 1. Hero ---------- */
.pp-hero .hero-copy { gap: 20px; }
.pp-hero h1 { max-width: 16ch; font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.375rem); }
.pp-apoio { max-width: 46ch; font-size: 1.125rem; line-height: 1.55; font-weight: 400; color: var(--muted); text-wrap: pretty; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-hero .hero-seals { margin-top: 4px; }

.pp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.pp-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.pp-crumbs li + li::before { content: "›"; color: var(--n-400); font-weight: 700; }
.pp-crumbs a { color: var(--muted); transition: color var(--d-1) var(--ease); }
.pp-crumbs a:hover { color: var(--b-600); }
.pp-crumbs [aria-current] { color: var(--b-ink); }

/* Composição da imagem: foto maior que o box, vazando pelo topo,
   com um cartão de fundo deslocado e pílulas sobrepostas à foto */
.pp-art { width: 100%; max-width: 580px; justify-self: end; }
.pp-stage { position: relative; aspect-ratio: 1 / 1.02; isolation: isolate; }
.pp-stage-back {
  position: absolute; z-index: -1; left: 4%; right: -3%; top: 34%; bottom: -4%;
  border-radius: var(--r-xl); background: var(--b-100); opacity: .7;
  transform: rotate(-3deg);
}
.pp-stage-box {
  position: absolute; inset: 14% 0 0 0; overflow: hidden;
  border-radius: var(--r-xl); background: var(--b-50);
  box-shadow: var(--sh-card);
}
.pp-stage-box .prod-bars { position: absolute; left: -6%; bottom: -4%; width: 112%; height: auto; }
.pp-photo { position: absolute; z-index: 1; max-width: none; filter: drop-shadow(0 30px 32px rgba(51, 0, 102, .2)); }
.pp-photo--larga { width: 116%; height: auto; left: -10%; top: -7%; }
/* foto alta (mão): sai pelo topo; o corte do braço fica escondido na base do box */
.pp-photo--alta { height: 136%; width: auto; left: 50%; bottom: -15%; transform: translateX(-46%); clip-path: inset(-20% -20% 11% -20%); }

.pp-pill {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: var(--r-pill);
  background: #fff; box-shadow: var(--sh-card);
  font-size: .9375rem; line-height: 1.2; color: var(--ink); white-space: nowrap;
}
.pp-pill b { font-weight: 800; }
.pp-pill-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--b-btn); color: #fff; }
.pp-pill-ic .i { width: 18px; height: 18px; }
.pp-pill--a { top: 22%; left: -6%; }
.pp-pill--b { bottom: 12%; right: -4%; background: var(--b-900); color: #fff; }
.pp-pill--b .pp-pill-ic { background: rgba(255, 255, 255, .16); }

@media (hover: hover) and (min-width: 961px) {
  .js .pp-pill--a { animation: mm-float 7s var(--ease-inout) 1.2s infinite; }
  .js .pp-pill--b { animation: mm-float-sm 8s var(--ease-inout) 2s infinite; }
}

/* ---------- 2. Especificações (azul) ---------- */
.pp-spec {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.pp-spec-copy { display: grid; gap: 20px; justify-items: start; }
.pp-spec-copy > p:not(.tag) { max-width: 58ch; color: rgba(255, 255, 255, .88); font-size: 1.0625rem; line-height: 1.7; }
.pp-sheet {
  padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-xl);
  background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(0, 20, 60, .28);
}
.pp-sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 20px; border-bottom: 2px solid var(--b-100);
}
.pp-sheet-head img { width: auto; height: 30px; }
.pp-sheet-head span { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b-700); }
.pp-sheet-list > div {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.pp-sheet-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.pp-sheet-list dt { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.pp-sheet-list dd { font-weight: 700; color: var(--ink); line-height: 1.45; }

/* ---------- 3. Indicação + nota de uso (branco) ---------- */
.pp-ind {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.pp-ind > div { display: grid; gap: 20px; justify-items: start; }
.pp-checks { display: grid; gap: 12px; width: 100%; margin-top: 8px; }
.pp-checks li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-link);
  font-size: 1.0625rem; font-weight: 600; line-height: 1.4; color: var(--ink);
}
.pp-check { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--b-btn); color: #fff; }
.pp-check .i { width: 18px; height: 18px; }
.pp-note {
  display: grid; gap: 14px; align-content: start;
  padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-xl);
  background: var(--b-50); border: 1px solid var(--b-100); border-left: 5px solid var(--b-btn);
}
.pp-note .ic { background: #fff; }
.pp-note h3 { color: var(--b-ink); }
.pp-note p { color: var(--n-700); line-height: 1.65; }

/* ---------- 4. Diferenciais (azul): grid 2 × 2 ---------- */
.pp-diffs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; margin-inline: auto; }

/* ---------- 5. Galeria (branco): carrossel, fotos com a mesma altura ---------- */
.pp-carousel { display: grid; gap: 24px; }
.pp-track {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 6px 2px 14px;
}
.pp-track::-webkit-scrollbar { display: none; }
.pp-slide { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
.pp-tile {
  position: relative; overflow: hidden;
  display: grid; place-items: center; width: 100%; height: 340px;
  padding: 28px 24px; border: 1px solid var(--b-100); border-radius: var(--r-lg);
  background: var(--b-50); cursor: zoom-in;
  transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), border-color var(--d-2) var(--ease);
}
.pp-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-card); border-color: var(--b-300); }
.pp-tile img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
  mix-blend-mode: multiply; /* some com o fundo claro de algumas fotos */
  transition: transform var(--d-3) var(--ease);
}
.pp-tile:hover img { transform: scale(1.04); }
.pp-car-nav { display: flex; justify-content: center; gap: 12px; }
.pp-car-nav[hidden] { display: none; }
.pp-car-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--n-200); background: #fff; color: var(--ink);
  transition: background var(--d-1) var(--ease), border-color var(--d-1) var(--ease), opacity var(--d-1) var(--ease);
}
.pp-car-btn:hover:not(:disabled) { background: var(--b-50); border-color: var(--b-300); }
.pp-car-btn:disabled { opacity: .35; cursor: default; }
.pp-car-btn .i { width: 20px; height: 20px; }

/* ---------- 6. Contato (azul) ---------- */
.pp-trust { gap: 12px 24px; }
.contact-card .btn { background: var(--mm-medio); }
.contact-card .btn:hover { background: var(--mm-escuro); }
.contact-card .check input:checked { background: var(--mm-medio); border-color: var(--mm-medio); }

/* ---------- Lightbox ---------- */
.lb {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 72px 88px;
  border: 0; background: rgba(0, 20, 50, .94); color: #fff;
}
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: transparent; }
.lb-fig { display: grid; gap: 16px; justify-items: center; max-width: min(1040px, 100%); margin: 0; }
.lb-fig img {
  width: auto; max-width: 100%; max-height: 72vh; padding: clamp(16px, 3vw, 40px);
  border-radius: var(--r-xl); background: #fff; object-fit: contain;
}
.lb-fig figcaption { font-size: var(--fs-sm); font-weight: 600; color: rgba(255, 255, 255, .9); text-align: center; }
.lb-count { position: fixed; top: 30px; left: 50%; transform: translateX(-50%); font-size: var(--fs-sm); font-weight: 600; color: rgba(255, 255, 255, .78); }
.lb-btn {
  position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff;
  transition: background var(--d-1) var(--ease), border-color var(--d-1) var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.lb-btn .i { width: 22px; height: 22px; }
.lb-btn[hidden] { display: none; }
.lb-close { top: 18px; right: 18px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb :focus-visible { outline-color: var(--mm-ceu); }
.lb-open, .lb-open body { overflow: hidden; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .pp-spec, .pp-ind { grid-template-columns: minmax(0, 1fr); }
  .pp-art { justify-self: center; max-width: 520px; margin-top: 24px; }
  .pp-slide { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
  .pp-diffs { grid-template-columns: minmax(0, 1fr); }
  .pp-sheet-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pp-photo--larga { width: 108%; left: -4%; top: 4%; }
  .pp-photo--alta { height: 122%; }
  .pp-pill { padding: 6px 12px 6px 6px; font-size: .8125rem; }
  .pp-pill-ic { width: 28px; height: 28px; }
  .pp-pill--a { left: 0; }
  .pp-pill--b { right: 0; }
  .pp-slide { flex-basis: 84%; }
  .pp-tile { height: 260px; padding: 20px 16px; }
  .lb { padding: 72px 16px 100px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}
