/* PromosBR: site público */

/* Três cores: branco, preto e azul. O tema escuro vale quando <html data-theme="dark">
   (definido pelo script no <head>: segue o sistema ou a escolha feita no botão). */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --text: #0a0a0a;
  --text-2: #3f3f46;
  --muted: #71717a;
  --border: #e4e4e7;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #eff6ff;
  --cta: #2563eb;
  --cta-hover: #1d4ed8;
  --cta-ink: #ffffff;
  --danger: #dc2626;
  --header: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.12);
  --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.06), 0 18px 36px -14px rgb(0 0 0 / 0.22);
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #000000;
  --surface: #0e0e10;
  --surface-2: #18181b;
  --text: #fafafa;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --border: #27272a;
  --brand: #3b82f6;
  --brand-strong: #60a5fa;
  --brand-soft: rgb(59 130 246 / 0.14);
  --cta: #2563eb;
  --cta-hover: #3b82f6;
  --cta-ink: #ffffff;
  --danger: #f87171;
  --header: #000000;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 8px 24px -12px rgb(0 0 0 / 0.8);
  --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.5), 0 18px 36px -14px rgb(0 0 0 / 0.9);
  color-scheme: dark;
}

/* Mostra só o ícone/texto do tema atual no botão de tema. */
:root[data-theme='dark'] .when-light,
:root:not([data-theme='dark']) .when-dark {
  display: none;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------------------------------------------------------- botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.65em 1.1em;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}

.btn-primary,
.btn-buy {
  background: var(--cta);
  border-color: var(--cta);
  color: var(--cta-ink);
}

.btn-primary:hover,
.btn-buy:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
}

.btn-buy {
  width: 100%;
  margin-top: auto;
  border-radius: var(--radius-sm);
}

.btn-xl {
  padding: 0.9em 1.4em;
  font-size: 1.05rem;
}

/* ---------------------------------------------------------- cabeçalho */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--header);
  color: var(--text);
}

@media (min-width: 641px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: block;
  flex: none;
  width: 38px;
  height: 38px;
}

.logo-text b {
  color: var(--brand);
  font-weight: 900;
}

.search {
  display: flex;
  flex: 1;
  max-width: 560px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}

.search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 0.7em 1.1em;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.search input::placeholder {
  color: var(--muted);
}

.search button {
  display: grid;
  place-items: center;
  padding: 0 1.1em;
  border: 0;
  background: var(--cta);
  color: var(--cta-ink);
  cursor: pointer;
}

.search button:hover {
  background: var(--cta-hover);
}

/* Botão de tema claro/escuro */
.theme-toggle {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.theme-toggle .icon {
  width: 20px;
  height: 20px;
}

.cat-nav {
  border-top: 1px solid var(--border);
  background: var(--header);
}

.cat-nav-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 650;
  white-space: nowrap;
}

.cat-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.cat-nav a.active {
  color: var(--text);
  border-bottom-color: var(--brand);
}

@media (max-width: 640px) {
  .header-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .theme-toggle {
    margin-left: auto;
  }

  /* As cinco categorias cabem lado a lado no celular, sem rolar. */
  .cat-nav-row {
    justify-content: space-between;
    gap: 0;
  }

  .cat-nav a {
    gap: 6px;
    padding: 10px 6px;
    font-size: 0.9rem;
  }
}

/* Em telas estreitas (a maioria dos celulares) os ícones saem para os cinco nomes caberem. */
@media (max-width: 480px) {
  .cat-nav a .icon {
    display: none;
  }
}

@media (max-width: 360px) {
  .cat-nav a {
    padding: 10px 2px;
    font-size: 0.85rem;
  }
}

.main {
  padding-top: 24px;
  padding-bottom: 56px;
}

/* ---------------------------------------------------------- início */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(900px 380px at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 65%),
    var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 60ch;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.hero-points .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--brand);
}

.hero-points b {
  display: block;
}

.hero-points span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
}

/* As categorias esticam para preencher cada linha (5 lado a lado no computador, 3 + 2 no tablet). */
.cat-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.cat-tiles > .cat-tile {
  flex: 1 1 200px;
  min-width: 0;
}

