/* Trafominas Materiais Elétricos — estilos
   Paleta e tipografia seguem o site atual (azul #014a73, Inter/Poppins/Montserrat) */
:root {
  --blue: #014a73;
  --blue-dark: #013554;
  --blue-soft: #357297;
  --bg: #f2f5f6;
  --card: #f9f9f9;
  --text: #333;
  --muted: #69727d;
  --line: #d9e0e4;
  --green: #1f7a4d;
  --yellow: #fdf0c7;
  --radius: 14px;
  --wrap: 1140px;
  --shadow: 0 2px 10px rgba(1, 74, 115, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--text); background: #fff;
  font-family: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 200; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; border: 2px solid transparent;
  font: 700 15px/1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: .01em;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.btn-white { background: #fff; color: var(--blue); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; text-transform: none; font-family: "Poppins", sans-serif; font-weight: 600; }
.btn-outline:hover { background: #fff; color: var(--blue); }
.btn-sm {
  padding: 10px 18px; font: 500 14px/1.2 "Poppins", sans-serif; text-transform: none;
  background: var(--blue); color: #fff; border-radius: 999px; width: 100%;
}
.btn-sm:hover { background: var(--blue-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 12px 20px; font: 700 16px/1 "Inter", sans-serif; text-transform: uppercase;
  color: var(--blue); border-bottom: 3px solid transparent; transition: border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 42px; border: 1.5px solid var(--blue); color: var(--blue);
  background: #fff; border-radius: 999px; transition: background .2s, color .2s;
}
.cart-btn:hover { background: var(--blue); color: #fff; }
.cart-count {
  position: absolute; top: -8px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  background: #d62828; color: #fff; border-radius: 999px; font: 700 12px/22px "Inter", sans-serif; text-align: center;
}
.cart-count[hidden] { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); border-radius: 12px; }

/* Hero */
.hero {
  color: #fff; padding: 70px 0 80px; overflow: hidden;
  background:
    radial-gradient(circle at 80% 30%, rgba(53, 114, 151, .55), transparent 55%),
    repeating-radial-gradient(circle at 20% 120%, rgba(255,255,255,.04) 0 2px, transparent 2px 22px),
    var(--blue);
}
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font: 900 clamp(2.3rem, 5.2vw, 3.9rem)/1.02 "Inter", sans-serif; letter-spacing: -.02em; }
.hero p { font-size: 1.1rem; margin: 22px 0 32px; max-width: 34em; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.hero-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .9s ease; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35));
}
.hero-art img.on { opacity: 1; }

/* Seções */
.section { padding: 76px 0; background: var(--bg); }
.section.white { background: #fff; }
.pill {
  display: inline-block; padding: 8px 40px; margin-bottom: 18px; border-radius: 999px;
  background: #cfe0ea; border: 1px solid var(--blue-soft); color: var(--blue);
  font: 600 13px/1.2 "Poppins", sans-serif;
}
.pill.yellow { background: var(--yellow); border-color: #ead48a; color: #111; }
.title { text-align: center; }
.title h2 { font: 700 clamp(1.7rem, 3.6vw, 2.5rem)/1.15 "Poppins", sans-serif; color: var(--blue); }
.title p { color: var(--muted); font-size: 1.05rem; margin: 12px 0 0; }
.title.dark h2 { color: #000; }

.grid { display: grid; gap: 22px; margin-top: 44px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.feature .ico {
  width: 48px; height: 48px; border-radius: 10px; background: var(--blue-soft); color: #fff;
  display: grid; place-items: center; font-size: 22px; margin-bottom: 18px;
}
.feature h3 { font: 600 clamp(1.2rem, 2vw, 1.55rem)/1.2 "Poppins", sans-serif; color: var(--blue); margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.step { position: relative; padding-top: 34px; }
.step .num { position: absolute; top: 14px; right: 74px; font: 800 2.4rem/1 "Poppins", sans-serif; color: #cfe0f4; }
.step .ico {
  position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 22px;
}
.step h3 { margin-top: 62px; font: 700 1.5rem/1.15 "Poppins", sans-serif; color: var(--blue); }
.step p { margin: 10px 0 0; color: var(--muted); }
.center { text-align: center; margin-top: 40px; }

/* Faixa azul + carrossel de categorias */
.band { background: var(--blue); color: #fff; padding: 56px 0; }
.band.light { background: #fff; color: var(--blue); }
.band-in { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: center; }
.band h2 { font: 800 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 "Poppins", sans-serif; }
.cats-wrap { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.cats { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; padding: 6px 2px; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px; border-radius: 12px;
  font: 700 .8rem/1.25 "Poppins", sans-serif; transition: transform .2s, background .2s;
}
.cat:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .08); }
.band.light .cat:hover { background: var(--bg); }
.cat img { width: 110px; height: 110px; object-fit: contain; }
.band:not(.light) .cat img { filter: brightness(0) invert(1); }
.arrow { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: inherit; font-size: 26px; line-height: 1; }
.arrow:hover { background: rgba(127, 127, 127, .2); }

/* Cards de produto */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.product {
  display: flex; flex-direction: column; background: #f3f6f8; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 16px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(1, 74, 115, .14); border-color: var(--blue-soft); }
.product .thumb { aspect-ratio: 1; background: #fff; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.product .thumb img { width: 100%; height: 100%; object-fit: contain; }
.product h3 {
  font: 500 1.05rem/1.3 "Poppins", sans-serif; color: var(--blue); text-align: center;
  margin: 16px 0 14px; min-height: 2.6em; display: flex; align-items: center; justify-content: center;
}
.product .btn-sm { margin-top: auto; text-align: center; }
.tag { align-self: center; font: 600 .7rem/1 "Poppins", sans-serif; color: var(--blue-soft); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }

/* CTA */
.cta { background: var(--blue); color: #fff; text-align: center; padding: 64px 0; }
.cta h2 { font: 700 clamp(1.7rem, 3.8vw, 2.7rem)/1.15 "Poppins", sans-serif; max-width: 16em; margin: 0 auto 30px; }
.cta .row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta .btn { min-width: 270px; text-transform: none; font-family: "Poppins", sans-serif; font-weight: 600; }

/* Rodapé */
.footer { background: var(--bg); padding: 48px 0 28px; }
.footer-in { display: grid; grid-template-columns: 1fr 1.3fr 1fr 1fr; gap: 28px; align-items: start; }
.footer h3 { font: 600 1.25rem/1.2 "Poppins", sans-serif; color: var(--blue); margin-bottom: 8px; }
.footer p { margin: 0 0 8px; }
.footer .logo img { height: 52px; margin-bottom: 16px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); font-size: 20px; transition: background .2s, color .2s; }
.social a:hover { background: var(--blue); color: #fff; }
.map { width: 100%; height: 140px; border: 0; border-radius: 10px; margin-bottom: 10px; background: #dde5ea; }
.phone { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; }
.group { display: inline-block; background: #fff; border-radius: 14px; padding: 12px 22px; box-shadow: var(--shadow); margin-top: 6px; }
.group img { height: 64px; width: auto; }
.copy { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; font-size: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Catálogo */
.page-hero { color: #fff; padding: 70px 0; background: linear-gradient(120deg, rgba(0,0,0,.78), rgba(20,30,40,.6)), repeating-linear-gradient(115deg, #2b2f33 0 14px, #1b1e21 14px 28px); }
.page-hero h1 { font: 900 clamp(2.2rem, 5vw, 3.4rem)/1 "Inter", sans-serif; text-transform: uppercase; }
.tools { display: grid; grid-template-columns: 1fr auto; gap: 14px; margin-top: 8px; }
.search { position: relative; }
.search input {
  width: 100%; padding: 16px 48px 16px 20px; border: 1.5px solid var(--line); border-radius: 999px;
  font: 500 1rem "Montserrat", sans-serif; background: #fff; color: var(--text);
}
.search input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(1, 74, 115, .15); }
.search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg); color: var(--blue); font-size: 20px; }
.search button[hidden] { display: none; }
select.sort { padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 500 .95rem "Montserrat", sans-serif; color: var(--text); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--blue);
  font: 600 .85rem/1 "Poppins", sans-serif; transition: all .2s;
}
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip small { opacity: .7; margin-left: 4px; font-weight: 500; }
.result-info { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.pager button {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; color: var(--blue); font: 600 .95rem "Poppins", sans-serif;
}
.pager button[aria-current="page"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.pager button:disabled { opacity: .4; cursor: default; }
.skeleton { background: linear-gradient(90deg, #e8eef2 25%, #f5f8fa 50%, #e8eef2 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; height: 300px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Produto */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.pdp > * { min-width: 0; }
.pdp { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 48px; align-items: start; }
.pdp-img { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; position: sticky; top: 100px; }
.pdp-img img { width: 100%; height: 100%; object-fit: contain; }
.pdp h1 { font: 700 clamp(1.7rem, 3.5vw, 2.4rem)/1.15 "Poppins", sans-serif; color: var(--blue); margin: 6px 0 18px; }
.desc { color: #444; }
.desc p { margin: 0 0 12px; }
.desc ul { padding-left: 20px; }
.desc table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1.5px solid var(--line); border-radius: 12px; }
.desc th, .desc td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.desc th { background: var(--blue); color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; }
.desc tr:last-child td { border-bottom: 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--blue); font-size: 18px; font-weight: 700; }
.qty button:hover { background: var(--bg); }
.qty input { width: 44px; text-align: center; border: 0; font: 600 .95rem "Inter", sans-serif; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.row-add { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.row-add .btn-sm { width: auto; padding: 8px 14px; white-space: nowrap; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.pdp-actions .btn-blue { text-transform: none; font-family: "Poppins", sans-serif; font-weight: 600; }
.notfound { text-align: center; padding: 90px 0; }

/* Gaveta do orçamento */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 160;
  transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility 0s .3s; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0, 0, 0, .2);
}
body.drawer-open .drawer { transform: none; visibility: visible; transition: transform .3s; }
body.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer h2 { font: 700 1.3rem "Poppins", sans-serif; color: var(--blue); }
.drawer .close { width: 40px; height: 40px; border: 0; background: var(--bg); border-radius: 50%; font-size: 22px; color: var(--blue); }
.drawer-list { flex: 1; overflow-y: auto; padding: 8px 20px; margin: 0; list-style: none; }
.drawer-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.drawer-list .name { font: 600 .92rem/1.3 "Poppins", sans-serif; color: var(--blue); }
.drawer-list .sub { display: block; font: 500 .8rem "Montserrat", sans-serif; color: var(--muted); }
.drawer-list .rm { border: 0; background: none; color: #b42318; font-size: .8rem; text-decoration: underline; padding: 0; justify-self: start; }
.drawer-empty { padding: 50px 24px; text-align: center; color: var(--muted); }
.drawer footer { padding: 18px 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer footer .btn { width: 100%; text-transform: none; font-family: "Poppins", sans-serif; font-weight: 600; background: var(--green); color: #fff; }
.drawer footer .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .85rem; }
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--blue-dark); color: #fff;
  padding: 12px 22px; border-radius: 999px; font: 600 .9rem "Poppins", sans-serif; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsivo */
@media (max-width: 1024px) {
  .grid-4, .products { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .band-in { grid-template-columns: 1fr; }
  .band h2 br { display: none; }
  .cat { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; place-items: center; order: 3; }
  .header-in { min-height: 70px; }
  .logo img { height: 40px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; gap: 0;
    padding: 6px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 16px rgba(0, 0, 0, .08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
  .hero { padding: 44px 0 56px; }
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-art { max-width: 320px; order: -1; }
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .pdp-img { position: static; max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .section { padding: 54px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product { padding: 10px; }
  .product h3 { font-size: .9rem; margin: 12px 0 10px; }
  .btn-sm { font-size: 12.5px; padding: 10px 8px; }
  .btn { padding: 15px 22px; }
  .cta .btn { min-width: 0; width: 100%; }
  .footer-in { grid-template-columns: 1fr; text-align: center; }
  .social, .footer .logo { justify-content: center; display: flex; }
  .tools { grid-template-columns: 1fr; }
  .cat { flex-basis: 100%; }
  .arrow { display: none; }
  .step .num { right: 70px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.items-title { font: 600 1.15rem 'Poppins', sans-serif; color: var(--blue); margin: 26px 0 0; }
.desc h2.items-title + .table-wrap { margin-top: 12px; }

/* Tabela de itens no celular: cada código vira um cartão */
@media (max-width: 600px) {
  .table-wrap { border: 0; overflow: visible; background: transparent; }
  .table-wrap table, .table-wrap tbody { display: block; background: transparent; }
  .table-wrap thead { display: none; }
  .table-wrap tr { display: block; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 14px 12px; margin-bottom: 12px; }
  .desc .table-wrap td { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border: 0; white-space: normal; font-size: .9rem; }
  .desc .table-wrap td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
  .desc .table-wrap td:first-child { font-size: 1.05rem; color: var(--blue); border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 4px; }
  .desc .table-wrap td:last-child { padding-top: 10px; }
  .desc .table-wrap .row-add { width: 100%; justify-content: space-between; }
  .desc .table-wrap .row-add .btn-sm { flex: 1; }
}
