/* =================================================================
   Maria Rica — Vitrine · "Editorial Rosé"
   Direção: revista de moda impressa · papel + rosé + fio dourado
   Display: Fraunces · Texto/UI: Karla
   (autocontido: o admin usa styles.css/admin.css, intocados)
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Karla:ital,wght@0,300..700;1,300..700&display=swap');

:root {
  /* — papel & tinta — */
  --paper:      #FAF4EF;
  --paper-2:    #F4E7E1;
  --card:       #FFFDFB;
  --ink:        #3D2830;   /* ameixa-café escuro */
  --ink-2:      #7C616A;

  /* — rosé — */
  --blush:      #F5DCE2;
  --rose:       #D598AA;
  --rosewood:   #96556B;
  --rosewood-2: #7C4257;

  /* — ouro — */
  --gold:       #B9924C;
  --gold-2:     #96713A;
  --hairline:   rgba(185,146,76,.42);
  --hairline-2: rgba(185,146,76,.22);

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Karla', system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(52rem 36rem at 108% -8%, rgba(245,220,226,.75), transparent 62%),
    radial-gradient(44rem 32rem at -12% 16%, rgba(233,214,184,.5), transparent 58%),
    radial-gradient(60rem 44rem at 50% 130%, rgba(245,220,226,.55), transparent 62%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* grão de papel */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 40;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* moldura de convite: fio dourado duplo em volta da página inteira */
body::after {
  content: '';
  position: fixed; inset: 10px;
  pointer-events: none; z-index: 41;
  border: 1px solid var(--hairline);
  outline: 1px solid var(--hairline-2);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; font-size: 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.4rem, 5vw, 4rem); }

/* seleção de texto na cara da marca */
::selection { background: var(--rose); color: #fff; }

/* ---------- micro-rótulo editorial ---------- */
.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: var(--ink);
}
.kicker .n { color: var(--gold-2); }

/* =================================================================
   TOPBAR
   ================================================================= */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250,244,239,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-2);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .8rem;
}
.brand-mini { display: flex; align-items: baseline; gap: .55rem; }
.brand-mini .mark { width: 30px; height: 30px; align-self: center; flex: none; }
.brand-mini b {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand-mini b span { color: var(--ink); font-style: italic; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.nav-links a {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-2);
  transition: color .3s;
}
.nav-links a:hover { color: var(--rosewood); }
.nav-links .btn-whats {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #fff; background: var(--rosewood);
  padding: .6rem 1.15rem; border-radius: 999px;
  letter-spacing: .18em;
  box-shadow: 0 10px 22px -10px rgba(124,66,87,.6);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.nav-links .btn-whats:hover { color: #fff; background: var(--rosewood-2); transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(124,66,87,.75); }

/* =================================================================
   HERO — editorial assimétrico
   ================================================================= */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(3.4rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
}

.hero-copy { position: relative; z-index: 2; }
.hero-copy .kicker { display: inline-flex; align-items: center; gap: .9rem; }
.hero-copy .kicker::before {
  content: ''; width: clamp(28px, 5vw, 64px); height: 1px; background: var(--gold);
}

.hero h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(3.1rem, 9.6vw, 7.6rem);
  line-height: .92;
  letter-spacing: -.015em;
  margin-block: 1.1rem .4rem;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 340;
  color: var(--ink);
}
.hero h1 .flourish { color: var(--gold); }

.hero .tagline {
  max-width: 44ch;
  margin-block: 1.2rem 2rem;
  font-size: clamp(1rem, 2.2vw, 1.14rem);
  color: var(--ink);
}

.cta-row { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: .8rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 1.02rem 1.9rem;
  border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: 0 16px 34px -16px rgba(61,40,48,.55);
}
.btn-primary:hover { background: var(--rosewood-2); transform: translateY(-3px); box-shadow: 0 22px 40px -16px rgba(124,66,87,.6); }
.btn-primary .arr { transition: transform .35s var(--ease); }
.btn-primary:hover .arr { transform: translateX(4px); }
.link-under {
  font-weight: 700; font-size: .8rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--rosewood);
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--rose);
  transition: color .3s, border-color .3s;
}
.link-under:hover { color: var(--rosewood-2); border-color: var(--rosewood-2); }

