/* ==========================================================================
   CerArt — Estilos
   Paleta inspirada na identidade da marca (terracota + creme + verde-sálvia)
   ========================================================================== */

:root {
  --terracota: #b0763c;
  --terracota-escuro: #935f2c;
  --creme: #f6f1e7;
  --creme-2: #efe7d8;
  --areia: #e6dcc7;
  --verde: #9aa87e;
  --verde-escuro: #7f8d65;
  --rosa: #d8a693;
  --pessego: #e7a97e;
  --texto: #3d382f;
  --texto-suave: #6d665a;
  --whatsapp: #25d366;
  --sombra: 0 10px 30px rgba(61, 56, 47, 0.12);
  --radio: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--texto);
  background: var(--creme);
  line-height: 1.6;
}

h1, h2, h3, .logo__img { font-family: "Fraunces", Georgia, serif; }

a { color: inherit; text-decoration: none; }

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

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Barra de aviso ---------- */
.topbar {
  background: var(--terracota);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 8px 12px;
  min-height: 34px;
}

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--areia);
}
.header__inner {
  width: min(1180px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.logo__img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--texto-suave);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s;
}
.nav a:hover { color: var(--terracota); }
.nav a.active { color: var(--terracota); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--terracota);
  border-radius: 2px;
}
.nav__destaque {
  background: var(--terracota);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 999px;
  font-weight: 600;
}
.nav__destaque:hover { background: var(--terracota-escuro); }
.nav__destaque.active::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--texto);
  border-radius: 2px;
  transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(231, 169, 126, 0.35), transparent 55%),
    linear-gradient(135deg, var(--creme-2), var(--areia));
}
.hero__inner {
  width: min(1180px, 92%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 72px 0;
}
.hero__eyebrow {
  display: inline-block;
  color: var(--terracota);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--terracota); font-style: italic; }
.hero p { font-size: 1.08rem; color: var(--texto-suave); max-width: 46ch; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__art {
  aspect-ratio: 4 / 3.4;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 30%, var(--rosa), transparent 45%),
    radial-gradient(circle at 75% 65%, var(--verde), transparent 45%),
    linear-gradient(160deg, var(--pessego), var(--terracota));
  box-shadow: var(--sombra);
  display: grid;
  place-items: center;
  position: relative;
}
.hero__art img { width: 62%; filter: brightness(0) invert(1); opacity: 0.92; }

/* Quando há foto principal enviada pelo painel, ela preenche o card do banner */
.hero__art--foto { background: none; overflow: hidden; }
.hero__art--foto img { width: 100%; height: 100%; object-fit: cover; filter: none; opacity: 1; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--terracota); color: #fff; }
.btn--primary:hover { background: var(--terracota-escuro); }
.btn--outline { border-color: var(--terracota); color: var(--terracota); background: transparent; }
.btn--outline:hover { background: var(--terracota); color: #fff; }
.btn--wpp { background: var(--whatsapp); color: #fff; }
.btn--wpp:hover { filter: brightness(0.95); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Seções ---------- */
.section { padding: 64px 0; }
.section__head { text-align: center; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 8px; }
.section__head p { color: var(--texto-suave); }
.section--alt { background: var(--creme-2); }

/* ---------- Faixas de categorias (home) ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.cat-card {
  border-radius: var(--radio);
  padding: 34px 26px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card h3 { font-size: 1.4rem; }
.cat-card span { font-size: 0.9rem; opacity: 0.9; }
.cat-card--1 { background: linear-gradient(150deg, var(--pessego), var(--terracota)); }
.cat-card--2 { background: linear-gradient(150deg, var(--rosa), var(--terracota-escuro)); }
.cat-card--3 { background: linear-gradient(150deg, var(--verde), var(--verde-escuro)); }
.cat-card--4 { background: linear-gradient(150deg, var(--rosa), var(--verde-escuro)); }
.cat-card--5 { background: linear-gradient(150deg, var(--pessego), var(--texto)); }

/* ---------- Grade de produtos ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--areia);
  border-radius: var(--radio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.card__media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--creme-2), var(--areia));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.card__ph-wrap { display: grid; place-items: center; width: 100%; height: 100%; }
.card__ph { color: var(--terracota); opacity: 0.5; width: 46%; transform: scaleX(-1); }

/* ---------- Carrossel do card ---------- */
.carousel__viewport { position: absolute; inset: 0; }
.carousel__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-in;
}
.carousel__img.is-active { opacity: 1; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--texto);
  font-size: 1.2rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transition: opacity 0.2s, background 0.2s;
  z-index: 2;
}
.card__media:hover .carousel__btn { opacity: 1; }
.carousel__btn:hover { background: #fff; }
.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }
.carousel__dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; gap: 6px; justify-content: center;
  z-index: 2;
}
.carousel__dots .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.carousel__dots .dot.is-active { background: #fff; transform: scale(1.25); }
.carousel__zoom {
  position: absolute; top: 8px; right: 10px;
  background: rgba(255,255,255,0.8);
  color: var(--texto);
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.85rem;
  opacity: 0; transition: opacity 0.2s;
  z-index: 2; pointer-events: none;
}
.card__media:hover .carousel__zoom { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(28, 25, 20, 0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
}
.lightbox.open { display: flex; }
.lightbox__stage {
  max-width: 90vw; max-height: 84vh;
  overflow: hidden;
  display: grid; place-items: center;
}
.lightbox__stage img {
  max-width: 90vw; max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.15s ease;
  transform: scale(1);
  user-select: none;
}
.lightbox__stage img.is-zoom { transform: scale(2.2); cursor: zoom-out; }
.lightbox__close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: 0; color: #fff;
  font-size: 2.4rem; line-height: 1; cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); color: #fff;
  border: 0; width: 52px; height: 52px; border-radius: 50%;
  font-size: 2rem; line-height: 1; cursor: pointer;
  transition: background 0.2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__hint {
  position: absolute; bottom: 22px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,0.7); font-size: 0.85rem;
}
@media (max-width: 600px) {
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}
.card__tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--terracota);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__nome { font-size: 1.05rem; font-weight: 600; font-family: "Fraunces", serif; }
.card__desc { font-size: 0.86rem; color: var(--texto-suave); flex: 1; }
.card__preco { font-size: 1.2rem; font-weight: 600; color: var(--terracota); }
.card__preco small { font-size: 0.78rem; color: var(--texto-suave); font-weight: 400; }

