/* PetMania — página de produto v2 (out/2026). HTML: tools/pagina_produto_v2.py · JS: assets/js/petza-produto.js */
.pz-pd { --r: #4d2981; --r-esc: #34175c; --r-cl: #f4f1fb; --l: #f5770c; --l-esc: #dd6505; --l-cl: #fff3e8;
  --t: #1f1c26; --s: #5c5769; --ln: #e7e3ef; --f: #f8f6fb; --v: #1d8a4e; --v-cl: #e8f6ee;
  color: var(--t); padding: 14px 0 64px; }
.pz-pd [hidden] { display: none !important; }
.pz-pd *, .pz-pd *::before, .pz-pd *::after { box-sizing: border-box; }
.pz-pd h1, .pz-pd h2, .pz-pd p { text-align: left; }

/* trilha */
.pz-pd-trilha ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 14px; padding: 0; font-size: 13px; color: var(--s); }
.pz-pd-trilha li + li::before { content: "›"; margin-right: 8px; color: #b3abc4; }
.pz-pd-trilha a { color: var(--s) !important; text-decoration: none !important; }
.pz-pd-trilha a:hover { color: var(--r) !important; text-decoration: underline !important; }
.pz-pd-trilha li[aria-current] { color: var(--t); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pz-pd-topo { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: start; }

/* galeria */
.pz-pd-galeria { position: sticky; top: 140px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.pz-pd-fotos { grid-column: 2; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; background: var(--f); outline: 0; }
.pz-pd-fotos::-webkit-scrollbar { display: none; }
.pz-pd-foto { flex: 0 0 100%; margin: 0; aspect-ratio: 1 / 1; display: grid; place-items: center; scroll-snap-align: start; overflow: hidden; cursor: zoom-in; }
.pz-pd-foto img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .15s ease-out; }
.pz-pd-foto.is-zoom img { transform: scale(2); }
.pz-pd-minis { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; scrollbar-width: none; }
.pz-pd-mini { width: 76px; height: 76px; padding: 6px; border: 1.5px solid var(--ln); border-radius: 12px; background: #fff; cursor: pointer; flex: none; }
.pz-pd-mini img { width: 100%; height: 100%; object-fit: contain; }
.pz-pd-mini.is-on, .pz-pd-mini:hover { border-color: var(--r); }
.pz-pd-contador { display: none; }

/* coluna de compra */
.pz-pd-info { display: grid; gap: 16px; }
.pz-pd-marca { justify-self: start; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--r) !important; text-decoration: none !important; }
.pz-pd-marca:hover { text-decoration: underline !important; }
.pz-pd-nome { margin: -8px 0 0; font-size: 27px; line-height: 1.2; font-weight: 800; color: var(--t); letter-spacing: -.01em; }
.pz-pd-cod { margin: -10px 0 0; font-size: 12.5px; color: #8d869b; }
.pz-pd-precos { padding: 16px 18px; border-radius: 16px; background: var(--f); border: 1px solid var(--ln); }
.pz-pd-de { margin: 0 0 2px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #8d869b; }
.pz-pd-off { background: var(--l); color: #fff; font-weight: 800; font-size: 12.5px; border-radius: 8px; padding: 2px 8px; }
.pz-pd-por { margin: 0; }
.pz-pd-por b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--t); }
.pz-pd-pix { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; color: var(--v); font-size: 15px; }
.pz-pd-pix b { font-size: 18px; }
.pz-pd-pix em { font-style: normal; font-weight: 800; font-size: 12px; background: var(--v-cl); border-radius: 6px; padding: 2px 6px; }

.pz-pd-var-tit { margin: 0 0 8px; font-size: 14px; color: var(--s); }
.pz-pd-var-tit b { color: var(--t); }
.pz-pd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-pd-opt { display: grid; gap: 2px; min-width: 96px; padding: 9px 14px; border: 1.5px solid var(--ln); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: .15s; }
.pz-pd-opt b { font-size: 14.5px; color: var(--t); }
.pz-pd-opt small { font-size: 12.5px; color: var(--s); }
.pz-pd-opt:hover { border-color: var(--r); }
.pz-pd-opt.is-on { border-color: var(--r); background: var(--r-cl); box-shadow: inset 0 0 0 1px var(--r); }
.pz-pd-opt:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

.pz-pd-acoes { display: flex; gap: 10px; }
.pz-pd-qtd { display: inline-flex; align-items: center; border: 1.5px solid var(--ln); border-radius: 14px; height: 56px; flex: none; }
.pz-pd-qtd button { width: 44px; height: 100%; border: 0; background: none; font-size: 22px; font-weight: 700; color: var(--r); cursor: pointer; }
.pz-pd-qtd input { width: 40px; border: 0; text-align: center; font: inherit; font-size: 17px; font-weight: 800; background: transparent; -moz-appearance: textfield; }
.pz-pd-qtd input::-webkit-inner-spin-button, .pz-pd-qtd input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pz-pd-comprar { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border: 0; border-radius: 14px;
  background: var(--l); color: #fff !important; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; text-decoration: none !important;
  box-shadow: 0 14px 26px -14px rgba(245, 119, 12, .9); transition: background .15s, transform .15s; }
.pz-pd-comprar:hover { background: var(--l-esc); transform: translateY(-1px); }
.pz-pd-comprar:disabled { background: #c9c3d6; box-shadow: none; cursor: not-allowed; transform: none; }

.pz-pd-frete { padding: 14px 16px; border: 1px solid var(--ln); border-radius: 16px; background: #fff; }
.pz-pd-frete label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 800; font-size: 14.5px; }
.pz-pd-frete label svg { color: var(--r); }
.pz-pd-frete-linha { display: flex; gap: 8px; }
.pz-pd-frete-linha input { flex: 1; min-width: 0; height: 46px; border: 1.5px solid var(--ln); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; }
.pz-pd-frete-linha input:focus { outline: 0; border-color: var(--r); box-shadow: 0 0 0 3px rgba(77, 41, 129, .15); }
.pz-pd-frete-linha button { height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--r); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.pz-pd-fretes { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; gap: 8px; }
.pz-pd-fretes li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--f); font-size: 14px; }
.pz-pd-fretes li span { display: grid; }
.pz-pd-fretes small { color: var(--s); font-size: 12.5px; }
.pz-pd-muted { margin: 6px 0 0; font-size: 12.5px; color: var(--s); }
.pz-pd-erro { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #c62828; }
.pz-pd-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--r) !important; }

.pz-pd-benef { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pz-pd-benef li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--s); line-height: 1.3; }
.pz-pd-benef svg { color: var(--l); flex: none; }

