/* Cores com nome (ops/ui-audit/tokenizar.py, 25/11/2026): use estas variáveis em vez de hex solto. */
:root{--p3-c-azul-41:#5d5f74;--p3-c-azul-78:#b9c2d3;--p3-c-azul-9:#17182b;--p3-c-cinza-0:#000000;--p3-c-cinza-0-a10:#0000001a;--p3-c-cinza-0-a18:#0000002e;--p3-c-cinza-100:#ffffff;--p3-c-cinza-100-a12:#ffffff1f;--p3-c-cinza-100-a40:#ffffff66;--p3-c-cinza-79:#c9c3b6;--p3-c-cinza-86:#ddd6c8;--p3-c-cinza-92:#ece7dc;--p3-c-cinza-93:#eceaf2;--p3-c-cinza-93-2:#f0ebe1;--p3-c-cinza-94:#f1ede4;--p3-c-cinza-95:#f1eff6;--p3-c-cinza-95-2:#f3f0ff;--p3-c-cinza-98:#f0fdf4;--p3-c-indigo-31:#4a22c4;--p3-c-indigo-31-a67:#4a22c4aa;--p3-c-indigo-37:#6d28d9;--p3-c-indigo-42:#6a3df0;--p3-c-indigo-56:#8b6cff;--p3-c-indigo-65:#a78bfa;--p3-c-indigo-80:#cbbcff;--p3-c-indigo-89:#e5dcff;--p3-c-indigo-93:#efe9ff;--p3-c-laranja-74:#f5a524;--p3-c-verde-79:#4ade80;--p3-c-verde-87:#86efac;--p3-c-vermelho-41:#be123c;--p3-c-vermelho-93:#ffe4e6}
/*
 * Ficha de produto em blocos (18/11/2026) — app/_lib/product-page.ts.
 * Identidade Evidelo: cabeçalho azul-marinho quase preto (o do site),
 * fundo creme, destaques violeta/lilás, botões roxos, selos verdes.
 * Cada bloco só existe no HTML se tiver dado; nada aqui reserva espaço
 * para bloco ausente — a grade se reorganiza sozinha.
 */
.pdp3-page {
  --p3-bg: #f6f4ef;
  --p3-card: #ffffff;
  --p3-ink: #15171c;
  --p3-muted: #636a78;
  --p3-line: #e6e1d7;
  --p3-navy: #070c16;
  --p3-violet: #6a3df0;
  --p3-violet-dark: #5329d6;
  --p3-violet-ink: #4b2bb8;
  --p3-lilac: #ece6ff;
  --p3-lilac-2: #f5f1ff;
  --p3-green: #15803d;
  --p3-green-bg: #dcfce7;
  --p3-best: #16a34a;
  --p3-radius: 18px;
  --p3-tabs-top: 72px;
  background: var(--p3-bg);
  color: var(--p3-ink);
}
.pdp3 { padding-bottom: 48px; }
.pdp3-wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.pdp3-ico { width: 18px; height: 18px; flex: none; }
.pdp3-ico--round {
  width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: var(--p3-lilac); color: var(--p3-violet-ink);
}

/* ---------- topo ---------- */
.pdp3-crumb {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 18px 0 14px; font-size: 13px; color: var(--p3-muted);
}
.pdp3-crumb a { color: var(--p3-muted); text-decoration: none; flex: none; }
.pdp3-crumb a:hover { color: var(--p3-violet-ink); text-decoration: underline; }
.pdp3-crumb [aria-current] {
  color: var(--p3-ink); font-weight: 600; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pdp3-top {
  display: grid; gap: 20px 40px; align-items: start;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "gallery heading" "gallery buy";
  grid-template-rows: auto 1fr;
  background: var(--p3-card); border: 1px solid #e7e3f0;
  border-radius: 24px; padding: 28px;
  box-shadow: 0 4px 20px rgba(23, 24, 43, .04);
}
.pdp3-top--noimg { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); grid-template-areas: "heading buy"; grid-template-rows: auto; }
.pdp3-heading { grid-area: heading; min-width: 0; }
.pdp3-gallery { grid-area: gallery; min-width: 0; display: grid; gap: 12px; grid-template-columns: 78px 1fr; grid-template-rows: 1fr; }
.pdp3-buy { grid-area: buy; }
.pdp3-title {
  margin: 0; font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.25;
  font-weight: 750; letter-spacing: -0.015em; overflow-wrap: anywhere; text-wrap: balance;
}
/* Nome inteiro, sem corte: nomes longos ganham fonte menor para caber em ~3 linhas. */
.pdp3-title--lg { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.pdp3-title--xl { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.pdp3-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 12px; font-size: 14px; color: var(--p3-muted);
}
.pdp3-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--p3-c-cinza-79); }
.pdp3-brand { font-weight: 700; color: var(--p3-violet-ink); }
.pdp3-rating, .pdp3-stores { display: inline-flex; align-items: center; gap: 6px; }
.pdp3-rating strong { color: var(--p3-ink); }
.pdp3-stars {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4L2.8 9.5l6.4-.8z'/%3E%3C/svg%3E");
  position: relative; display: inline-block; width: 86px; height: 16px; flex: none;
  background: var(--p3-c-cinza-86); -webkit-mask: var(--star) left/17.2px 16px repeat-x; mask: var(--star) left/17.2px 16px repeat-x;
}
.pdp3-stars__fill { position: absolute; inset: 0 auto 0 0; background: var(--p3-c-laranja-74); }
.pdp3-stars--sm { width: 70px; height: 13px; -webkit-mask-size: 14px 13px; mask-size: 14px 13px; }