.cat-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cat-tile:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cat-tile-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.cat-tile-icon .icon {
  width: 26px;
  height: 26px;
}

.cat-tile-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.cat-tile-name {
  font-size: 1.1rem;
  font-weight: 800;
}

.cat-tile-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.cat-tile-arrow {
  color: var(--muted);
}

@media (max-width: 560px) {
  .cat-tiles > .cat-tile {
    flex-basis: 100%;
  }
}

.section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2,
.how h2 {
  font-size: 1.45rem;
  font-weight: 800;
}

.section-head p {
  margin-top: 2px;
  color: var(--muted);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.how {
  margin-top: 48px;
}

.how h2 {
  margin-bottom: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 900;
}

.step h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.step p {
  color: var(--text-2);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: 20px;
  background: linear-gradient(120deg, #1e3a8a, #2563eb);
  color: #fff;
}

.band h2 {
  font-size: 1.3rem;
}

.band p {
  margin-top: 4px;
  color: rgb(255 255 255 / 0.85);
}

/* ---------------------------------------------------------- listagem */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.crumbs a {
  color: var(--muted);
}

.crumbs-current {
  max-width: 50ch;
  overflow: hidden;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 18px;
}

.page-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.page-icon .icon {
  width: 30px;
  height: 30px;
}

.page-head h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 850;
}

.page-head p {
  max-width: 70ch;
  margin-top: 4px;
  color: var(--muted);
}

/* Tipos dentro da categoria (Áudio: Todos, Caixas de som, Headsets, Microfones). */
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}

.sub-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
}

.sub-nav a:hover {
  border-color: var(--brand);
  color: var(--text);
  text-decoration: none;
}

.sub-nav a.active {
  border-color: var(--cta);
  background: var(--cta);
  color: var(--cta-ink);
}

