/*
 * Camada do design system Partone sobre o arquivo do site antigo
 * (arquivo.partone.com.br). O conteúdo das páginas não muda: esta folha só
 * reapresenta o HTML legado com os tokens e componentes de
 * fonte/design-system (tokens.css, components.css → pt-table, pt-alert).
 *
 * As páginas trazem blocos <style> próprios no meio do <body> (cabeçalho de
 * tabela laranja, hover amarelo, fontes Browallia/Calibri). Por isso os
 * seletores começam com `html body`, para vencer por especificidade, e
 * !important só onde o legado usa atributo style="" ou o seletor universal.
 *
 * Exceção de marca aprovada por Lana em 25/09/2026: o logo antigo do site
 * (imagens/logo.png) é mantido, por ser registro histórico. O restante segue
 * identidade.json e o design system.
 */

@font-face{font-family:Inter;src:url(fonts/inter-400.ttf);font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url(fonts/inter-500.ttf);font-weight:500;font-display:swap}
@font-face{font-family:Inter;src:url(fonts/inter-600.ttf);font-weight:600;font-display:swap}
@font-face{font-family:Barlow;src:url(fonts/barlow-600.ttf);font-weight:600;font-display:swap}
@font-face{font-family:Barlow;src:url(fonts/barlow-700.ttf);font-weight:700;font-display:swap}

:root{
  --color-brand:#0072BC;
  --color-brand-hover:#005F9E;
  --color-navy:#102A43;
  --color-text:#252A30;
  --color-muted:#526372;
  --color-surface:#FFFFFF;
  --color-canvas:#F2F5F7;
  --color-border:#CBD5DF;
  --color-focus:#0072BC;
  --font-body:Inter,sans-serif;
  --font-heading:Barlow,sans-serif;
}

/* Base ------------------------------------------------------------------ */

html body,
html body *{box-sizing:border-box}

html body{
  margin:0;
  background:var(--color-canvas);
  color:var(--color-text);
  font:400 15px/1.6 var(--font-body);
}
/* O style.css legado aplica Arial em `*`; ícones Font Awesome ficam de fora. */
/* :where() zera a especificidade, para os títulos abaixo poderem vencer. */
html body :where(*:not(.fa):not([class*="fa-"])){
  font-family:var(--font-body)!important;
}
/* <i> sem fechamento no HTML legado deixava blocos inteiros em itálico. */
html body i:not(.fa){font-style:normal}
html body .h1,
html body .h2,
html body h1,
html body h2,
html body h3,
html body h4{
  font-family:var(--font-heading)!important;
  color:var(--color-navy);
  line-height:1.15;
}
html body .h1,
html body h1{font-size:28px;font-weight:700;margin:24px 0 12px;padding:0;background:none}
html body .h2,
html body h2{font-size:20px;font-weight:600;margin:16px 0 8px}
html body p,
html body li,
html body td,
html body th{color:var(--color-text)}
html body a,
html body a:visited,
html body .corLINK,
html body .corLINK:visited,
html body .link_smenu,
html body .link_menu,
html body .link-mais{
  color:var(--color-brand);
  text-decoration:none;
  font-weight:500;
  font-size:inherit;
}
html body .corLINK{font-size:14px}
html body a:hover,
html body .corLINK:hover,
html body .link_smenu:hover,
html body .link_menu:hover,
html body .link-mais:hover{
  color:var(--color-brand-hover);
  text-decoration:underline;
  text-underline-offset:3px;
}
html body a:focus-visible{outline:3px solid var(--color-focus);outline-offset:3px}
html body blockquote{margin:0}

/* Ícones girando e outros efeitos do site antigo. */
html body .fa-spin{animation:none}

/* Estrutura ------------------------------------------------------------- */

html body #wrapper{
  width:auto;
  max-width:1120px;
  margin:24px auto;
  padding:24px 32px 32px;
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:12px;
  position:static;
}
html body #wrapper-interna,
html body #conteudo-interno,
html body #conteudo{
  width:auto;
  float:none;
  background:none;
}
html body #wrapper-interna{
  display:flex;
  gap:32px;
  align-items:flex-start;
  margin-top:24px;
}
html body #conteudo-interno{flex:1;min-width:0;padding:0}
/* A barra lateral só tinha a animação decorativa (antes Flash, depois GIF de
   baixa resolução), que ao lado da foto do produto parecia uma segunda foto. */
html body #sidebar{display:none}

/* Topo: logo antigo mantido; contatos à direita; menu em faixa sólida. */
html body #topo{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0;
}
/* O navegador clona o <i> sem fechamento do menu em volta do conteúdo da
   página, como filho de #topo; ele ocupa a linha inteira e pode encolher. */
html body #topo > :not(#logo):not(#info-topo):not(#menu){flex:1 0 100%;min-width:0}
html body #topo #logo{float:none;margin:0}
html body #topo #logo img{display:block;max-height:88px;width:auto}
html body #topo #info-topo{
  float:none;
  margin:0;
  text-align:right;
  font-size:14px;
}
html body #topo #info-topo p{margin:2px 0;line-height:1.5}
html body #topo #info-topo a,
html body #topo #info-topo strong{color:var(--color-navy);font-weight:500;text-decoration:none}
html body #topo #info-topo a:hover{color:var(--color-brand);text-decoration:underline}
html body #topo #info-topo .fa{color:var(--color-brand)}