.pdp3-photo {
  aspect-ratio: 1 / 1; border-radius: var(--p3-radius); background: var(--p3-c-cinza-100);
  border: 1px solid var(--p3-line); display: grid; place-items: center; overflow: hidden;
}
/* Modelo de mídia (02/12/2026): a caixa manda no tamanho, nunca a foto. A
   imagem fica absoluta dentro da caixa — foto grande, pequena, alta ou larga
   ocupa sempre o mesmo espaço. */
.pdp3-photo { position: relative; min-width: 0; min-height: 0; }
.pdp3-photo img { position: absolute; inset: 0; box-sizing: border-box; width: 100%; height: 100%; object-fit: contain; padding: 18px; }
/* Ficha com uma foto só: sem a coluna das miniaturas, a foto ocupa a galeria inteira. */
.pdp3-photo:only-child { grid-column: 1 / -1; }
.pdp3-thumbs { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: thin; max-height: 440px; order: -1; }
.pdp3-thumb {
  flex: none; width: 68px; height: 68px; border-radius: 12px; padding: 4px;
  background: var(--p3-c-cinza-100); border: 2px solid var(--p3-line); cursor: pointer;
}
.pdp3-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp3-thumb:hover, .pdp3-thumb.is-active { border-color: var(--p3-violet); }

/* caixa roxa de melhor preço */
.pdp3-buy {
  border-radius: 22px; padding: 22px 22px 20px; color: var(--p3-c-cinza-100);
  background: radial-gradient(120% 140% at 100% 0%, var(--p3-c-indigo-56) 0%, var(--p3-c-indigo-42) 45%, var(--p3-c-indigo-31) 100%);
  box-shadow: 0 18px 40px -18px var(--p3-c-indigo-31-a67);
}
.pdp3-buy__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pdp3-buy__label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--p3-c-indigo-89); }
.pdp3-buy__price { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 6px; line-height: 1.1; }
.pdp3-buy__line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--p3-c-indigo-93); margin-top: 4px; }
.pdp3-buy__store { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; color: var(--p3-c-indigo-93); }
.pdp3-buy__store strong { color: var(--p3-c-cinza-100); }
.pdp3-buy__actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 18px; }
.pdp3-buy__actions--single { grid-template-columns: 1fr; }
.pdp3-buy .pdp3-btn--primary { background: var(--p3-c-cinza-100); color: var(--p3-violet-ink); }
.pdp3-buy .pdp3-btn--primary:hover { background: var(--p3-lilac); }
.pdp3-buy .pdp3-btn--ghost { color: var(--p3-c-cinza-100); border-color: var(--p3-c-cinza-100-a40); background: transparent; }
.pdp3-buy .pdp3-btn--ghost:hover { background: var(--p3-c-cinza-100-a12); }

.pdp3-save {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 999px;
  padding: 5px 11px; font-size: 13px; font-weight: 750;
  background: var(--p3-green-bg); color: var(--p3-green);
}
.pdp3-save--sm { position: absolute; top: 8px; left: 8px; padding: 3px 8px; font-size: 12px; }

