/* ============================================================
   Natusflorescência — Cosméticos Conscientes
   Paleta oficial da identidade visual:
   verde escuro #485937 | verde folha #4F6928
   verde sálvia #9AAB85 | verde claro  #C9D4BD
   Fontes: Philosopher (títulos) + Cormorant Garamond (textos)
   ============================================================ */

:root {
  --verde-escuro: #485937;
  --verde-folha: #4F6928;
  --verde-salvia: #9AAB85;
  --verde-claro: #C9D4BD;
  --fundo: #F7F8F4;
  --branco: #FFFFFF;
  --texto: #3A4630;
  --titulo: "Philosopher", sans-serif;
  --serifa: "Cormorant Garamond", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serifa);
  font-size: 1.15rem;
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.6;
}

img { max-width: 100%; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: .5rem;
  font-family: var(--titulo);
  font-size: 1rem;
  text-decoration: none;
  padding: .65rem 1.5rem;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(72, 89, 55, .25); }

.btn-principal { background: var(--verde-escuro); color: var(--branco); }
.btn-contorno { border: 1.5px solid var(--verde-escuro); color: var(--verde-escuro); }
.btn-whats { background: var(--verde-folha); color: var(--branco); }

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .8rem clamp(1rem, 5vw, 3rem);
  background: rgba(247, 248, 244, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--verde-claro);
}

.topo-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-family: var(--titulo);
  font-size: 1.25rem;
  color: var(--verde-escuro);
}
.topo-ornamento { height: 28px; }

.topo-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.topo-nav a {
  font-family: var(--titulo);
  text-decoration: none;
  color: var(--verde-escuro);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.topo-nav a:hover { border-color: var(--verde-salvia); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem 3.5rem;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(201, 212, 189, .45), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(154, 171, 133, .30), transparent 55%),
    var(--fundo);
}
.hero-logo { width: min(420px, 78vw); }
.hero-frase {
  max-width: 34em;
  margin: 1.8rem auto 0;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--verde-folha);
}
.hero-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- Faixa de valores ---------- */
.valores {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  justify-content: center;
  padding: 1.1rem 1.5rem;
  background: var(--verde-escuro);
  color: var(--verde-claro);
  font-family: var(--titulo);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
}
.valores i { color: var(--verde-salvia); font-style: normal; }

/* ---------- Seções ---------- */
.secao { padding: clamp(3rem, 7vw, 4.5rem) clamp(1rem, 5vw, 3rem); max-width: 1200px; margin: 0 auto; }

.secao-titulo {
  font-family: var(--titulo);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--verde-escuro);
  text-align: center;
}
.secao-sub { text-align: center; margin-top: .5rem; font-size: 1.2rem; color: var(--verde-salvia); }

/* ---------- Produtos ---------- */
.grade-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}

/* carrossel de linhas: leva direto para cada seção */
/* no computador: todos os cartões cabem (quebram de linha se precisar), sem barra */
.linhas-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2rem;
  justify-content: center;
  padding: .4rem .2rem .8rem;
}

/* no celular: vira carrossel deslizante com a barrinha */
@media (max-width: 760px) {
  .linhas-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
}
.linha-cartao {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 136px;
  text-decoration: none;
  text-align: center;
  background: var(--branco);
  border: 1px solid var(--verde-claro);
  border-radius: 16px;
  padding: .85rem .5rem .75rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.linha-cartao:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(72, 89, 55, .18);
  border-color: var(--verde-salvia);
}
.linha-cartao-foto {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--verde-claro);
}
.linha-cartao-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.linha-cartao-nome {
  display: block;
  margin-top: .7rem;
  font-family: var(--titulo);
  font-size: 1.05rem;
  color: var(--verde-escuro);
}
.linha-cartao-qtd {
  display: block;
  margin-top: .15rem;
  font-size: .95rem;
  color: var(--verde-salvia);
}

/* cartão de linha "Em breve" */
.linha-cartao-embreve { border-style: dashed; background: var(--fundo); }
.linha-cartao-embreve .linha-cartao-nome { color: var(--verde-folha); }
.linha-cartao-embreve .linha-cartao-qtd {
  font-family: var(--titulo);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.linha-cartao-foto-embreve {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-claro);
  border-style: dashed;
}
.linha-cartao-foto-embreve img {
  width: 55%;
  height: auto;
  object-fit: contain;
  opacity: .6;
}

