/* ============================================================
 *  Nery Ocean Service — Catálogo de Orçamento
 *  Design system herdado do site principal (navy + dourado)
 * ============================================================ */

:root {
  --navy:        hsl(213 55% 14%);
  --navy-light:  hsl(213 40% 22%);
  --navy-dark:   hsl(213 60% 8%);
  --gold:        hsl(38 70% 50%);
  --gold-light:  hsl(38 60% 65%);
  --ocean:       hsl(200 60% 45%);
  --sand:        hsl(35 30% 92%);

  --bg:          hsl(210 30% 98%);
  --fg:          hsl(213 40% 10%);
  --card:        hsl(0 0% 100%);
  --muted:       hsl(210 20% 94%);
  --muted-fg:    hsl(213 15% 45%);
  --border:      hsl(210 20% 88%);

  --ok:          hsl(152 55% 38%);
  --danger:      hsl(0 72% 51%);
  --zap:         hsl(142 70% 39%);

  --radius: .5rem;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --shadow-sm: 0 1px 2px hsl(213 40% 10% / .06), 0 1px 3px hsl(213 40% 10% / .08);
  --shadow-md: 0 4px 12px hsl(213 40% 10% / .08), 0 2px 4px hsl(213 40% 10% / .06);
  --shadow-lg: 0 12px 32px hsl(213 40% 10% / .14), 0 4px 8px hsl(213 40% 10% / .08);

  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button { font: inherit; cursor: pointer; }

a { color: inherit; }

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

.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;
}

/* ------------------------------------------------------------
 *  CABEÇALHO
 * ---------------------------------------------------------- */
/* Cabeçalho branco, como o do site principal. Não é preferência estética: a
   logo é PNG opaco de fundo branco, e sobre o azul-marinho ela virava um
   retângulo branco em volta da bússola. */
.header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px hsl(213 40% 10% / .06);
}

.header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 20px;
}

.header__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header__logo img { height: 44px; width: auto; }

.header__title { display: flex; align-items: center; line-height: 1.15; }
.header__title strong {
  font-family: var(--font-display);
  font-size: 1.12rem; color: var(--navy); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px;
}

.header__nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.header__link {
  color: var(--muted-fg); text-decoration: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase;
  padding: 8px 13px; border-radius: var(--radius);
  transition: color .18s, background .18s;
}
.header__link:hover { color: var(--navy); background: var(--muted); }

/* Botão do carrinho */
.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold); color: var(--navy-dark);
  border: 0; border-radius: var(--radius);
  padding: 11px 18px; font-weight: 600; font-size: .9rem;
  transition: background .18s, transform .12s;
}
.cart-btn:hover { background: var(--gold-light); }
.cart-btn:active { transform: translateY(1px); }
.cart-btn svg { width: 19px; height: 19px; }

.cart-btn__badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--navy-dark); color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center;
  transform: scale(0); transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}
.cart-btn__badge.is-visible { transform: scale(1); }
.cart-btn__badge.is-bumping { animation: bump .35s ease; }

@keyframes bump {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(1.35); }
}

/* ------------------------------------------------------------
 *  HERO
 * ---------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy) 55%, var(--navy-light));
  color: #fff;
  padding: 64px 0 56px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 18%, hsl(38 70% 50% / .16), transparent 55%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 780px; }

.hero__eyebrow {
  display: inline-block;
  font-size: .72rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  padding-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.12; margin: 0 0 18px; font-weight: 600;
}
.hero p {
  font-size: 1.06rem; color: hsl(210 30% 85%);
  margin: 0; max-width: 620px;
}
.hero__rule {
  width: 68px; height: 3px; background: var(--gold);
  margin: 24px 0 0; border-radius: 2px;
}

/* ------------------------------------------------------------
 *  BARRA DE FILTROS
 * ---------------------------------------------------------- */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: hsl(210 30% 98% / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.toolbar__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.search {
  position: relative; flex: 1 1 280px; max-width: 380px;
}
.search svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted-fg); pointer-events: none;
}
.search input {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--fg); font-size: .93rem;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.search input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px hsl(38 70% 50% / .18);
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  background: var(--card); color: var(--muted-fg);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: .85rem; font-weight: 500;
  transition: all .18s;
}
.chip:hover { border-color: var(--gold); color: var(--navy); }
.chip.is-active {
  background: var(--navy); border-color: var(--navy);
  color: #fff; font-weight: 600;
}