.pdp3-store {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--store-bg, var(--p3-lilac)); color: var(--store-fg, var(--p3-violet-ink));
  font-size: 12px; font-weight: 800; letter-spacing: -0.02em;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .10), 0 0 0 2px var(--p3-c-cinza-100);
}
.pdp3-store--img { object-fit: contain; background: var(--p3-c-cinza-100); }

/* botões */
.pdp3-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.pdp3-btn:active { transform: translateY(1px); }
.pdp3-btn--primary { background: var(--p3-violet); color: var(--p3-c-cinza-100); }
.pdp3-btn--primary:hover { background: var(--p3-violet-dark); }
.pdp3-btn--best { background: var(--p3-green); color: #ffffff; box-shadow: 0 6px 16px rgba(21, 128, 61, .24); }
.pdp3-btn--best:hover { background: #166534; transform: translateY(-1px); }
.pdp3-btn--ghost { background: #ffffff; color: var(--p3-violet-ink); border-color: #d4c6ff; }
.pdp3-btn--ghost:hover { background: var(--p3-lilac); border-color: var(--p3-violet); }
.pdp3-btn--small { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.pdp3-btn .pdp3-ico { width: 17px; height: 17px; }
.pdp3-offer > .pdp3-btn--small .pdp3-ico { width: 15px; height: 15px; }
.pdp3-btn[disabled] { opacity: .7; cursor: progress; }
.pdp3-link {
  background: none; border: 0; padding: 0; margin-top: 10px; cursor: pointer;
  color: var(--p3-violet-ink); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- menu interno ---------- */
.pdp3-tabs {
  position: sticky; top: var(--p3-tabs-top); z-index: 40; margin: 18px 0 6px;
  /* Fundo opaco (QA 26/11/2026): a 92% com desfoque o texto de baixo aparecia
     por trás da barra no iPhone ao rolar. */
  background: var(--p3-bg);
  border-bottom: 1px solid var(--p3-line);
}
.pdp3-tabs__inner {
  width: min(1180px, calc(100% - 32px)); margin-inline: auto; display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.pdp3-tabs__inner::-webkit-scrollbar { display: none; }
.pdp3-tabs a {
  flex: none; scroll-snap-align: start; padding: 14px 14px 12px; font-size: 14.5px; font-weight: 650;
  color: var(--p3-muted); text-decoration: none; border-bottom: 3px solid transparent;
}
.pdp3-tabs a:hover { color: var(--p3-ink); }
.pdp3-tabs a.is-active { color: var(--p3-violet-ink); border-bottom-color: var(--p3-violet); }

/* ---------- blocos ---------- */
.pdp3-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.pdp3-sec {
  grid-column: 1 / -1; background: var(--p3-card); border: 1px solid #e7e3f0;
  border-radius: 22px; padding: 24px; min-width: 0;
  box-shadow: 0 4px 20px rgba(23, 24, 43, .04);
  scroll-margin-top: calc(var(--p3-tabs-top) + 64px);
}
/* Histórico e Análise dividem a linha quando ambos existem; sozinho, ocupa tudo. */
#historico:has(+ #analise), #historico + #analise { grid-column: auto; }
.pdp3-sec--slim { padding: 16px 20px; }
.pdp3-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pdp3-sec__head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.2rem; font-weight: 750; letter-spacing: -0.01em; }
.pdp3-sec h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 750; }

/* preços */
.pdp3-filters { display: grid; gap: 10px; margin-bottom: 14px; }
.pdp3-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pdp3-filter > span { font-size: 13px; font-weight: 700; color: var(--p3-muted); margin-right: 2px; }
.pdp3-chip {
  border: 1.5px solid var(--p3-line); background: var(--p3-c-cinza-100); border-radius: 999px; padding: 6px 13px;
  font-size: 13.5px; font-weight: 600; color: var(--p3-ink); cursor: pointer;
}
.pdp3-chip.is-active { background: var(--p3-lilac); border-color: var(--p3-violet); color: var(--p3-violet-ink); }
.pdp3-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--p3-muted); font-weight: 600; }
.pdp3-sort select {
  border: 1.5px solid var(--p3-line); border-radius: 10px; padding: 7px 10px; background: var(--p3-c-cinza-100);
  font: inherit; color: var(--p3-ink); font-weight: 650;
}
.pdp3-offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pdp3-offer {
  display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 14px 16px; border: 1px solid #e7e3f0; border-radius: 16px; background: var(--p3-c-cinza-100);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pdp3-offer:hover { border-color: #c4b5fd; box-shadow: 0 6px 20px rgba(23, 24, 43, .06); }
.pdp3-offer.is-best { border-width: 1.5px; border-color: #86efac; background: linear-gradient(90deg, var(--p3-c-cinza-98), var(--p3-c-cinza-100) 70%); box-shadow: 0 6px 22px rgba(21, 128, 61, .08); }
.pdp3-offer[hidden] { display: none; }
.pdp3-offer__store { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pdp3-offer__store strong { display: block; font-size: 15px; }
.pdp3-offer__store small { display: block; color: var(--p3-muted); font-size: 12.5px; }
.pdp3-offer__bar { display: grid; gap: 6px; min-width: 0; }
.pdp3-bar { height: 10px; border-radius: 999px; background: var(--p3-c-cinza-94); overflow: hidden; }
.pdp3-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--p3-c-indigo-65), var(--p3-violet)); }
.pdp3-offer.is-best .pdp3-bar > span { background: linear-gradient(90deg, var(--p3-c-verde-79), var(--p3-best)); }
.pdp3-bar--thin { height: 8px; }
.pdp3-offer__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pdp3-offer__price strong { font-size: 18px; font-weight: 800; }
.pdp3-offer__price s { color: var(--p3-muted); font-size: 13px; }
.pdp3-offer__extra { color: var(--p3-muted); font-size: 12.5px; }
/* Cupom da loja Evidelo no Magalu (30/11/2026). */
.pdp3-offer__coupon { display: block; margin-top: 4px; color: var(--p3-green); font-size: 12.5px; font-weight: 650; line-height: 1.4; }
.pdp3-offer__coupon b { font-weight: 800; letter-spacing: .02em; user-select: all; }
.pdp3-tag { font-size: 12px; font-weight: 750; color: var(--p3-green); background: var(--p3-green-bg); padding: 3px 9px; border-radius: 999px; }
.pdp3-commission { display: none; margin: 14px 0 0; font-size: 12.5px; color: var(--p3-muted); }

/* histórico */
.pdp3-seg { display: inline-flex; background: var(--p3-lilac-2); border-radius: 12px; padding: 4px; gap: 2px; }
.pdp3-seg button {
  border: 0; background: transparent; border-radius: 9px; padding: 7px 12px; font-weight: 650;
  font-size: 13px; color: var(--p3-muted); cursor: pointer;
}
.pdp3-seg button.is-active { background: var(--p3-c-cinza-100); color: var(--p3-violet-ink); box-shadow: 0 1px 3px var(--p3-c-cinza-0-a10); }
.pdp3-hist__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pdp3-hist__stats div { background: var(--p3-lilac-2); border-radius: 14px; padding: 12px 14px; }
.pdp3-hist__stats span { display: block; font-size: 12.5px; color: var(--p3-muted); }
.pdp3-hist__stats strong { font-size: 18px; }
.pdp3-chart { width: 100%; aspect-ratio: 16 / 7; min-height: 180px; }
.pdp3-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pdp3-chart .grid { stroke: var(--p3-c-cinza-92); }
.pdp3-chart .axis { fill: var(--p3-muted); font-size: 11px; }
.pdp3-chart .line { fill: none; stroke: var(--p3-violet); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pdp3-chart .area { fill: url(#pdp3Grad); }
.pdp3-chart .dot { fill: var(--p3-c-cinza-100); stroke: var(--p3-violet); stroke-width: 2; }

/* análise */
.pdp3-know-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pdp3-know { border: 1px solid var(--p3-line); border-radius: 16px; padding: 16px; background: var(--p3-c-cinza-100); min-width: 0; }
.pdp3-know h3 { display: flex; align-items: center; gap: 10px; }
.pdp3-know p { margin: 0; line-height: 1.55; font-size: 14.5px; }
.pdp3-know ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.45; }
.pdp3-know__label { font-weight: 800; color: var(--p3-violet-ink); margin-bottom: 4px !important; }
.pdp3-know--pro .pdp3-ico--round { background: var(--p3-green-bg); color: var(--p3-green); }
.pdp3-know--con .pdp3-ico--round { background: var(--p3-c-vermelho-93); color: var(--p3-c-vermelho-41); }
.pdp3-score {
  --deg: calc(var(--score) * 3.6deg);
  width: 110px; height: 110px; border-radius: 50%; margin: 6px auto 0; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--p3-c-cinza-100) 78%, transparent 79%), conic-gradient(var(--p3-violet) var(--deg), var(--p3-lilac) 0);
}
.pdp3-score strong { font-size: 30px; line-height: 1; }
.pdp3-score span { font-size: 12px; color: var(--p3-muted); }
.pdp3-ai { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.pdp3-sec--slim .pdp3-ai { margin-top: 0; }
.pdp3-ai__status { font-size: 14px; color: var(--p3-muted); }

/* detalhes */
.pdp3-desc p { margin: 0; line-height: 1.65; font-size: 15px; white-space: pre-line; }
.pdp3-desc.is-clamped p { max-height: 9.9em; overflow: hidden; -webkit-mask-image: linear-gradient(var(--p3-c-cinza-0) 60%, transparent); mask-image: linear-gradient(var(--p3-c-cinza-0) 60%, transparent); }
.pdp3-desc + .pdp3-link + .pdp3-specs, .pdp3-desc + .pdp3-specs { margin-top: 24px; }
.pdp3-specs dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.pdp3-specs dl > div[hidden] { display: none; }
.pdp3-specs dl > div { display: grid; grid-template-columns: minmax(110px, 42%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--p3-c-cinza-93-2); font-size: 14px; }
.pdp3-specs dt { color: var(--p3-muted); }
.pdp3-specs dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* avaliações */
.pdp3-rev { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.pdp3-rev__summary { display: grid; gap: 16px; }
.pdp3-rev__avg { display: grid; justify-items: start; gap: 6px; }
.pdp3-rev__avg strong { font-size: 44px; line-height: 1; font-weight: 800; }
.pdp3-rev__avg span:last-child { color: var(--p3-muted); font-size: 13.5px; }
.pdp3-rev__dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pdp3-rev__dist li { display: grid; grid-template-columns: 30px 1fr 34px; align-items: center; gap: 8px; font-size: 13px; color: var(--p3-muted); }
.pdp3-rev__dist .pdp3-bar > span { background: var(--p3-c-laranja-74); }
.pdp3-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pdp3-comment { border: 1px solid var(--p3-line); border-radius: 14px; padding: 14px 16px; }
.pdp3-comment[hidden] { display: none; }
.pdp3-comment__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pdp3-comment__head small { color: var(--p3-muted); font-size: 12.5px; }
.pdp3-comment p { margin: 0; line-height: 1.55; font-size: 14.5px; }
.pdp3-rev:has(.pdp3-rev__summary:empty) { grid-template-columns: 1fr; }

/* semelhantes */
.pdp3-carousel__nav { display: flex; gap: 6px; }
.pdp3-carousel__nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--p3-line); background: var(--p3-c-cinza-100);
  display: grid; place-items: center; cursor: pointer; color: var(--p3-ink);
}
.pdp3-carousel__nav button:hover { border-color: var(--p3-violet); color: var(--p3-violet-ink); }
.pdp3-carousel {
  list-style: none; margin: 0; padding: 2px 2px 10px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(200px, calc((100% - 4 * 14px) / 5)); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.pdp3-sim { min-width: 0; scroll-snap-align: start; display: grid; grid-template-rows: 1fr auto; gap: 10px; border: 1px solid var(--p3-line); border-radius: 16px; padding: 12px; background: var(--p3-c-cinza-100); }
.pdp3-sim__link { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; color: inherit; text-decoration: none; }
.pdp3-sim__img { position: relative; aspect-ratio: 1; min-width: 0; min-height: 0; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background: var(--p3-c-cinza-100); }
.pdp3-sim__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pdp3-sim__name { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdp3-sim__link:hover .pdp3-sim__name { color: var(--p3-violet-ink); }
.pdp3-sim__price { font-size: 17px; font-weight: 800; }
.pdp3-sim__price small { display: block; font-size: 12px; font-weight: 600; color: var(--p3-muted); }
.pdp3-sim .pdp3-btn { width: 100%; }

/* barra fixa (celular) */
.pdp3-sticky { display: none; }

/* ---------- tablet / celular ---------- */
@media (max-width: 1023px) {
  .pdp3-page { --p3-tabs-top: 72px; }
  .pdp3-carousel { grid-auto-columns: minmax(190px, 34%); }
}
@media (max-width: 860px) {
  .pdp3-top, .pdp3-top--noimg {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "gallery" "buy";
    grid-template-rows: auto; padding: 14px; gap: 12px; border-radius: 18px;
  }
  .pdp3-crumb { padding: 10px 0 8px; font-size: 12.5px; }
  .pdp3-title { font-size: 1.25rem; line-height: 1.22; }
  .pdp3-meta { margin-top: 8px; font-size: 13px; gap: 6px 10px; }
  .pdp3-photo { max-height: 215px; aspect-ratio: auto; height: min(54vw, 215px); border-radius: 14px; }
  .pdp3-gallery { grid-template-columns: 1fr; }
  .pdp3-thumbs { flex-direction: row; overflow-y: hidden; overflow-x: auto; scrollbar-width: none; max-height: none; order: 0; }
  .pdp3-thumbs::-webkit-scrollbar { display: none; }
  .pdp3-photo img { padding: 12px; }
  .pdp3-buy { padding: 16px; border-radius: 18px; }
  .pdp3-buy__price { font-size: 1.9rem; margin: 4px 0; }
  .pdp3-buy__store { margin-top: 10px; font-size: 14px; }
  .pdp3-buy__actions { margin-top: 14px; grid-template-columns: 1fr auto; }
  .pdp3-tabs__inner {
    padding-right: 32px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
  }
  .pdp3-tabs a { padding: 11px 12px 10px; font-size: 14px; }
  .pdp3-blocks { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #historico:has(+ #analise), #historico + #analise { grid-column: 1 / -1; }
  .pdp3-sec { padding: 18px; border-radius: 18px; }
  .pdp3-offer { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "store btn" "bar bar"; gap: 10px 12px; }
  .pdp3-offer__store { grid-area: store; }
  .pdp3-offer__bar { grid-area: bar; }
  .pdp3-offer > .pdp3-btn { grid-area: btn; }
  .pdp3-specs dl { grid-template-columns: minmax(0, 1fr); }
  .pdp3-rev { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pdp3-carousel { grid-auto-columns: 62%; }
  .pdp3-carousel__nav { display: none; }
  .pdp3-sticky {
    position: fixed; inset: auto 0 0 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--p3-navy); color: var(--p3-c-cinza-100);
    box-shadow: 0 -8px 24px var(--p3-c-cinza-0-a18); transform: translateY(110%); transition: transform .2s ease;
  }
  .pdp3-sticky.is-visible { transform: none; }
  .pdp3-sticky small { display: block; font-size: 12px; color: var(--p3-c-azul-78); }
  .pdp3-sticky strong { font-size: 20px; font-weight: 800; }
  .pdp3-sticky .pdp3-btn { min-height: 44px; }
  .pdp3-page:has(.pdp3-sticky) .evidelo-footer { padding-bottom: 84px; }
}
@media (max-width: 420px) {
  .pdp3-buy__actions { grid-template-columns: 1fr; }
  .pdp3-hist__stats strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp3-sticky, .pdp3-btn { transition: none; }
}

/* 503 da ficha (backend sem resposta): aviso curto que se recarrega. */
.pdp3-wait { margin: 32px 0 48px; text-align: center; padding: 40px 24px; }
.pdp3-wait h1 { margin: 0 0 10px; font-size: 1.5rem; }
.pdp3-wait p { margin: 0 0 16px; color: var(--p3-muted); }

/* Contagens da distribuição de estrelas: o <small> herdava 83% (10,8px). Auditoria UI 25/11/2026. */
.pdp3-rev__dist small { font-size: 12px; }

/* ===================== REDESENHO (prévia 25/11/2026) ===================== */
/* foto menos dominante: o bloco do topo deixa de ter um vazio grande sob o preço */
@media (min-width: 900px) {
  .pdp3-top { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); }
  .pdp3-photo { max-height: 440px; }
}
/* ofertas agrupadas por loja (product-v3.js) */
.pdp3-more { list-style: none; margin: -4px 0 8px; }
.pdp3-more button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--p3-violet, var(--p3-c-indigo-37)); font: 650 14px var(--font-ui, system-ui, sans-serif); cursor: pointer; }
.pdp3-more button:hover { background: var(--p3-c-cinza-95-2); }
.pdp3-more button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.pdp3-more button[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }

/* mini-comparativo sob a caixa de preço (product-v3.js) */
.pdp3-mini { display: none; margin-top: 16px; padding: 16px 18px; border: 1px solid var(--p3-line, var(--p3-c-cinza-93)); border-radius: 18px; background: var(--p3-c-cinza-100); }
@media (min-width: 900px) {
  .pdp3-top:has(.pdp3-mini) { grid-template-areas: "gallery heading" "gallery buy" "gallery mini"; grid-template-rows: auto auto 1fr; }
  .pdp3-top:has(.pdp3-mini) .pdp3-mini { grid-area: mini; align-self: start; margin-top: 0; }
}
.pdp3-mini__tit { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ev-muted, var(--p3-c-azul-41)); }
.pdp3-mini ul { list-style: none; margin: 0; padding: 0; display: grid; }
.pdp3-mini li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--p3-c-cinza-95); font-size: 15px; }
.pdp3-mini li:first-child { border-top: 0; }
.pdp3-mini__loja { font-weight: 650; color: var(--ev-ink, var(--p3-c-azul-9)); }
.pdp3-mini__preco { font-weight: 800; color: var(--ev-ink, var(--p3-c-azul-9)); font-variant-numeric: tabular-nums; }
.pdp3-mini__dif { min-width: 92px; text-align: right; font-size: 13px; color: var(--ev-muted, var(--p3-c-azul-41)); font-variant-numeric: tabular-nums; }
.pdp3-mini__ver { display: inline-flex; align-items: center; min-height: 32px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ev-purple-strong, var(--p3-c-indigo-37)); }