.sub-nav .icon {
  width: 18px;
  height: 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filters select,
.field-search {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.field-search {
  display: flex;
  flex: 1 1 240px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.field-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.btn-filter {
  height: 42px;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .filters select {
    flex: 1 1 140px;
    min-width: 0;
  }

  .btn-filter {
    margin-left: auto;
  }
}

.results-meta {
  margin: 4px 2px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card-body {
    padding: 10px !important;
  }

  .price-now {
    font-size: 1.15rem !important;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-media {
  display: block;
  aspect-ratio: 1;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #d4d4d8;
}

.noimg .icon {
  width: 56px;
  height: 56px;
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.15);
}

.badge .icon {
  width: 13px;
  height: 13px;
}

.badge-off {
  background: #2563eb;
}

.badge-drop {
  border-color: #0a0a0a;
  background: #fff;
  color: #0a0a0a;
}

.badge-low {
  border-color: #2563eb;
  background: #fff;
  color: #1d4ed8;
}

.badge-hot {
  background: #0a0a0a;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.store-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.store-name {
  color: var(--text-2);
  font-weight: 700;
}

.card-title {
  display: -webkit-box;
  min-height: calc(1.35em * 3);
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-title a {
  color: var(--text);
}

.price-old {
  color: var(--muted);
  font-size: 0.85rem;
}

.price-now {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.price-now span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
}

.price-alt {
  color: var(--muted);
  font-size: 0.82rem;
}

.price-lg .price-now {
  font-size: 2.1rem;
}

.price-lg .price-old {
  font-size: 1rem;
}

.price-lg .price-alt {
  font-size: 0.95rem;
}

/* Textos de defesa da oferta ("enquanto durarem os estoques", lote de cupons). */
.price-terms {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.card-extras .price-terms {
  flex-basis: 100%;
  margin-top: 0;
}

.card-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
}

.chip .icon {
  width: 14px;
  height: 14px;
}

.chip-coupon {
  border-color: color-mix(in srgb, var(--brand) 50%, transparent);
  background: var(--brand-soft);
  color: var(--brand-strong);
  text-align: left;
  cursor: pointer;
}

/* Código longo quebra a linha em vez de sair do card. */
.chip-coupon b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.chip-ship {
  border-style: solid;
  border-color: color-mix(in srgb, var(--text) 25%, transparent);
  background: transparent;
  color: var(--text-2);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}

.card-meta .icon {
  width: 13px;
  height: 13px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.pager-num,
.pager-step {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
}

.pager-num.current {
  border-color: var(--cta);
  background: var(--cta);
  color: var(--cta-ink);
}

.pager-gap {
  align-self: center;
  color: var(--muted);
}

.empty {
  margin-top: 24px;
  padding: 48px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.empty-icon .icon {
  width: 30px;
  height: 30px;
}

.empty h2 {
  font-size: 1.3rem;
}

.empty p {
  max-width: 56ch;
  margin: 8px auto 0;
  color: var(--muted);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* ---------------------------------------------------------- oferta */

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.offer-media {
  position: relative;
  aspect-ratio: 1;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.offer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-title {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
}

.offer-brand {
  color: var(--muted);
  font-size: 0.9rem;
}

.saving {
  color: var(--brand-strong);
  font-weight: 700;
}

.offer-note {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.offer-note .icon {
  margin-top: 2px;
}

.offer-desc {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.offer-desc h2 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.offer-desc p + p {
  margin-top: 8px;
}

@media (max-width: 860px) {
  .offer {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .offer-media {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}

.panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 800;
}

.panel-title .icon {
  color: var(--brand);
}

.chart {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid {
  stroke: var(--border);
  stroke-dasharray: 4 4;
}

.chart-label {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 12px;
}

.chart-area {
  fill: color-mix(in srgb, var(--brand) 14%, transparent);
}

.chart-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.chart-dot {
  fill: var(--surface);
  stroke: var(--brand);
  stroke-width: 2;
}

.chart-dot-last {
  fill: var(--brand);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.stats div {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.stats dt {
  color: var(--muted);
  font-size: 0.8rem;
}

.stats dd {
  margin: 2px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid;
  border-radius: var(--radius-sm);
}

.alert .icon {
  margin-top: 3px;
}

.alert-warn {
  border-color: color-mix(in srgb, var(--text) 25%, transparent);
  background: var(--surface-2);
}

.alert-ok {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
}

/* ---------------------------------------------------------- institucional */

.prose {
  max-width: 780px;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.prose h1 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 850;
}

.prose h2 {
  margin: 28px 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.prose p,
.prose li {
  color: var(--text-2);
}

.prose p + p {
  margin-top: 10px;
}

.prose ul {
  margin: 8px 0;
  padding-left: 20px;
}

.prose li + li {
  margin-top: 6px;
}

.lead {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 1.1rem;
}

.prose .checks {
  padding-left: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 10px;
}

.checks .icon {
  margin-top: 3px;
  color: var(--brand);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.contact > section {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 850;
}

.contact > section > .alert {
  margin-top: 20px;
}

.contact-aside .panel:first-child {
  margin-top: 0;
}

.contact-aside .panel p + p {
  margin-top: 6px;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 650;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field [aria-invalid='true'] {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
}

.form .btn {
  justify-self: start;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------- rodapé */

.site-footer {
  margin-top: 24px;
  padding: 40px 0 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 28px;
}

.site-footer h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.site-footer ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text-2);
}

.site-footer a:hover {
  color: var(--brand-strong);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.site-footer .social,
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.social-lg {
  margin: 0;
}

.social-lg a {
  padding: 10px 16px;
}

.band .social a {
  border-color: rgb(255 255 255 / 0.3);
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------- outras opções (vendedores do mesmo produto) */

.card-options {
  margin: 2px 0 0;
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.options {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.option-best {
  border-color: var(--brand);
}

.option-seller {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.option-seller b {
  overflow-wrap: anywhere;
}

.option-seller .badge {
  position: static;
}

.option-price {
  display: grid;
  justify-items: end;
  font-variant-numeric: tabular-nums;
}

.option-price b {
  font-size: 1.1rem;
}

.option-price s,
.option-price small {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 520px) {
  .option {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .option .btn {
    grid-column: 1 / -1;
  }
}
