/* ============================================================
   Coisas da Ana — Ateliê de Crochê · Design System
   POV: editorial refinado, artesanal quente, 100% serifado.
   Tipografia: Fraunces (display) + Newsreader (texto) — sem Inter/Roboto.
   ============================================================ */

:root {
  /* ---- Sistema de cor contido (2 neutros + terracota + oliva) ---- */
  --paper: #fbf6ee;          /* fundo */
  --paper-2: #f3e8d7;        /* superfície elevada / areia */
  --raise: #fffdf9;          /* cartões claros */
  --ink: #241c15;            /* texto principal (AAA sobre paper) */
  --ink-soft: #4a4034;       /* texto secundário */
  --muted: #6e6152;          /* legendas / rótulos (AA sobre paper) */
  --terra: #a5472a;          /* acento primário */
  --terra-deep: #85391f;     /* acento pressionado */
  --olive: #5f6549;          /* acento de apoio (uso raro) */
  --line: #e5d7c2;           /* hairlines */
  --line-strong: #d3c1a5;

  --on-dark: #f4ece0;        /* texto sobre ink */
  --on-terra: #fdf3ea;

  /* ---- Efeitos ---- */
  --shadow-sm: 0 1px 2px rgba(60, 42, 26, 0.05), 0 6px 16px rgba(60, 42, 26, 0.05);
  --shadow-md: 0 10px 30px rgba(60, 42, 26, 0.1);
  --shadow-lg: 0 30px 70px rgba(45, 30, 18, 0.2);
  --radius: 4px;
  --radius-lg: 8px;
  --radius-round: 100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.1, 1);

  --nav-h: 78px;
  --maxw: 1280px;
  --gutter: clamp(22px, 5.5vw, 72px);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.72;
  font-size: 17px;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

/* grão de papel sutil */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.45;
  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='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--terra); color: var(--on-terra); }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.06; letter-spacing: -0.015em; color: var(--ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.eyebrow--terra { color: var(--terra); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.5; }