/* Oferta-kit (aparelho + acessório), QA 25/11/2026 */
.pdp3-kit { font-weight: 700; color: var(--ev-purple-strong, #6d28d9); }

/* Score Evidelo de TV na ficha (01/12/2026): nota, posição e o porquê de cada
   parte. Número sempre em texto ao lado da barra (não só cor). */
.pdp3-tvscore { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px; border-radius: 999px; background: var(--p3-lilac); color: var(--p3-violet-ink); font-weight: 650; text-decoration: none; }
.pdp3-tvscore strong { font-weight: 800; }
.pdp3-tvscore:hover { text-decoration: underline; }
.pdp3-tvs { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: start; }
.pdp3-tvs__total { text-align: center; }
.pdp3-tvs__rank { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--p3-muted); }
.pdp3-tvs__rank strong { color: var(--p3-ink); }
.pdp3-tvs__rank a { color: var(--p3-violet-ink); }
.pdp3-tvs__parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pdp3-tvs__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.pdp3-tvs__label { font-weight: 700; font-size: 15px; }
.pdp3-tvs__weight { font-size: 12.5px; color: var(--p3-muted); }
.pdp3-tvs__value { margin-left: auto; font-size: 17px; font-variant-numeric: tabular-nums; }
.pdp3-tvs__part p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--p3-muted); }
.pdp3-tvs__part p strong { color: var(--p3-ink); font-weight: 650; }
.pdp3-tvs__how, .pdp3-tvs__pending { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--p3-line); font-size: 13.5px; line-height: 1.55; color: var(--p3-muted); }
.pdp3-tvs__pending { margin-top: 0; padding-top: 0; border-top: 0; font-size: 14.5px; }
.pdp3-tvs__how strong { color: var(--p3-ink); }
@media (max-width: 640px) {
  .pdp3-tvs { grid-template-columns: 1fr; gap: 18px; }
}

/* Model sizes on product page */
.pdp3-sizes { display: flex; align-items: center; gap: 10px; padding: 12px 0 4px; }
.pdp3-sizes .evc__sizes-label { font-size: 13px; color: var(--ev-muted); white-space: nowrap; flex: none; }
.pdp3-sizes .evc__sizes { margin: 0; }
.pdp3-sizes .evc__size.is-active { background: var(--ev-purple-strong); border-color: var(--ev-purple-strong); color: #fff; cursor: default; }
@media (max-width: 767px) { .pdp3-sizes { flex-wrap: wrap; gap: 8px; } }
