/* Impact Bike v5 — folha de estilo própria (sem framework), jQuery + CSS conforme requisito do cliente.
   Paleta e tipografia seguem o layout de referência (impactbike_v4): preto / vermelho / branco,
   Rajdhani para títulos e Inter para texto corrido. */

:root {
  --ink: #0b0b0c;
  --ink-soft: #1a1a1d;
  --paper: #ffffff;
  --paper-soft: #f7f7f8;
  --line: #e4e4e7;
  --muted: #6b6b70;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-soft: #fde8e8;
  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0;
}

p { margin: 0 0 .8em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-accent { color: var(--red); }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid rgba(220, 38, 38, .2);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; color: #fff; }
.brand-logo { display: block; height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-weight: 500; font-size: 15px; color: #d4d4d8; transition: color .15s ease; }
.main-nav a:hover { color: #fff; }

/* padding vertical (não só embaixo) estende a área "hoverável" do item até encostar no dropdown (sem
   isso, o vão vazio entre o link e a caixa suspensa quebra o :hover no meio do caminho e o menu fecha
   antes do mouse chegar); a margem negativa em espelho cancela esse espaço extra pros vizinhos do flex.
   Precisa ser simétrico (topo E embaixo, não só embaixo) — com align-items:center no .main-nav, um
   padding só embaixo deixava o texto "Produtos" visivelmente mais baixo que os links vizinhos. */
.nav-item-com-dropdown { position: relative; padding: 14px 0; margin: -14px 0; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  padding: 8px;
  z-index: 60;
}
.nav-item-com-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 9px 14px; border-radius: 6px; color: var(--ink); font-size: 14px; font-weight: 500; }
.nav-dropdown a:hover { background: var(--paper-soft); color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #fff;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.mobile-menu-toggle { display: none; }
.logout-form { display: contents; }

.header-search {
  border-top: 1px solid rgba(220, 38, 38, .2);
  background: var(--ink-soft);
}
.header-search .container { padding-top: 14px; padding-bottom: 14px; }
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form input {
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 15px;
}
.search-form input::placeholder { color: #a1a1aa; }
.search-form input:focus { outline: none; border-color: var(--red); background: rgba(255, 255, 255, .12); }
.search-form button {
  padding: 0 18px;
  border-radius: var(--radius);
  border: none;
  background: var(--red);
  color: #fff;
}
.search-form button:hover { background: var(--red-dark); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(220, 38, 38, .2);
}
/* Sem isso, o atributo HTML "hidden" perde para a especificidade igual de ".mobile-nav { display: flex }"
   e o menu mobile fica sempre visível, inclusive em telas largas. */
.mobile-nav[hidden] { display: none; }
.mobile-nav a { color: #d4d4d8; font-weight: 500; }

@media (max-width: 860px) {
  .main-nav, .header-actions .icon-btn:not(.mobile-menu-toggle):not(.cart-btn) { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(480px circle at 15% 20%, rgba(220, 38, 38, .28), transparent 60%),
    radial-gradient(520px circle at 85% 80%, rgba(185, 28, 28, .22), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 90px 20px; }
.hero-copy { max-width: 640px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, .15);
  border: 1px solid rgba(220, 38, 38, .35);
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero-gradient {
  display: block;
  background: linear-gradient(135deg, #ef4444, var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { color: #a1a1aa; font-size: 18px; max-width: 52ch; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Features strip ===== */
.features { padding: 56px 0; background: var(--paper-soft); border-bottom: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature h3 { font-size: 17px; margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 760px) { .features-grid { grid-template-columns: 1fr; } }

/* ===== Seções gerais ===== */
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-heading h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section-heading p { color: var(--muted); font-size: 17px; }
.destaques, .produtos-listagem { padding: 76px 0; }
.section-cta { text-align: center; margin-top: 44px; }

/* ===== Home: Categorias / Marcas / Notícias ===== */
.home-secao { padding: 0 0 56px; }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile-card {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-soft);
  padding: 14px;
}
.tile-card img { max-width: 100%; max-height: 100%; object-fit: contain; }
a.tile-card:hover { border-color: var(--red); }
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }

.noticias-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.noticia-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); }
.noticia-card:hover { border-color: var(--red); }
.noticia-card-media { aspect-ratio: 16 / 10; background: var(--paper-soft); }
.noticia-card-media img { width: 100%; height: 100%; object-fit: cover; }
.noticia-card-body { padding: 14px 16px 18px; }
.noticia-card-body h3 { font-size: 15px; margin: 6px 0 8px; line-height: 1.35; }
.noticia-card-body p { font-size: 13px; color: var(--muted); margin: 0; }
.noticia-data { display: block; font-size: 12px; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 1040px) { .noticias-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .noticias-grid { grid-template-columns: 1fr; } }

.noticias-page { padding: 56px 0; }
.noticias-mais-heading { text-align: left; margin: 56px 0 24px; }
.noticias-lista-simples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.noticias-lista-simples li { padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.noticias-lista-simples a { color: var(--ink); font-weight: 500; }
.noticias-lista-simples a:hover { color: var(--red); }
.noticias-lista-simples .noticia-data { display: inline; margin-right: 10px; }

.noticia-detalhe { padding: 20px 0 60px; }
.noticia-titulo { font-size: clamp(26px, 3.4vw, 36px); margin: 6px 0 10px; }
.noticia-video { position: relative; padding-top: 56.25%; margin: 20px 0; border-radius: 10px; overflow: hidden; }
.noticia-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.noticia-imagens { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.noticia-imagens img { max-width: 220px; border-radius: 8px; }
.noticia-texto { margin-top: 20px; line-height: 1.7; }
.noticia-voltar { margin-top: 40px; }

/* ===== Páginas institucionais (Garantia / Loja) ===== */
.pagina-institucional { padding: 20px 0 60px; }
.pagina-texto { max-width: 820px; margin: 0 auto; line-height: 1.7; }
.pagina-texto h3 { font-size: 19px; margin: 32px 0 10px; }
.pagina-texto h3:first-child { margin-top: 0; }
.pagina-texto p { color: var(--ink); margin: 0 0 10px; }
.pagina-texto a { color: var(--red); }

.page-header { background: var(--ink); color: #fff; padding: 56px 0; }
.page-header h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 12px; }
.page-header p { color: #a1a1aa; font-size: 18px; margin: 0; }
/* Só o breadcrumb, sem título/subtítulo (ex.: listagem de produtos) — a faixa não precisa da altura toda. */
.page-header-slim { padding: 18px 0; }
.page-header-slim .breadcrumb-inverso { margin: 0; }
.page-header-slim h1 { font-size: 20px; margin: 0 0 4px; }
.page-header-slim p { font-size: 14px; }

.listagem-meta { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* ===== Listagem só-marca (clique num ladrilho de marca): contador + ordenação + logo, igual ao site legado ===== */
.listagem-meta-linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.listagem-ordenar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.listagem-ordenar select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink); }
.marca-logo-box { margin: 22px 0 28px; }
.marca-logo-box img { max-height: 90px; max-width: 220px; object-fit: contain; }

.listagem-paginacao { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 32px; }
.listagem-paginacao .pagina-link { padding: 7px 13px; border-radius: 8px; font-size: 14px; color: var(--ink); background: var(--paper-soft); }
.listagem-paginacao .pagina-link:hover { background: var(--line); }
.listagem-paginacao .pagina-link.is-active { background: var(--red); color: #fff; font-weight: 600; }
.listagem-paginacao .pagina-reticencias { padding: 7px 4px; color: var(--muted); }
.pagina-info { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ===== Filtros da listagem de produtos ===== */
.produtos-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
/* Navegação só por marca (clique num ladrilho de marca) não tem menu lateral, igual ao site legado. */
.produtos-layout-sem-filtros { grid-template-columns: 1fr; }
.produtos-filtros {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.filtro-grupo h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 12px;
}
.filtro-grupo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filtro-grupo li a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.filtro-grupo li a:hover { background: var(--paper-soft); }
.filtro-grupo li.is-active a { background: var(--red); color: #fff; font-weight: 600; }
.filtro-limpar { align-self: flex-start; font-size: 13px; color: var(--red); font-weight: 600; }
.filtro-limpar:hover { color: var(--red-dark); text-decoration: underline; }
@media (max-width: 860px) {
  .produtos-layout { grid-template-columns: 1fr; }
  .produtos-filtros { position: static; flex-direction: row; flex-wrap: wrap; gap: 32px; }
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  color: var(--muted);
  background: var(--paper-soft);
}
.empty-state code {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
}

/* ===== Grid de produtos / card ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1040px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .22); }
.product-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--paper-soft); overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.badge-new { top: 12px; left: 12px; background: var(--red); color: #fff; }
.badge-discount { bottom: 12px; left: 12px; background: var(--ink); color: #fff; border-radius: 6px; }
.badge-esgotado { top: 12px; left: 12px; background: var(--ink-soft); color: #fff; }
.product-card-body { padding: 16px; }
.product-card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.product-card-price { margin-bottom: 12px; }
.price-old { display: block; font-size: 13px; color: #a1a1aa; text-decoration: line-through; }
.price-now { display: block; font-size: 21px; font-weight: 700; }
.price-installments { display: block; font-size: 12px; color: var(--muted); }
.btn-add-cart {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease;
}
.btn-add-cart:hover { background: var(--red-dark); }
.btn-esgotado {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background-color .15s ease;
}
.btn-esgotado:hover { background: var(--ink-soft); color: #fff; }

/* ===== Newsletter / CTA ===== */
.newsletter { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; padding: 76px 0; }
.newsletter-inner { text-align: center; }
.newsletter-inner h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.newsletter-inner p { opacity: .92; font-size: 17px; margin-bottom: 30px; }
.newsletter-form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: none;
  font-size: 15px;
}
.newsletter-feedback { margin-top: 14px; font-size: 14px; font-weight: 600; color: #fff; }
.newsletter-feedback.erro { color: #2a0a0a; background: #fff; display: inline-block; padding: 6px 14px; border-radius: 999px; }

/* ===== Genéricos: alertas, formulários, link-como-texto ===== */
.form-alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
.form-alert-erro { background: var(--red-soft); color: var(--red-dark); }
.form-alert-sucesso { background: #dcfce7; color: #15803d; }
.form-alert-dev { background: #fef9c3; color: #854d0e; }

.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-field { flex: 1; min-width: 160px; }
.form-field-sm { flex: 0 0 120px !important; min-width: 100px !important; }
/* Proporção 40%/60% pra pares de campo onde um precisa de mais espaço que o outro (ex.: Código x Produto
   em Admin Produtos) — com flex-basis em % (não px fixo), o valor digitado não fica cortado. */
.form-field-40 { flex: 0 0 40% !important; min-width: 140px !important; }
.form-field-60 { flex: 0 0 60% !important; min-width: 200px !important; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 15px;
  font-family: inherit;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--red); }
.form-erro { color: var(--red); font-size: 13px; }

.link-as-text {
  background: none;
  border: none;
  padding: 0;
  color: #d4d4d8;
  font-weight: 500;
  font-size: inherit;
  text-align: left;
}
.link-as-text:hover { color: var(--red); }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 24px 0; }
.breadcrumb a:hover { color: var(--red); }

/* Variante para uso sobre fundo escuro (ex.: .page-header) — mesmas regras, cores claras. */
.breadcrumb-inverso { color: #a1a1aa; margin: 0 0 18px; }
.breadcrumb-inverso a { color: #d4d4d8; }
.breadcrumb-inverso a:hover { color: #fff; }
.breadcrumb-inverso span:last-child { color: #fff; font-weight: 600; }

/* ===== Conta (login/cadastro/minha conta) ===== */
.conta-secao { padding: 56px 0 90px; }
.conta-container { max-width: 460px; margin: 0 auto; }
.conta-container-larga { max-width: 760px; }
.conta-form h3 { font-size: 16px; margin: 26px 0 14px; }
.conta-form h3:first-child { margin-top: 0; }
.conta-form-submit { width: 100%; margin-top: 8px; }
.conta-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; }
.conta-links a:hover { color: var(--red); }
.conta-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.conta-tabs a { padding: 10px 16px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.conta-tabs a.is-active { color: var(--ink); border-color: var(--red); }
.conta-card { background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }

/* ===== Detalhe de produto ===== */
.produto-detalhe { padding-bottom: 90px; }
.produto-detalhe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.produto-galeria-principal { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--paper-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.produto-galeria-principal img { width: 100%; height: 100%; object-fit: contain; }
.produto-galeria-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.produto-thumb { width: 66px; height: 66px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; }
.produto-thumb img { width: 100%; height: 100%; object-fit: cover; }
.produto-thumb.is-active { border-color: var(--red); }

.produto-marca { color: var(--red); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.produto-titulo { font-size: clamp(26px, 3.4vw, 36px); margin: 6px 0; }
.produto-codigo { color: var(--muted); font-size: 13px; }
.tag-esgotado { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 6px; background: var(--ink-soft); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.produto-preco { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.price-now-lg { font-size: 32px; font-weight: 700; }
/* Mesmo visual do .badge-discount do card de produto, mas sem "position: absolute" — aqui o badge fica
   inline ao lado do preço, não sobre uma imagem, então não deve flutuar solto no documento. */
.price-badge-discount { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: var(--ink); color: #fff; letter-spacing: .02em; }
.produto-resumo { color: var(--muted); margin-bottom: 22px; }

.produto-form-compra { border-top: 1px solid var(--line); padding-top: 22px; }
.variante-grupo { margin-bottom: 18px; }
.variante-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.variante-opcoes { display: flex; gap: 8px; flex-wrap: wrap; }
.variante-opcao {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 600;
  font-size: 14px;
}
.variante-opcao.is-selecionada { border-color: var(--ink); background: var(--ink); color: #fff; }
.variante-select {
  width: 100%;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.variante-select:disabled { opacity: .5; }
.produto-compra-linha { display: flex; gap: 12px; }
.qtde-input { width: 72px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 15px; }
.produto-comprar-btn { flex: 1; }
.produto-compra-feedback { display: block; margin-top: 10px; font-size: 14px; color: #15803d; }
.produto-compra-feedback.erro { color: var(--red); }
.produto-frete-gratis { color: #15803d; font-weight: 600; font-size: 14px; margin-top: 14px; }

.produto-whatsapp { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.produto-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: filter .15s ease;
}
.produto-whatsapp-btn:hover { filter: brightness(0.95); }
.produto-whatsapp-btn svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
.produto-whatsapp-btn small { display: block; font-weight: 400; opacity: .9; font-size: 12px; }

.whatsapp-flutuante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
  transition: transform .15s ease;
}
.whatsapp-flutuante:hover { transform: scale(1.08); }
.whatsapp-flutuante svg { width: 30px; height: 30px; fill: #fff; }

.produto-imagem-zoom { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-box {
  position: relative;
  display: inline-flex;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-box img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.lightbox-fechar {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.btn-wishlist {
  display: inline-flex;
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.btn-wishlist:hover { color: var(--red); }
.btn-remove-wishlist {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.btn-remove-wishlist:hover { background: var(--red-soft); color: var(--red-dark); border-color: var(--red-soft); }

.produto-abas { margin-top: 56px; }
.produto-abas-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.produto-aba-btn { padding: 12px 20px; background: none; border: none; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; }
.produto-aba-btn.is-active { color: var(--ink); border-color: var(--red); }
.produto-aba-conteudo { color: var(--muted); line-height: 1.7; max-width: 760px; }
.produto-specs { border-collapse: collapse; width: 100%; max-width: 560px; }
.produto-specs th, .produto-specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.produto-specs th { color: var(--muted); font-weight: 600; width: 200px; }
.produto-relacionados-heading { margin-top: 60px; }
@media (max-width: 860px) { .produto-detalhe-grid { grid-template-columns: 1fr; } }

/* ===== Carrinho / checkout ===== */
.carrinho-secao, .checkout-secao { padding: 46px 0 90px; }
.carrinho-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.carrinho-tabela { width: 100%; border-collapse: collapse; }
.carrinho-tabela th { text-align: left; font-size: 13px; color: var(--muted); padding: 0 12px 14px; border-bottom: 1px solid var(--line); }
.carrinho-tabela td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.carrinho-produto-cel { display: flex; align-items: center; gap: 14px; }
.carrinho-produto-cel img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--paper-soft); }
.carrinho-produto-cel > div { display: flex; flex-direction: column; gap: 4px; }
.carrinho-variante { font-size: 12px; color: var(--muted); }
.carrinho-indisponivel { font-size: 12px; color: var(--red); }
.carrinho-qtde-form input { width: 60px; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.carrinho-remover { background: none; border: none; color: var(--muted); font-size: 16px; }
.carrinho-remover:hover { color: var(--red); }

.carrinho-resumo { background: var(--paper-soft); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; }
.carrinho-resumo h3 { font-size: 16px; margin-bottom: 16px; }
.carrinho-resumo-linha { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.carrinho-resumo-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; padding-top: 14px; border-top: 1px solid var(--line); margin-bottom: 18px; }
.carrinho-finalizar { display: flex; width: 100%; margin-bottom: 12px; }
.carrinho-limpar { width: 100%; background: none; border: none; color: var(--muted); font-size: 13px; }
.carrinho-limpar:hover { color: var(--red); }

.checkout-resumo { max-height: fit-content; }
.checkout-resumo-item { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.checkout-total-final { border: none; padding-top: 0; margin: 22px 0; }
.pagamento-opcoes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pagamento-opcao { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 14px; }
.pagamento-opcao:has(input:checked) { border-color: var(--ink); background: var(--paper-soft); }
.checkout-concluido { padding: 60px 36px; }
.checkout-concluido-numero { font-size: 24px; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.checkout-concluido-acoes { display: flex; gap: 14px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

.pedido-status { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--paper-soft); font-size: 12px; font-weight: 600; }
.pedido-voltar { display: inline-block; color: #a1a1aa; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.pedido-voltar:hover { color: #fff; }
.pedido-forma-pagamento { font-size: 13px; color: var(--muted); margin: 14px 0 22px; }

@media (max-width: 900px) {
  .carrinho-layout, .checkout-layout { grid-template-columns: 1fr; }
  .carrinho-resumo { position: static; }
}

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #a1a1aa; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 56px 20px 40px;
}
.footer-desc { font-size: 14px; margin-top: 14px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 15px; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--red); }
.footer-pagamentos { max-width: 100%; height: auto; border-radius: 6px; }
.footer-endereco { font-size: 13px; line-height: 1.6; margin: 0 0 16px; }
.footer-whatsapp { display: flex; flex-direction: column; gap: 12px; }
.footer-whatsapp a { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.footer-whatsapp a:hover { color: var(--red); }
.footer-whatsapp svg { width: 22px; height: 22px; fill: #25d366; flex-shrink: 0; }
.footer-whatsapp small { color: #71717a; font-weight: 400; }
.footer-redes { display: flex; gap: 12px; }
.footer-redes a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.footer-redes a:hover { background: var(--red); }
.footer-redes svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
}
.footer-bottom .brand-logo { height: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Toast (aviso flutuante, ex.: "Adicionado ao carrinho!") ===== */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translateX(0); }
.toast-icon { flex-shrink: 0; display: flex; }
.toast-sucesso .toast-icon { color: #4ade80; }
.toast-erro .toast-icon { color: #f87171; }
@media (max-width: 480px) {
  .toast-container { left: 16px; right: 16px; top: 76px; }
  .toast { max-width: none; }
}

/* ===== Modal de confirmação (ex.: "Finalizar orçamento") ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.modal-box h3 { margin: 0 0 12px; font-size: 20px; }
.modal-box p { color: var(--muted); margin: 0 0 24px; line-height: 1.5; }
.modal-box-acoes { display: flex; gap: 12px; }
.modal-box-acoes .btn { flex: 1; }