.eyebrow--bare::before { display: none; }
.section__title { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.lead { color: var(--ink-soft); font-size: 1.12rem; }
.serif-italic { font-style: italic; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(70px, 11vw, 150px); position: relative; z-index: 2; }
.rule { height: 1px; background: var(--line); border: 0; }
.section__head { max-width: 660px; margin-bottom: clamp(40px, 6vw, 68px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .eyebrow { margin-bottom: 20px; }
.section__head--center .eyebrow::before,
.section__head--center .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.5; }
.section__lead { margin-top: 22px; }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- Mídia (foto real com fallback de arte) ---------- */
.ph { position: relative; overflow: hidden; background: var(--paper-2); }
.ph svg, .ph__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph__img { object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease); }
.ph--photo .ph__img { opacity: 1; }

/* ---------- Motion (item 06 — sussurro) ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 65ms);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="clip"] { opacity: 1; transform: none; }
[data-reveal="clip"] .ph, [data-reveal="clip"].ph { clip-path: inset(0 0 101% 0); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 65ms); }
[data-reveal="clip"].in .ph, [data-reveal="clip"].in.ph { clip-path: inset(0 0 0 0); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--terra); --fg: var(--on-terra);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; border-radius: var(--radius-round);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 500; font-size: 0.98rem; letter-spacing: 0.01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.4s var(--ease);
  box-shadow: 0 4px 16px rgba(165, 71, 42, 0.22);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.22), transparent 75%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(165, 71, 42, 0.3); background: var(--terra-deep); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }
.btn--sm { padding: 11px 22px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--whats { background: #1f2b24; box-shadow: 0 4px 16px rgba(31, 43, 36, 0.24); }
.btn--whats:hover { background: #16201a; }
.btn--whats svg { fill: #6ee39a; stroke: none; }
.btn--dark { background: var(--ink); box-shadow: 0 4px 16px rgba(36, 28, 21, 0.24); }
.btn--dark:hover { background: #17100a; }
.btn--dark svg { width: 18px; height: 18px; }

.link-arrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; color: var(--terra); font-size: 0.98rem; }
.link-arrow svg { width: 18px; transition: transform 0.45s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-underline { position: relative; }
.link-underline::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.link-underline:hover::after { transform: scaleX(1); }

.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--ink); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--sm { width: 32px; height: 32px; }
.icon-btn--sm svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 160; height: var(--nav-h); display: flex; align-items: center; transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), backdrop-filter 0.5s; }
.site-header.is-scrolled { background: rgba(251, 246, 238, 0.82); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: 0; display: inline-flex; align-items: baseline; gap: 0.34ch; line-height: 1; }
.brand em { font-style: italic; color: var(--terra); }
.brand small { font-family: var(--font-body); font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-left: 6px; align-self: center; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 0.98rem; font-weight: 400; position: relative; padding: 4px 0; color: var(--ink-soft); transition: color 0.3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--terra); transition: width 0.45s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.bag-btn { position: relative; }
.bag-btn .ico { display: grid; place-items: center; width: 22px; height: 22px; }
.bag-count { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--terra); color: #fff; font-family: var(--font-body); font-size: 0.66rem; font-weight: 600; display: grid; place-items: center; transform: scale(0); transition: transform 0.4s var(--ease); }
.bag-count.is-visible { transform: scale(1); }
.burger { display: none; }

/* ---------- Hero (editorial) ---------- */
.hero { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + clamp(28px, 6vw, 64px)); padding-bottom: clamp(40px, 7vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.hero__eyebrow { margin-bottom: 26px; }
.hero__title { font-size: clamp(2.9rem, 6.8vw, 5.4rem); font-weight: 400; line-height: 1; letter-spacing: -0.025em; }
.hero__title em { font-style: italic; color: var(--terra); }
.hero__lead { margin-top: 28px; font-size: clamp(1.08rem, 1.4vw, 1.24rem); color: var(--ink-soft); max-width: 44ch; }
.hero__actions { margin-top: 40px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.hero__meta { margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; gap: clamp(26px, 4vw, 52px); flex-wrap: wrap; }
.hero__stat strong { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; display: block; line-height: 1; }
.hero__stat span { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; }

.hero__stage { position: relative; aspect-ratio: 1 / 1.04; }
.hero__frame { position: absolute; inset: 0 12% 12% 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); z-index: 2; }
.hero__sub { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1; z-index: 3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 5px solid var(--paper); }
.hero__cap { position: absolute; top: 3%; left: -3%; z-index: 4; background: var(--raise); border: 1px solid var(--line); padding: 11px 17px; border-radius: var(--radius-round); box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 9px; font-size: 0.8rem; color: var(--ink-soft); }
.hero__cap svg { width: 18px; height: 18px; color: var(--olive); }
.hero__tag { position: absolute; left: -3%; bottom: 20%; z-index: 4; writing-mode: vertical-rl; font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* ---------- Faixa de valores (editorial, sem caixa) ---------- */
.marquee-wrap { border-block: 1px solid var(--line); overflow: hidden; position: relative; z-index: 2; }
.marquee { display: flex; gap: 56px; padding: 20px 0; width: max-content; animation: slide 42s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 18px; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); white-space: nowrap; }
.marquee span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--terra); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ---------- Cards (editorial) ---------- */
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1.06; background: var(--paper-2); box-shadow: var(--shadow-sm); transition: box-shadow 0.6s var(--ease); }
.card__media .ph, .card__art { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.card__art svg, .card__media .ph svg, .card__media .ph__img { width: 100%; height: 100%; }
.card:hover .card__media { box-shadow: var(--shadow-md); }
.card:hover .card__art, .card:hover .card__media .ph { transform: scale(1.05); }
.card__index { position: absolute; top: 15px; left: 16px; z-index: 3; font-family: var(--font-display); font-size: 0.8rem; font-style: italic; color: var(--ink-soft); background: rgba(251, 246, 238, 0.82); backdrop-filter: blur(4px); padding: 3px 10px; border-radius: var(--radius-round); }
.card__tag { position: absolute; top: 15px; left: 16px; z-index: 3; background: var(--ink); color: var(--on-dark); font-family: var(--font-body); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-round); }
.card__tag--float { top: 18px; left: 18px; }
.card__badge { position: absolute; top: 15px; left: 16px; z-index: 3; font-family: var(--font-body); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-round); display: inline-flex; align-items: center; gap: 7px; }
.card__badge--ready { background: var(--paper); color: var(--olive); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.card__badge--ready::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
.card__badge--sold { background: rgba(44, 36, 29, 0.82); backdrop-filter: blur(4px); color: var(--on-dark); }
.card--sold .card__art, .card--sold .ph__img { filter: saturate(0.72); }
.card--sold .card__media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(251, 246, 238, 0.3); pointer-events: none; }