/* ------------------------------------------------------------
 *  GRADE DE PRODUTOS
 * ---------------------------------------------------------- */
.catalog { padding: 44px 0 80px; }

.catalog__count {
  font-size: .87rem; color: var(--muted-fg); margin: 0 0 22px;
}

/* Cards mais largos: a grade anterior apertava a imagem e o texto, e com
   ilustração de categoria repetida a tela ficava monótona. */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: hsl(38 70% 50% / .45);
}

.card__media {
  position: relative; background: var(--navy); cursor: pointer;
  border: 0; padding: 0; display: block; width: 100%;
}
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.card__flag {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--navy-dark);
  font-size: .66rem; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; padding: 5px 10px; border-radius: 3px;
}

.card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }

.card__cat {
  font-size: .68rem; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ocean); font-weight: 600; margin-bottom: 7px;
}

.card__name {
  font-family: var(--font-display);
  font-size: 1.09rem; font-weight: 600; line-height: 1.32;
  margin: 0 0 8px; color: var(--navy);
}
.card__name button {
  background: none; border: 0; padding: 0; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
}
.card__name button:hover { color: var(--gold); }

.card__summary {
  font-size: .87rem; color: var(--muted-fg);
  margin: 0 0 14px; flex: 1;
}

.card__code {
  font-size: .72rem; color: var(--muted-fg);
  font-variant-numeric: tabular-nums; margin-bottom: 14px;
  letter-spacing: .4px;
}
.card__code b { color: var(--navy); font-weight: 600; }

/* Linha de ação do card, em duas faixas: "Detalhes" e o seletor de quantidade
   em cima, o botão de incluir com a largura toda embaixo.
   Cada item tem largura natural e nada encolhe — com os três na mesma faixa, o
   botão era comprimido e o texto saía cortado pela borda do card. Se "Detalhes"
   e o seletor não couberem juntos numa faixa estreita, o flex-wrap os separa
   sozinho, sem nada ficar escondido. */
.card__actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.card__actions > .btn--detalhe { flex: 0 0 auto; }
.card__acao { display: flex; flex: 0 0 auto; align-items: center; }
.card__incluir { display: flex; flex: 1 1 100%; }
.card__incluir .btn { flex: 1; }

/* Estado "já está no orçamento": faixa discreta abaixo das ações, com o
   caminho de saída à mão. Sem ela, a única pista era a borda. */
.card__estado {
  display: flex; align-items: center; gap: 8px; width: 100%;
  font-size: .76rem; color: var(--ouro-escuro, hsl(38 74% 32%));
  font-weight: 600; letter-spacing: .2px;
}
.card__estado svg { width: 14px; height: 14px; flex-shrink: 0; }
.card__estado button {
  margin-left: auto; background: none; border: 0; padding: 2px 4px;
  font-size: .74rem; font-weight: 500; color: var(--muted-fg);
  text-decoration: underline; text-underline-offset: 2px;
}
.card__estado button:hover { color: var(--danger); }

.card.is-na-lista { border-color: var(--gold); box-shadow: var(--shadow-md); }
.card.is-na-lista:hover { border-color: var(--gold); }

