/* =========================================================
   Bibi Electric — estilos
   Cores baseadas no azul do logo (#0755e9)
   ========================================================= */

:root {
  --brand: #0755e9;        /* azul do logo */
  --brand-dark: #0444bf;   /* hover */
  --brand-50: #eef3fe;     /* fundo claro dos espaços de foto */
  --brand-100: #dbe6fd;
  --navy: #06163d;         /* seções escuras */
  --navy-2: #0a2366;

  --ink: #0b1220;          /* títulos */
  --text: #2a3243;         /* texto */
  --muted: #5a6477;        /* texto secundário */
  --line: #e2e7f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;

  --wa: #25d366;
  --wa-dark: #1ebe5b;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(7, 30, 90, .08);
  --shadow-lg: 0 18px 44px rgba(7, 30, 90, .14);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.text-brand { color: var(--brand); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(7, 85, 233, .28); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

.btn--outline { background: #fff; color: var(--brand); border-color: var(--brand-100); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-dark); }

.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--brand-50); color: var(--navy); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

/* ---------- Rótulo (eyebrow) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Cabeçalho / menu ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(7, 30, 90, .07); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.header__logo { display: inline-flex; flex: none; }
/* altura fixa + largura automática = logo sem distorção */
.header__logo img { height: 62px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px;
  color: var(--text); font-weight: 500; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--brand); background: var(--brand-50); }
.nav__link.is-current { color: var(--brand); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle__bar { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Espaços para foto (placeholders) ---------- */
.media {
  position: relative; overflow: hidden;
  background: var(--brand-50);
  border-radius: var(--radius);
}
.media__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; /* mostra a foto inteira; troque para "cover" se preferir preencher */
  z-index: 1;
}
.media.is-empty .media__img { display: none; }
.media.has-photo .media__placeholder { display: none; } /* com foto, some o espaço reservado */
.media__placeholder {
  position: absolute; inset: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px; text-align: center;
  border: 2px dashed #b7cbf7; border-radius: calc(var(--radius) - 6px);
  color: #3a5aa8;
}
.media__icon { width: 44px; height: 44px; color: #7f9fe6; margin-bottom: 4px; }
.media__label { font-weight: 600; font-size: .9375rem; }
.media__hint { font-size: .75rem; color: #4d6296; font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* ---------- Destaque principal ---------- */
.hero {
  position: relative;
  padding: 64px 0 80px;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(7, 85, 233, .09), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.25rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.hero__lead { font-size: 1.125rem; color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero__info { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .9375rem; }
.hero__info li { display: inline-flex; align-items: center; gap: 8px; }
.hero__info .icon { color: var(--brand); }
.hero__info a { font-weight: 600; text-decoration: none; }
.hero__info a:hover { text-decoration: underline; }
.hero__media { aspect-ratio: 1 / 1; border-radius: 28px; box-shadow: var(--shadow); }
.hero__media .media__img { object-fit: cover; }

/* ---------- Seções ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: 40px; }
.section__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__title { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.015em; }
.section__lead { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; }

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 20px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-weight: 600; font-size: .9375rem; color: var(--text); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Cartões de produto ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.card[hidden] { display: none; }
.card__media { aspect-ratio: 4 / 3; border-radius: 0; background: white;}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.card__tag { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.card__desc { color: var(--muted); font-size: .9375rem; margin-bottom: 20px; }
.card__footer {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card__price { font-weight: 700; color: var(--ink); }
.products__empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* Texto provisório: destaque discreto para lembrar de editar */
.placeholder-text { font-style: italic; }

/* ---------- Vantagens ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
}
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 14px; background: var(--brand-50); color: var(--brand);
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 6px; }
.feature__text { color: var(--muted); font-size: .9375rem; }
.feature__text a { font-weight: 600; }

.subhead { font-size: 1.375rem; font-weight: 700; margin-bottom: 20px; }
.checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.checklist__item {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 14px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  font-weight: 600; color: var(--ink);
}
.checklist__item .icon { color: var(--brand); }

/* ---------- Faixa de chamada (card "TEST RIDE") ----------
   COMO TROCAR A FOTO DE FUNDO
   1) Substitua o arquivo  assets/img/test-ride-bg.jpg  pela sua foto (mesmo nome).
      Tamanho recomendado: 2400 x 1000 px (proporção ~2,4:1), JPG, até ~400 KB. Deixe o assunto principal
      mais ao centro: em telas estreitas as laterais são cortadas (a foto sempre preenche o card, sem distorção).
   2) Para escolher qual parte da foto aparece, mude --banner-posicao (ex.: center 30%, left center, 70% 50%).
   3) Para deixar a foto mais clara ou mais escura sob o texto, mude --banner-escurecer (0 = sem escurecer, 1 = preto).
      O escurecimento mantém o texto e os botões legíveis sobre qualquer foto.
   Se o arquivo for removido ou não carregar, aparece o fundo azul padrão. */
.banner {
  --banner-foto: url('assets/img/test-ride-bg.jpg');
  --banner-posicao: center center;
  --banner-escurecer: .55;
  position: relative; overflow: hidden;
  padding: 96px 0;
  color: #fff; text-align: center;
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(6, 22, 61, .35), transparent 100%),
    linear-gradient(rgba(6, 22, 61, var(--banner-escurecer)), rgba(6, 22, 61, var(--banner-escurecer))),
    var(--banner-foto),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  background-position: center, center, var(--banner-posicao), center;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat;
}
.banner::after { /* linhas decorativas */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 28px);
}
.banner__inner { position: relative; z-index: 1; }
.banner__title { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); color: #fff; font-size: clamp(2.25rem, 6vw, 4.25rem); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 16px; }
.banner__text { text-shadow: 0 1px 12px rgba(0, 0, 0, .4); max-width: 34em; margin: 0 auto 32px; font-size: 1.125rem; color: #dfe7fb; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch; }
.contact__cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 24px;
  background: var(--navy); color: #fff; border-radius: var(--radius);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.contact-card:hover { color: #fff; background: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-card__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand); color: #fff;
}
.contact-card__icon--wa { background: var(--wa); color: #06331a; }
.contact-card__icon .icon { width: 26px; height: 26px; }
.contact-card__label { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a9bcef; }
.contact-card__value { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.35; margin: 2px 0 6px; }
.contact-card__cta { display: block; font-size: .9375rem; color: #c9d6f8; }

.contact__map {
  min-height: 360px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--brand-50);
}
.contact__map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- Rodapé ---------- */
.footer { background: #050b1c; color: #c3ccdf; padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
/* O logo é azul: fica sobre um fundo branco para manter contraste sem alterá-lo */
.footer__logo { display: inline-flex; padding: 10px 16px; background: #fff; border-radius: 14px; margin-bottom: 16px; }
.footer__logo img { height: 56px; width: auto; }
.footer__title { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.footer__col li { margin-bottom: 10px; }
.footer a { color: #e3e9f7; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 28px; font-size: .875rem; color: #9aa6c0; }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  transition: transform .2s, background-color .2s;
}
.wa-float:hover { color: #fff; background: var(--wa-dark); transform: scale(1.06); }
.wa-float .icon { width: 32px; height: 32px; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal { transition: opacity .6s ease, transform .3s ease, box-shadow .25s, border-color .25s; }
.card.reveal.is-visible:hover { transform: translateY(-4px); }

/* =========================================================
   Páginas internas: catálogo, produto e dúvidas
   ========================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.btn--block { width: 100%; }
.section__more { display: flex; justify-content: center; margin-top: 40px; }
.section--page { padding: 48px 0 88px; }
.section--featured { border-top: 0; }

/* Trilha de navegação */
.breadcrumb-bar { border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 14px 0; list-style: none; font-size: .9375rem; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: #a3abbb; }
.breadcrumb a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Links dentro dos cartões */
.card__media-link { display: block; }
.card__title-link { color: inherit; text-decoration: none; }
.card__title-link:hover { color: var(--brand); }

/* ---------- Destaques / outros produtos ---------- */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mini-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.mini-card:hover { color: var(--ink); }
.mini-card__media {
  aspect-ratio: 1 / 1; border-radius: 18px; margin-bottom: 14px;
  border: 1px solid var(--brand-100);
  transition: transform .25s, box-shadow .25s;
  background: white;
}
.mini-card:hover .mini-card__media { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mini-card__tag { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.mini-card__title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; margin: 4px 0 6px; }
.mini-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; color: var(--brand); }
.mini-card:hover .mini-card__more { color: var(--brand-dark); text-decoration: underline; }
.mini-card__more .icon { width: 1.05em; height: 1.05em; }

/* ---------- Campos de formulário ---------- */
.input, .select {
  min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.input { width: 100%; }
.input:focus, .select:focus, .search__input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(7, 85, 233, .15);
}
.select {
  padding-right: 40px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230b1220' stroke-width='2' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field { display: grid; gap: 6px; }
.field__label { font-size: .875rem; font-weight: 600; color: var(--text); }

/* ---------- Catálogo ---------- */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.catalog__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.filters-panel { display: grid; gap: 28px; }
.filters-toggle { display: none; }
.filter-group__title { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.chip-list { display: grid; gap: 8px; }
.chip-list .chip { width: 100%; }
.chip__count { font-weight: 500; opacity: .8; }
.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-hint { margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700;
}
.badge[hidden] { display: none; }

.search { position: relative; margin-bottom: 18px; }
.search__icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search__input {
  width: 100%; min-height: 54px; padding: 0 20px 0 50px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.search__input::placeholder { color: #7a8396; }

.catalog__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.catalog__count { color: var(--muted); }
.catalog__count strong { color: var(--ink); }
.sort { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9375rem; }
.products--catalog { grid-template-columns: repeat(3, 1fr); }

.empty-state {
  padding: 56px 24px; text-align: center;
  background: var(--brand-50); border: 2px dashed #b7cbf7; border-radius: var(--radius);
  color: var(--text);
}
.empty-state[hidden] { display: none; }
.empty-state__icon { width: 44px; height: 44px; color: var(--brand); margin-bottom: 12px; }
.empty-state__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { max-width: 30em; margin: 0 auto; }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------- Detalhes do produto ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery__main { aspect-ratio: 1 / 1; border-radius: 24px; border: 1px solid var(--brand-100); background: white; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.gallery__thumb {
  width: 84px; height: 84px; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); border-radius: 12px; background: var(--brand-50);
}
.gallery__thumb[aria-current="true"] { border-color: var(--brand); }
.gallery__thumb-media { width: 100%; height: 100%; border-radius: 0; background: white;}
.gallery__thumb .media__placeholder { inset: 4px; padding: 4px; }
.gallery__thumb .media__icon { width: 24px; height: 24px; margin: 0; }
.gallery__thumb .media__label { display: none; }

.product__title { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.product__lead { font-size: 1.125rem; color: var(--muted); }
.price-box {
  display: grid; gap: 2px; margin: 28px 0 24px; padding: 20px 22px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
}
.price-box__label { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-box__value { font-size: 1.75rem; font-weight: 800; color: var(--brand); line-height: 1.3; }
.price-box__note { font-size: .9375rem; color: var(--muted); }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product__hint { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.product__subtitle { font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 36px 0 14px; }

.specs { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.specs__row:nth-child(odd) { background: var(--bg-alt); }
.specs__row + .specs__row { border-top: 1px solid var(--line); }
.specs__name { color: var(--muted); }
.specs__value { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

.notice {
  padding: 16px 20px; border-left: 4px solid var(--brand);
  background: var(--brand-50); border-radius: 0 12px 12px 0; color: var(--text);
}
.notice a { font-weight: 600; }

.prose { color: var(--text); }
.prose p + p { margin-top: 1em; }

/* ---------- Dúvidas frequentes ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 18px 4px;
  font-weight: 600; font-size: 1.0625rem; color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brand); }
.faq__icon { width: 26px; height: 26px; flex: none; color: var(--brand); transition: transform .25s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 4px 22px; color: var(--text); }
.faq__answer a { font-weight: 600; }

.faq-cta {
  max-width: 820px; margin: 48px auto 0; padding: 28px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: 20px; color: #dfe7fb;
}
.faq-cta__title { color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }

/* =========================================================
   Carrossel de destaque (página inicial) — largura total
   ========================================================= */
.hero-carousel { position: relative; background: var(--navy); }
.carousel { position: relative; overflow: hidden; }
.carousel__track { display: grid; }
.slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(560px, 82vh, 780px);
  padding: 72px 0 120px;
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

/* Imagem de fundo (ou espaço reservado) ocupando o slide inteiro */
.slide__media {
  position: absolute; inset: 0; border-radius: 0; z-index: 0;
  background:
    radial-gradient(700px 400px at 85% 30%, rgba(7, 85, 233, .45), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.slide__media .media__img { object-fit: cover; }
.slide__media .media__placeholder {
  inset: 20px; align-items: flex-end; justify-content: flex-start;
  padding: 18px 22px; text-align: right;
  border-color: rgba(255, 255, 255, .28); color: #c9d6f8;
}
.slide__media .media__icon { width: 34px; height: 34px; color: #8fb0ff; }
.slide__media .media__hint { color: #a9bcef; }

/* Camada escura para manter o texto legível sobre qualquer foto */
.slide__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 22, 61, .92) 0%, rgba(6, 22, 61, .72) 42%, rgba(6, 22, 61, .2) 100%);
}
.slide__content { position: relative; z-index: 2; color: #fff; }
.slide__content > * { max-width: 640px; }
.eyebrow--light { color: #9db8ff; }
.slide__title {
  color: #fff; font-size: clamp(2.25rem, 5.4vw, 4.25rem); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.slide__accent { color: #7ea6ff; }
.slide__lead { font-size: 1.125rem; color: #e3eaff; margin-bottom: 32px; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.slide__info { display: flex; flex-wrap: wrap; gap: 10px 28px; color: #d3ddf7; font-size: .9375rem; }
.slide__info li { display: inline-flex; align-items: center; gap: 8px; }
.slide__info .icon { color: #8fb0ff; }
.slide__info a { color: #fff; font-weight: 600; text-decoration: none; }
.slide__info a:hover { color: #fff; text-decoration: underline; }

/* Controles: anterior, indicadores e próximo */
.carousel__controls { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; }
.carousel__controls-inner { display: flex; align-items: center; gap: 12px; }
.carousel__btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 50%;
  background: rgba(6, 22, 61, .45); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .2s, border-color .2s;
}
.carousel__btn:hover { background: #fff; color: var(--navy); border-color: #fff; }
.carousel__btn:focus-visible, .carousel__dot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.carousel__dots { display: flex; align-items: center; gap: 2px; }
.carousel__dot {
  position: relative; width: 32px; height: 44px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
}
.carousel__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .5); transition: width .3s, background-color .3s;
}
.carousel__dot:hover::before { background: rgba(255, 255, 255, .85); }
.carousel__dot.is-active { width: 44px; }
.carousel__dot.is-active::before { width: 30px; background: #fff; }

/* =========================================================
   Preço no formato "De / à vista / parcelado" (página do produto)
   ========================================================= */
.price-box { gap: 4px; }
.price-box__old { font-size: .9375rem; color: var(--muted); }
.price-box__old s { color: var(--muted); }
.price-box__value { font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.15; }
.price-box__cash { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.discount {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px;
  background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}
.price-box__installments { margin-top: 6px; font-size: 1rem; color: var(--text); }
.price-box__installments strong { color: var(--ink); }
.price-box__note { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.card__old { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); }

/* Campo provisório: fácil de identificar para editar */
.to-edit {
  display: inline-block; padding: 0 6px; border-radius: 6px;
  border: 1.5px dashed #b7cbf7; background: #fff;
  font-style: italic; font-weight: 600; color: #3a5aa8; font-size: .85em; line-height: 1.5;
}
.price-box__value .to-edit { font-size: .6em; vertical-align: middle; }

/* =========================================================
   Cores do produto (página do produto): só informativas, sem seleção
   ========================================================= */
.color-list { margin: 28px 0 0; }
.color-list__title { margin: 0 0 14px; }
.color-list__items { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.color-chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px;
  padding: 12px 10px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  cursor: default; user-select: none;
}
.color-chip__dot {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(11, 18, 32, .18); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
}
.color-chip__name { font-size: .875rem; font-weight: 600; color: var(--ink); text-align: center; overflow-wrap: anywhere; }
.color-chip__status { font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #11683a; }
.color-chip.is-out .color-chip__dot { opacity: .45; }
.color-chip.is-out .color-chip__dot::after { /* risco diagonal na cor indisponível */
  content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 2px;
  background: #a3201d; transform: translate(-50%, -50%) rotate(-45deg); border-radius: 2px;
}
.color-chip.is-out .color-chip__name { color: var(--muted); text-decoration: line-through; }
.color-chip.is-out .color-chip__status { color: #a3201d; }

/* =========================================================
   Disponibilidade (geral e por cor)
   ========================================================= */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em; line-height: 1.5;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--ok { background: #e6f6ec; color: #11683a; }
.status--off { background: #fdecec; color: #a3201d; }
.status--lg { font-size: .875rem; padding: 5px 12px; }
.product__status { margin: -4px 0 14px; }

.card__meta, .mini-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -6px 0 16px; }
.mini-card__meta { margin: 0 0 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.swatch { position: relative; display: inline-flex; }
.swatch__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(11, 18, 32, .2); }
.swatch.is-out .swatch__dot { opacity: .45; }
.swatch.is-out::after { /* risco diagonal na cor esgotada */
  content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px;
  background: #a3201d; transform: rotate(-45deg); border-radius: 2px;
}

.card__media-link, .mini-card__media-wrap { position: relative; display: block; }
.card__flag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 12px; border-radius: 999px;
  background: #a3201d; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.card--esgotado .media__img, .mini-card--esgotado .media__img { filter: grayscale(.7); opacity: .75; }

.notice--off { margin: 0 0 20px; border-left-color: #a3201d; background: #fdecec; color: #5c1210; }

/* Caixa de seleção (filtro "Somente disponíveis") */
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }

/* Slide sem imagem: só o fundo azul, sem o aviso de espaço reservado */
.slide__media--vazia .media__placeholder { display: none; }

/* =========================================================
   Avaliações do Google (inseridas manualmente)
   ========================================================= */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.review__stars { display: flex; gap: 2px; }
.review__star { width: 20px; height: 20px; color: #d5dbe6; }
.review__star.is-on { color: #f2a900; }
.review__text { margin: 0; color: var(--text); flex: 1; }
.review__text p + p { margin-top: .75em; }
.review__text--vazio { color: var(--muted); font-style: italic; }
.review__footer { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.review__avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand); font-weight: 700;
}
.review__who { display: grid; min-width: 0; }
.review__author { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.review__date { font-size: .875rem; color: var(--muted); }
.review__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: .9375rem; text-decoration: none; align-self: flex-start; }
.review__link:hover { text-decoration: underline; }
.review__link .icon { width: 1em; height: 1em; }
.reviews-empty {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 20px 24px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted);
}
.reviews-note { margin-top: 20px; font-size: .8125rem; color: var(--muted); max-width: 60em; }

@media (max-width: 960px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .reviews { grid-template-columns: 1fr; }
  .review { padding: 20px; }
  .reviews-empty .btn { width: 100%; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1180px) {
  .products--catalog { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .rail { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 16px; }
  .nav__link { padding: 0 10px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header__logo img { height: 52px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 20px 24px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(7, 30, 90, .1);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { min-height: 52px; padding: 0 14px; border-radius: 12px; font-size: 1.0625rem; }
  .nav .btn { width: 100%; min-height: 52px; }

  .hero { padding: 40px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { aspect-ratio: 4 / 3; }

  .products { grid-template-columns: repeat(2, 1fr); }
  .checklist { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .catalog__aside { position: static; }
  .filters-toggle { display: inline-flex; width: 100%; }
  .filters-panel {
    display: none; margin-top: 12px; padding: 20px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  }
  .filters-panel.is-open { display: grid; }
  .chip-list { display: flex; flex-wrap: wrap; }
  .chip-list .chip { width: auto; }

  .product { grid-template-columns: 1fr; gap: 32px; }
  .gallery { position: static; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 28px; }

  .hero__lead { font-size: 1.0625rem; }
  .hero__actions .btn { width: 100%; }

  .products, .products--catalog { grid-template-columns: 1fr; }

  .slide { align-items: flex-end; min-height: 640px; padding: 96px 0 104px; }
  .slide__overlay { background: linear-gradient(180deg, rgba(6, 22, 61, .35) 0%, rgba(6, 22, 61, .82) 45%, rgba(6, 22, 61, .95) 100%); }
  .slide__media .media__placeholder { inset: 12px; align-items: flex-end; justify-content: flex-start; padding: 12px; }
  .slide__media .media__label, .slide__media .media__hint { display: none; }
  .slide__media .media__icon { width: 28px; height: 28px; }
  .slide__lead { font-size: 1.0625rem; margin-bottom: 24px; }
  .slide__actions .btn { width: 100%; }
  .carousel__controls { bottom: 20px; }
  .carousel__btn { width: 44px; height: 44px; }
  .features { grid-template-columns: 1fr; }

  .rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -16px; padding: 0 16px 12px; scroll-padding: 0 16px;
  }
  .mini-card { scroll-snap-align: start; }
  .section__head--split > .btn { width: 100%; }

  .section--page { padding: 32px 0 64px; }
  .catalog__bar { flex-direction: column; align-items: stretch; }
  .sort { justify-content: space-between; }
  .sort .select { flex: 1; }
  .product__actions .btn { width: 100%; }
  .gallery__thumb { width: 68px; height: 68px; }
  .faq__item summary { font-size: 1rem; }
  .faq-cta { padding: 24px 20px; }
  .faq-cta .btn { width: 100%; }
  .checklist { grid-template-columns: 1fr; }

  .banner { padding: 72px 0; }
  .banner__actions .btn { width: 100%; }

  .contact-card { padding: 18px; gap: 14px; }
  .contact__map, .contact__map iframe { min-height: 280px; }

  .footer__inner { grid-template-columns: 1fr; gap: 28px; }

  .wa-float { right: 14px; bottom: 14px; width: 56px; height: 56px; }
}

/* =========================================================
   Carregamento dos dados (Supabase)
   ========================================================= */
.carousel.is-loading .carousel__track,
.carousel.is-loading .carousel__controls { visibility: hidden; }
/* Rede de segurança: se o script não rodar por algum motivo, o carrossel aparece sozinho depois de 12 s */
.carousel.is-loading .carousel__track,
.carousel.is-loading .carousel__controls { animation: carrossel-liberar 0s 12s forwards; }
@keyframes carrossel-liberar { to { visibility: visible; } }
.data-alert { background: #fff6e5; border-bottom: 1px solid #f1dcb0; color: #4d3100; font-size: .9375rem; }
.data-alert p { padding: 12px 0; }
.data-alert a { color: #7a4a00; font-weight: 700; }

/* =========================================================
   Meios de pagamento (apenas informativos)
   ========================================================= */
.pay-icon { display: block; width: 48px; height: 30px; flex: none; }

.pay-link-wrap { margin: 10px 0 18px; }
.pay-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; min-height: 44px;
  background: none; border: 0; font: inherit; font-weight: 600; font-size: .9375rem;
  color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.pay-link:hover { color: var(--brand-dark); }

.pay-dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
  border: 0; border-radius: 20px; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); overflow: auto;
}
.pay-dialog::backdrop { background: rgba(6, 22, 61, .55); }
.pay-dialog__inner { padding: 26px; }
.pay-dialog__title { font-size: 1.25rem; font-weight: 800; margin: 0 0 6px; }
.pay-dialog__lead { margin: 0 0 18px; color: var(--muted); font-size: .9375rem; }
.pay-group { margin: 0 0 20px; }
.pay-group__title { font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.pay-group__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pay-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.pay-item__name { margin: 0; font-weight: 700; color: var(--ink); }
.pay-item__cond { margin: 2px 0 0; font-size: .9375rem; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.pay-dialog__empty { padding: 16px; border-radius: 12px; background: var(--brand-50); }
.pay-dialog__actions { display: flex; justify-content: flex-end; margin-top: 8px; }

/* Rodapé: meios de pagamento aceitos */
.footer__pay { padding-bottom: 36px; }
.footer__pay-inner { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 28px; }
.pay-list { display: flex; flex-wrap: wrap; gap: 14px 12px; margin: 0; padding: 0; list-style: none; }
.pay-list__item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; text-align: center; }
.pay-list__item .pay-icon { width: 56px; height: 35px; }
.pay-list__name { font-size: .75rem; line-height: 1.25; color: #c3ccdf; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .pay-dialog__inner { padding: 20px; }
  .pay-list { gap: 12px 8px; }
  .pay-list__item { width: calc(25% - 6px); min-width: 70px; }
}

/* =========================================================
   Rodapé: dados da empresa e links legais
   ========================================================= */
.footer__company { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; color: #c3ccdf; }
.footer__company span:first-child { font-weight: 700; color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.footer__legal a, .footer__link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0;
  font: inherit; color: #e3e9f7; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.footer__legal a:hover, .footer__link-btn:hover { color: #fff; }
.footer__link-btn:focus-visible { outline: 3px solid #8fb3ff; outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   Página de Política de Privacidade
   ========================================================= */
.policy { max-width: 820px; }
.policy .notice { margin: 0 0 24px; }
.policy .prose h2 { font-size: 1.25rem; font-weight: 800; margin: 1.6em 0 .5em; }
.policy .prose ul { padding-left: 1.3em; }
.policy__prefs { margin-top: 40px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-50); }
.policy__subtitulo { font-size: 1.125rem; font-weight: 800; margin: 0 0 6px; }
.policy__prefs p { margin: 0 0 14px; color: var(--text); }

/* =========================================================
   Aviso e preferências de cookies
   ========================================================= */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  max-width: 980px; margin: 0 auto; padding: 18px 20px;
  background: #fff; color: var(--text); border: 1px solid var(--brand-100); border-radius: 18px; box-shadow: var(--shadow-lg);
}
.cookie-banner__texto { flex: 1 1 360px; min-width: 0; font-size: .9375rem; }
.cookie-banner__texto p { margin: 0; }
.cookie-banner__titulo { font-weight: 800; color: var(--ink); margin-bottom: 4px !important; }
.cookie-banner__acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__acoes .btn { min-height: 44px; min-width: 120px; justify-content: center; }

.cookie-dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
  border: 0; border-radius: 20px; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); overflow: auto;
}
.cookie-dialog::backdrop { background: rgba(6, 22, 61, .55); }
.cookie-dialog__inner { padding: 26px; }
.cookie-dialog__titulo { font-size: 1.25rem; font-weight: 800; margin: 0 0 6px; }
.cookie-dialog__lead { margin: 0 0 18px; color: var(--muted); font-size: .9375rem; }
.cookie-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; }
.cookie-item__nome { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.cookie-item__desc { margin: 0; font-size: .875rem; color: var(--muted); }
.cookie-item__fixo { flex: none; font-size: .75rem; font-weight: 700; color: #11683a; background: #e6f6ec; padding: 4px 10px; border-radius: 999px; }
.cookie-switch { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.cookie-switch input { width: 22px; height: 22px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.cookie-switch__txt::before { content: "Desligado"; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.cookie-switch input:checked ~ .cookie-switch__txt::before { content: "Ligado"; color: #11683a; }
.cookie-dialog__link { margin: 12px 0 18px; font-size: .9375rem; }
.cookie-dialog__acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Mapa do Google: espaço reservado até a pessoa permitir */
.map-consent {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 360px; height: 100%; padding: 28px 20px; text-align: center; background: var(--brand-50);
}
.map-consent__icon { width: 40px; height: 40px; color: var(--brand); }
.map-consent__titulo { margin: 0; font-weight: 800; color: var(--ink); font-size: 1.125rem; }
.map-consent__texto { margin: 0; max-width: 32em; color: var(--text); font-size: .9375rem; }
.map-consent__acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

@media (max-width: 640px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .cookie-banner__acoes { width: 100%; }
  .cookie-banner__acoes .btn { flex: 1 1 calc(50% - 10px); justify-content: center; }
  .cookie-banner__acoes .btn:last-child { flex-basis: 100%; }
  .cookie-dialog__inner { padding: 20px; }
  .cookie-dialog__acoes .btn { flex: 1 1 100%; justify-content: center; }
  .map-consent { min-height: 280px; }
}

.policy-pendente { background: #fff3c4; color: #5a4300; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.policy .prose h3 { font-size: 1.0625rem; font-weight: 700; margin: 1.2em 0 .4em; }
.policy .prose p, .policy .prose li { overflow-wrap: anywhere; }

/* Foto do slide ainda carregando: não mostra o espaço reservado (só aparece se a foto realmente falhar) */
.slide__media.media:not(.has-photo):not(.is-empty) .media__placeholder { visibility: hidden; }