/* selo: a logo redonda como um lacre de cera flutuando sobre o texto */
.hero-seal { position: relative; z-index: 1; justify-self: center; }
.hero-seal .disc {
  position: relative;
  width: clamp(200px, 26vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 34px 70px -30px rgba(124,66,87,.45),
    0 0 0 1px var(--hairline),
    0 0 0 12px rgba(255,253,251,.65),
    0 0 0 13px var(--hairline-2);
}
.hero-seal .disc img { width: 100%; height: 100%; object-fit: cover; }
/* flutua só na vertical, sem rotação — o logo nunca inclina */
@keyframes sealFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* texto circular girando em volta do selo */
.hero-seal .orbit {
  position: absolute; inset: -17%;
  animation: orbit 26s linear infinite;
  pointer-events: none;
}
.hero-seal .orbit text {
  font-family: var(--sans);
  font-size: 7.2px;
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  fill: var(--gold-2);
}
@keyframes orbit { to { transform: rotate(360deg); } }

/* números editoriais soltos no hero */
.hero-issue {
  position: absolute;
  right: clamp(1rem, 4vw, 3.4rem);
  bottom: 1.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: .92rem;
  color: var(--ink-2);
}
.hero-issue b { font-style: normal; color: var(--ink); }

/* pétala aquarela de fundo */
.hero-wash {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}
.hero-wash.w1 { width: 46vw; max-width: 620px; aspect-ratio: 1; right: -12%; top: -28%; background: radial-gradient(circle at 40% 40%, rgba(245,220,226,.9), rgba(245,220,226,0) 68%); }
.hero-wash.w2 { width: 26vw; max-width: 340px; aspect-ratio: 1; left: -8%; bottom: -22%; background: radial-gradient(circle at 50% 50%, rgba(233,214,184,.55), rgba(233,214,184,0) 70%); }

/* entrada orquestrada */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy > * { opacity: 0; animation: riseIn .9s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .16s; }
.hero-copy > *:nth-child(3) { animation-delay: .3s; }
.hero-copy > *:nth-child(4) { animation-delay: .44s; }
/* float aplicado no conjunto (logo + anel) → sempre concêntricos; começa após a entrada */
.hero-seal { opacity: 0; animation: riseIn 1.1s var(--ease) .35s forwards, sealFloat 7s ease-in-out 1.6s infinite; }

/* =================================================================
   MARQUEE — fita dourada
   ================================================================= */
.ribbon {
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(185,146,76,.1), rgba(185,146,76,.16));
  padding-block: .78rem;
}
.ribbon .track {
  display: flex; gap: 3.4rem; width: max-content;
  animation: ribbon 30s linear infinite;
}
.ribbon span {
  display: inline-flex; align-items: center; gap: 3.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: .98rem;
  letter-spacing: .16em;
  color: var(--gold-2);
  white-space: nowrap;
}
.ribbon i { font-style: normal; color: var(--rose); }
@keyframes ribbon { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon .track, .hero-seal, .hero-seal .disc, .hero-seal .orbit { animation: none; }
  .hero-seal { opacity: 1; }
}

/* =================================================================
   VITRINE
   ================================================================= */
.catalog { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6rem); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}
.section-head h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin-top: .5rem;
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--ink); font-weight: 340; }
.section-head .count {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--ink-2);
  padding-bottom: .55rem;
}
.section-head .count b {
  font-style: normal;
  font-size: 1.7rem;
  color: var(--rosewood);
  font-weight: 500;
}

