/* Safire — identidade visual da loja
 * Tipografia: Cormorant Garamond (display) · Jost (texto) · Alex Brush (marca)
 * Escala: 13 / 15 / 18 / 24 / 36 / 56 / 88 / 132
 * Espaço: 8 / 16 / 24 / 40 / 64 / 104 / 168
 */
:root {
  --safira: #010737;
  --safira-2: #0A1452;
  --safira-3: #1B2B7A;
  --creme: #F6F1E9;
  --creme-2: #ECE3D4;
  --papel: #FFFDF9;
  --tinta: #13152E;
  --tinta-suave: #5B5D78;
  --linha: rgba(19, 21, 46, 0.12);
  --linha-clara: rgba(246, 241, 233, 0.16);
  --ouro: #C29A5B;
  --ouro-escuro: #9C7535;
  --ouro-claro: #E4C995;
  --lilas: #ABA9CB;
  --ok: #1E7A55;
  --alerta: #B3261E;

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-texto: "Jost", "Segoe UI", system-ui, sans-serif;
  --f-marca: "Alex Brush", "Brush Script MT", cursive;

  --raio: 14px;
  --raio-p: 8px;
  --sombra: 0 1px 2px rgba(1, 7, 55, 0.06), 0 12px 32px -12px rgba(1, 7, 55, 0.18);
  --topo-h: 76px;
  --lateral: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
/* a lista aberta de um select herda a cor do texto; em faixa escura ficava branco no branco */
option, optgroup { color: var(--tinta); background-color: #fff; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--safira); color: var(--creme); }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }

.rotulo {
  font-family: var(--f-texto);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.suave { color: var(--tinta-suave); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- marca ---------- */

.marca { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; color: inherit; }
.marca__nome { font-family: var(--f-marca); font-size: 38px; line-height: 0.9; position: relative; padding: 0 4px; }
.marca__i { position: relative; }
.marca__diamante { position: absolute; width: 0.15em; left: 50%; top: 0.1em; transform: translateX(-30%); color: var(--ouro); }
.marca__diamante svg { width: 100%; height: auto; }
.marca__sub { font-size: 7.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ouro); margin-top: 2px; padding-left: 0.34em; font-weight: 500; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  border: 1px solid transparent; background: var(--safira); color: var(--creme);
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--safira-3); }
.btn:active { transform: scale(0.98); }
.btn--ouro { background: var(--ouro); color: var(--safira); }
.btn--ouro:hover { background: var(--ouro-claro); }
.btn--linha { background: transparent; color: currentColor; border-color: currentColor; }
.btn--linha:hover { background: rgba(194, 154, 91, 0.12); }
.btn--claro { background: var(--creme); color: var(--safira); }
.btn--claro:hover { background: #fff; }
.btn--whats { background: #1F7A4D; color: #fff; }
.btn--whats:hover { background: #17633E; }
.btn--bloco { width: 100%; }
.btn--p { min-height: 38px; padding: 0 16px; font-size: 11.5px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-seta { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-seta:hover { color: var(--ouro-escuro); }

/* ---------- faixa de demonstração ---------- */

.faixa-demo {
  background: var(--ouro); color: var(--safira); text-align: center;
  font-size: 12.5px; letter-spacing: 0.04em; padding: 6px var(--lateral); line-height: 1.4;
}
.faixa-demo a { font-weight: 600; }

/* faixa/banner de promoção configurado no painel */
.faixa-banner {
  display: block; background: var(--safira); color: #fff; text-align: center; text-decoration: none;
  font-size: 13px; letter-spacing: 0.06em; padding: 8px var(--lateral); line-height: 1.4;
}
a.faixa-banner:hover { background: var(--ouro); color: var(--safira); }
.banner-loja { display: block; margin: 0; line-height: 0; }
.banner-loja img { width: 100%; height: auto; max-height: 420px; object-fit: cover; }

/* ---------- topo ---------- */

.cabecalho { position: sticky; top: 0; z-index: 60; }
.cabecalho--flutuante { position: fixed; left: 0; right: 0; }
.topo {
  position: relative; height: var(--topo-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--lateral);
  background: rgba(246, 241, 233, 0.92); color: var(--safira);
  backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--linha);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.topo--noite { background: rgba(1, 7, 55, 0.72); color: var(--creme); border-color: rgba(246, 241, 233, 0.08); }
.topo nav { display: flex; gap: 28px; }
.topo nav a { text-decoration: none; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; opacity: 0.86; padding: 6px 0; border-bottom: 1px solid transparent; }
.topo nav a:hover, .topo nav a[aria-current="page"] { opacity: 1; border-color: currentColor; }
.topo__acoes { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.icone-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  background: transparent; border: 0; cursor: pointer; color: inherit; position: relative; text-decoration: none;
}
.icone-btn:hover { background: rgba(194, 154, 91, 0.16); }
.icone-btn svg { width: 21px; height: 21px; }
.contador {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--ouro); color: var(--safira); font-size: 11px; font-weight: 600;
  display: grid; place-items: center; line-height: 1;
}
.contador:empty { display: none; }
.topo__menu { display: none; }
/* menu de texto + logo no meio só cabem a partir de 1100 px; abaixo vira o menu ☰ */
@media (max-width: 1100px) {
  .topo { grid-template-columns: auto 1fr auto; }
  .topo nav { display: none; }
  .topo__menu { display: inline-grid; }
  .topo .marca { justify-self: center; }
}

@media (max-width: 960px) {
  .topo { grid-template-columns: auto 1fr auto; }
  .topo nav { display: none; }
  .topo__menu { display: inline-grid; }
  .topo .marca { justify-self: center; }
  .topo__acoes .so-desk { display: none; }
}

.menu-movel {
  position: fixed; inset: 0; z-index: 90; background: var(--safira); color: var(--creme);
  display: flex; flex-direction: column; padding: 24px var(--lateral) 40px; gap: 8px;
  transform: translateY(-100%); transition: transform 0.5s var(--ease); visibility: hidden;
}
.menu-movel.aberto { transform: none; visibility: visible; }
.menu-movel a { font-family: var(--f-display); font-size: 36px; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--linha-clara); }
.menu-movel .icone-btn { align-self: flex-end; }

/* ---------- cartão de peça ---------- */

.pecas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 24px; }
.peca { position: relative; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.peca__foto {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--raio); overflow: hidden; background: var(--papel);
  box-shadow: inset 0 0 0 1px var(--linha);
}
.peca__foto > svg, .peca__foto > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.peca:hover .peca__foto > svg, .peca:hover .peca__foto > img { transform: scale(1.05); }
.peca__selos { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.peca__selos .selo--off { order: 9; margin-left: auto; }
.selo { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; padding: 5px 9px; border-radius: 999px; background: var(--safira); color: var(--creme); }
.selo--ouro { background: var(--ouro); color: var(--safira); }
.selo--claro { background: rgba(255, 253, 249, 0.92); color: var(--safira); box-shadow: inset 0 0 0 1px var(--linha); }
.peca__add {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--safira); color: var(--creme); border: 0; cursor: pointer; display: grid; place-items: center;
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s;
}
.peca__add svg { width: 20px; height: 20px; }
.peca:hover .peca__add, .peca__add:focus-visible { opacity: 1; transform: none; }
.peca__add:hover { background: var(--ouro); color: var(--safira); }
@media (hover: none) { .peca__add { opacity: 1; transform: none; } }
.peca__info { display: flex; flex-direction: column; gap: 6px; }
.peca__cat { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinta-suave); }
/* nome discreto (pedido da cliente): a foto e o preço é que chamam atenção */
.peca__nome { font-family: var(--f-texto); font-size: 13.5px; line-height: 1.4; font-weight: 300; color: var(--tinta);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.peca__preco { display: flex; flex-direction: column; gap: 0; font-variant-numeric: tabular-nums; }
.peca__preco strong { font-weight: 500; font-size: 15px; }
.peca__preco s { color: var(--tinta-suave); font-size: 12px; }
.peca__parc { font-size: 11.5px; color: var(--tinta-suave); }
.selo--off { background: rgba(255, 253, 249, 0.92); color: #B4432E; letter-spacing: 0.08em; font-weight: 500; }
.peca--esgotada .peca__foto { opacity: 0.6; }

/* ---------- gaveta do carrinho ---------- */

.veu { position: fixed; inset: 0; background: rgba(1, 7, 55, 0.45); z-index: 80; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.veu.aberto { opacity: 1; visibility: visible; }
.gaveta {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 81;
  background: var(--papel); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.5s var(--ease); visibility: hidden;
}
.gaveta.aberta { transform: none; visibility: visible; }
.gaveta__topo { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--linha); }
.gaveta__topo h2 { font-size: 30px; }
.gaveta__itens { flex: 1; overflow-y: auto; padding: 8px 24px; }
.gaveta__rodape { border-top: 1px solid var(--linha); padding: 20px 24px 24px; display: grid; gap: 12px; background: var(--creme); }
.linha-total { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.linha-total--grande { font-size: 18px; font-weight: 500; }
.item-car { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--linha); align-items: center; }
.item-car__foto { width: 76px; height: 76px; border-radius: var(--raio-p); overflow: hidden; background: var(--creme); }
.item-car__foto > * { width: 100%; height: 100%; object-fit: cover; }
.item-car__nome { font-family: var(--f-display); font-size: 18px; line-height: 1.15; }
.item-car__preco { font-size: 14px; color: var(--tinta-suave); font-variant-numeric: tabular-nums; }
.qtd { display: inline-flex; align-items: center; border: 1px solid var(--linha); border-radius: 999px; margin-top: 8px; }
.qtd button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 16px; border-radius: 50%; }
.qtd button:hover { background: var(--creme-2); }
.qtd span { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.remover { background: none; border: 0; cursor: pointer; color: var(--tinta-suave); font-size: 12px; text-decoration: underline; align-self: start; }
.vazio { text-align: center; padding: 64px 16px; color: var(--tinta-suave); display: grid; gap: 16px; justify-items: center; }
.vazio svg { width: 120px; opacity: 0.9; }

/* ---------- WhatsApp flutuante ---------- */

.whats-flutuante {
  position: fixed; right: 20px; bottom: 20px; z-index: 55; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.whats-flutuante__botao {
  width: 58px; height: 58px; border-radius: 50%; background: #1F7A4D; color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease);
}
.whats-flutuante__botao:hover { transform: scale(1.06); }
.whats-flutuante__botao svg { width: 28px; height: 28px; }
.whats-flutuante__lista {
  background: var(--papel); color: var(--tinta); border-radius: var(--raio); box-shadow: var(--sombra); padding: 8px; min-width: 250px;
  display: none; flex-direction: column;
}
.whats-flutuante.aberto .whats-flutuante__lista { display: flex; }
.whats-flutuante__lista p { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinta-suave); padding: 10px 12px 6px; }
.whats-flutuante__lista a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--raio-p); text-decoration: none; font-size: 15px; color: var(--tinta); }
.whats-flutuante__lista a:hover { background: var(--creme); }
.whats-flutuante__lista a svg { width: 20px; height: 20px; color: #1F7A4D; flex: none; }
.whats-flutuante__lista a.insta svg { color: var(--safira); }

/* ---------- aviso (toast) ---------- */

.aviso {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 95;
  background: var(--safira); color: var(--creme); padding: 14px 22px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px);
}
.aviso.visivel { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.aviso a { color: var(--ouro-claro); font-weight: 500; white-space: nowrap; }

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

.rodape { background: var(--safira); color: var(--creme); padding: 36px var(--lateral) 22px; }
.rodape__topo { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--linha-clara); }
.rodape__links { flex: 1; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.rodape a { text-decoration: none; opacity: 0.85; font-size: 13.5px; }
.rodape a:hover { opacity: 1; color: var(--ouro-claro); }
.rodape__redes { display: flex; gap: 10px; }
.rodape__redes a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--linha-clara); }
.rodape__redes svg { width: 18px; height: 18px; }
.rodape__lojas { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: center; padding: 16px 0 0; font-size: 12px; color: var(--lilas); }
.rodape__fim { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; font-size: 12px; color: var(--lilas); }
.rodape__fim a { font-size: 12px; }
@media (min-width: 761px) { .rodape__fim { padding-right: 76px; } } /* não fica sob o botão do WhatsApp */
.rodape .marca__nome { font-size: 40px; }
.rodape .marca__sub { font-size: 9px; }
@media (max-width: 760px) {
  .rodape__topo { flex-direction: column; text-align: center; }
  .rodape__links { gap: 8px 16px; }
  .rodape__fim { justify-content: center; text-align: center; }
}

/* ---------- formulários ---------- */

.campo { display: grid; gap: 6px; }
.campo label, .campo > span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tinta-suave); font-weight: 500; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--raio-p);
  border: 1px solid var(--linha); background: var(--papel); font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campo textarea { min-height: 90px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--safira-3); box-shadow: 0 0 0 3px rgba(27, 43, 122, 0.12); }