/* ------------------------------------------------------------
 *  BOTÕES
 * ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 11px 18px; font-size: .89rem; font-weight: 600;
  text-decoration: none; transition: all .18s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-light); }

.btn--gold { background: var(--gold); color: var(--navy-dark); }
.btn--gold:hover { background: var(--gold-light); }

.btn--ghost {
  background: transparent; color: var(--navy); border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--navy); background: var(--muted); }

.btn--zap { background: var(--zap); color: #fff; }
.btn--zap:hover { background: hsl(142 70% 33%); }

.btn--block { width: 100%; }
.btn--sm { padding: 8px 13px; font-size: .82rem; }

.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn.is-added { background: var(--ok); color: #fff; }

/* ------------------------------------------------------------
 *  SELETOR DE QUANTIDADE
 * ---------------------------------------------------------- */
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
}
.qty button {
  width: 38px; height: 40px; border: 0; background: transparent;
  color: var(--navy); font-size: 1.15rem; line-height: 1;
  display: grid; place-items: center;
  transition: background .15s;
}
.qty button:hover { background: var(--muted); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input {
  width: 48px; height: 40px; border: 0; text-align: center;
  font-family: inherit; font-size: .95rem; font-weight: 600;
  color: var(--navy); background: transparent;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; background: var(--muted); }

.qty--sm button { width: 32px; height: 34px; font-size: 1rem; }
.qty--sm input { width: 40px; height: 34px; font-size: .87rem; }

/* Seletor do card: largura fixa e enxuta, para o botão de incluir ficar com o
   destaque. Não cresce nem encolhe — é controle, não conteúdo. */
.qty--card { flex: 0 0 auto; }
.qty--card button { width: 32px; height: 38px; font-size: 1rem; flex-shrink: 0; }
.qty--card button svg { width: 15px; height: 15px; }
.qty--card input { width: 40px; height: 38px; font-size: .92rem; }

/* ------------------------------------------------------------
 *  ESTADO VAZIO
 * ---------------------------------------------------------- */
.empty {
  text-align: center; padding: 70px 20px; color: var(--muted-fg);
}
.empty svg { width: 52px; height: 52px; opacity: .3; margin: 0 auto 18px; }
.empty h3 {
  font-family: var(--font-display); font-size: 1.3rem;
  color: var(--navy); margin: 0 0 8px;
}
.empty p { margin: 0 0 20px; font-size: .93rem; }

/* ------------------------------------------------------------
 *  MODAL DO PRODUTO
 * ---------------------------------------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: hsl(213 60% 8% / .62);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  pointer-events: none;
}
.modal__box {
  background: var(--card); border-radius: 10px;
  width: 100%; max-width: 860px; max-height: calc(100vh - 48px);
  overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.98); opacity: 0;
  transition: transform .25s cubic-bezier(.16,1,.3,1), opacity .25s;
  pointer-events: auto;
}
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal:not(.is-open) { visibility: hidden; }

.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: hsl(0 0% 100% / .9); color: var(--navy);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background .18s;
}
.modal__close:hover { background: #fff; }
.modal__close svg { width: 19px; height: 19px; }

.modal__grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal__media { background: var(--navy); }
.modal__media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }

.modal__content { padding: 34px; position: relative; }

.modal__cat {
  font-size: .68rem; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ocean); font-weight: 600; margin-bottom: 8px;
}
.modal__content h2 {
  font-family: var(--font-display);
  font-size: 1.62rem; line-height: 1.25; margin: 0 0 16px;
  color: var(--navy); font-weight: 600;
}

.modal__meta {
  background: var(--muted); border-radius: var(--radius);
  padding: 13px 16px; margin-bottom: 20px; font-size: .82rem;
  display: flex; gap: 26px; flex-wrap: wrap;
}
.modal__meta span { color: var(--muted-fg); letter-spacing: 1px; text-transform: uppercase; font-size: .68rem; }
.modal__meta b { color: var(--navy); display: block; font-size: .92rem; letter-spacing: .3px; }

.modal__desc { font-size: .93rem; color: hsl(213 20% 32%); margin: 0 0 22px; }

.specs { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: .86rem; }
.specs caption {
  text-align: left; font-size: .7rem; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--navy); font-weight: 700;
  padding-bottom: 10px;
}
.specs th, .specs td {
  text-align: left; padding: 9px 0; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.specs th { color: var(--muted-fg); font-weight: 500; width: 44%; }
.specs td { color: var(--navy); font-weight: 500; }

.modal__buy {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; background: hsl(210 30% 98%);
}
.modal__buy-label {
  font-size: .7rem; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--navy); font-weight: 700; margin-bottom: 12px;
}
.modal__buy-row { display: flex; gap: 12px; align-items: center; }
.modal__buy-row .btn { flex: 1; }
.modal__note {
  font-size: .78rem; color: var(--muted-fg); margin: 12px 0 0; text-align: center;
}

/* ------------------------------------------------------------
 *  GAVETA DO CARRINHO
 * ---------------------------------------------------------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: 100%; max-width: 460px;
  background: var(--bg);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px hsl(213 40% 10% / .2);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.16,1,.3,1);
}
.drawer.is-open { transform: none; }

.drawer__head {
  background: var(--navy); color: #fff;
  padding: 22px 24px; display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.drawer__head h2 {
  font-family: var(--font-display); font-size: 1.2rem;
  margin: 0; font-weight: 600; flex: 1;
}
.drawer__head p { margin: 3px 0 0; font-size: .78rem; color: var(--gold-light); }
.drawer__close {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: hsl(213 40% 24%); color: #fff;
  display: grid; place-items: center; transition: background .18s;
}
.drawer__close:hover { background: hsl(213 40% 32%); }
.drawer__close svg { width: 18px; height: 18px; }

.drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }

.drawer__foot {
  border-top: 1px solid var(--border); background: var(--card);
  padding: 18px 24px 22px; flex-shrink: 0;
}
.drawer__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; font-size: .88rem;
}
.drawer__total span { color: var(--muted-fg); }

/* O botão de enviar é sólido na cor da marca: a ação é registrar a solicitação.
   O verde fica só no ícone, sinalizando por onde a conversa segue. */
.ico-zap { color: hsl(142 68% 52%); }
.nota-envio {
  margin: 9px 0 0; font-size: .76rem; line-height: 1.45;
  color: var(--muted-fg); text-align: center;
}
.drawer__total b { color: var(--navy); font-size: 1.05rem; font-weight: 700; }

/* Itens do carrinho */
.line {
  display: flex; gap: 13px; padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.line:last-child { border-bottom: 0; }
.line__img {
  width: 66px; height: 66px; border-radius: var(--radius);
  object-fit: cover; flex-shrink: 0; background: var(--navy);
}
.line__info { flex: 1; min-width: 0; }
.line__name {
  font-family: var(--font-display); font-size: .96rem; font-weight: 600;
  color: var(--navy); margin: 0 0 3px; line-height: 1.3;
}
.line__code { font-size: .72rem; color: var(--muted-fg); margin: 0 0 9px; letter-spacing: .4px; }
.line__row { display: flex; align-items: center; gap: 10px; }
.line__remove {
  border: 0; background: none; color: var(--muted-fg);
  padding: 6px; border-radius: 4px; display: grid; place-items: center;
  transition: color .18s, background .18s;
}
.line__remove:hover { color: var(--danger); background: hsl(0 72% 51% / .08); }
.line__remove svg { width: 16px; height: 16px; }
.line__unit { font-size: .76rem; color: var(--muted-fg); margin-left: auto; }

/* ------------------------------------------------------------
 *  FORMULÁRIO
 * ---------------------------------------------------------- */
.form { display: grid; gap: 15px; }

/* Abas pessoa física / jurídica. Sublinhado dourado marca a ativa; o resto
   fica cinza para não competir com os campos. */
.abas {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3px;
}
.aba {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 9px 15px; margin-bottom: -1px;
  font-size: .87rem; font-weight: 600; color: var(--muted-fg);
  transition: color .18s, border-color .18s;
}
.aba:hover { color: var(--navy); }
.aba.is-active { color: var(--navy); border-bottom-color: var(--gold); }

.bloco-pf, .bloco-pj { display: grid; gap: 15px; }

.field { display: grid; gap: 6px; }
.field label {
  font-size: .78rem; font-weight: 600; color: var(--navy);
  letter-spacing: .3px;
}
.field label .req { color: var(--danger); }
.field input, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--fg);
  font-family: inherit; font-size: .92rem;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 78px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px hsl(38 70% 50% / .18);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .err { font-size: .75rem; color: var(--danger); display: none; }
.field input[aria-invalid="true"] ~ .err { display: block; }

.field--hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.aviso-lgpd {
  font-size: .78rem; line-height: 1.5; color: var(--muted-fg);
  background: var(--muted); border-radius: var(--radius);
  padding: 12px 14px; margin: 2px 0 0;
}
.aviso-lgpd a { color: var(--ocean); text-decoration: underline; text-underline-offset: 2px; }
.aviso-lgpd a:hover { color: var(--navy); }

.summary-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px; margin-bottom: 20px;
}
.summary-box h3 {
  font-size: .72rem; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--navy); margin: 0 0 11px; font-weight: 700;
}
.summary-box ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.summary-box li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 5px 0; color: hsl(213 20% 32%);
}
.summary-box li b { color: var(--navy); white-space: nowrap; }