/* --- busca editorial: linha, não caixa --- */
.toolbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.4rem 2rem; flex-wrap: wrap;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--hairline-2);
}
.search {
  display: flex; align-items: center; gap: .7rem;
  flex: 1 1 300px; max-width: 460px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: .5rem;
  color: var(--gold-2);
  transition: border-color .3s;
}
.search:focus-within { border-color: var(--rosewood); color: var(--rosewood); }
.search input {
  width: 100%; border: none; outline: none; background: none;
  font-size: .98rem; color: var(--ink);
}
.search input::placeholder { color: var(--ink-2); opacity: .75; font-style: italic; font-family: var(--serif); }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-2);
  padding: .5rem 1.05rem;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: transparent;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--rose); color: var(--rosewood); }
.chip.active {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
  box-shadow: 0 10px 20px -12px rgba(61,40,48,.5);
}

/* --- grid de pranchas --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: clamp(1.1rem, 2.6vw, 2rem);
}

@keyframes cardIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(185,146,76,.18);
  box-shadow: 0 1px 0 rgba(61,40,48,.03), 0 18px 40px -30px rgba(124,66,87,.35);
  opacity: 0;
  animation: cardIn .7s var(--ease) forwards;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(61,40,48,.03), 0 34px 60px -30px rgba(124,66,87,.5);
}

.photo {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: .55rem .55rem 0;         /* passe-partout: papel em volta da foto */
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
}
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), filter .8s var(--ease);
}
.card:hover .photo img { transform: scale(1.045); }
/* fio dourado interno que aparece no hover */
.photo::after {
  content: '';
  position: absolute; inset: 9px;
  border: 1px solid rgba(255,255,255,.85);
  outline: 1px solid var(--hairline);
  outline-offset: 2px;
  opacity: 0; transition: opacity .45s var(--ease);
  pointer-events: none;
}
.card:hover .photo::after { opacity: 1; }

.noimg {
  height: 100%; display: grid; place-items: center;
  color: var(--rose);
  background:
    radial-gradient(14rem 10rem at 70% 20%, rgba(245,220,226,.8), transparent 65%),
    var(--paper-2);
}

/* badge de contagem de fotos (escuro p/ ler sobre qualquer foto) */
.count-badge {
  position: absolute;
  top: .55rem; right: .55rem;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .55rem;
  background: rgba(61,40,48,.8); color: var(--paper);
  backdrop-filter: blur(4px);
}

/* setas de navegação da foto */
.navimg {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,253,251,.92);
  color: var(--rosewood);
  box-shadow: 0 6px 16px -6px rgba(61,40,48,.35);
  opacity: 0;
  transition: opacity .3s, transform .3s;
}
.navimg.prev { left: .55rem; }
.navimg.next { right: .55rem; }
.navimg[hidden] { display: none; }        /* seta desativada não fica clicável (bug de toque) */
.photo:hover .navimg:not([hidden]),
.photo:focus-within .navimg:not([hidden]) { opacity: 1; }
.navimg:hover { transform: translateY(-50%) scale(1.08); }
/* em telas de toque as setas ficam sempre visíveis (senão o toque pra ampliar troca a foto) */
@media (hover: none) { .navimg:not([hidden]) { opacity: .95; } }

/* faixa vendido */
.sold-ribbon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(250,244,239,.55);
  backdrop-filter: blur(1.5px) grayscale(.7);
}
.sold-ribbon span {
  font-family: var(--serif); font-style: italic;
  font-size: 1.25rem; color: var(--ink);
  background: rgba(255,253,251,.92);
  border-block: 1px solid var(--hairline);
  padding: .45rem 0; width: 120%;
  text-align: center;
  transform: rotate(-8deg);
}