.campo--erro input, .campo--erro select { border-color: var(--alerta); }
.campo small { color: var(--alerta); font-size: 12.5px; }

/* ---------- utilidades de seção ---------- */

.miolo { padding-left: var(--lateral); padding-right: var(--lateral); }
.limite { max-width: 1320px; margin: 0 auto; }
.migalha { font-size: 12.5px; color: var(--tinta-suave); display: flex; gap: 8px; flex-wrap: wrap; letter-spacing: 0.04em; }
.migalha a { text-decoration: none; }
.migalha a:hover { color: var(--safira); text-decoration: underline; }
[hidden] { display: none !important; }

/* ---------- marca com logo em arquivo (Brilho do Sol) ---------- */
.marca--logo { max-width: 100%; }
.marca--logo img { display: block; width: 180px; max-width: 100%; height: auto; }
.rodape .marca--logo img { width: 170px; }
/* Safire: logo em letra cursiva, mais alta que larga que a da Brilho */
.marca-safire .topo .marca--logo img { width: auto; height: 50px; }
.marca-safire .rodape .marca--logo img { width: 150px; }
.rodape .marca--logo .marca__sub { margin-top: 4px; font-size: 10px; }
.marca--logo .logo-escuro, .topo--noite .marca--logo .logo-claro { display: none; }
.topo--noite .marca--logo .logo-escuro { display: block; }
@media (max-width: 720px) { .marca--logo img { width: 150px; } }

/* Brilho do Sol · Óptica e Relojoaria: grafite e amarelo da logo */
.marca-brilho-do-sol {
  --safira: #42494C;
  --safira-2: #353B3E;
  --safira-3: #5C6467;
  --creme: #F4F4F1;
  --creme-2: #E7E7E2;
  --papel: #FFFFFF;
  --tinta: #2B3033;
  --tinta-suave: #5E6669;
  --linha: rgba(43, 48, 51, 0.12);
  --ouro: #E2AE07;
  --ouro-escuro: #8C6A00;
  --ouro-claro: #FBD866;
  --lilas: #A9B0B2;
  --f-display: "Jost", "Segoe UI", system-ui, sans-serif;
}
.marca-brilho-do-sol .topo--noite { background: rgba(53, 59, 62, 0.78); }