.back-link {
  background: none; border: 0; color: var(--muted-fg);
  font-size: .84rem; padding: 0 0 14px; display: inline-flex;
  align-items: center; gap: 6px;
}
.back-link:hover { color: var(--navy); }
.back-link svg { width: 15px; height: 15px; }

.alert {
  border-radius: var(--radius); padding: 12px 14px;
  font-size: .84rem; display: none; gap: 10px; align-items: flex-start;
}
.alert.is-visible { display: flex; }
.alert--error { background: hsl(0 72% 51% / .09); color: hsl(0 62% 38%); border: 1px solid hsl(0 72% 51% / .25); }
.alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }

/* Tela de sucesso */
.done { text-align: center; padding: 34px 12px; }
.done__icon {
  width: 74px; height: 74px; border-radius: 50%;
  background: hsl(142 70% 39% / .12); color: var(--zap);
  display: grid; place-items: center; margin: 0 auto 22px;
}
.done__icon svg { width: 38px; height: 38px; }
.done h3 {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--navy); margin: 0 0 10px; font-weight: 600;
}
.done p { font-size: .91rem; color: var(--muted-fg); margin: 0 0 6px; }
.done__proto {
  display: inline-block; margin: 16px 0 24px;
  background: var(--muted); border-radius: var(--radius);
  padding: 10px 18px; font-size: .95rem; font-weight: 700;
  color: var(--navy); letter-spacing: 1.4px;
}

