:root {
  --paper: #fcfcfc;
  --ink: #1a1a1a;
  --muted: #4d4d4d;
  --line: #e6e6e6;
  --yellow: #fcd800;
  --yellow-50: #fefce8;
  --yellow-100: #fef9c3;
  --yellow-200: #fef08a;
  --yellow-400: #facc15;
  --gray-50: #f9fafb;
  --gray-200: #e5e7eb;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --wa: #0f766e;
  --wa-hover: #0c5f59;
  --white: #ffffff;
  --header: 76px;
  --orcamento: 300px;
  color-scheme: light;
}
@media (max-width: 1100px) {
  :root { --orcamento: 260px; }
}
@media (max-width: 760px) {
  :root { --orcamento: min(220px, 40vw); }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
}

body.drawer-open { overflow: hidden; }

body.home {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-left: 0;
}
body.home .wrap {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
body.home .bar { justify-content: flex-start; padding-right: 1.25rem; }
body.home .brand { margin-left: 0; margin-right: 0; }
@media (min-width: 981px) {
  body.home main,
  body.home .site-footer { margin-right: 0; }
}
@media (max-width: 980px) {
  body.home { padding-right: 0; overflow-x: clip; }
  body.home .hero-grid { padding-right: 0; padding-left: 0; }
}
body.home .site-header { position: relative; flex: none; padding-left: 20px; }
body.home main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-right: 0;
}
body.home .site-footer { margin-right: 0; }
body.home .hero {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
body.home .hero-grid {
  flex: 1;
  min-height: 0;
  height: 100%;
  margin-top: 0;
  padding: 12px 0 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
body.home .hero-par {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
}
body.home .hero-centro {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  overflow: visible;
}
body.home .hero-copy {
  container-type: inline-size;
  min-width: 0;
  margin-top: 0;
}
body.home .hero h1 {
  width: 100%;
  max-width: none;
  margin: 0;
  white-space: normal;
  text-align: center;
  font-size: clamp(0.92rem, 1.45vw, 1.42rem);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}
body.home .hero h1 strong { font-weight: 900; }
body.home .hero-copy p {
  max-width: none;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
  text-align: center;
}
body.home .hero-photo {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  align-self: stretch;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
}
body.home .hero-acao {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  margin-top: 8px;
  overflow: visible;
}
body.home .cliente-form {
  height: auto;
  min-height: 0;
  overflow: visible;
  align-content: start;
  align-self: stretch;
  gap: 0;
  padding-right: 0;
}
@media (min-width: 981px) {
  body.home { --header: 38px; }
  body.home .bar {
    min-height: 38px;
    padding-top: 2px;
    padding-bottom: 2px;
    gap: 0.55rem;
  }
  body.home .brand img {
    width: calc(32px * 366 / 184 * 1.3 * 1.3 * 0.85);
    height: calc(32px * 1.05 * 0.85);
    max-height: calc(32px * 1.05 * 0.85);
  }
  body.home .nav { gap: 0.85rem; }
  body.home .nav a,
  body.home .nav button { font-size: 0.84rem; line-height: 1; }
}
body.home .hero-acao .btn {
  position: static;
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  height: auto;
  min-height: 0;
  margin-top: 8px;
  padding: 0.4rem 1rem;
}
body.home .site-footer {
  display: block;
  flex: none;
  align-self: start;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
body.home .site-footer .foot {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 8px 12px;
  width: 100%;
  min-height: 0;
  font-size: 11px;
}
body.home .foot-contatos { flex: 1 1 auto; min-width: 0; }
body.home .foot-contatos p { white-space: normal; }
body.home .foot-contatos,
body.home .foot-fiscal { text-align: left; justify-self: start; }
body.home .foot-links { margin-left: auto; text-align: right; justify-self: end; }
body.home .site-footer .brand { display: none; }
body.home .fine,
body.home .foot-fiscal p,
body.home .site-footer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--gray-800);
  text-align: left;
}
body.home .foot-col {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--gray-800);
}
body.home .site-footer .foot-links { margin-left: auto; }

img { max-width: 100%; display: block; }

h1, h2, h3 {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: min(14em, 100%); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); max-width: min(16em, 100%); }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.25; }

p { margin: 0.8rem 0 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--yellow-50);
  border-bottom: 1px solid var(--yellow-200);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
}

.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img {
  width: calc(50px * 366 / 184 * 1.3 * 1.3 * 0.85);
  height: calc(50px * 1.05 * 0.85);
  max-width: none;
  max-height: calc(50px * 1.05 * 0.85);
  object-fit: fill;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
}
.nav a, .nav button { text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.nav button { border: 0; background: none; padding: 0; cursor: pointer; }
.nav a:hover, .nav button:hover { box-shadow: inset 0 -2px 0 var(--ink); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.bars, .bars::before, .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }

.cart-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--wa);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.badge[hidden] { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  background: #000;
  color: var(--white);
  border: 1px solid #000;
  border-radius: 0.75rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--gray-800); border-color: var(--gray-800); color: var(--white); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-lg { min-height: 56px; }
