/* ==========================================================
   DESIGN TOKENS
   ========================================================== */
:root {
  --color-primary: #E1261C;
  --color-primary-dark: #B01712;
  --color-ink: #1B1F23;
  --color-ink-soft: #4A5058;
  --color-bg: #F7F8FA;
  --color-surface: #FFFFFF;
  --color-border: #E6E9ED;
  --color-success: #1E8E3E;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(20, 20, 30, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 20, 30, 0.10);

  --container: 1200px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.25; }

/* ==========================================================
   TOPBAR
   ========================================================== */
.topbar {
  background: var(--color-ink);
  color: #cfd3d8;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  overflow: hidden;
  white-space: nowrap;
}
.topbar-sep { opacity: .4; }
.topbar-wa {
  margin-left: auto;
  color: #8CE99A;
  font-weight: 600;
  display: none;
}
@media (min-width: 640px) {
  .topbar-wa { display: inline; }
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}
.brand img { height: 40px; }

.search {
  display: none;
  flex: 1;
  max-width: 520px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-bg);
}
.search input {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  flex: 1;
  font-size: 14px;
  outline: none;
}
.search button {
  border: 0;
  background: transparent;
  padding: 0 16px;
  cursor: pointer;
  font-size: 16px;
}
@media (min-width: 860px) {
  .search { display: flex; }
}

.btn-orcamento {
  margin-left: auto;
  background: var(--color-success);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  display: none;
}
@media (min-width: 640px) {
  .btn-orcamento { display: inline-block; }
}

.menu-toggle {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}
@media (min-width: 640px) {
  .menu-toggle { margin-left: 0; }
}

.main-nav {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  display: none;
}
.main-nav.open { display: block; }
.nav-inner {
  display: flex;
  flex-direction: column;
  padding: 8px 18px;
}
.nav-inner a {
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink-soft);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner a:hover { color: var(--color-primary); }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 22px;
    padding: 10px 18px;
  }
  .nav-inner a { padding: 4px 0; border-bottom: 0; }
  .menu-toggle { display: none; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  background: linear-gradient(135deg, var(--color-ink) 0%, #33191A 100%);
  color: #fff;
  padding: 40px 0;
}
.hero-inner {
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}
.hero-inner.sem-foto { grid-template-columns: minmax(0, 1fr) !important; text-align: center; }
.hero-inner.sem-foto p { margin-left: auto; margin-right: auto; max-width: 620px; }
.hero-inner.sem-foto .hero-actions { justify-content: center; }
.hero h1 {
  font-size: 28px;
  margin-bottom: 14px;
}
@media (min-width: 860px) {
  .hero h1 { font-size: 38px; }
}
.hero p {
  color: #d7dadd;
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 22px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline:hover { border-color: #fff; }
.btn-dark { background: var(--color-ink); color: #fff; }

.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-width: 0;
}
.hero-photo img { width: 100%; height: auto; }
.hero-photo.fixa img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.produto-descricao p { margin: 0 0 10px; }
.produto-descricao ul, .produto-descricao ol { padding-left: 22px; margin: 0 0 10px; }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.section-head h2 { font-size: 22px; }
.section-head .ver-tudo {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }

.cat-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink-soft);
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}
.cat-tile .cat-icon { font-size: 26px; display: block; margin-bottom: 8px; }

/* Product grid */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }

.prod-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.prod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.prod-thumb {
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-bottom: 1px solid var(--color-border);
}
.prod-thumb img { max-height: 100%; object-fit: contain; }

.prod-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-fab { font-size: 11px; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: .04em; }
.prod-nome { font-size: 14px; font-weight: 700; color: var(--color-ink); min-height: 36px; }
.prod-preco { font-size: 15px; font-weight: 800; color: var(--color-success); }
.prod-consulte { font-size: 13px; font-weight: 700; color: var(--color-ink-soft); }
.prod-cta {
  margin-top: auto;
  background: var(--color-ink);
  color: #fff;
  text-align: center;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
}
.prod-cta:hover { background: var(--color-primary); }

/* Brand strip */
.brand-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 26px 0;
}
.brand-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
}
@media (min-width: 640px) { .brand-strip-grid { grid-template-columns: repeat(6, 1fr); } }
.brand-strip img { max-height: 34px; margin: 0 auto; filter: grayscale(1); opacity: .6; transition: .15s; }
.brand-strip img:hover { filter: none; opacity: 1; }

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 760px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}
.trust-item .ic { font-size: 26px; margin-bottom: 8px; }
.trust-item .tt { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.trust-item .ds { font-size: 12px; color: var(--color-ink-soft); }

/* ==========================================================
   PAGE HEADER (produtos / produto / contato)
   ========================================================== */
.page-head {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}
.breadcrumb { font-size: 12px; color: var(--color-ink-soft); margin-bottom: 8px; }
.breadcrumb a { color: var(--color-ink-soft); }
.breadcrumb a:hover { color: var(--color-primary); }

/* Filters + listing layout */
.listing {
  display: grid;
  gap: 24px;
  padding: 28px 0 56px;
}
@media (min-width: 900px) {
  .listing { grid-template-columns: 240px 1fr; }
}

.filters {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  align-self: start;
}
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-ink-soft); margin-bottom: 10px;}
.filters ul { list-style: none; margin: 0 0 18px; padding: 0; }
.filters li { margin-bottom: 4px; }
.filters a {
  display: block;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-ink-soft);
}
.filters a:hover, .filters a.active { background: var(--color-bg); color: var(--color-primary); font-weight: 700; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-ink-soft);
}

/* ==========================================================
   PRODUCT DETAIL
   ========================================================== */
