/* Página de produto. Usa a base (cores, botões, cabeçalho) de home.css. */

.p-main { padding-top: 24px; }

.p-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--h-muted); margin-bottom: 24px; }
.home .p-crumbs a { color: #c9cbcf; }
.home .p-crumbs a:hover { color: #fff; }
.p-crumbs [aria-current] { color: var(--h-text); }

.p-product { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }

/* ---------- Galeria ---------- */
.p-gallery { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.p-stage {
  position: relative; background: var(--h-stage); border-radius: 28px; overflow: hidden;
  aspect-ratio: 1 / 0.86; max-height: 72vh; display: flex; align-items: center; justify-content: center;
}
.p-stage > img { display: block; }
.p-stage > img.is-contain { width: 88%; height: 88%; object-fit: contain; }
.p-stage > img.is-cover { width: 100%; height: 100%; object-fit: cover; }
.p-stage .h-badge { top: 18px; left: 18px; min-height: 30px; padding: 0 12px; font-size: 13px; }
.p-counter {
  position: absolute; bottom: 18px; right: 18px; display: inline-flex; align-items: center; min-height: 30px;
  padding: 0 12px; border-radius: 999px; background: rgba(18, 19, 21, .78); color: #fff; font-size: 13px; font-weight: 600;
}
.p-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.p-thumb {
  aspect-ratio: 1; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--h-stage);
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--h-line);
}
.p-thumb:hover { border-color: #5a5e66; }
.p-thumb[aria-pressed="true"] { border-color: var(--h-accent); }
.p-thumb img.is-contain { width: 86%; height: 86%; object-fit: contain; }
.p-thumb img.is-cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Informações ---------- */
.p-info { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.p-kind { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--h-accent); }
.p-info h1 {
  margin: 6px 0 0; font-family: var(--h-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em;
}
.p-codes { margin: 10px 0 0; color: var(--h-muted); font-size: 15px; }

.p-colors { display: flex; flex-direction: column; gap: 12px; }
.p-colors p { margin: 0; font-size: 15px; }
.p-colors p span, .p-colors small { color: var(--h-muted); font-size: 14px; }
.p-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.p-swatch {
  width: 44px; height: 44px; border-radius: 999px; border: 3px solid var(--h-bg);
  background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: 0 0 0 2px #4a4e55;
  transition: transform .15s, box-shadow .15s;
}
.p-swatch:hover { transform: scale(1.08); }
.p-swatch.is-current { box-shadow: 0 0 0 2px var(--h-accent); }

.p-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.p-highlights > div { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 16px; padding: 14px 16px; }
.p-highlights small { display: block; font-size: 13px; color: var(--h-muted); }
.p-highlights b { display: block; margin-top: 2px; font-family: var(--h-display); font-weight: 800; font-size: 20px; line-height: 1.2; }

.p-pay { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: #1b1a15; border: 1px solid #3a3220; }
.p-pay svg { width: 24px; height: 24px; color: var(--h-accent); }
.p-pay strong { display: block; }
.p-pay span { display: block; font-size: 14px; color: var(--h-muted); }

.p-actions { display: flex; flex-direction: column; gap: 10px; }
.p-cta { width: 100%; min-height: 58px; border-radius: 16px; font-size: 17px; font-weight: 800; }
.p-actions-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.p-btn { min-height: 48px; border-radius: 14px; font-size: 15px; padding: 0 12px; background: transparent; font-family: inherit; cursor: pointer; }
.p-btn svg { width: 18px; height: 18px; }

.p-perks { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid #22252a; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #c9cbcf; }
.p-perks li { display: flex; gap: 10px; align-items: center; }
.p-perks svg { width: 18px; height: 18px; color: var(--h-accent); stroke-width: 2.2; }

/* ---------- Sobre + ficha técnica ---------- */
.p-details { margin-top: 80px; display: flex; flex-wrap: wrap; gap: 40px; }
.p-about { flex: 1 1 420px; min-width: 0; }
.p-about .h-h2, .p-sheet .h-h2 { margin-bottom: 16px; }
.p-about p { margin: 0 0 14px; color: #c9cbcf; font-size: 17px; }
.home .p-about .p-note { margin-top: 18px; font-size: 13px; color: #8e9197; }
.p-sheet { flex: 1 1 520px; min-width: 0; }
.p-sheet dl { margin: 0; background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 20px; overflow: hidden; }
.p-sheet dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.p-sheet dl > div + div { border-top: 1px solid #22252a; }
.p-sheet dt { color: var(--h-muted); font-size: 15px; flex: none; }
.p-sheet dd { margin: 0; font-weight: 600; font-size: 15px; text-align: right; }

/* ---------- Relacionados ---------- */
.p-related { margin-top: 80px; padding-bottom: 80px; }
.p-related-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.p-related-head .h-h2 { margin: 0; }
.home .p-related-head a { display: inline-flex; align-items: center; gap: 6px; color: var(--h-accent); font-weight: 600; }
.p-related-head a svg { width: 18px; height: 18px; }
.p-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.p-rel { display: flex; flex-direction: column; background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 22px; overflow: hidden; transition: border-color .15s; }
.p-rel:hover { border-color: var(--h-line-2); }
.p-rel-media { background: var(--h-stage); height: 190px; padding: 16px; display: flex; align-items: center; justify-content: center; }
.p-rel-media img { max-height: 100%; object-fit: contain; }
.p-rel-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.p-rel-body strong { font-family: var(--h-display); font-weight: 800; font-size: 20px; }
.p-rel-body small { font-size: 14px; color: var(--h-muted); }

.p-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 32px; font-size: 14px; color: #8e9197; }
.p-footer p { margin: 0; }
.p-footer .h-logo img { height: 40px; }

/* Botão fixo no celular */
.p-sticky { display: none; }

@media (max-width: 640px) {
  .p-product { gap: 24px; }
  .p-stage { border-radius: 20px; }
  .p-thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; padding-bottom: 4px; }
  .p-thumb { border-radius: 10px; }
  .p-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-sheet dl > div { flex-direction: column; gap: 2px; }
  .p-sheet dd { text-align: left; }
  .p-details, .p-related { margin-top: 56px; }
  .p-sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(14, 15, 17, .94); border-top: 1px solid #22252a;
  }
  .p-sticky .h-btn { width: 100%; min-height: 52px; border-radius: 14px; }
  .p-page .h-footer { padding-bottom: 84px; }
}
