/* ==========================================================================
   VillaGrans Autopeças — folha de estilos única
   Índice: 1 Base · 2 Botões · 3 Cabeçalho · 4 Home · 5 Páginas internas
           6 Loja e produtos · 7 Orçamento · 8 Rodapé · 9 Responsivo
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/roboto.woff2") format("woff2");
}

/* 1. BASE ------------------------------------------------------------------ */
:root {
  --red: #c2272d;
  --red-dark: #a11f24;
  --red-soft: #fdecec;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --slate: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #fff;
  --green: #16a34a;
  --green-dark: #128a3e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 50px -18px rgba(15, 23, 42, .35);
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid rgba(194, 39, 45, .45); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: calc(var(--container) + 40px); 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-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.icon-s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.section { padding: 84px 0; }
.section--alt { background: var(--bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); background: var(--red-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red); border-radius: 4px; margin: 16px auto 0; }

/* 2. BOTÕES ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 .95rem/1 "Roboto", sans-serif; letter-spacing: .01em;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  background: var(--red); color: #fff; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  text-align: center;
}
.btn:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(194, 39, 45, .6); }
.btn:active { transform: translateY(0); }
.btn--whats { background: var(--green); }
.btn--whats:hover { background: var(--green-dark); box-shadow: 0 10px 20px -8px rgba(22, 163, 74, .6); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); box-shadow: none; }
.btn--outline { background: transparent; border-color: var(--line); color: var(--navy); }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* 3. CABEÇALHO ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 50px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a.nav-link, .main-nav button.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px;
  font: 500 .95rem/1 "Roboto", sans-serif; color: var(--slate); background: none; border: 0; cursor: pointer;
}
.main-nav .nav-link:hover, .has-sub:hover > .nav-link, .has-sub:focus-within > .nav-link { background: #f1f5f9; color: var(--navy); }
.main-nav .nav-link.is-active { color: var(--red); background: var(--red-soft); }
.has-sub .chev { width: 10px; height: 10px; transition: transform .2s; }
.has-sub:hover .chev, .has-sub:focus-within .chev { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .18s; flex-direction: column; align-items: stretch;
}
.sub-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--slate); font-size: .95rem; font-weight: 500; }
.sub-menu a:hover { background: var(--red-soft); color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.social { display: flex; gap: 4px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--slate); }
.social a:hover { background: #f1f5f9; color: var(--red); }
.quote-link { position: relative; }
.quote-count {
  min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px;
  background: #fff; color: var(--red); font-size: .75rem; font-weight: 700; line-height: 1;
}
.quote-count[data-n="0"] { display: none; }
.nav-social { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; place-items: center; color: var(--navy); }
.menu-toggle .icon { width: 22px; height: 22px; }

/* 4. HOME ------------------------------------------------------------------ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy) url("../img/banner-horizontal.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 42, .95) 0%, rgba(15, 23, 42, .82) 45%, rgba(30, 41, 59, .6) 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: 96px 140px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; }
.hero h1 span { color: #ff6b70; }
.hero .lead { font-size: 1.15rem; color: #cbd5e1; max-width: 540px; margin: 0 0 32px; }
.hero .eyebrow { background: rgba(255, 255, 255, .12); color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-units { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.unit-card {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 20px; padding: 10px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .25s;
}
.unit-card:hover { transform: translateY(-6px); }
.unit-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.unit-card h2 { font-size: 1.05rem; color: #fff; margin: 14px 6px 2px; letter-spacing: 0; }
.unit-card p { margin: 0 6px 8px; font-size: .85rem; color: #cbd5e1; line-height: 1.45; }

.trust { position: relative; margin-top: -60px; z-index: 2; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.trust-item { display: flex; gap: 16px; align-items: center; padding: 26px 24px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--red-soft); color: var(--red); }
.trust-item .ico .icon { width: 24px; height: 24px; }
.trust-item strong { display: block; color: var(--navy); font-size: 1rem; line-height: 1.3; }
.trust-item span { font-size: .85rem; color: var(--muted); line-height: 1.4; display: block; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cat-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.cat-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover .thumb img { transform: scale(1.05); }
.cat-card .info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 22px; }
.cat-card h3 { margin: 0; font-size: 1.2rem; }
.cat-card small { color: var(--muted); font-size: .85rem; }
.cat-card .go { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); transition: .2s; flex: none; }
.cat-card:hover .go { background: var(--red); color: #fff; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 22px; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
.service-card h3 { margin: 0 6px 8px; }
.service-card ul { list-style: none; margin: 0 6px 18px; color: var(--muted); font-size: .92rem; flex: 1; }
.service-card li { padding-left: 18px; position: relative; line-height: 1.55; margin-bottom: 3px; }
.service-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.service-card .btn, .service-card .more { margin: 0 6px; }
.more { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.more:hover { gap: 10px; }
.service-card .more { transition: gap .2s; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.about-media img + img { position: absolute; width: 46%; aspect-ratio: 1; right: -24px; bottom: -32px; border: 6px solid #fff; border-radius: 22px; }
.about h2 { margin-top: 0; }
.about p { color: var(--muted); }
.about .btn { margin-top: 12px; }

.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.cta-band .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 72px; align-items: start; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #cbd5e1; }
.contact-form { background: #fff; color: var(--slate); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); }
.contact-form h3 { margin-bottom: 4px; }
.contact-form > p { color: var(--muted); font-size: .92rem; }

/* campos de formulário */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select, .search-form input, .sort select {
  width: 100%; font: inherit; color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus, .search-form input:focus, .sort select:focus {
  outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(194, 39, 45, .12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 5. PÁGINAS INTERNAS ------------------------------------------------------ */
.page-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.page-hero--img { background: var(--navy) url("../img/banner-horizontal-menor.jpg") center / cover; }
.page-hero--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15, 23, 42, .93), rgba(15, 23, 42, .6)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #cbd5e1; margin: 12px 0 0; max-width: 620px; font-size: 1.1rem; }
.breadcrumb { font-size: .88rem; color: #94a3b8; margin-bottom: 12px; }
.breadcrumb a { color: #cbd5e1; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 8px; opacity: .6; }
.breadcrumb--light { color: var(--muted); }
.breadcrumb--light a { color: var(--muted); }
.breadcrumb--light a:hover { color: var(--red); }

.prose { max-width: 860px; margin: 0 auto; padding: 56px 0 80px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--slate); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gallery-2 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.units-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.unit-detail { display: flex; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-items: center; }
.unit-detail img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; flex: none; }
.unit-detail h3 { margin: 0 0 4px; }
.unit-detail p { margin: 0 0 8px; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* 6. LOJA E PRODUTOS ------------------------------------------------------- */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; padding-block: 48px 84px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 28px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.widget h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin-bottom: 16px; }
.search-form { display: flex; gap: 8px; }
.search-form input { padding: 11px 14px; }
.cat-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cat-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--slate); font-weight: 500; font-size: .95rem; }
.cat-list a:hover, .cat-list a.is-active { background: var(--red-soft); color: var(--red); }
.cat-list img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.cat-list em { margin-left: auto; font-style: normal; font-size: .78rem; background: #f1f5f9; color: var(--muted); padding: 2px 9px; border-radius: 999px; }
.badge-seal { display: block; max-width: 200px; margin: 0 auto; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.result-count { color: var(--muted); font-size: .95rem; margin: 0; }
.sort { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.sort select { width: auto; padding: 9px 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.product-card .thumb { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; padding: 14px; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 20px; border-top: 1px solid #f1f5f9; }
.product-card .cat { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product-card h3 { font-size: 1rem; line-height: 1.4; margin: 6px 0 16px; font-weight: 600; }
.product-card .body .btn { margin-top: auto; }
.product-card h3 a { color: var(--navy); }
.product-card h3 a:hover { color: var(--red); }
.tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.tag--out { background: var(--navy); color: #fff; }
.product-card.is-out .thumb img { opacity: .45; filter: grayscale(.6); }
.empty { text-align: center; padding: 64px 20px; background: var(--bg); border-radius: var(--radius); color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination button { min-width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--slate); font: 600 .95rem "Roboto", sans-serif; cursor: pointer; transition: .15s; }
.pagination button:hover { border-color: var(--red); color: var(--red); }
.pagination button.is-current { background: var(--red); border-color: var(--red); color: #fff; }

/* página de produto */
.product-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding: 40px 0 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gallery-thumbs button { width: 84px; height: 84px; padding: 6px; background: #fff; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: .15s; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs button:hover { border-color: #cbd5e1; }
.gallery-thumbs button.is-active { border-color: var(--red); }
.summary .cat-link { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.summary h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 8px 0 18px; }
.quote-note { display: flex; gap: 10px; align-items: flex-start; background: var(--red-soft); color: var(--red-dark); border-radius: 12px; padding: 12px 16px; font-size: .92rem; line-height: 1.5; margin: 0 0 18px; }
.quote-note .icon { margin-top: 2px; }
.summary .short { color: var(--muted); margin: 14px 0 24px; }
.summary .short p { margin: 0; }
.buy-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 200px; }
.qty { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 48px; border: 0; background: none; font-size: 1.2rem; color: var(--slate); cursor: pointer; }
.qty button:hover { background: #f1f5f9; color: var(--red); }
.qty input { width: 46px; height: 48px; border: 0; text-align: center; font: 600 1rem "Roboto", sans-serif; color: var(--navy); background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.perks { list-style: none; display: grid; gap: 10px; margin-top: 22px; font-size: .92rem; }
.perks li { display: flex; gap: 10px; align-items: center; color: var(--slate); }
.perks .icon { color: var(--green); }
.note-out { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 12px 16px; font-size: .92rem; margin: 0; }
.tabs { border-top: 1px solid var(--line); padding-top: 8px; }
.tab-list { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.tab-list button { background: none; border: 0; padding: 14px 20px; font: 600 .95rem "Roboto", sans-serif; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab-list button:hover { color: var(--navy); }
.tab-list button.is-active { color: var(--red); border-color: var(--red); }
.tab-panel { padding: 28px 0 56px; max-width: 900px; }
.tab-panel[hidden] { display: none; }
.tab-panel p { margin-bottom: .9em; }
.spec { border-collapse: collapse; width: 100%; max-width: 520px; }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec th { width: 40%; color: var(--navy); background: var(--bg); }
.related h2 { margin-bottom: 28px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.related { padding: 0 0 84px; }

/* 7. ORÇAMENTO ------------------------------------------------------------- */
.quote { padding-block: 48px 84px; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.quote-grid[hidden] { display: none; }
.quote-items { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quote-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; }
.quote-item + .quote-item { border-top: 1px solid var(--line); }
.quote-item img { width: 88px; height: 88px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.quote-item h3 { font-size: 1rem; line-height: 1.4; margin: 0 0 4px; }
.quote-item h3 a { color: var(--navy); }
.quote-item .unit { font-size: .9rem; color: var(--muted); }
.quote-item .controls { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.quote-item .qty button { height: 40px; width: 38px; }
.quote-item .qty input { height: 40px; width: 40px; }
.remove { background: none; border: 0; color: var(--muted); font-size: .85rem; cursor: pointer; text-decoration: underline; padding: 0; }
.remove:hover { color: var(--red); }
.quote-side { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.quote-side h2 { font-size: 1.3rem; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 18px; margin-bottom: 18px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.total-row strong { font-size: 1.6rem; color: var(--navy); }
.hint { font-size: .82rem; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.unit-pick { display: grid; gap: 10px; margin-bottom: 16px; }
.unit-pick label { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: .92rem; line-height: 1.35; }
.unit-pick input { accent-color: var(--red); width: 18px; height: 18px; }
.unit-pick label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.unit-pick small { display: block; color: var(--muted); }
.quote-empty { text-align: center; padding: 72px 20px; background: var(--bg); border-radius: var(--radius); }
.quote-empty[hidden] { display: none; }
.quote-empty .icon { width: 56px; height: 56px; color: #cbd5e1; margin-bottom: 12px; }

/* WhatsApp flutuante e aviso */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 25px -6px rgba(37, 211, 102, .7); transition: transform .2s;
}
.whats-float:hover { transform: scale(1.08); color: #fff; }
.whats-float .icon { width: 32px; height: 32px; }
.whats-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s ease-out infinite; }
.back-to-top {
  position: fixed; right: 29px; bottom: 96px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s, color .2s;
}
.back-to-top[hidden] { display: none; }
.back-to-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--red); border-color: var(--red); color: #fff; }
.back-to-top .icon { width: 22px; height: 22px; stroke-width: 2.5; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center;
  transition: .3s; max-width: calc(100vw - 32px); font-size: .95rem;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast a { color: #ff9ea2; font-weight: 700; white-space: nowrap; }

/* 8. RODAPÉ ---------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #cbd5e1; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-block: 72px 56px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; letter-spacing: 0; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 52px; width: auto; background: #fff; border-radius: 12px; padding: 6px 12px; margin-bottom: 20px; }
.footer-brand p { color: #94a3b8; font-size: .9rem; }
.footer-brand .legal { color: #cbd5e1; }
.footer-brand .legal strong { color: #fff; }
.footer-list { list-style: none; display: grid; gap: 10px; }
.footer-contact { list-style: none; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.footer-contact .icon { margin-top: 3px; color: #ff6b70; }
.footer-contact b { color: #fff; display: block; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; text-align: center; font-size: .88rem; color: #94a3b8; }
.footer-bottom a { color: #ff9ea2; }

/* 9. RESPONSIVO ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-side { position: static; }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .logo img { height: 42px; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .header-actions .social { display: none; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 12px 20px 20px; display: none; flex-direction: column; align-items: stretch; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a.nav-link, .main-nav button.nav-link { width: 100%; padding: 14px 8px; border-radius: 10px; justify-content: space-between; font-size: 1rem; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; display: none; }
  .sub-menu::before { display: none; }
  .has-sub.is-open .sub-menu { display: flex; }
  .has-sub:hover .sub-menu { display: none; }
  .has-sub.is-open:hover .sub-menu { display: flex; }
  .has-sub.is-open .chev { transform: rotate(180deg); }
  .nav-social { display: flex !important; gap: 8px; padding-top: 12px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 64px 120px; gap: 40px; }
  .hero-units { max-width: 520px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about, .cta-band .inner, .product-top { grid-template-columns: 1fr; gap: 40px; }
  .about-media { margin-bottom: 24px; }
  .shop { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; }
  .gallery { position: static; }
  .section { padding: 64px 0; }
  .units-grid, .gallery-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .product-grid, .product-grid--4, .cat-grid, .service-grid, .hero-units, .units-grid, .gallery-2 { grid-template-columns: 1fr; gap: 20px; }
  .hero-units { max-width: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 56px 40px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote-item { grid-template-columns: 72px 1fr; }
  .quote-item img { width: 72px; height: 72px; }
  .quote-item .controls { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .quote-count { display: none; }
  .quote-count:not([data-n="0"]) { display: inline-grid; }
  .header-actions .btn { padding: 10px 14px; font-size: .82rem; }
  .about-media img + img { right: 8px; }
  .unit-detail { flex-direction: column; align-items: flex-start; }
  .tab-list button { padding: 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