/* corpo do card */
.card .body { display: flex; flex-direction: column; gap: .3rem; padding: .95rem 1.05rem 1.1rem; flex: 1; }
/* trio de specs: estado · tamanho · marca — juntos, embaixo da foto e destacados */
.specs { display: flex; flex-wrap: wrap; align-items: center; gap: .38rem; margin-bottom: .15rem; }
.spec {
  display: inline-flex; align-items: center;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .32rem .64rem; border-radius: 999px; line-height: 1;
  white-space: nowrap;
}
.spec-tam    { background: var(--ink); color: var(--paper); }
.spec-estado { background: rgba(213,152,170,.28); color: var(--ink); border: 1px solid var(--rose); }
.spec-marca  { background: rgba(185,146,76,.20); color: var(--gold-2); border: 1px solid rgba(185,146,76,.5); }
.cod {
  font-family: var(--serif); font-style: italic;
  font-size: .82rem; color: var(--ink-2);
  display: inline-block;
}
.nome {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.36rem;
  line-height: 1.14;
  letter-spacing: .002em;
  margin-top: .2rem;
  color: var(--ink);
}
.desc {
  font-size: .86rem; color: var(--ink-2);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .foot {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  margin-top: auto; padding-top: .8rem;
  border-top: 1px solid var(--hairline-2);
}
.preco {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  color: var(--ink);
}
.buy {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: #fff; background: var(--rosewood);
  padding: .58rem 1.05rem; border-radius: 999px;
  box-shadow: 0 10px 20px -10px rgba(124,66,87,.65);
  transition: background .3s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.buy:hover { background: var(--rosewood-2); transform: translateY(-2px); box-shadow: 0 14px 24px -10px rgba(124,66,87,.8); }

/* vazio */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  border: 1px dashed var(--hairline);
  background: rgba(255,253,251,.6);
}
.empty .em { font-size: 2.2rem; margin-bottom: .6rem; }
.empty h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin-bottom: .3rem; }
.empty p { color: var(--ink-2); max-width: 46ch; margin-inline: auto; }

/* =================================================================
   MANIFESTO / SOBRE
   ================================================================= */
.manifesto {
  border-top: 1px solid var(--hairline-2);
  background: linear-gradient(180deg, rgba(245,220,226,.28), transparent 55%);
}
.manifesto .wrap {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.2rem, 8vw, 6rem);
}
.manifesto h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
  margin-top: .9rem;
  text-wrap: balance;
}
.manifesto h3 em { font-style: italic; color: var(--ink); font-weight: 340; }
.manifesto .lead {
  font-family: var(--serif);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  font-weight: 420;
  line-height: 1.72;
  color: var(--ink);
}
.manifesto .lead p + p { margin-top: 1rem; }
.manifesto .lead .cap::first-letter {
  font-family: var(--serif);
  initial-letter: 3 3;
  -webkit-initial-letter: 3 3;
  color: var(--ink);
  font-style: italic;
  font-weight: 600;
  margin-right: .55rem;
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--ink);
  color: #EFD9CE;
}
.footer .wrap { padding-block: clamp(3rem, 7vw, 4.6rem) 1.6rem; text-align: center; }
.footer .foot-brand {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1;
  color: #F8EDE6;
}
.footer .foot-brand em { font-style: italic; color: var(--rose); font-weight: 340; }
.footer .foot-tag {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem;
}
.footer .socials { display: flex; justify-content: center; gap: .9rem; margin-top: 1.8rem; }
.footer .socials a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: .62rem 1.25rem;
  border: 1px solid rgba(239,217,206,.35);
  border-radius: 999px;
  transition: all .3s var(--ease);
}
.footer .socials a:hover { background: rgba(239,217,206,.12); border-color: var(--rose); color: #fff; transform: translateY(-2px); }
.footer .rule {
  height: 1px; margin-block: 2.2rem 1.3rem;
  background: linear-gradient(90deg, transparent, rgba(185,146,76,.55), transparent);
}
.footer .copyright { font-size: .84rem; color: rgba(239,217,206,.6); }
.footer .admin-link {
  display: inline-block; margin-top: .5rem;
  font-size: .76rem; color: rgba(239,217,206,.4);
  border-bottom: 1px dotted rgba(239,217,206,.35);
  transition: color .3s;
}
.footer .admin-link:hover { color: var(--rose); }

/* =================================================================
   LIGHTBOX
   ================================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: rgba(43,26,33,.9);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 900px); max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 0 0 1px var(--hairline), 0 40px 90px -30px rgba(0,0,0,.7);
  background: var(--card);
}

/* moldura da foto + legenda no pé (specs + nome da peça) */
.lb-stage { position: relative; margin: 0; display: grid; }
.lb-stage img { display: block; }
.lb-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 2.4rem 1rem .85rem;
  background: linear-gradient(to top, rgba(43,26,33,.9), rgba(43,26,33,.55) 55%, rgba(43,26,33,0));
  text-align: center;
  pointer-events: none;   /* não atrapalha toque/clique na foto */
}
.lb-info .specs { justify-content: center; margin-bottom: 0; }
/* sobre foto escura, as etiquetas translúcidas do card somem —
   aqui viram sólidas, com texto escuro em fundo claro (alto contraste) */