/* título de cada linha (Facial, Corporal, Capilar, Bem-Estar) */
.linha-titulo {
  display: flex;
  align-items: center;
  gap: .7rem;
  scroll-margin-top: 90px;
  font-family: var(--titulo);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: var(--verde-folha);
  margin-top: 3.2rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--verde-claro);
}
.linha-titulo img { height: 26px; }
#vitrine .linha-titulo:first-child { margin-top: 2rem; }
#vitrine .grade-produtos { margin-top: 1.6rem; }

.produto {
  position: relative;
  background: var(--branco);
  border: 1px solid var(--verde-claro);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.produto:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(72, 89, 55, .16); }

.produto-foto {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--verde-claro), var(--verde-salvia));
  display: flex;
  align-items: center;
  justify-content: center;
}
.produto-foto img { width: 100%; height: 100%; object-fit: cover; }
.produto-foto .produto-simbolo { width: 90px; height: auto; opacity: .55; object-fit: contain; }

.produto-nome {
  font-family: var(--titulo);
  font-size: 1.2rem;
  color: var(--verde-escuro);
  padding: 1rem 1.2rem 0;
}
.produto-desc { padding: .4rem 1.2rem 0; font-size: 1.05rem; flex: 1; }

.produto-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem .8rem;
  padding: 1rem 1.2rem 1.2rem;
}
.produto-preco {
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--verde-folha);
}

/* ---------- Selos (Lançamento / Em breve) ---------- */
.selo-titulo {
  text-align: center;
  font-family: var(--titulo);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--verde-salvia);
  margin-bottom: .4rem;
}

.selo {
  display: inline-block;
  font-family: var(--titulo);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
}
.selo-lancamento {
  background: var(--verde-escuro);
  color: var(--verde-claro);
  margin-bottom: .8rem;
}
.selo-embreve {
  position: absolute;
  top: .9rem;
  left: .9rem;
  background: rgba(72, 89, 55, .92);
  color: var(--verde-claro);
}

#lancamento { padding-bottom: 1rem; }

/* ---------- Produto em destaque (lançamento) ---------- */
.destaque {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: 2.5rem;
  background: var(--branco);
  border: 1px solid var(--verde-claro);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(72, 89, 55, .10);
}

.destaque-foto {
  align-self: stretch;
  min-height: 320px;
  background: linear-gradient(135deg, var(--verde-claro), var(--verde-salvia));
  display: flex;
  align-items: center;
  justify-content: center;
}
.destaque-foto img { width: 100%; height: 100%; object-fit: cover; }
.destaque-foto .produto-simbolo { width: 140px; height: auto; opacity: .55; object-fit: contain; }

/* pote 3D dentro do destaque */
#creme3d { position: relative; overflow: hidden; }
#creme3d canvas { display: block; }
.dica-3d {
  position: absolute;
  bottom: .8rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--titulo);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  background: rgba(72, 89, 55, .45);
  padding: .25rem .8rem;
  border-radius: 999px;
  pointer-events: none;
}

.destaque-info { padding: 2rem 2.2rem 2rem 0; }
.destaque-nome {
  font-family: var(--titulo);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--verde-escuro);
}
.destaque-desc { margin-top: .8rem; font-size: 1.2rem; }
.destaque-preco {
  margin-top: 1.2rem;
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--verde-folha);
}
.destaque-btn { margin-top: 1.2rem; font-size: 1.1rem; padding: .8rem 2rem; }

@media (max-width: 760px) {
  .destaque { grid-template-columns: 1fr; }
  .destaque-foto { min-height: 240px; }
  .destaque-info { padding: 0 1.5rem 1.8rem; text-align: center; }
}

/* ---------- Página do produto ---------- */
.pagina-produto {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 3rem) 3.5rem;
}