.hidden { display: none !important; }

/* ------------------------------------------------------------
 *  BARRA FIXA MOBILE
 * ---------------------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--card); border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px hsl(213 40% 10% / .08);
  transform: translateY(120%); transition: transform .3s cubic-bezier(.16,1,.3,1);
  display: none;
}
.mobile-bar.is-visible { transform: none; }

/* ------------------------------------------------------------
 *  RODAPÉ
 * ---------------------------------------------------------- */
.footer {
  background: var(--navy-dark); color: hsl(210 25% 72%);
  padding: 46px 0 34px; font-size: .87rem;
}
.footer__inner {
  display: grid; gap: 32px;
  grid-template-columns: 1.3fr 1fr 1fr;
}
.footer strong { color: #fff; font-family: var(--font-display); font-size: 1rem; }
.footer a { color: var(--gold-light); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer p { margin: 6px 0 0; }

.footer__titulo {
  color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
  margin: 0 0 12px;
}
.footer__slogan { color: hsl(210 25% 62%); font-style: italic; }

/* Listas de contato e endereço: dl para o par rótulo/valor ficar semântico,
   sem virar tabela nem parágrafo solto. */
.footer__dados { margin: 0; }
.footer__dados dt {
  font-size: .68rem; letter-spacing: 1.2px; text-transform: uppercase;
  color: hsl(210 20% 55%); margin-top: 11px;
}
.footer__dados dt:first-child { margin-top: 0; }
.footer__dados dd { margin: 2px 0 0; }
.footer__dados dd a { word-break: break-word; }

.footer__endereco { margin: 0; font-style: normal; line-height: 1.55; }

/* Matriz e filial: o rótulo da unidade segue o mesmo desenho dos rótulos da
   coluna de contato, para as duas colunas lerem como um só sistema. */
.footer__unidade + .footer__unidade { margin-top: 15px; }
.footer__unidade > span {
  display: block;
  font-size: .68rem; letter-spacing: 1.2px; text-transform: uppercase;
  color: hsl(210 20% 55%); margin-bottom: 3px;
}

.footer__base {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid hsl(210 25% 72% / .16);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: hsl(210 20% 58%);
}
.footer__base nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ------------------------------------------------------------
 *  MODO EMBUTIDO (?embed=1)
 *
 *  O catálogo aberto dentro do modal do site. Sai o que é moldura de
 *  página — cabeçalho, hero e rodapé — e fica o que é ferramenta:
 *  busca, filtros, grade e carrinho. A gaveta e o modal do produto são
 *  position:fixed e, em modal de tela cheia, continuam se comportando
 *  como numa página inteira.
 * ---------------------------------------------------------- */
.nos-embed .header,
.nos-embed .hero,
.nos-embed .footer { display: none; }

/* O botão "Meu orçamento" mora no cabeçalho, que some aqui. Sem isto,
   quem abre o catálogo dentro da janela do site inclui itens e não tem
   como chegar na lista — a barra flutuante só aparecia em tela pequena.
   Dentro da janela ela vale em qualquer largura. */
.nos-embed .mobile-bar { display: block; }

/* Sem cabeçalho fixo, a barra de filtros passa a colar no topo do quadro. */
.nos-embed .toolbar { top: 0; }

.nos-embed .catalog { padding-top: 26px; }

/* ------------------------------------------------------------
 *  RESPONSIVO
 * ---------------------------------------------------------- */
@media (max-width: 860px) {
  .modal__grid { grid-template-columns: 1fr; }
  .modal__media img { min-height: 210px; max-height: 240px; }
  .modal__content { padding: 26px 22px 30px; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }

  .container { padding: 0 18px; }

  /* Em tela estreita os links do menu saem e a própria marca vira o caminho de
     volta para o site. O nome fica, encurtado — some com ele e o cabeçalho
     perde a identidade justamente onde o visitante mais precisa dela. */
  .header__logo { gap: 9px; min-width: 0; }
  .header__logo img { height: 34px; }
  .header__title { min-width: 0; }
  .header__title strong {
    font-size: .78rem; letter-spacing: 1px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .header__link { display: none; }
  .cart-btn span { display: none; }
  .cart-btn { padding: 11px 13px; }

  .hero { padding: 44px 0 40px; }

  .toolbar__inner { gap: 12px; }
  .search { max-width: none; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; width: 100%;
    padding-bottom: 4px; scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }

  /* Uma coluna no celular. Duas deixavam a imagem pequena e obrigavam a
     esconder o resumo — era a maior causa da sensação de catálogo vazio. */
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .card__body { padding: 16px; }
  .card__name { font-size: 1.02rem; }
  .card__summary { display: block; }
  /* No celular vale a mesma estrutura de duas faixas do desktop: o botão de
     incluir já nasce com a largura toda, virando um alvo de toque generoso. */

  .catalog { padding: 30px 0 100px; }

  .drawer { max-width: none; }

  .modal { padding: 0; }
  .modal__box { max-width: none; max-height: 100vh; height: 100%; border-radius: 0; }

  .form__row { grid-template-columns: 1fr; }

  .mobile-bar { display: block; }
  .footer { padding-bottom: 100px; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------
   Grupo de caixas de marcação do formulário de cotação.
   Pedido no escopo técnico de 04/09/2026 (§9.1): instalação,
   manutenção ou certificação junto com o fornecimento.
   ------------------------------------------------------------ */
.campo-grupo {
  border: 1px solid var(--linha, #e2e6eb);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}
.campo-grupo legend {
  font-size: .78rem; font-weight: 600; color: var(--navy);
  letter-spacing: .3px; padding: 0 4px;
}
.campo-grupo .opcao {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 400; color: var(--navy);
  cursor: pointer; letter-spacing: normal;
}
.campo-grupo .opcao input { width: 16px; height: 16px; accent-color: var(--dourado, #c9982a); cursor: pointer; }

/* Aviso comercial exigido pelo escopo (§8): nada de preço, prazo
   ou garantia apresentado como informação fixa. */
.aviso-comercial {
  margin-top: 14px; padding: 10px 12px;
  background: rgba(15, 36, 55, .04);
  border-left: 3px solid var(--dourado, #c9982a);
  border-radius: 6px;
  font-size: .8rem; line-height: 1.5; color: var(--navy);
}