/* descrição + ficha técnica */
.pz-pd-sec { margin-top: 48px; }
.pz-pd-sec h2 { font-size: 22px; font-weight: 800; color: var(--r-esc); margin: 0 0 14px; }
.pz-pd-detalhes { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pz-pd-texto { font-size: 15.5px; line-height: 1.7; color: #3a3546; max-width: 70ch; }
.pz-pd-texto p { margin: 0 0 14px; }
.pz-pd-texto h3 { font-size: 17px; color: var(--t); margin: 22px 0 8px; }
.pz-pd-texto ul { padding-left: 20px; margin: 0 0 14px; }
.pz-pd-ficha-box { position: sticky; top: 140px; }
.pz-pd-ficha { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--ln); border-radius: 14px; overflow: hidden; font-size: 14px; }
.pz-pd-ficha th, .pz-pd-ficha td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ln); }
.pz-pd-ficha tr:last-child th, .pz-pd-ficha tr:last-child td { border-bottom: 0; }
.pz-pd-ficha th { width: 42%; background: var(--f); font-weight: 700; color: var(--s); }

/* barra fixa do celular */
.pz-pd-barra { display: none; }

@media (max-width: 1024px) {
  .pz-pd { padding-top: 8px; padding-bottom: 96px; }
  .pz-pd-trilha li[aria-current] { display: none; }
  .pz-pd-topo { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pz-pd-galeria { position: relative; top: auto; display: block; margin: 0 -16px; }
  .pz-pd-fotos { border-radius: 0; }
  .pz-pd-minis { display: none; }
  .pz-pd-contador { display: block; position: absolute; right: 14px; bottom: 12px; margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(31, 22, 48, .7); color: #fff; font-size: 12px; font-weight: 700; }
  .pz-pd-nome { font-size: 21px; }
  .pz-pd-por b { font-size: 30px; }
  .pz-pd-detalhes { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pz-pd-ficha-box { position: static; }
  .pz-pd-sec { margin-top: 32px; }
  .pz-pd-barra { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ln);
    box-shadow: 0 -12px 28px -18px rgba(31, 22, 48, .45); transform: translateY(110%); transition: transform .2s; }
  .pz-pd-barra.is-on { transform: none; }
  .pz-pd-barra div { display: grid; line-height: 1.15; }
  .pz-pd-barra b { font-size: 19px; }
  .pz-pd-barra small { font-size: 12.5px; color: var(--v); font-weight: 700; }
  .pz-pd-barra .pz-pd-comprar { min-height: 48px; font-size: 16px; }
}
@media (max-width: 380px) { .pz-pd-benef { grid-template-columns: 1fr; } }
/* uma foto só: sem a coluna das miniaturas */
.pz-pd-galeria-1 { grid-template-columns: minmax(0, 1fr); }
.pz-pd-galeria-1 .pz-pd-fotos { grid-column: 1; }

/* estoque real e frete grátis (perto do preço) */
.pz-pd-estoque { margin: -6px 0 0; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--v); }
.pz-pd-estoque::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pz-pd-estoque.is-fora { color: #c62828; }
.pz-pd-fg { margin: -10px 0 0; font-size: 13.5px; font-weight: 700; color: var(--l-esc); }
.pz-pd-fg.is-ok { color: var(--v); }

/* tabelas da descrição (porções, níveis de garantia...): bordas, espaço e cabeçalho; no celular desliza de lado */
.pz-pd-texto table { display: block; max-width: 100%; width: max-content; overflow-x: auto; border-collapse: collapse; margin: 10px 0 20px; font-size: 14.5px; line-height: 1.4; }
.pz-pd-texto th, .pz-pd-texto td { border: 1px solid var(--ln); padding: 9px 14px; text-align: left; vertical-align: top; white-space: nowrap; }
.pz-pd-texto th, .pz-pd-texto thead td, .pz-pd-texto tr:first-child > td:only-child, .pz-pd-texto table tr:first-child th { background: var(--f); font-weight: 800; color: var(--t); }
.pz-pd-texto tbody tr:nth-child(even) td { background: #fcfbfe; }
.pz-pd-texto td p, .pz-pd-texto th p { margin: 0; }
@media (max-width: 1024px) { .pz-pd-texto table { font-size: 13.5px; } .pz-pd-texto th, .pz-pd-texto td { padding: 8px 10px; } }

/* variações em pílulas (só o nome da opção; o preço da escolhida aparece no bloco de preço) */
.pz-pd-var-tit { font-weight: 800; color: var(--t); font-size: 15px; }
.pz-pd-var-tit b { font-weight: 800; }
.pz-pd-opts { gap: 10px; }
.pz-pd-opt { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 42px; padding: 0 20px; border: 1.5px solid #d9d3e5; border-radius: 999px; background: #fff; box-shadow: none; }
.pz-pd-opt b { font-size: 15px; font-weight: 800; color: var(--s); }
.pz-pd-opt small { display: none; }
.pz-pd-opt:hover { border-color: var(--r); }
.pz-pd-opt:hover b { color: var(--r); }
.pz-pd-opt.is-on { background: var(--r); border-color: var(--r); box-shadow: none; }
.pz-pd-opt.is-on b { color: #fff; }
.pz-pd-opt:disabled { background: #f3f1f6; text-decoration: line-through; opacity: .6; }