/* filtro de disponibilidade */
.filterbar { display: flex; gap: 6px; margin-bottom: clamp(28px, 4vw, 46px); flex-wrap: wrap; }
.filterbar__btn { font-family: var(--font-body); font-size: 0.92rem; color: var(--muted); padding: 9px 18px; border-radius: var(--radius-round); border: 1px solid transparent; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.filterbar__btn:hover { color: var(--ink); }
.filterbar__btn.is-active { color: var(--ink); border-color: var(--line-strong); background: var(--paper-2); }
.card__cta { position: absolute; inset: auto 0 0 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; font-weight: 500; font-size: 0.92rem; color: var(--ink); background: rgba(251, 246, 238, 0.9); backdrop-filter: blur(6px); transform: translateY(101%); transition: transform 0.55s var(--ease); }
.card__cta svg { width: 18px; }
.card:hover .card__cta, .card:focus-within .card__cta { transform: translateY(0); }
.card__wish { position: absolute; top: 12px; right: 12px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; background: rgba(251, 246, 238, 0.9); backdrop-filter: blur(4px); display: grid; place-items: center; color: var(--ink-soft); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), color 0.3s; }
.card__wish svg { width: 20px; height: 20px; }
.card__wish:hover { transform: scale(1.1); color: var(--terra); }
.card__wish.is-on { color: var(--terra); background: #fff; }
.card__wish.pop { animation: pop 0.45s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

.card__body { padding-top: 20px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.card__name { font-family: var(--font-display); font-size: 1.42rem; font-weight: 400; }
.card__name a { transition: color 0.3s; }
.card__name a:hover { color: var(--terra); }
.card__price { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card__type { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.card__tagline { color: var(--ink-soft); font-size: 0.98rem; font-style: italic; margin-top: 4px; line-height: 1.5; }
.card__body .btn { margin-top: 16px; align-self: flex-start; }
.card--mini .card__media { aspect-ratio: 1 / 1.06; }

.collection__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(34px, 5vw, 58px); }
.collection__count { font-size: 0.92rem; color: var(--muted); font-style: italic; }

/* ---------- História (editorial escuro) ---------- */
.story { background: var(--ink); color: var(--on-dark); position: relative; z-index: 2; }
.story .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 6vw, 88px); align-items: center; }
.story h2, .story .eyebrow { color: inherit; }
.story .eyebrow { color: var(--terra); opacity: 0.95; }
.story .eyebrow::before { background: var(--terra); }
.story__title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
.story__title em { font-style: italic; color: #d98a5f; }
.story__text { color: rgba(244, 236, 224, 0.76); margin-top: 24px; font-size: 1.08rem; }
.story__text + .story__text { margin-top: 16px; }
.story__sign { margin-top: 34px; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: #d98a5f; }
.story__signature { margin-top: 6px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 236, 224, 0.5); }
.story__visual { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.story__visual .ph { position: absolute; inset: 0; }
.story__cap { position: absolute; left: 16px; bottom: 14px; z-index: 3; font-size: 0.72rem; font-style: italic; color: rgba(255,255,255,0.85); background: rgba(36,28,21,0.5); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: var(--radius-round); }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 34px); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background 0.4s var(--ease); }
.step:last-child { border-right: 0; }
.step:hover { background: var(--paper-2); }
.step__n { font-family: var(--font-display); font-size: 2.4rem; font-style: italic; color: var(--terra); line-height: 1; }
.step__ico { width: 34px; height: 34px; color: var(--olive); margin: 22px 0 18px; }
.step__ico svg { width: 100%; height: 100%; }
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- CTA ---------- */
.cta-band { position: relative; z-index: 2; }
.cta-card { --mx: 50%; --my: 40%; background: radial-gradient(560px circle at var(--mx) var(--my), rgba(217, 138, 95, 0.28), transparent 60%), linear-gradient(140deg, var(--terra), var(--terra-deep)); color: var(--on-terra); text-align: center; border-radius: var(--radius-lg); padding: clamp(56px, 8vw, 100px) var(--gutter); box-shadow: var(--shadow-lg); overflow: hidden; }
.cta-card .eyebrow { color: rgba(253, 243, 234, 0.85); justify-content: center; }
.cta-card .eyebrow::before, .cta-card .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.5; }
.cta-card h2 { color: var(--on-terra); font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 400; margin-top: 18px; }
.cta-card p { color: rgba(253, 243, 234, 0.86); max-width: 50ch; margin: 22px auto 36px; font-size: 1.12rem; }
.cta-card .btn { background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.cta-card .btn:hover { background: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); position: relative; z-index: 2; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: clamp(32px, 4vw, 64px); padding-block: clamp(56px, 7vw, 88px); }
.footer__brand .brand { font-size: 1.7rem; margin-bottom: 18px; }
.footer__brand p { color: var(--ink-soft); max-width: 34ch; font-size: 1rem; font-style: italic; }
.footer__col h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.footer__col a, .footer__col p { display: block; color: var(--ink-soft); font-size: 0.98rem; padding: 5px 0; transition: color 0.3s; }
.footer__col a:hover { color: var(--terra); }
.footer__bottom { border-top: 1px solid var(--line); padding-block: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); font-style: italic; }