html body #menu,
html body #topo #menu{
  flex:1 0 100%;
  width:auto;
  height:auto;
  margin:16px 0 0;
  padding:0 8px;
  background:var(--color-navy);
  border-radius:8px;
}
html body #menu ul,
html body #topo #menu ul{
  float:none;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:4px;
  margin:0;
  padding:0;
}
/* O menu legado tem um <i style> sem fechamento dentro de "Produtos", que
   engole os itens seguintes; display:contents põe todos os links lado a lado. */
html body #menu ul li,
html body #topo #menu ul li,
html body #menu ul li i[style]{display:contents;margin:0}
html body #menu ul li a,
html body #topo #menu ul li a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:0 14px;
  color:#fff;
  font-size:15px;
  font-weight:500;
  letter-spacing:0;
  text-decoration:none;
}
html body #topo #menu ul li a:hover,
html body #menu ul li a:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
html body #menu ul li a .fa{opacity:.8}

/* Tabelas: padrão pt-table, sem cabeçalho laranja, zebra ou hover colorido. */
html body table#tabela,
html body table#tabela0,
html body table.corL{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:16px 0 24px;
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:12px;
  overflow:hidden;
  font-size:14px;
  font-style:normal;
  color:var(--color-text);
}
html body table#tabela th,
html body table#tabela0 th,
html body table.corL th{
  padding:12px 16px;
  background:var(--color-canvas);
  color:var(--color-navy);
  font-size:12px;
  font-weight:600;
  font-style:normal;
  letter-spacing:.04em;
  text-transform:uppercase;
  border:0;
  border-bottom:1px solid var(--color-border);
}
html body table#tabela th .fa,
html body table.corL th .fa{color:var(--color-muted);font-size:10px}
html body table#tabela td,
html body table#tabela0 td,
html body table.corL td{
  padding:12px 16px;
  background:var(--color-surface)!important;
  color:var(--color-text);
  font-size:14px;
  font-style:normal;
  line-height:1.5;
  border:0;
  border-bottom:1px solid var(--color-border);
  vertical-align:middle;
}
html body table#tabela tr:last-child td,
html body table#tabela0 tr:last-child td,
html body table.corL tr:last-child td{border-bottom:0}
html body table#tabela tr,
html body table#tabela tr:nth-child(even),
html body table#tabela tr:hover,
html body table#tabela0 tr:hover,
html body table.corL tr:hover{background:var(--color-surface)}
/* Preço e medidas com algarismos alinhados; o preço (3ª coluna) não quebra. */
html body table#tabela td{font-variant-numeric:tabular-nums}
html body table#tabela td:nth-child(3){white-space:nowrap}

/* Fotos de produto: fundo branco, proporção preservada, zoom discreto. */
html body .foto,
html body table img{
  display:block;
  margin:0 auto;
  background:#fff;
  object-fit:contain;
}
html body .foto{width:112px;height:112px;border-radius:8px;transition:transform 180ms}
html body .foto:hover{
  transform:scale(1.8);
  position:relative;
  z-index:2;
  box-shadow:0 8px 24px rgba(16,42,67,.18);
}
html body .bordaImg{
  display:inline-block;
  padding:8px;
  border:1px solid var(--color-border);
  border-radius:12px;
  background:#fff;
}
html body .bordaImg img{display:block;object-fit:contain;background:#fff}
html body img[src*="/bombas/melhoradas/"]{object-fit:contain}

/* Listas de características no topo das páginas de linha. */
html body ul,
html body li{font-size:15px;line-height:1.6}

/* Home (página de produtos): cartões das duas linhas. */
html body img.foto[src*="Linha"]{
  width:auto;
  height:auto;
  max-width:100%;
  border:1px solid var(--color-border);
  border-radius:12px;
}
html body img.foto[src*="Linha"]:hover{transform:none;box-shadow:none}

/* Botão flutuante de contato: cor da marca no lugar do verde. */
html body #zap span{
  background:var(--color-brand)!important;
  border-radius:8px!important;
  font-weight:600;
  letter-spacing:.02em;
  text-decoration:none!important;
}

/* Aviso de página arquivada: pt-alert. */
html body .arquivo-aviso{
  max-width:1120px;
  margin:0 auto 32px;
  padding:16px;
  border-radius:8px;
  border-left:3px solid var(--color-brand);
  background:#EAF3FA;
  color:var(--color-navy);
  font-size:14px;
  text-align:left;
}

/* Telas estreitas ------------------------------------------------------- */
@media (max-width:760px){
  html,
  html body{overflow-x:hidden}
  /* Larguras fixas do HTML legado (atributo width, blockquote de 715 px). */
  html body div,
  html body p,
  html body blockquote,
  html body center{max-width:100%;width:auto!important}
  html body img:not(.foto){max-width:100%;height:auto}
  html body #wrapper{margin:0;padding:16px;border:0;border-radius:0}
  html body #wrapper-interna{display:block}
  html body #sidebar{display:none}
  html body #topo{justify-content:center}
  html body #topo #info-topo{text-align:center}
  html body #menu ul,
html body #topo #menu ul{justify-content:center}
  html body table#tabela,
  html body table#tabela0,
  html body table.corL{display:block;overflow-x:auto}
}

@media (prefers-reduced-motion:reduce){
  html body .foto{transition:none}
}