.lb-info .spec-estado { background: var(--rose); color: #2B1A21; border: none; }
.lb-info .spec-tam    { background: #F8EDE6; color: var(--ink); }
.lb-info .spec-marca  { background: var(--gold); color: #2B1A21; border: none; }
.lb-info .spec-sold   { background: var(--rosewood-2); color: #F8EDE6; }
.lb-info .lb-nome {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  line-height: 1.25;
  color: #F8EDE6;
  text-wrap: balance;
}
.spec-sold { background: var(--rosewood); color: #F8EDE6; }
.lb-close, .lb-nav {
  position: fixed; z-index: 61;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #F8EDE6;
  background: rgba(255,253,251,.1);
  border: 1px solid rgba(248,237,230,.28);
  font-size: 1.15rem;
  transition: background .3s, transform .3s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,253,251,.22); transform: scale(1.06); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 1.7rem; }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
.lb-nav.prev { left: 1.1rem; }
.lb-nav.next { right: 1.1rem; }
.lb-dots { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.lb-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(248,237,230,.35);
  transition: background .3s, transform .3s;
}
.lb-dots span.on { background: var(--rose); transform: scale(1.25); }

/* =================================================================
   RESPONSIVO
   ================================================================= */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 2.6rem; }
  .hero-copy .kicker::before { display: none; }
  .hero .tagline { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-seal { order: -1; margin-bottom: .6rem; }
  .hero-seal .disc { width: clamp(180px, 46vw, 250px); }
  .hero-issue { display: none; }
  .manifesto .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body::after { inset: 6px; outline: none; }
  .nav-links a.nav-plain { display: none; }
  .kicker { letter-spacing: .26em; font-size: .66rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .photo { margin: .4rem .4rem 0; }
  .card .body { padding: .7rem .75rem .85rem; gap: .22rem; }
  .nome { font-size: 1.12rem; }
  .desc { display: none; }
  .cod { font-size: .74rem; }
  .specs { gap: .3rem; }
  .spec { font-size: .62rem; padding: .28rem .52rem; letter-spacing: .04em; }
  /* preço em cima, botão embaixo ocupando o card inteiro */
  .card .foot { flex-direction: column; align-items: stretch; gap: .5rem; }
  .preco { font-size: 1.12rem; }
  .buy { justify-content: center; padding: .58rem .8rem; font-size: .68rem; letter-spacing: .16em; }
  .section-head .count { display: none; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search { flex: 0 0 auto; max-width: none; width: 100%; min-width: 0; }   /* flex-basis 300px viraria ALTURA na coluna */
  /* categorias: uma linha só, deslizável no dedo */
  /* width:100% + min-width:0 impede o conteúdo nowrap de esticar a página (overflow horizontal) */
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; min-width: 0; padding-bottom: .35rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