/* ---------- Drawer (sacola) ---------- */
.scrim { position: fixed; inset: 0; z-index: 200; background: rgba(36, 28, 21, 0.5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0.45s; }
.scrim--show { opacity: 1; visibility: visible; }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 210; width: min(440px, 92vw); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.55s var(--ease); box-shadow: var(--shadow-lg); }
.drawer--open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 1.5rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); background: var(--raise); }
.drawer__sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.drawer__sum strong { font-family: var(--font-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.drawer__note { font-size: 0.82rem; color: var(--muted); font-style: italic; margin: 8px 0 18px; }
.drawer__empty { text-align: center; padding: 64px 20px; color: var(--ink-soft); }
.drawer__empty-ico { width: 60px; height: 60px; margin: 0 auto 20px; color: var(--line-strong); }
.drawer__empty p { margin-bottom: 18px; font-style: italic; }

.bagline { display: grid; grid-template-columns: 68px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.bagline__art { width: 68px; height: 76px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.bagline__art svg, .bagline__art img { width: 100%; height: 100%; object-fit: cover; }
.bagline__info { display: flex; flex-direction: column; gap: 3px; }
.bagline__name { font-family: var(--font-display); font-size: 1.15rem; }
.bagline__meta { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.bagline__price { font-size: 1rem; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.bagline__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }

.qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-round); padding: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: background 0.3s; }
.qty button:hover { background: var(--paper-2); }
.qty button svg { width: 16px; height: 16px; }
.qty span { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.qty--sm button { width: 26px; height: 26px; }
.qty--sm span { min-width: 20px; font-size: 0.95rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 150%); display: flex; align-items: center; gap: 11px; background: var(--ink); color: var(--on-dark); padding: 15px 24px; border-radius: var(--radius-round); box-shadow: var(--shadow-lg); font-size: 0.96rem; max-width: 90vw; transition: transform 0.55s var(--ease); }
.toast svg { width: 20px; height: 20px; color: #d98a5f; flex-shrink: 0; }
.toast--show { transform: translate(-50%, 0); }

/* ---------- PDP ---------- */
.pdp-page { padding-top: calc(var(--nav-h) + 30px); position: relative; z-index: 2; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--muted); margin-bottom: 38px; flex-wrap: wrap; font-style: italic; }
.crumbs a:hover { color: var(--terra); }
.crumbs span[aria-current] { color: var(--ink); }

.pdp { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(34px, 5vw, 80px); align-items: start; }
.pdp__gallery { position: sticky; top: calc(var(--nav-h) + 22px); }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--paper-2); }
.gallery__main .ph { position: absolute; inset: 0; }
.gallery__main .ph svg, .gallery__main .ph__img { width: 100%; height: 100%; }
.gallery__main.swap .ph { animation: fadeSwap 0.55s var(--ease); }
@keyframes fadeSwap { from { opacity: 0.35; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.gallery__thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumb { flex: 1; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1.5px solid transparent; transition: border-color 0.3s, transform 0.35s var(--ease); background: var(--paper-2); position: relative; }
.thumb:hover { transform: translateY(-2px); }
.thumb .ph { position: absolute; inset: 0; }
.thumb .ph svg { width: 100%; height: 100%; }
.thumb.is-active { border-color: var(--terra); }

.pdp__info { max-width: 520px; }
.pdp__info .eyebrow { margin-bottom: 16px; }
.pdp__name { font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 400; letter-spacing: -0.02em; }
.pdp__tagline { font-family: var(--font-display); font-style: italic; font-size: 1.32rem; color: var(--ink-soft); margin-top: 14px; }
.pdp__price { font-family: var(--font-display); font-size: 2.1rem; margin-top: 26px; font-variant-numeric: tabular-nums; }
.pdp__installment { display: block; font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.pdp__avail { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 0.94rem; color: var(--ink-soft); }
.pdp__avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.pdp__avail--pronta-entrega { color: var(--olive); }
.pdp__avail--pronta-entrega::before { background: var(--olive); }
.pdp__avail--esgotada { color: var(--muted); font-style: italic; }

.pdp__field { margin-top: 32px; }
.field__label { display: block; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.field__label span { color: var(--ink); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-round); transition: border-color 0.3s, background 0.3s; }
.swatch:hover { border-color: var(--ink); }
.swatch.is-active { border-color: var(--terra); background: var(--paper-2); }
.swatch__dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.swatch__label { font-size: 0.92rem; }

.pdp__actions { display: flex; gap: 14px; margin-top: 32px; align-items: stretch; }
.pdp__actions--sec { margin-top: 14px; }
.pdp__actions .btn { flex: 1; }
.icon-btn--wish { border: 1px solid var(--line-strong); width: 54px; flex-shrink: 0; }
.icon-btn--wish.is-on { color: var(--terra); border-color: var(--terra); background: var(--paper-2); }

.pdp__help { margin-top: 14px; font-size: 0.92rem; color: var(--muted); font-style: italic; }
.pdp__help a { color: var(--terra); font-style: normal; }
.pdp__perks { list-style: none; padding: 26px 0; margin-top: 30px; border-block: 1px solid var(--line); display: flex; flex-direction: column; gap: 15px; }
.pdp__perks li { display: flex; align-items: center; gap: 13px; font-size: 0.98rem; color: var(--ink-soft); }
.pdp__perks svg { width: 22px; height: 22px; color: var(--olive); flex-shrink: 0; }
.pdp__story { margin-top: 30px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.78; }
.pdp__story::first-letter { }

.pdp__acc { margin-top: 32px; }
.acc { border-bottom: 1px solid var(--line); }
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-family: var(--font-display); font-size: 1.2rem; text-align: left; }
.acc__ico { color: var(--terra); transition: transform 0.45s var(--ease); }
.acc__ico svg { width: 20px; height: 20px; }
.acc--open .acc__ico { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.acc--open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; color: var(--ink-soft); }
.acc--open .acc__inner { padding-bottom: 22px; }
.dotlist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dotlist li { position: relative; padding-left: 20px; }
.dotlist li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--terra); }
.specs { display: flex; gap: 44px; }
.specs dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.specs dd { font-family: var(--font-display); font-size: 1.2rem; margin-top: 3px; }

.related { margin-top: clamp(48px, 6vw, 90px); border-top: 1px solid var(--line); }
.notfound { text-align: center; padding: clamp(70px, 12vw, 150px) 0; }
.notfound p { color: var(--ink-soft); max-width: 40ch; margin: 18px auto 32px; font-style: italic; }

/* barra fixa mobile do PDP (mobile designed — item 07) */
.pdp-bar { position: fixed; inset: auto 0 0 0; z-index: 90; display: none; align-items: center; gap: 14px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(251, 246, 238, 0.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(120%); transition: transform 0.5s var(--ease); }
.pdp-bar.is-show { transform: none; }
.pdp-bar__info { display: flex; flex-direction: column; line-height: 1.2; }
.pdp-bar__name { font-family: var(--font-display); font-size: 1.05rem; }
.pdp-bar__price { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pdp-bar .btn { margin-left: auto; }

/* ---------- Menu mobile (fullscreen — item 07) ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 150; background: var(--paper); display: flex; flex-direction: column; padding: calc(var(--nav-h) + 20px) var(--gutter) 40px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s; }
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a { font-family: var(--font-display); font-size: 2.2rem; padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.mobile-nav a svg { width: 22px; color: var(--terra); }
.mobile-nav__foot { margin-top: auto; padding-top: 30px; color: var(--muted); font-style: italic; font-size: 0.95rem; }

/* ---------- Responsivo (mobile desenhado) ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { max-width: 480px; margin-top: 8px; }
  .story .wrap { grid-template-columns: 1fr; }
  .story__visual { max-width: 460px; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { position: static; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; border-left: 0; }
  .step { border-right: 0; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .burger { display: grid; place-items: center; width: 46px; height: 46px; }
  .burger span { position: relative; }
  .burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 22px; height: 1.6px; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.3s; }
  .burger span::before { position: absolute; left: 0; top: -7px; }
  .burger span::after { position: absolute; left: 0; top: 7px; }
  .menu-open .burger span { background: transparent; }
  .menu-open .burger span::before { top: 0; transform: rotate(45deg); }
  .menu-open .burger span::after { top: 0; transform: rotate(-45deg); }
  .pdp-bar { display: flex; }
  /* mobile hero: tipografia domina, imagem vira figura editorial */
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero__meta { gap: 22px; }
}
@media (max-width: 580px) {
  .grid--3, .grid--auto { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__title { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .pdp__actions { flex-direction: column; }
  .specs { gap: 26px; }
  .collection__bar { align-items: flex-start; }
  .card__media { aspect-ratio: 1 / 1.05; }
}
