/* Página do produto (js/produto-pagina.js). Cores da marca sempre por var(--ap-accent), de cada loja.
   !important só onde as folhas antigas da página (inline, site-header-bar-page, stelc-premium) já usam. */
html body.pdp-v2 .product-summary-card { display: flex; flex-direction: column; gap: 0; }
html body.pdp-v2 .pdp-trilha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; color: #6b7280; font-size: 13px; }
html body.pdp-v2 .pdp-trilha a { color: inherit; text-decoration: none; }
html body.pdp-v2 .pdp-trilha a:hover { color: #111; text-decoration: underline; }
html body.pdp-v2 .pdp-trilha span { color: #9ca3af; }

/* Selo "Novo" em pílula */
html body.pdp-v2 .product-summary-card .product-meta-row { margin: 0 0 8px !important; }
html body.pdp-v2 .product-summary-card #productSku.product-sku { display: inline-flex; width: fit-content; padding: 4px 10px !important; border-radius: 6px !important;
  background: color-mix(in srgb, var(--ap-accent, #e0a526) 22%, #fff) !important; color: #111 !important; font-size: 13px !important; font-weight: 600 !important; }

html body.pdp-v2 .product-summary-card .product-title { margin: 0 0 8px !important; font-size: clamp(22px, 2vw, 28px) !important; font-weight: 700 !important; line-height: 1.2 !important; }
html body.pdp-v2 .pdp-nota { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; }
html body.pdp-v2 .pdp-nota[hidden] { display: none; }
html body.pdp-v2 .pdp-nota a { color: #4b5563; text-decoration: none; }
html body.pdp-v2 .pdp-nota .product-stars { display: inline-block; width: 86px; height: 16px; background: linear-gradient(90deg, #f5a524 calc(var(--nota) / 5 * 100%), #d9dde3 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 86 16%27%3E%3Cg%3E%3Cpath id=%27s%27 d=%27M8 0l2.4 5 5.6.6-4.2 3.8 1.2 5.5L8 12.1 3 14.9l1.2-5.5L0 5.6 5.6 5z%27/%3E%3Cuse href=%27%23s%27 x=%2717.5%27/%3E%3Cuse href=%27%23s%27 x=%2735%27/%3E%3Cuse href=%27%23s%27 x=%2752.5%27/%3E%3Cuse href=%27%23s%27 x=%2770%27/%3E%3C/g%3E%3C/svg%3E") 0 0 / 86px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 86 16%27%3E%3Cg%3E%3Cpath id=%27s%27 d=%27M8 0l2.4 5 5.6.6-4.2 3.8 1.2 5.5L8 12.1 3 14.9l1.2-5.5L0 5.6 5.6 5z%27/%3E%3Cuse href=%27%23s%27 x=%2717.5%27/%3E%3Cuse href=%27%23s%27 x=%2735%27/%3E%3Cuse href=%27%23s%27 x=%2752.5%27/%3E%3Cuse href=%27%23s%27 x=%2770%27/%3E%3C/g%3E%3C/svg%3E") 0 0 / 86px 16px no-repeat; }
html body.pdp-v2 .pdp-resumo { margin: 0 0 14px; color: #4b5563; font-size: 15px; line-height: 1.5; }

/* Preço, parcelas e estoque */
html body.pdp-v2 .product-summary-card .product-prices { margin: 0 0 18px !important; }
html body.pdp-v2 .product-summary-card #productPrice { font-size: clamp(28px, 2.6vw, 34px) !important; font-weight: 700 !important; }
html body.pdp-v2 .pdp-preco-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
html body.pdp-v2 .pdp-parcela { color: #4b5563; font-size: 15px; }
html body.pdp-v2 .pdp-parcela b { color: #111; font-weight: 600; }
html body.pdp-v2 .pdp-estoque { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 12px; border-radius: 999px; background: #e8f7ee; color: #166534; font-size: 13px; font-weight: 600; }
html body.pdp-v2 .pdp-estoque::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
html body.pdp-v2 .pdp-estoque.is-sem { background: #fdecec; color: #991b1b; }
html body.pdp-v2 .pdp-estoque.is-sem::before { background: #dc2626; }

/* Variações: chips */
html body.pdp-v2 .pdp-var { margin: 0 0 18px; }
html body.pdp-v2 .pdp-var-cab { display: flex; justify-content: space-between; margin-bottom: 10px; }
html body.pdp-v2 .pdp-var-nome { color: #111; font-size: 15px; font-weight: 600; }
html body.pdp-v2 .pdp-var-nome b { font-weight: 700; }
html body.pdp-v2 .pdp-var-opcoes { display: flex; flex-wrap: wrap; gap: 10px; }
html body.pdp-v2 .pdp-var-op { min-width: 62px; height: 44px; padding: 0 16px; border: 1.5px solid #d6d9de; border-radius: 10px; background: #fff; color: #111;
  font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
html body.pdp-v2 .pdp-var-op:hover:not(:disabled) { border-color: #111; }
html body.pdp-v2 .pdp-var-op.is-on { border-color: #111; background: #111; color: #fff; }
html body.pdp-v2 .pdp-var-op:disabled { color: #b4b8bf; background: #f6f7f8; text-decoration: line-through; cursor: not-allowed; }
html body.pdp-v2 .pdp-var-op:focus-visible { outline: 2px solid var(--ap-accent, #e0a526); outline-offset: 2px; }
html body.pdp-v2 .pdp-var-erro { display: none; margin: 8px 0 0; color: #b91c1c; font-size: 13px; font-weight: 600; }
html body.pdp-v2 .pdp-var.is-erro .pdp-var-erro { display: block; }
html body.pdp-v2 .pdp-var.is-erro .pdp-var-op:not(:disabled) { border-color: #dc2626; }

/* Botões: comprar na cor da marca, carrinho contornado, mesma altura */
html body.pdp-v2 .product-summary-card .product-actions { display: flex !important; flex-direction: column !important; gap: 10px !important; margin: 0 0 16px !important; }
html body.pdp-v2 .product-summary-card .product-actions .btn-buy-now:not(.btn-contact-us):not(.btn-notify-stock),
html body.pdp-v2 .product-summary-card .product-actions #buyNowBtn:not(.btn-contact-us):not(.btn-notify-stock) {
  display: flex !important; align-items: center !important; justify-content: center !important; gap: 10px !important; width: 100% !important; min-height: 50px !important;
  border: 0 !important; border-radius: 10px !important; background: var(--ap-accent, #e0a526) !important;
  color: #fff !important; -webkit-text-fill-color: currentColor !important; font-weight: 700 !important; font-size: 16px !important; letter-spacing: .02em !important; }
html body.pdp-v2 .product-summary-card .product-actions #buyNowBtn::before { display: none !important; }
html body.pdp-v2 .product-summary-card .product-actions #addCartBtn { display: flex !important; align-items: center !important; justify-content: center !important; gap: 10px !important; width: 100% !important;
  min-height: 50px !important; border: 1.5px solid #111 !important; border-radius: 10px !important; background: #fff !important; color: #111 !important; font-weight: 700 !important; font-size: 16px !important; }
html body.pdp-v2 .product-summary-card .product-actions #addCartBtn[style*="display: none"] { display: none !important; }
html body.pdp-v2 .product-summary-card .product-actions #addCartBtn::before { display: none !important; }
html body.pdp-v2 .product-summary-card .product-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html body.pdp-v2 .product-summary-card .add-cart-inline-row { width: 100% !important; margin: 0 !important; }

/* Garantias e informações */
html body.pdp-v2 .pdp-garantias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding: 14px 16px; border: 1px solid #eceef1; border-radius: 14px; background: #fff; }
html body.pdp-v2 .pdp-garantia { display: flex; align-items: center; gap: 10px; min-width: 0; }
html body.pdp-v2 .pdp-garantia svg, html body.pdp-v2 .pdp-info h3 svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #111; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html body.pdp-v2 .pdp-garantia b { display: block; color: #111; font-size: 13px; font-weight: 600; }
html body.pdp-v2 .pdp-garantia small { display: block; color: #6b7280; font-size: 12px; }
html body.pdp-v2 .pdp-info { margin-top: 14px; padding: 16px; border: 1px solid #eceef1; border-radius: 14px; background: #fff; }
html body.pdp-v2 .pdp-info h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #111; font-size: 15px; font-weight: 700; }
html body.pdp-v2 .pdp-info h3 svg { width: 18px; height: 18px; }
html body.pdp-v2 .pdp-info dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin: 0; }
html body.pdp-v2 .pdp-info dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-top: 1px solid #f0f1f3; font-size: 13px; }
html body.pdp-v2 .pdp-info dt { color: #6b7280; }
html body.pdp-v2 .pdp-info dd { margin: 0; color: #111; overflow-wrap: anywhere; }

/* Abas abaixo da foto */
html body.pdp-v2 .pdp-abas { display: flex; gap: 28px; margin: 0 0 18px; border-bottom: 1px solid #e5e7eb; overflow-x: auto; scrollbar-width: none; }
html body.pdp-v2 .pdp-aba { position: relative; padding: 12px 2px; border: 0; background: none; color: #6b7280; font: inherit; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; }
html body.pdp-v2 .pdp-aba.is-on { color: #111; font-weight: 700; }
html body.pdp-v2 .pdp-aba.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--ap-accent, #e0a526); }
html body.pdp-v2 .pdp-com-abas > .details-header { display: none !important; }
html body.pdp-v2 .pdp-com-abas:not([data-aba="descricao"]) > #productDescription { display: none !important; }
html body.pdp-v2 .pdp-com-abas:not([data-aba="especificacoes"]) > #productSpecs,
html body.pdp-v2 .pdp-com-abas:not([data-aba="especificacoes"]) > #mobileDatasheetSlot { display: none !important; }
html body.pdp-v2 .pdp-com-abas[data-aba="especificacoes"] > #productSpecs { display: grid !important; }
html body.pdp-v2 .pdp-com-abas:not([data-aba="avaliacoes"]) > .pdp-painel-aval { display: none !important; }

@media (max-width: 768px) {
  html body.pdp-v2 .pdp-preco-extra { flex-wrap: wrap; }
  html body.pdp-v2 .pdp-garantias { grid-template-columns: 1fr; }
  html body.pdp-v2 .pdp-info dl { grid-template-columns: 1fr; }
  html body.pdp-v2 .pdp-var-op { min-width: 54px; height: 42px; }
}

/* Desktop: página mais larga e coluna de compra com ~45% (antes 368px fixos espremiam garantias e tabela) */
@media (min-width: 1025px) {
  html body.pdp-v2 .product-container { max-width: 1360px !important; }
  html body.pdp-v2 .product-header { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important; gap: 32px !important; }
  html body.pdp-v2 .product-gallery { grid-template-columns: 96px minmax(0, 1fr) !important; }
}