.btn-ghost {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--gray-900);
}
.btn-ghost:hover { background: var(--white); color: var(--gray-900); border-color: var(--gray-800); }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--ink); margin-bottom: 0.9rem; }
.btn-line:hover { background: var(--white); color: var(--ink); border-color: var(--yellow); }
.btn-preto { background: #000; color: var(--white); border-color: #000; }
.btn-preto:hover { background: var(--gray-800); border-color: var(--gray-800); color: var(--white); }
.btn-amarelo { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-amarelo:hover { background: #e6c400; border-color: #e6c400; color: var(--ink); }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.8rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  background: var(--yellow);
  flex: none;
}

.hero {
  background: linear-gradient(to bottom, var(--yellow-50) 0%, var(--yellow-100) 48%, var(--yellow-400) 100%);
}
.hero .kicker::before { background: var(--gray-900); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1.2rem 2.2rem;
  align-items: stretch;
  padding: 2.4rem 0 2.2rem;
}
.hero-copy { grid-column: 2; grid-row: 1; }
.hero-photo { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; justify-self: stretch; }
.hero-acao {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  display: grid;
  gap: 0.85rem;
}
.hero h1 { font-size: 2.2rem; }
#titulo-produtos { font-size: 1.8rem; }
.hero p { max-width: min(40rem, 100%); margin-top: 0.7rem; color: var(--muted); font-size: 1.12rem; }
.hero .btn { width: 100%; margin-top: 0; }
.hero-photo {
  width: 100%;
  height: min(460px, 62vh);
  object-fit: cover;
  border: 1px solid var(--yellow-200);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.section { padding: 4.6rem 0; background: var(--gray-50); }
#contato { background: var(--white); }
.section-head {
  max-width: none;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem 1rem;
  background: var(--yellow-50);
  border: 1px solid var(--yellow-200);
  border-radius: 1rem;
}
.section-head .kicker::before { background: var(--ink); }
.contact-head { margin: -2.2rem -1.8rem 1.2rem; }
.section-head p, .muted { color: var(--muted); }

.tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.tabs button {
  min-height: 42px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--yellow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.8rem;
}
.product[hidden] { display: none; }
.product-visual {
  display: grid;
  place-items: center;
  height: 140px;
  margin-bottom: 0.9rem;
  background: #f3f3f3;
}
.product-visual svg { width: 72px; height: 72px; }
.stock {
  margin: 0.35rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.product .btn { margin-top: auto; width: 100%; }

.quote-box {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
#lista { padding-top: 0; }
.fields { display: grid; gap: 0.8rem; }
.fields > label { display: grid; gap: 0.35rem; font-weight: 800; font-size: 0.92rem; }
input[type="text"], input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 0 0.8rem;
  border: 1px solid #ccc;
  background: var(--paper);
}
.drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 1.2rem;
  border: 1.5px dashed #bdbdbd;
  background: var(--paper);
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}
.drop.is-over { border-color: #8a8a8a; background: #fffdf2; }
.drop-cliente {
  gap: 0.7rem;
  min-height: 200px;
  padding: 1.15rem 1.4rem;
  border: 2px dashed #b5b5b5;
  background: var(--white);
}
.upload-badge {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--yellow);
}
.upload-badge svg { width: 46px; height: 46px; }
.drop-texto { max-width: 34rem; font-size: 1.08rem; line-height: 1.45; font-weight: 800; }
.cotacao-box { display: grid; gap: 0.9rem; }
.cotacao-box .btn { justify-self: start; }
.admin-panel { width: min(560px, calc(100% - 1.5rem)); }
.mapa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mapa li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 800;
}
.mapa span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
}
.admin-body .btn { width: 100%; }
.drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.file-name { margin: 0.7rem 0 0; font-weight: 800; }
.aviso { margin: 0.8rem 0 0; font-weight: 700; }
.aviso-sutil { color: var(--muted); font-weight: 600; }
.quote-box .btn { margin-top: 0.4rem; }

.contact-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--white);
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}
.contact-copy { padding: 2.2rem 1.8rem; }
.phones { display: grid; gap: 0.15rem; margin-top: 1rem; }
.phones a {
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-decoration: none;
}
.phones a:hover { text-decoration: underline; text-underline-offset: 0.08em; }
address { margin-top: 1rem; font-style: normal; color: var(--muted); }
.fiscal { margin-top: 1rem; font-weight: 800; color: var(--ink); }
.contact-copy .btn { margin-top: 1.2rem; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

.site-footer {
  background: var(--gray-50);
  color: var(--gray-900);
  border-top: 1px solid var(--yellow-200);
  padding: 1.6rem 0 1.3rem;
}
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(max-content, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
}
.foot-contatos p { white-space: nowrap; }
.foot-col {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--gray-800);
}
.foot-col p { margin: 0; }
.foot-col a { color: inherit; font-weight: 600; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 0.12em; }
.foot-fiscal { text-align: left; }
.foot-contatos { text-align: center; }
.foot-links { justify-self: end; }
.foot-mapa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 4px 10px;
  border: 1px solid rgba(26, 26, 26, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--gray-900);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.foot-mapa svg { display: block; flex: none; }