.voltar {
  display: inline-block;
  font-family: var(--titulo);
  color: var(--verde-folha);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.voltar:hover { text-decoration: underline; }

.detalhe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.galeria-principal {
  background: var(--branco);
  border: 1px solid var(--verde-claro);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.galeria-principal img,
.galeria-principal video { width: 100%; height: 100%; object-fit: cover; }

.miniatura { position: relative; }
.miniatura video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.miniatura-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  background: rgba(40, 50, 30, .35);
  pointer-events: none;
}

.galeria-miniaturas {
  display: flex;
  gap: .7rem;
  margin-top: .8rem;
  flex-wrap: wrap;
}
.miniatura {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--branco);
  transition: border-color .15s ease, transform .15s ease;
}
.miniatura img { width: 100%; height: 100%; object-fit: cover; display: block; }
.miniatura:hover { transform: translateY(-2px); }
.miniatura.ativa { border-color: var(--verde-folha); }

.detalhe-nome {
  font-family: var(--titulo);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  color: var(--verde-escuro);
  margin-top: .4rem;
}
.detalhe-preco {
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--verde-folha);
  margin-top: .8rem;
}
.detalhe-estoque {
  margin-top: .4rem;
  font-family: var(--titulo);
  font-size: .95rem;
  color: var(--verde-folha);
}

.detalhe-desc { margin-top: 1.2rem; font-size: 1.22rem; }
.detalhe-btn { margin-top: 1.6rem; font-size: 1.1rem; padding: .85rem 2.1rem; }
.detalhe-nota { margin-top: 1rem; font-size: 1.05rem; color: var(--verde-salvia); font-style: italic; }

.veja-tambem { margin-top: clamp(3rem, 6vw, 4.5rem); }
.veja-tambem .grade-produtos { margin-top: 1.8rem; }

@media (max-width: 720px) {
  .detalhe { grid-template-columns: 1fr; }
}

/* card clicável da vitrine */
.produto-capa {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.produto-capa .produto-desc { flex: 1; }

/* produtos ainda indisponíveis: foto acinzentada */
.produto-embreve .produto-foto img {
  filter: grayscale(.85) brightness(1.04);
  opacity: .8;
}
.produto-embreve .produto-nome,
.produto-embreve .produto-preco { color: #8a9184; }

/* bloco 3D dentro da Linha Corporal */
.destaque-3d-bloco { margin-top: 2rem; }
.destaque-acoes { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.destaque-acoes .destaque-btn { margin-top: 1.2rem; }

/* ficha técnica na página do produto */
.detalhe-sub {
  font-family: var(--titulo);
  font-size: 1.15rem;
  color: var(--verde-escuro);
  margin-top: 1.4rem;
}
.detalhe-texto { margin-top: .4rem; font-size: 1.12rem; }
.detalhe-lista { margin: .4rem 0 0 1.3rem; font-size: 1.12rem; }
.detalhe-lista li { margin-top: .15rem; }
.detalhe-aviso {
  margin-top: 1.2rem;
  font-size: 1rem;
  font-style: italic;
  color: #8a6d3b;
  background: #faf6ec;
  border: 1px solid #e8dfc8;
  border-radius: 10px;
  padding: .6rem .9rem;
}

/* ---------- Sobre ---------- */
.sobre { background: var(--verde-claro); }
.sobre-conteudo {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.5rem) 1.5rem;
  text-align: center;
}
.sobre-ornamento { width: 70px; margin-bottom: 1rem; }
.sobre-conteudo p { margin-top: 1.2rem; font-size: 1.2rem; }

/* ---------- Rodapé ---------- */
.rodape {
  background: var(--verde-escuro);
  color: var(--verde-claro);
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}
.rodape-logo { width: min(260px, 60vw); opacity: .95; }
.rodape-contatos {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: 1.5rem;
  font-size: 1.15rem;
}
.rodape-contatos a { color: var(--verde-claro); text-decoration: none; }
.rodape-contatos a:hover { color: var(--branco); text-decoration: underline; }
.rodape-nota { margin-top: 1.8rem; font-size: .95rem; opacity: .75; }

/* ---------- WhatsApp flutuante ---------- */
.whats-flutuante {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 30;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.whats-flutuante:hover { transform: scale(1.08); }

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  .topo { gap: 1rem; }
  .topo-nav { display: none; }
  .topo-whats { margin-left: auto; padding: .55rem 1rem; font-size: .9rem; }
  .topo-logo span { font-size: 1.05rem; }
}
