/* ───────────────────────────────────────────────
   FLDorado — Catálogo (moedas / selos / postais)
   Partilhado entre as 3 páginas de colecção
   ─────────────────────────────────────────────── */

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

:root {
  --gold:    #C9A84C;
  --gold-lt: #e0c472;
  --gold-dk: #8f6e28;
  --charcoal: #0f0e0c;
  --ink:      #1a1814;
  --surface:  #161410;
  --card:     #1e1c18;
  --ivory:    #f0e8d5;
  --ivory-dk: #c8bfa8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5vw;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,14,12,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(201,168,76,0.15);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ivory-dk);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* Ícone do carrinho */
.cart-btn {
  position: relative;
  background: none;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.cart-btn:hover {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.cart-btn svg { width: 16px; height: 16px; }
.cart-count {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}
.cart-btn:hover .cart-count {
  background: var(--charcoal);
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--ivory);
  transition: transform 0.3s, opacity 0.3s;
}
nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(10,9,7,0.97);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 1050;
  }
  nav.open .nav-links a { font-size: 1rem; letter-spacing: 0.2em; }
}
@media (max-width: 1200px) and (min-width: 981px) {
  .nav-links { gap: 1.4rem; }
  .nav-links a { font-size: 0.62rem; letter-spacing: 0.12em; }
}

/* ── PAGE HEADER ── */
.cat-hero {
  padding: 10rem 5vw 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  background:
    radial-gradient(ellipse at top, rgba(201,168,76,0.06), transparent 60%),
    var(--charcoal);
}
.cat-breadcrumb {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivory-dk);
  opacity: 0.55;
  margin-bottom: 1.5rem;
}
.cat-breadcrumb a {
  color: var(--ivory-dk);
  text-decoration: none;
  transition: color 0.2s;
}
.cat-breadcrumb a:hover { color: var(--gold); }
.cat-breadcrumb .sep { margin: 0 0.6rem; color: var(--gold-dk); }

.cat-label {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.cat-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ivory);
  text-wrap: balance;
}
.cat-title em {
  font-style: italic;
  color: var(--gold-lt);
}
.cat-desc {
  max-width: 640px;
  margin: 2rem auto 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ivory-dk);
}
.cat-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto 0;
}

/* ── CATÁLOGO GRID ── */
.catalogo {
  padding: 5rem 5vw 7rem;
  background: var(--surface);
}
.cat-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dk);
  opacity: 0.7;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }

.produto {
  background: var(--card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.35s, transform 0.4s;
}
.produto:hover { background: #242017; }
.produto-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink);
}
.produto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) sepia(0.15);
  transition: transform 0.6s ease, filter 0.5s;
}
.produto:hover .produto-img img {
  transform: scale(1.04);
  filter: brightness(0.95) sepia(0.05);
}
.produto-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(15,14,12,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-lt);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
}
.produto-body {
  padding: 1.75rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.produto-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 0.6rem;
}
.produto-nome {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.produto-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ivory-dk);
  opacity: 0.85;
  margin-bottom: 1.5rem;
}
.produto-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(201,168,76,0.12);
}
.produto-preco {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.produto-preco small {
  display: block;
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dk);
  opacity: 0.5;
  margin-top: 0.1rem;
}
.produto-btn {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}
.produto-btn:hover {
  background: var(--gold);
  color: var(--charcoal);
}

/* ── CTA EXTRA / VOLTAR ── */
.cat-cta {
  padding: 5rem 5vw 7rem;
  text-align: center;
  background: var(--charcoal);
}
.cat-cta-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--ivory);
  margin-bottom: 1rem;
}
.cat-cta-title em { font-style: italic; color: var(--gold-lt); }
.cat-cta p {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ivory-dk);
}
.btn-ghost {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--charcoal);
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 3rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.footer-copy {
  font-size: 0.7rem;
  color: var(--ivory-dk);
  opacity: 0.5;
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dk);
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--gold); }

@media (max-width: 600px) {
  footer { flex-direction: column; text-align: center; }
  .cat-hero { padding: 8rem 6vw 3rem; }
  .catalogo { padding: 3.5rem 6vw 5rem; }
  .produto-body { padding: 1.4rem 1.4rem 1.5rem; }
}