.foot-mapa:hover { background: rgba(255, 255, 255, 0.85); text-decoration: none; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.foot-nav a { color: var(--gray-900); font-weight: 800; text-decoration: none; }
.foot-nav a:hover { box-shadow: inset 0 -2px 0 var(--gray-900); }
.fine { margin: 1rem 0 0; color: var(--muted); font-size: 0.92rem; }

.overlay[hidden], .drawer[hidden] { display: none; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(26, 26, 26, 0.46);
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(420px, 100%);
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.drawer-head, .drawer-foot { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.drawer-head h2 { font-size: 1.5rem; }
.drawer-head button, .qty button, .remover {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}
.drawer-head button { width: 40px; }
.cart-list { list-style: none; margin: 0; padding: 0.4rem 1.1rem 1rem; overflow: auto; }
.cart-item { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.cart-item p { margin: 0 0 0.55rem; font-weight: 800; }
.qty { display: flex; align-items: center; gap: 0.4rem; }
.qty button { width: 36px; }
.qty span { min-width: 1.4rem; text-align: center; font-weight: 800; }
.remover { padding: 0 0.7rem; margin-left: auto; }
.drawer-foot { margin-top: auto; border-bottom: 0; border-top: 1px solid var(--line); }
.drawer-foot .btn { width: 100%; }
.historico-modal {
  width: min(560px, calc(100% - 1.5rem));
  max-height: min(80vh, 720px);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
  overflow: auto;
}
.historico-corpo { padding: 0.35rem 1.1rem 1.1rem; }
.historico-instrucao { margin: 0.7rem 0 0.75rem; color: var(--ink); font-size: 0.95rem; font-weight: 700; line-height: 1.45; }
.historico-busca-linha { display: flex; align-items: center; gap: 0.6rem; }
.historico-busca-linha input { flex: 1; min-width: 0; }
.historico-busca-linha .btn { flex: none; min-height: 48px; }
.historico-erro { margin: 0.45rem 0 0; color: #b91c1c; font-size: 0.85rem; font-weight: 700; }
.historico-erro[hidden] { display: none; }
.historico-vazio { margin: 0.85rem 0; color: var(--muted); font-size: 0.95rem; font-weight: 600; line-height: 1.45; }
.historico-vazio[hidden] { display: none; }
.historico-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(360px, 52vh);
  overflow-y: auto;
}
.historico-lista li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}
.historico-lista li > span { min-width: 0; }
.historico-acoes { display: flex; flex: none; align-items: center; gap: 0.85rem; }
.historico-acoes a,
.historico-acoes button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.historico-acoes svg { display: block; width: 16px; height: 16px; }
.historico-acoes button.historico-excluir { color: #dc2626; }
.historico-acoes a:hover,
.historico-acoes a:focus-visible,
.historico-acoes button:hover,
.historico-acoes button:focus-visible { color: #111827; }
.historico-acoes button.historico-excluir:hover,
.historico-acoes button.historico-excluir:focus-visible { color: #b91c1c; }
.empty { padding: 1rem 1.1rem; color: var(--muted); }

[id] { scroll-margin-top: calc(var(--header) + 12px); }

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .quote-box, .contact-block, .foot { display: grid; grid-template-columns: 1fr; }
  body.home {
    height: auto;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: auto;
  }
  body.home main,
  body.home .hero {
    flex: none;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  body.home .hero-photo,
  body.home .hero-foto,
  body.home .foot-fiscal { display: none; }
  body.home .hero-grid {
    flex: none;
    align-self: start;
    height: auto;
    min-height: 0;
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  body.home .hero-par,
  body.home .hero-centro,
  body.home .hero-foto-quadro,
  body.home .hero-acao,
  body.home .hero-acao > div,
  body.home .cliente-form {
    flex: none;
    height: auto;
    min-height: 0;
    margin-top: 0;
  }
  body.home .hero-centro { overflow: visible; }
  body.home .hero-par { display: flex; flex-direction: column; width: 100%; }
  body.home .hero-acao > div { justify-content: flex-start; }
  body.home .foot-fiscal,
  body.home .hero-centro,
  body.home .hero-copy,
  body.home .hero-acao,
  body.home .quote-side,
  body.home .site-footer { grid-column: auto; grid-row: auto; }
  body.home .foot-fiscal { display: none; }
  body.home .quote-side {
    position: relative;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    min-width: 0;
    height: auto;
    max-height: 468px;
    margin: 0 auto;
    border-radius: 1rem;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body.home .hero h1 {
    white-space: normal;
    text-align: center;
    font-size: clamp(1.28rem, 5.1vw, 1.7rem);
    margin-bottom: 8px;
  }
  body.home .hero-acao {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    min-width: 0;
    min-height: auto;
    height: auto;
    align-self: start;
    grid-template-rows: auto;
    align-content: start;
    overflow: visible;
    margin: 0 auto;
    padding: 0 8px;
    box-sizing: border-box !important;
  }
  body.home .bar {
    min-height: 0;
    padding-top: 2px;
    padding-bottom: 2px;
  }
  body.home .hero-grid {
    padding: 0 0 8px;
  }
  body.home .quote-side { max-height: 468px; }
  body.home .cliente-form {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    min-width: 0;
    overflow: visible;
    align-content: start;
    gap: 0.55rem;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box !important;
  }
  body.home .cliente-form .form-linha,
  body.home .cliente-form label,
  body.home .cliente-form input,
  body.home .cliente-form select {
    box-sizing: border-box !important;
    max-width: 100%;
  }
  body.home .cliente-form input:not([type="radio"]),
  body.home .cliente-form select,
  body.home .cliente-form .form-linha,
  body.home .cliente-form .form-linha > label {
    min-width: 0;
  }
  body.home .cliente-form .form-linha {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.4rem 0.5rem;
    width: 100%;
  }
  body.home .cliente-form .form-linha > label { flex: 1 1 100%; }
  body.home .cliente-form .form-doc > label:first-child { flex: 1.4 1 8.5rem; }
  body.home .cliente-form .form-doc > label:last-child { flex: 1 1 6.2rem; }
  body.home .cliente-form .form-end > label:first-child { flex: 2 1 9rem; }
  body.home .cliente-form .form-end > label:last-child { flex: 0.8 1 4.6rem; }
  body.home .cliente-form .form-local > label { flex: 1 1 6.4rem; }
  body.home .cliente-form .form-local > label:last-child { flex: 0 0 3.1rem; max-width: 3.4rem; }
  body.home .cliente-form .form-contato > label:first-child { flex: 1 1 8rem; }
  body.home .cliente-form .form-contato > label:last-child { flex: 1.3 1 8.5rem; }
  body.home .cliente-form .tipo-pessoa,
  body.home .cliente-form .tipo-opcoes { flex-wrap: wrap; max-width: 100%; }
  body.home .hero-copy,
  body.home .site-footer { display: none; }
}

@media (min-width: 981px) {
  body.home .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 416px) minmax(0, 416px) minmax(var(--orcamento), 1fr);
    grid-template-rows: minmax(0, 1fr);
    column-gap: 18px;
    align-items: stretch;
    padding-bottom: 2px;
  }
  body.home .hero-par {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    grid-column: 1 / span 2;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    min-width: 0;
    gap: 18px;
    margin: 0;
    padding: 0;
  }
  body.home .hero-foto,
  body.home .hero-centro {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 416px;
    max-width: 416px;
    min-width: 0;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
  }
  body.home .hero-foto-quadro {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
  }
  body.home .hero-copy { flex: none; margin: 0; padding: 0; }
  body.home .hero-photo {
    position: absolute;
    inset: 0;
    grid-column: auto;
    grid-row: auto;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-height: 0;
    margin: 0;
    margin-top: 0;
    padding: 0;
    padding-top: 0;
    object-fit: cover;
    object-position: center;
  }
  body.home .foot-fiscal {
    display: block;
    flex: none;
    align-self: stretch;
    margin: 8px 0 0;
    padding: 0;
  }
  body.home .hero-acao {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    align-self: stretch;
    height: auto;
    min-height: 0;
    margin-top: 0;
    padding-top: 16px;
  }
  body.home .hero-acao > div {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    margin-top: 0;
  }
  body.home .hero-acao .btn { margin-top: 8px; }
  body.home .site-footer {
    display: block;
    flex: none;
    align-self: stretch;
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
  }
  body.home .cliente-form {
    flex: 0 1 auto;
    height: auto;
    min-height: min-content;
    align-content: start;
    gap: 0;
    overflow: visible;
  }
  body.home .cliente-form .form-linha { margin-bottom: 0; }
  body.home .quote-side {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
  }
  body.home .quote-side .drawer-foot { padding-bottom: 0; }
  body.home .quote-side .legal { margin-bottom: 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .bar { flex-wrap: wrap; }
  .brand { order: 1; }
  .nav-toggle { order: 3; }
  .nav { order: 4;
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.2rem 0 0.4rem;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a, .nav button { padding: 0.85rem 0; border-bottom: 1px solid var(--line); text-align: left; }
  .nav a:hover, .nav button:hover { box-shadow: none; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; padding: 0.7rem 0; }
  .hero-copy { order: 1; grid-column: 1; grid-row: auto; }
  .hero-photo { display: none; }
  .hero-acao { order: 2; grid-column: 1; grid-row: auto; align-self: stretch; }
  body.home .hero { overflow: auto; }
  .grid { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; }
  .tabs button { flex: none; }
  .contact-copy { padding: 1.6rem 1.15rem; }
  .contact-head { margin: -1.6rem -1.15rem 1rem; }
  .map iframe { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: start;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.1rem;
}
.panel h3 { margin-bottom: 0.8rem; }
.search-label, .livre-label, .admin-body label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.92rem;
}
.search-label { margin-bottom: 0.8rem; }
input[type="search"], input[type="password"], textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  background: var(--white);
  font: inherit;
  color: inherit;
}
input[type="search"], input[type="password"] { min-height: 48px; padding: 0 0.8rem; }
textarea { min-height: 140px; padding: 0.75rem 0.8rem; resize: vertical; }
.catalog-meta { margin: 0.15rem 0 0.75rem; color: var(--ink); font-size: 0.98rem; font-weight: 800; }
.catalog-list { display: grid; gap: 0.28rem; min-height: 0; overflow: auto; }
.catalogo-modal[hidden] { display: none; }
.catalogo-modal {
  position: fixed;
  z-index: 46;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  width: min(520px, calc(100% - 1.5rem));
  height: min(70vh, 666px);
  max-height: calc(100dvh - 1.5rem);
  padding: 0.85rem 0.95rem 0.95rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
  overflow: hidden;
  box-sizing: border-box;
}
.catalogo-modal.is-arrastando,
.catalogo-modal.is-arrastando * { cursor: grabbing; }
.catalogo-modal button,
.catalogo-modal a,
.catalogo-modal input,
.catalogo-modal textarea,
.catalogo-modal select,
.catalogo-modal label,
.catalogo-modal .catalog-list,
.catalogo-modal .suggest {
  cursor: auto;
  user-select: auto;
}
.catalogo-modal button,
.catalogo-modal a { cursor: pointer; }
.catalogo-modal input,
.catalogo-modal textarea { cursor: text; user-select: text; }
.catalogo-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
}
.catalogo-modal-head h2 { font-size: 1.35rem; }
.catalogo-fechar,
.historico-modal .drawer-head .catalogo-fechar {
  width: auto;
  margin-left: auto;
  min-height: 40px;
  height: auto;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 0.75rem;
  background: #000;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.catalogo-fechar:hover,
.historico-modal .drawer-head .catalogo-fechar:hover { background: var(--gray-800); }
@media (max-width: 980px) {
  .catalogo-fechar,
  .historico-modal .drawer-head .catalogo-fechar {
    width: auto;
    min-height: 32px;
    height: 32px;
    padding: 0 0.4rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
  }
}
.catalogo-modal .search-label {
  gap: 0.15rem;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
}
.catalogo-modal input[type="search"] {
  min-height: 32px;
  padding: 0 0.55rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
}
.catalogo-modal .catalog-meta { margin: 0.15rem 0 0.3rem; }
.catalogo-modal .catalog-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.28rem;
  flex: 1;
  min-height: 0;
  max-height: none;
  align-content: start;
}
.catalogo-modal .catalog-row {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.125rem 0.4rem;
}
.catalogo-modal .catalog-nome {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}
.catalogo-modal .catalog-buy {
  flex-direction: row;
  margin-left: auto;
  gap: 0.4rem;
}
.catalogo-modal .catalog-row .preco strong {
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
}
.catalogo-modal .add-mini {
  min-height: 20px;
  padding: 0 0.4rem;
  font-size: 11px;
  line-height: 1;
}
.catalog-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
  padding: 0.38rem 0.6rem;
  scroll-margin-top: calc(var(--header) + 12px);
}
.catalog-info { min-width: 0; flex: 1; }
.catalog-nome {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: default;
}
.catalog-fine {
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
}
.catalog-buy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
}
.add-mini {
  min-height: 32px;
  padding: 0 0.55rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  flex: none;
}
.add-mini:hover { background: var(--yellow-100); border-color: var(--yellow-200); }
.auditoria {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0.85rem 0.9rem;
  background: #fff8cc;
  border-left: 4px solid var(--yellow);
  font-size: 0.92rem;
}
.auditoria[hidden] { display: none; }
.auditoria p { margin: 0; font-weight: 700; }
.auditoria ul {
  margin: 0.1rem 0 0.15rem;
  padding-left: 1.15rem;
  max-height: 180px;
  overflow: auto;
  font-weight: 600;
}
.resumo { list-style: none; margin: 0.4rem 0 0; padding: 0; min-width: 0; }
.resumo-item { padding: 0.75rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.resumo .qty { flex-wrap: wrap; max-width: 100%; }
.resumo .remover { margin-left: 0; }
.resumo-item p { margin: 0 0 0.45rem; font-weight: 800; }
.resumo-vazio { color: var(--muted); }
.subtotal { font-weight: 800; }
.livre-label { margin-top: 0.8rem; }
.legal {
  margin: 1rem 0;
  padding: 0.85rem 0.9rem;
  background: #fff8cc;
  border-left: 4px solid var(--yellow);
  font-weight: 700;
}
.panel .btn { width: 100%; }
.fine { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.admin-link {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  z-index: 50;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100% - 1.5rem));
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.admin-body { display: grid; gap: 0.8rem; padding: 1rem 1.1rem 1.2rem; }
.admin-body[hidden] { display: none; }
.admin-body a { font-weight: 800; }

@media (min-width: 981px) {
  #lista { position: sticky; top: calc(var(--header) + 16px); }
}
@media (max-width: 980px) {
  .quote-layout { grid-template-columns: minmax(0, 1fr); }
}

.catalog-row .preco { margin: 0; }
.catalog-row .preco strong { font-size: 0.95rem; white-space: nowrap; }
.cart-item .cart-sku {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.cart-item .cart-nome {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}
.cart-item .cart-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.cart-item .cart-fact strong { color: var(--ink); font-weight: 800; }
.cart-item .cart-linha { margin-top: 0.15rem; }
.cart-item .cart-linha strong { font-size: 0.95rem; }
.cart-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.05rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.22);
}
.cart-float .badge { position: static; }
.foot-nav button {
  border: 0;
  background: none;
  color: var(--gray-900);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
.foot-nav button:hover { box-shadow: inset 0 -2px 0 var(--gray-900); }
.search-combo { position: relative; }
.suggest {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0.25rem 0 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(26, 26, 26, 0.14);
  max-height: 320px;
  overflow: auto;
}
.suggest[hidden] { display: none; }
.suggest button {
  width: 100%;
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.75rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.suggest button strong { font-size: 0.98rem; }
.suggest button span { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.suggest button:hover,
.suggest button.is-active { background: #fff8cc; }
.suggest-empty,
.suggest-more { padding: 0.7rem 0.75rem; color: var(--muted); font-size: 0.88rem; }
.quote-side {
  position: fixed;
  z-index: 32;
  top: var(--header);
  right: 0;
  bottom: 0;
  left: auto;
  display: flex;
  flex-direction: column;
  width: var(--orcamento);
  height: auto;
  max-height: none;
  background: var(--white);
  border: 1px solid #000;
  border-radius: 1rem 0 0 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  overflow: visible;
  cursor: default;
  user-select: auto;
  touch-action: auto;
}
body.home .quote-side {
  position: relative;
  z-index: 1;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 1rem 0 0 1rem;
}
@media (min-width: 981px) {
  body.home .quote-side {
    box-sizing: border-box;
    width: auto;
    margin-right: 20px;
    border: 1px solid #000;
    border-radius: 1rem;
  }
  body.home .quote-side .drawer-head { border-top-right-radius: 1rem; }
}
@media (max-width: 980px) {
  body.home .quote-side {
    grid-column: 1;
    grid-row: auto;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    min-width: 0;
    height: auto;
    max-height: 468px;
    margin: 0 auto;
    border-radius: 1rem;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: hidden;
  }
  body.home .quote-side .drawer-head { border-top-right-radius: 1rem; }
  body.home .quote-side .cart-list {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
  }
  body.home .quote-side .cart-compacta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.28rem;
    row-gap: 0.18rem;
  }
  body.home .quote-side .cart-preco,
  body.home .quote-side .cart-total {
    width: auto;
    flex: 0 1 auto;
  }
}
.quote-side .cart-list { flex: 1; min-height: 0; }
.quote-side .drawer-head {
  justify-content: center;
  padding: 0.22rem 0.7rem;
  background: var(--yellow-50);
  border-bottom: 1px solid var(--yellow-200);
  border-top-left-radius: 1rem;
  border-top-right-radius: 0;
}
.quote-side .drawer-head h2 {
  width: 100%;
  font-size: 1.05rem;
  line-height: 1.1;
  text-align: center;
}
.quote-side .cart-list { padding: 0.1rem 0.7rem 0.15rem; }
.quote-side .cart-item { padding: 0.32rem 0; }
.quote-side .cart-nome {
  margin: 0 0 0.12rem;
  color: #374151;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.15;
}
.quote-side .cart-prod { color: #1f2937; font-weight: 700; }
.quote-side .cart-compacta {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr) max-content max-content minmax(0, 1fr) max-content max-content 16px;
  align-items: center;
  width: 100%;
  column-gap: 0.2rem;
  margin: 0;
  color: #374151;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.15;
}
.quote-side .cart-compacta > :nth-child(1) { grid-column: 1; }
.quote-side .cart-compacta > :nth-child(2) { grid-column: 2; }
.quote-side .cart-compacta > :nth-child(3) { grid-column: 4; }
.quote-side .cart-compacta > :nth-child(4) { grid-column: 5; }
.quote-side .cart-compacta > :nth-child(5) { grid-column: 7; }
.quote-side .cart-compacta > :nth-child(6) { grid-column: 8; }
.quote-side .cart-compacta > :nth-child(7) { grid-column: 9; }
.quote-side .cart-rotulo,
.quote-side .cart-seletor,
.quote-side .cart-preco,
.quote-side .cart-total { white-space: nowrap; }
.quote-side .cart-rotulo {
  justify-self: start;
  color: #111827;
  font-weight: 700;
  text-align: left;
}
.quote-side .cart-seletor {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.22rem;
}
.quote-side .cart-preco,
.quote-side .cart-total {
  justify-self: stretch;
  width: 100%;
  color: #374151;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  text-align: right;
}
.quote-side .qtd-btn {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 0.3rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.quote-side .qtd-btn:hover { background: var(--yellow-50); }
.quote-side .qtd-num {
  min-width: 1.15rem;
  color: #374151;
  font-weight: 400;
  text-align: center;
}
.quote-side .cart-compacta strong { color: #111827; font-weight: 700; }
.quote-side .cart-item .remover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: center;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ef4444;
  line-height: 1;
  text-decoration: none;
}
.quote-side .cart-item .remover svg { display: block; width: 16px; height: 16px; }
.quote-side .cart-item .remover:hover,
.quote-side .cart-item .remover:focus-visible { color: #dc2626; text-decoration: none; }
.quote-side .estimado {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.quote-side .estimado strong { color: var(--ink); font-size: 13px; }
.quote-side .drawer-foot { padding: 0.28rem 0.7rem 0.4rem; }
.quote-side .legal {
  margin: 0.28rem 0 0;
  padding: 0.22rem 0.4rem;
  border: 1px solid var(--yellow-400);
  border-left: 1px solid var(--yellow-400);
  border-radius: 0.55rem;
  background: #fff8cc;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
.quote-side .drawer-foot .btn {
  min-height: 34px;
  margin-top: 0;
  padding: 0.2rem 0.7rem;
  border-radius: 0.55rem;
}
.quote-side .empty { padding: 0.45rem 0.7rem; font-size: 13px; }
.qtd-label {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}
.qtd-label input {
  width: 100%;
  min-height: 44px;
  padding: 0 0.7rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  background: var(--white);
}
.cart-item .remover { margin: 0.55rem 0 0; }
body { padding-bottom: 0; }
@media (min-width: 981px) {
  main,
  .site-footer { margin-right: 0; }
}
.cliente-form {
  display: grid;
  gap: 0.22rem;
  margin: 0;
  min-width: 0;
}
.cliente-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  clip: rect(0, 0, 0, 0);
}
.form-linha {
  display: grid;
  gap: 0 10px;
  align-items: end;
  min-width: 0;
  margin-bottom: 6px;
}
.cliente-form .form-linha:last-child { margin-bottom: 0; }
.form-doc { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
.form-end { grid-template-columns: minmax(0, 9fr) minmax(4.8rem, 1.4fr); }
.form-local { grid-template-columns: minmax(0, 50fr) minmax(0, 45fr) minmax(2.15rem, 5fr); }
.form-contato { grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); }
.cliente-form label {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.cliente-form input {
  width: 100%;
  min-height: 0;
  padding: 6px 10px;
  border: 1px solid var(--gray-200);
  border-radius: 0.55rem;
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}
.form-end input[name="numero"],
.form-local input[name="uf"] {
  padding: 6px 4px;
  text-align: center;
}
.cliente-form input.is-invalido { background: #fff5f5; }
.tipo-pessoa {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.tipo-pessoa legend {
  float: left;
  width: auto;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
.tipo-opcoes {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.tipo-pessoa label {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.tipo-pessoa input {
  width: 0.9rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: #000;
}
.doc-campo { position: relative; }
.doc-aviso {
  margin: 0.08rem 0 0;
  color: #9f1239;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
}
.doc-aviso[hidden] { display: none; }
@media (max-width: 420px) {
  .tipo-pessoa { flex-wrap: wrap; }
  .form-local { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2.35rem; }
}
.senha-esqueci { margin: 0.65rem 0 0; text-align: center; }
.senha-esqueci a { color: var(--muted); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.senha-esqueci a:hover { text-decoration: underline; }
.gestor-nav-wrap { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto 0.4rem; }
.gestor-abas { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.gestor-abas button[data-aba] {
  min-height: 36px;
  padding: 0 0.8rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.gestor-abas button[aria-selected="true"] { background: #000; border-color: #000; color: #fff; }
.gestor-sair { margin-left: auto; margin-bottom: 0; min-height: 36px; padding: 0 0.8rem; }
.gestor-pagina { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto 1.5rem; }
.gestor-pagina h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 0.7rem; }
.gestor-filtros { display: flex; align-items: end; gap: 0.75rem; margin-bottom: 0.7rem; }
.gestor-buscar { flex: none; min-height: 36px; padding: 0 0.95rem; border-radius: 0.5rem; font-size: 0.82rem; }
.gestor-filtros label { flex: 1; min-width: 0; display: grid; gap: 0.25rem; font-size: 0.78rem; font-weight: 800; }
.gestor-filtros label.gestor-data { flex: 0 0 11.5rem; }
.gestor-filtros input {
  width: 100%;
  min-height: 36px;
  padding: 0 0.55rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: var(--white);
  font: inherit;
  font-size: 0.85rem;
}
.gestor-vazio { margin: 0.4rem 0; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.gestor-busca-aviso {
  margin: 0.35rem 0;
  color: #991b1b;
  font-size: 0.85rem;
  font-weight: 700;
}
.gestor-tabela-box { overflow-x: auto; background: var(--white); border: 1px solid var(--gray-200); border-radius: 0.75rem; }
body.gestor {
  --header: 48px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
}
body.gestor .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  flex: none;
}
body.gestor .bar {
  min-height: 0;
  padding-top: 2px;
  padding-bottom: 2px;
}
body.gestor main.section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.3rem 0 0.4rem;
  overflow: hidden;
}
body.gestor [data-area-restrita] {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.gestor [data-area-restrita][hidden],
body.gestor .gestor-pagina[hidden],
body.gestor .admin-page[hidden] { display: none !important; }
body.gestor .kicker { margin: 0 0 0.2rem; }
body.gestor .gestor-nav-wrap { flex: none; margin-bottom: 0.15rem; }
body.gestor .gestor-pagina {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
body.gestor .gestor-pagina h1 {
  flex: none;
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
}
body.gestor .gestor-filtros { flex: none; margin-bottom: 0.35rem; }
body.gestor .gestor-vazio { flex: none; }
body.gestor .gestor-tabela-box {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 12.25rem);
  overflow-x: auto;
  overflow-y: auto;
}
body.gestor .gestor-tabela thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--yellow-50);
}
body.gestor .admin-page {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  overflow: auto;
}
.gestor-tabela { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.25; }
.gestor-tabela th, .gestor-tabela td { padding: 0.28rem 0.45rem; border-bottom: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
.gestor-tabela th { font-size: 11px; font-weight: 800; background: var(--yellow-50); white-space: nowrap; }
.gestor-tabela td.num, .gestor-tabela th.num, .gestor-tabela th.acoes { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gestor-tabela th.acoes, .gestor-tabela td.acoes { font-variant-numeric: normal; }
.gestor-acoes { display: flex; justify-content: flex-end; gap: 0.35rem; }
.gestor-acoes button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #111827;
  cursor: pointer;
}
.gestor-acoes button:hover, .gestor-acoes button:focus-visible { background: var(--yellow-50); }
.gestor-acoes button[data-excluir-orcamento] { color: #ef4444; }
.gestor-acoes button[data-excluir-orcamento]:hover,
.gestor-acoes button[data-excluir-orcamento]:focus-visible { color: #dc2626; background: #fef2f2; }
.gestor-acoes svg { display: block; width: 16px; height: 16px; }
.gestor-detalhe { width: min(680px, calc(100% - 1.5rem)); max-height: min(80vh, 720px); overflow: auto; }
.gestor-detalhe-corpo { padding: 0.2rem 1.1rem 1.1rem; }
.gestor-detalhe-meta { margin: 0 0 0.7rem; font-size: 0.92rem; font-weight: 700; }
.gestor-detalhe-meta p { margin: 0.15rem 0; }
.gestor-detalhe table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gestor-detalhe th, .gestor-detalhe td { padding: 0.28rem 0.35rem; border-bottom: 1px solid var(--gray-200); text-align: left; }
.gestor-detalhe td.num, .gestor-detalhe th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gestor-detalhe tfoot td { font-weight: 800; }
.gestor-tabela .gestor-item { display: block; }
@media (max-width: 640px) {
  .gestor-filtros { flex-direction: column; align-items: stretch; }
  .gestor-filtros label.gestor-data { flex: 1 1 auto; }
}
.admin-page { max-width: 760px; }
.admin-page h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 0.4rem; }
.admin-page .admin-body { margin-top: 1rem; }
.admin-page .drop-cliente { margin-top: 0.2rem; }

@media (max-width: 980px) {
  #titulo-produtos {
    font-size: 1.125rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  .catalogo-modal .catalog-list {
    flex: none;
    max-height: calc(3 * 32px + 2 * 0.28rem + 6px);
    overflow-y: auto;
  }
}
@media (max-width: 767px) {
  body.home {
    --fecho-mobile: 0px;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
  }
  body.home main,
  body.home .hero,
  body.home .hero-grid {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.home .hero-par {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.home .hero-centro,
  body.home .hero-acao,
  body.home .hero-acao > div {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.home .hero-acao [data-abrir-catalogo] {
    flex: none;
    display: block;
    visibility: visible;
  }
  body.home .hero-copy,
  body.home .site-footer {
    display: none !important;
  }
  body.home .hero-acao .cliente-form {
    flex: 1 1 0%;
    min-height: 0;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body.home .hero-acao [data-abrir-catalogo] {
    position: relative;
    z-index: 2;
  }
  body.home .hero-grid { padding-bottom: 0; }
  .catalogo-modal,
  .historico-modal {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: calc(100% - 24px);
    height: auto;
    max-height: min(70vh, calc(100dvh - 48px));
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-sizing: border-box;
  }
  .catalogo-modal-head,
  .historico-modal .drawer-head {
    flex: none;
    align-items: center;
  }
  .catalogo-modal-head h2,
  .historico-modal .drawer-head h2 {
    min-width: 0;
    flex: 1 1 auto;
  }
  .catalogo-modal .catalogo-fechar,
  .historico-modal .drawer-head .catalogo-fechar {
    position: relative;
    z-index: 2;
    flex: none;
    margin-left: auto;
  }
  .catalogo-modal .catalog-list,
  .catalogo-modal .catalog-row,
  .catalogo-modal .catalog-info,
  .catalogo-modal .search-combo,
  .catalogo-modal input[type="search"] {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .catalogo-modal .catalog-nome { overflow-wrap: anywhere; }
  .catalogo-modal .catalog-list {
    flex: none;
    max-height: calc(3 * 32px + 2 * 0.28rem + 6px);
    overflow-y: auto;
  }
  body.home .quote-side {
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-bottom: 0;
    overflow: hidden;
  }
  body.home .quote-side > ul.cart-list {
    display: block !important;
    height: 143px !important;
    min-height: 0 !important;
    max-height: 143px !important;
    flex: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  body.home .quote-side > .empty[hidden] {
    display: none !important;
  }
  body.home .quote-side > .empty:not([hidden]) {
    box-sizing: border-box;
    flex: none !important;
    height: 143px !important;
    min-height: 143px !important;
    max-height: 143px !important;
    margin: 0;
    overflow: auto;
  }
  body.home .quote-side > .empty:not([hidden]) + ul.cart-list {
    display: none !important;
  }
  body.home .quote-side > .drawer-foot {
    position: relative !important;
    z-index: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0;
    padding: 0.4rem 0.75rem env(safe-area-inset-bottom, 0px);
    background: var(--white);
    border-top: 1px solid #000;
    box-shadow: none;
  }
  body.home .quote-side .legal { margin-bottom: 0; }
  body.home .quote-side .drawer-foot .btn { width: 100%; }
}

@media (max-width: 767px) {
  body.gestor {
    height: auto;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: auto;
  }
  body.gestor main.section,
  body.gestor [data-area-restrita] {
    overflow: visible;
    height: auto;
    flex: none;
  }
  body.gestor .gestor-tabela-box {
    max-height: none;
    overflow-y: visible;
  }
  body.gestor .gestor-tabela thead th { position: static; }
  body.gestor .gestor-topo {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
  }
  body.gestor .site-header { position: relative; z-index: auto; }
  body.gestor .bar { justify-content: flex-start; }
  body.gestor .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  body.gestor .gestor-abas {
    display: none;
    position: fixed;
    top: 52px;
    right: 10px;
    z-index: 1100;
    flex-direction: column;
    align-items: stretch;
    width: min(280px, calc(100% - 20px));
    margin: 0;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.16);
  }
  body.gestor .gestor-abas.is-open { display: flex; }
  body.gestor .gestor-abas button { width: 100%; text-align: left; }
  body.gestor .gestor-sair { margin-left: 0; }
  body.gestor .gestor-filtros,
  body.gestor .gestor-filtros label,
  body.gestor .gestor-filtros input,
  body.gestor .gestor-filtros select,
  body.gestor .gestor-buscar {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    touch-action: manipulation;
  }
  body.gestor .gestor-topo h1 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
  }
  body.gestor .gestor-filtros {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.4rem 0.5rem;
    align-items: end;
  }
  body.gestor .gestor-filtros label,
  body.gestor .gestor-filtros label.gestor-data,
  body.gestor .gestor-filtros label.gestor-doc,
  body.gestor .gestor-filtros label.gestor-filtro {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  body.gestor .gestor-filtros input,
  body.gestor .gestor-filtros select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  body.gestor .gestor-buscar { width: 100%; }
}