/* ---------- Bloco destaque "Para Ceramistas" ---------- */
.destaque {
  background: linear-gradient(150deg, var(--verde), var(--verde-escuro));
  color: #fff;
}
.destaque__inner {
  width: min(1180px, 92%);
  margin-inline: auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.destaque h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.destaque p { opacity: 0.95; margin-bottom: 26px; max-width: 48ch; }
.destaque .btn--primary { background: #fff; color: var(--verde-escuro); }
.destaque .btn--primary:hover { background: var(--creme); }
.destaque__art {
  aspect-ratio: 1/1;
  border-radius: 28px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  display: grid; place-items: center;
}
.destaque__art img { width: 55%; filter: brightness(0) invert(1); }

/* Quando há foto enviada pelo painel, ela preenche o card */
.destaque__art--foto { background: none; border: 0; overflow: hidden; }
.destaque__art--foto img { width: 100%; height: 100%; object-fit: cover; filter: none; }

/* ---------- Página Sobre ---------- */
.sobre { max-width: 720px; margin-inline: auto; }
.sobre p { margin-bottom: 18px; color: var(--texto-suave); font-size: 1.05rem; }
.sobre h2 { margin-bottom: 20px; }

/* ---------- Info / contato ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.info-card { background: #fff; border: 1px solid var(--areia); border-radius: var(--radio); padding: 22px; text-align: center; }
.info-card strong { display: block; color: var(--terracota); margin-bottom: 4px; }

/* ---------- Estado vazio ---------- */
.vazio { text-align: center; padding: 60px 0; color: var(--texto-suave); }

/* ---------- Rodapé ---------- */
.footer { background: var(--texto); color: var(--creme); margin-top: 20px; }
.footer__inner { width: min(1180px, 92%); margin-inline: auto; padding: 48px 0 28px; text-align: center; }
.footer__logo { height: 40px; margin: 0 auto 14px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer__tagline { color: rgba(246,241,231,0.75); margin-bottom: 18px; }
.footer__links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.footer__links a { color: var(--creme); opacity: 0.85; font-size: 0.9rem; }
.footer__links a:hover { opacity: 1; color: var(--pessego); }
.footer__copy { font-size: 0.8rem; color: rgba(246,241,231,0.5); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform 0.2s;
  animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--creme);
    border-bottom: 1px solid var(--areia);
    padding: 12px 6%;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 10px 2px; }
  .nav__destaque { display: inline-block; width: auto; }
  .hero__inner { grid-template-columns: 1fr; padding: 48px 0; }
  .hero__art { order: -1; max-height: 320px; }
  .cats { grid-template-columns: 1fr; }
  .destaque__inner { grid-template-columns: 1fr; padding: 56px 0; }
  .destaque__art { order: -1; max-height: 300px; }
  .info-grid { grid-template-columns: 1fr; }
}