.produto-detalhe {
  display: grid;
  gap: 28px;
  padding: 30px 0 56px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) {
  .produto-detalhe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.produto-galeria-principal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.produto-galeria-principal img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 380px;
  min-width: 0;
}

.produto-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.produto-thumbs img {
  width: 60px; height: 60px; object-fit: contain;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: #fff; padding: 4px; cursor: pointer;
}

.produto-info .prod-fab { font-size: 13px; }
.produto-info h1 { font-size: 24px; margin: 6px 0 14px; }
.produto-info .preco-bloco { margin: 18px 0; }
.produto-info .preco-valor { font-size: 26px; font-weight: 800; color: var(--color-success); }
.produto-info .preco-consulte { font-size: 15px; font-weight: 700; color: var(--color-ink-soft); }

.specs { margin: 18px 0; border-top: 1px solid var(--color-border); padding-top: 14px; }
.specs dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 14px; }
.specs dt { color: var(--color-ink-soft); }
.specs dd { margin: 0; font-weight: 600; }

.produto-descricao { min-width: 0; overflow-x: auto; padding: 0 2px 4px; }
.produto-info { padding: 0 4px; }
@media (min-width: 640px) {
  .produto-info { padding: 0; }
}
.produto-descricao h2, .produto-descricao h3 { font-size: 17px; margin-top: 18px; word-break: break-word; }
.produto-descricao p { font-size: 14px; color: var(--color-ink-soft); line-height: 1.6; word-break: break-word; }
.produto-descricao table.technical_data {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
  margin: 10px 0 18px;
}
.produto-descricao table.technical_data td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  word-break: break-word;
}
.produto-descricao table.technical_data tr.odd td,
.produto-descricao table.technical_data tr:nth-child(odd) td {
  background: var(--color-bg);
}
.produto-descricao table.technical_data td.col1 { color: var(--color-ink-soft); width: 55%; }
.produto-descricao table.technical_data td.col2 { font-weight: 700; }

.cta-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 18px;
}
.cta-box .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

/* ==========================================================
   FORM (contato)
   ========================================================== */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) {
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--color-ink-soft); }
.field input, .field select, .field textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--color-bg);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  background: #fff;
}
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #E6F4EA; color: #1E8E3E; border: 1px solid #B7E1C4; }
.alert-error { background: #FDECEA; color: #C5221F; border: 1px solid #F6C4C1; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--color-ink);
  color: #c7cbd1;
  padding: 44px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  margin-bottom: 26px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}
.footer-logo { height: 32px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.site-footer p { font-size: 13px; margin: 0 0 8px; }
.site-footer a:hover { color: #fff; }
.mapa-footer iframe { width: 100%; height: 130px; border-radius: var(--radius-sm); border: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.footer-demo a { color: #8CE99A; font-weight: 700; }
.footer-credito a { color: #fff; font-weight: 700; }

/* ==========================================================
   WHATSAPP FLOAT BUTTON
   ========================================================== */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 60;
}

/* ==========================================================
   SLIDER DA PAGINA INICIAL (tamanhos fixos: 1600x600 / 800x600)
   ========================================================== */
.slider {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  background: var(--color-ink);
  overflow: hidden;
}
@media (min-width: 700px) {
  .slider { aspect-ratio: 8 / 3; }
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.slide.active { opacity: 1; visibility: visible; }
.slide a, .slide picture, .slide img { display: block; width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.slide-titulo {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 56px 22px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  pointer-events: none;
}
@media (min-width: 700px) { .slide-titulo { font-size: 26px; padding-bottom: 34px; } }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: var(--color-ink);
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
}
.slider-btn:hover { background: #fff; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.slider-dots button {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
}
.slider-dots button.active { background: var(--color-primary); }

/* ==========================================================
   CARRINHO DE ORCAMENTO
   ========================================================== */
.orc-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--color-border); border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; background: #fff; }
.orc-link [data-orc-count] { display: none; background: var(--color-primary); color: #fff; border-radius: 999px; min-width: 20px; padding: 0 6px; text-align: center; font-size: 12px; line-height: 20px; }
.header-inner .orc-link { margin-left: auto; }
@media (min-width: 640px) { .header-inner .orc-link { margin-left: 0; } }
.prod-add { display: block; margin-top: 8px; padding: 8px 10px; text-align: center; border: 2px solid var(--color-primary); color: var(--color-primary); border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; }
.prod-add:hover { background: var(--color-primary); color: #fff; }
.orc-lista { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.orc-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
.orc-item img { width: 64px; height: 64px; object-fit: contain; }
.orc-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.orc-info small { color: var(--color-ink-soft); }
.orc-qtd { display: flex; align-items: center; }
.orc-qtd button { width: 34px; height: 34px; border: 1px solid var(--color-border); background: #fff; font-size: 18px; cursor: pointer; }
.orc-qtd button:first-child { border-radius: 8px 0 0 8px; }
.orc-qtd button:last-child { border-radius: 0 8px 8px 0; }
.orc-qtd input { width: 56px; height: 34px; text-align: center; border: 1px solid var(--color-border); border-left: 0; border-right: 0; font: inherit; -moz-appearance: textfield; }
.orc-rem { border: 0; background: transparent; color: var(--color-ink-soft); font-size: 18px; cursor: pointer; padding: 6px; }
.orc-mais { display: inline-block; color: var(--color-primary); font-weight: 700; font-size: 14px; }
.produto-qtd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.produto-qtd input { width: 80px; padding: 9px; border: 1px solid var(--color-border); border-radius: 8px; font: inherit; }
.orc-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--color-ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .3s; z-index: 200; box-shadow: var(--shadow-md); white-space: nowrap; }
.orc-toast.on { opacity: 1; transform: translate(-50%, 0); }
.orc-toast a { color: #8CE99A; font-weight: 700; margin-left: 8px; }
