/* ==========================================================
   WPrint Artes Gráficas — estilos (mobile first)
   Paleta "Tinta & Papel" + acentos CMYK
   ========================================================== */
:root {
  --ink: #0E0E14;        /* Tinta — preto principal */
  --ink-2: #1A1A24;      /* Grafite */
  --ink-3: #2A2A36;
  --paper: #F7F5F0;      /* Papel — fundo claro */
  --paper-2: #EFECE4;
  --photo: #EFEBE4;     /* fundo padrão das fotos de produto */
  --white: #FFFFFF;
  --muted: #6B6B78;
  --muted-2: #A9A9B6;
  --line: rgba(14, 14, 20, .10);
  --line-dark: rgba(247, 245, 240, .12);

  --c: #00A6D6;          /* Ciano */
  --m: #E5197A;          /* Magenta — cor de destaque da marca */
  --y: #FFC21A;          /* Amarelo */
  --wa: #25D366;         /* WhatsApp */

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(14,14,20,.06), 0 8px 24px -8px rgba(14,14,20,.12);
  --shadow-lg: 0 30px 60px -20px rgba(14,14,20,.35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 16px;
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--m); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 20px; height: 20px; flex: none; }
.hide-sm { display: none !important; }

/* ---------- Logo ---------- */
/* O símbolo vem de <use>, então só variáveis herdadas chegam até os traços. */
.mk { mix-blend-mode: var(--mk-blend, multiply); }
.mk-c { stroke: var(--c); }
.mk-m { stroke: var(--m); }
.mk-y { stroke: var(--y); }
.mk-k { stroke: var(--mk-k, var(--ink)); }
/* Versão para fundo escuro: traço K vira "papel" e sem multiply */
.logo--light, .card--custom__mark, .cta__mark { --mk-blend: normal; --mk-k: var(--paper); }

.logo { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 46px; height: 31px; }
.logo__txt { position: relative; display: inline-flex; flex-direction: column; line-height: 1; padding-right: 9px; }
.logo__txt b { position: relative; align-self: flex-start; font-family: var(--font-display); font-weight: 800; font-size: 27px; letter-spacing: -.045em; margin-top: -2px; }
.logo__txt b::after { content: ""; position: absolute; right: -9px; bottom: .22em; width: .22em; height: .22em; border-radius: 50%; background: var(--m); }
.logo__txt i { display: none; }
.logo__txt small { font-family: var(--font-display); font-weight: 500; font-size: 7.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.logo--light { color: var(--paper); }
.logo--light small { color: var(--muted-2); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--m); color: var(--white); box-shadow: 0 10px 30px -10px rgba(229,25,122,.7); }
.btn--primary:hover { background: #cc0f68; }
.btn--light { background: rgba(247,245,240,.08); color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-dark); backdrop-filter: blur(8px); }
.btn--light:hover { background: rgba(247,245,240,.16); }
.btn--light-dark { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--light-dark:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost .ic { color: #1faa53; }
.btn--wa { background: var(--wa); color: #06331a; box-shadow: 0 12px 30px -12px rgba(37,211,102,.8); }
.btn--wa:hover { background: #1fc15c; }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,245,240,.82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav { display: none; }
.topbar__act { display: flex; align-items: center; gap: 10px; }
.cartbtn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transition: transform .25s var(--ease);
}
.cartbtn:hover { transform: rotate(-8deg); }
.cartbtn__n, .dock__n {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--m); color: var(--white);
  font: 700 11px/20px var(--font-body); text-align: center;
  box-shadow: 0 0 0 2px var(--paper);
}
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow--dark { color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: conic-gradient(var(--c) 0 33%, var(--m) 0 66%, var(--y) 0); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: 40px 0 0;
  isolation: isolate;
}
.hero__glow {
  position: absolute; inset: -20% -40% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 40% at 80% 30%, rgba(229,25,122,.35), transparent 70%),
    radial-gradient(35% 35% at 20% 10%, rgba(0,166,214,.28), transparent 70%),
    radial-gradient(30% 30% at 60% 90%, rgba(255,194,26,.18), transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-6%, 4%, 0) rotate(6deg); } }
.hero::after { /* granulado de papel */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__in { display: grid; gap: 28px; }
.hero h1 {
  font-size: clamp(40px, 11vw, 84px); font-weight: 800; letter-spacing: -.045em;
  margin: 18px 0 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--c), var(--m) 55%, var(--y));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 17px; color: #C9C9D3; max-width: 34em; }
.hero__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.hero__chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: #C9C9D3; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 10px; height: 10px; border-radius: 3px; }
.sw-c { background: var(--c); } .sw-m { background: var(--m); } .sw-y { background: var(--y); }

/* Arte do hero: leque de cores + cartão */
.hero__art { position: relative; height: 330px; margin: 0 auto; width: 100%; max-width: 440px; }
.fan { position: absolute; left: 50%; bottom: 30px; width: 0; height: 0; }
.fan span {
  position: absolute; left: -22px; bottom: 0;
  width: 44px; height: 240px; border-radius: 8px;
  background: linear-gradient(to top, var(--c) 0 72%, rgba(255,255,255,.92) 72% 74%, var(--c) 74%);
  background-color: var(--c);
  transform-origin: 50% calc(100% - 20px);
  transform: rotate(0deg);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08);
  animation: fanOpen 1.4s var(--ease) forwards;
  animation-delay: .25s;
}
.fan span::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: rgba(255,255,255,.5); }
@keyframes fanOpen { to { transform: rotate(var(--r)); } }
/* Depois de abrir, o leque responde ao mouse/dedo: inclina, abre mais e a lâmina sob o cursor sobe */
.fan.is-ready span {
  animation: none;
  transform: rotate(calc(var(--r) * var(--spread, 1) + var(--tilt, 0deg))) translateY(var(--lift, 0px));
  transition: transform .55s var(--ease), filter .3s;
}
.fan.is-ready span.is-on { filter: brightness(1.12) saturate(1.1); z-index: 2; }
.hero__art { touch-action: pan-y; }
.hero__card { z-index: 3; }
.hero__art.is-live .hero__card { animation: none; opacity: 1; transition: transform .6s var(--ease); transform: rotate(-7deg) translate(var(--cx, 0px), var(--cy, 0px)); }
.hero__card {
  position: absolute; right: 2%; bottom: 8px; width: 62%; aspect-ratio: 1.7;
  background: var(--paper); color: var(--ink); border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-lg);
  transform: rotate(-7deg) translateY(30px); opacity: 0;
  animation: cardIn 1s var(--ease) .9s forwards;
}
@keyframes cardIn { to { transform: rotate(-7deg) translateY(0); opacity: 1; } }
.hero__cardmark { width: 54px; height: 36px; }
.hero__cardtxt b { display: block; font: 700 17px/1.1 var(--font-display); letter-spacing: -.02em; }
.hero__cardtxt span { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.cmyk { position: absolute; right: 14px; top: 14px; display: flex; gap: 4px; }
.cmyk i { width: 10px; height: 10px; border-radius: 50%; }
.cmyk .c { background: var(--c); } .cmyk .m { background: var(--m); } .cmyk .y { background: var(--y); } .cmyk .k { background: var(--ink); }
.ink { position: absolute; border-radius: 50%; mix-blend-mode: screen; filter: blur(.3px); animation: float 6s ease-in-out infinite; }
.ink-c { width: 56px; height: 56px; left: 4%; top: 18%; background: radial-gradient(circle at 35% 30%, #7fe0ff, var(--c) 60%); }
.ink-m { width: 34px; height: 34px; right: 8%; top: 6%; background: radial-gradient(circle at 35% 30%, #ff8cc4, var(--m) 60%); animation-delay: -2s; }
.ink-y { width: 24px; height: 24px; left: 18%; bottom: 10%; background: radial-gradient(circle at 35% 30%, #fff1b8, var(--y) 60%); animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* Faixa rolante */
.marquee { margin-top: 36px; border-top: 1px solid var(--line-dark); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 40s linear infinite; }
.marquee span {
  font: 600 18px/1 var(--font-display); color: #8D8D9A; white-space: nowrap; padding: 0 22px;
  display: inline-flex; align-items: center; gap: 44px;
}
.marquee span::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--m); transform: rotate(45deg); margin-right: -26px; }
.marquee span:nth-child(3n+1)::after { background: var(--c); }
.marquee span:nth-child(3n+2)::after { background: var(--y); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.sec { padding: 64px 0; }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec--paper2 { background: var(--paper-2); }
.sec__head { margin-bottom: 28px; }
.sec__head h2, .about h2, .cta h2 { font-size: clamp(32px, 8vw, 56px); font-weight: 800; letter-spacing: -.04em; margin-top: 12px; }
.sec__sub { margin-top: 12px; color: var(--muted); max-width: 40em; }

/* Barra de filtros */
.toolbar { display: grid; gap: 14px; margin-bottom: 22px; padding: 10px 0; }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; background: var(--white); border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); transition: box-shadow .2s; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line);
  font: 600 14px/1 var(--font-display); color: var(--ink); scroll-snap-align: start;
  transition: background .2s, color .2s, box-shadow .2s;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }

/* Grade de produtos */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r); overflow: hidden;
  border: 0; padding: 0; text-align: left; text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: rise .6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(14,14,20,.06), 0 24px 40px -16px rgba(14,14,20,.25); }
.card__art { aspect-ratio: 4 / 3; background: var(--photo); overflow: hidden; }
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__art img { transform: scale(1.06) rotate(-1deg); }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__cat { font: 600 10.5px/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card__name { font: 700 16px/1.15 var(--font-display); letter-spacing: -.02em; }
.card__desc { display: none; font-size: 14px; color: var(--muted); }
.card__go {
  margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  font: 600 13px/1 var(--font-display); color: var(--m);
}
.card__go .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .card__go .ic { transform: translateX(4px); }
.card__tag { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 10px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
/* Card "sob medida" — fecha a grade (ocupa o que sobra da última linha) */
.card--custom {
  text-decoration: none; color: var(--paper); background: var(--ink);
  padding: 20px; gap: 10px; justify-content: center; align-items: flex-start;
}
.card--custom .card__name { font-size: 20px; }
.card--custom__mark { width: 54px; height: 36px; }
.card--custom__body { display: grid; gap: 6px; }
.card--custom__txt { font-size: 14px; color: var(--muted-2); }
.card--custom .btn { margin-top: 6px; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.empty a { color: var(--m); font-weight: 600; }

/* ---------- Como funciona ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line-dark); overflow: hidden; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.steps li:nth-child(2)::before { background: var(--m); }
.steps li:nth-child(3)::before { background: var(--y); }
.steps li:nth-child(4)::before { background: var(--paper); }
.steps__n { font: 800 14px/1 var(--font-display); color: var(--muted-2); letter-spacing: .1em; }
.steps h3 { font-size: 24px; font-weight: 700; margin: 14px 0 8px; }
.steps p { color: #B9B9C4; font-size: 15px; }

/* ---------- Sobre ---------- */
.about { display: grid; gap: 36px; align-items: center; }
.about__copy p { color: var(--muted); margin-top: 16px; }
.about__copy h2 { margin-bottom: 4px; }
.about__art { display: grid; place-items: center; padding: 20px 0 40px; }
.about__photo { position: relative; width: min(82%, 380px); margin: 0; isolation: isolate; }
.about__photo::before { /* folha CMYK atrás da foto */
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); z-index: -1;
  background: linear-gradient(135deg, var(--c), var(--m) 60%, var(--y));
  transform: rotate(-6deg) translate(-5%, 3%);
}
.about__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: #D9DADC;
}
.about__photo figcaption {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow);
}
.about__photo figcaption svg { width: 36px; height: 24px; }
.about__photo figcaption b { display: block; font: 700 16px/1.1 var(--font-display); letter-spacing: -.01em; }
.about__photo figcaption small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.about__pix {
  margin-top: 28px; padding: 18px 18px 18px 20px; border-radius: var(--r);
  background: var(--white); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-left: 4px solid #32BCAD;
}
.about__pix .label { display: block; font: 600 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.about__pix b { display: block; font: 700 22px/1.2 var(--font-display); margin-top: 6px; letter-spacing: -.01em; }
.about__pix small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 20px; position: relative;
  font: 600 17px/1.3 var(--font-display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230E0E14' stroke-width='2.4' stroke-linecap='round' d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--y); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--paper); padding: 72px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 100%; background: radial-gradient(50% 50% at 50% 50%, rgba(229,25,122,.35), transparent 70%); }
.cta__in { position: relative; display: grid; justify-items: center; text-align: center; gap: 24px; }
.cta__mark { width: 84px; height: 56px; }
.cta h2 span { display: block; color: var(--muted-2); font-weight: 600; font-size: .6em; letter-spacing: -.02em; margin-top: 10px; }

/* ---------- Rodapé ---------- */
.footer { background: #08080C; color: var(--muted-2); padding: 48px 0 32px; }
.footer__in { display: grid; gap: 32px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 12px; font-family: var(--font-body); font-weight: 600; }
.footer__cols a, .footer__cols span { display: block; text-decoration: none; padding: 4px 0; font-size: 15px; }
.footer__cols a:hover { color: var(--paper); }
.footer__copy { font-size: 13px; padding-top: 24px; border-top: 1px solid var(--line-dark); }

/* ---------- Barra fixa mobile ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; gap: 8px;
  transform: translateY(0); transition: transform .4s var(--ease);
}
.dock.is-hidden { transform: translateY(140%); }
.dock__wa {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  background: var(--wa); color: #06331a; display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(37,211,102,.9);
}
.dock__wa .ic { width: 28px; height: 28px; }
.dock__cart {
  position: relative; flex: 1; height: 58px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; gap: 12px; padding: 0 22px;
  font: 600 15px/1 var(--font-display);
  box-shadow: 0 16px 40px -12px rgba(14,14,20,.6);
}
.dock__cart.has-items { background: var(--m); }
.dock__n { position: static; margin-left: auto; box-shadow: none; background: var(--paper); color: var(--ink); height: 26px; min-width: 26px; line-height: 26px; border-radius: 13px; font-size: 13px; }

/* ---------- Página do produto ---------- */
.pp { padding: 18px 0 40px; animation: rise .5s var(--ease); }
.pp__crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.pp__back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font: 600 14px/1 var(--font-display); padding: 8px 12px 8px 8px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.pp__back .ic { width: 16px; height: 16px; transform: rotate(180deg); }
.pp__back:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pp__grid { display: grid; gap: 24px; }
.pp__main { position: relative; aspect-ratio: 4 / 5; max-height: 70svh; width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--photo); }
.pp__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: fade .35s ease; }
.pp__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pp__thumbs:empty { display: none; }
.pp__thumbs button { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--photo); box-shadow: inset 0 0 0 2px transparent; opacity: .6; transition: opacity .2s, box-shadow .2s; }
.pp__thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--m); }
.pp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pp__title { font-size: clamp(32px, 8vw, 52px); font-weight: 800; letter-spacing: -.04em; margin: 8px 0 10px; }
.pp__actions {
  position: sticky; bottom: 0; z-index: 10; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px;
  margin: 8px calc(var(--gutter) * -1) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--paper) 24%);
}
.pp__actions .btn { padding: 0 10px; font-size: 14.5px; gap: 6px; min-width: 0; }
.pp__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 36px 0 0; }
.pp__nav a { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); text-decoration: none; transition: transform .25s var(--ease); }
.pp__nav a:hover { transform: translateY(-2px); }
.pp__nav a:last-child { text-align: right; }
.pp__nav small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pp__nav b { font: 700 16px/1.2 var(--font-display); }
.pp__more { margin-top: 48px; }
.pp__more h2 { font-size: clamp(26px, 6vw, 36px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
body.is-pp { padding-bottom: 0; }
body.is-pp .dock { display: none; }

/* ---------- Diálogos ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(8,8,12,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open]::backdrop { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }

@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet__x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.9); display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.sheet__x--static { position: static; }
.pd__cat { font: 600 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--m); }
.pd__desc { color: var(--muted); font-size: 15px; }
.pd__specs { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pd__specs li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 500; }
.pd__specs li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--m); }
.pd__specs li:nth-child(3n+1)::before { background: var(--c); }
.pd__specs li:nth-child(3n+2)::before { background: var(--y); }
.pd__opts { display: grid; gap: 18px; margin: 22px 0 18px; }

.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font: 600 14px/1 var(--font-display); }
.field small { color: var(--muted); font-weight: 400; }
.field input:not([type=radio]), .field textarea {
  width: 100%; border: 0; border-radius: 14px; padding: 14px 16px;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit; color: var(--ink); resize: vertical;
}
.field input:not([type=radio]):focus, .field textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--ink); }

/* Opções em pílulas (radio) */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label, .seg label { position: relative; }
.opts input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.opts span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 12px;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line);
  font: 500 14px/1.2 var(--font-body); cursor: pointer; transition: all .2s;
}
.opts span:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.opts input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.opts input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--m); outline-offset: 2px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--white); border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.seg span { display: grid; place-items: center; height: 42px; border-radius: 10px; font: 600 14px/1.1 var(--font-display); text-align: center; cursor: pointer; transition: all .2s; padding: 0 6px; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg--arte span { height: auto; min-height: 48px; padding: 6px 8px; line-height: 1.15; }
.seg--arte small { display: block; font: 700 12px/1.2 var(--font-body); color: var(--m); margin-top: 2px; }
.seg--arte input:checked + span small { color: var(--y); }
.field__hint { font-size: 12.5px; color: var(--muted); }


/* Gaveta do pedido */
.drawer { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; }
.drawer[open] { animation: sheetUp .45s var(--ease); }
.drawer__in { background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92dvh; display: flex; flex-direction: column; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 24px; font-weight: 800; }
.drawer__body { overflow: auto; padding: 16px var(--gutter); flex: 1; }
.drawer__foot { padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.drawer__note { font-size: 13px; color: var(--muted); margin-bottom: 10px; text-align: center; }

.cartlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 10px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow); animation: rise .4s var(--ease); }
.citem__art { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--photo); }
.citem__art img { width: 100%; height: 100%; object-fit: contain; }
.citem b { font: 700 16px/1.2 var(--font-display); letter-spacing: -.01em; display: block; margin-top: 2px; }
.citem ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.citem__rm { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.citem__rm:hover { background: #fde7f1; color: var(--m); }
.citem li.is-arte { color: var(--m); font-weight: 600; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font: 600 15px/1 var(--font-display); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.drawer__total b { font-size: 20px; color: var(--m); }
.cartempty { display: grid; justify-items: center; gap: 14px; padding: 40px 0; color: var(--muted); text-align: center; }
.cartempty svg { width: 90px; height: 60px; opacity: .35; filter: grayscale(1); }
.checkout { display: grid; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px;
  font: 600 14px/1.2 var(--font-display); box-shadow: var(--shadow-lg);
  transition: all .35s var(--ease); white-space: nowrap;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================
   Tablet
   ========================================================== */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .card__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card__name { font-size: 19px; }
  .card__body { padding: 16px 18px 18px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__in { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .footer__copy { grid-column: 1 / -1; }
}

/* ==========================================================
   Desktop
   ========================================================== */
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .hide-sm { display: inline-flex !important; }
  .topbar__in { height: 76px; }
  html { scroll-padding-top: 84px; }
  .logo__mark { width: 54px; height: 36px; }
  .logo__txt b { font-size: 31px; }
  .logo__txt small { font-size: 8.5px; }
  .nav { display: flex; gap: 4px; }
  .nav a { text-decoration: none; font: 500 15px/1 var(--font-display); padding: 10px 14px; border-radius: 999px; transition: background .2s; }
  .nav a:hover { background: rgba(14,14,20,.06); }
  .cartbtn { width: 48px; height: 48px; }

  .hero { padding: 72px 0 0; }
  .hero__in { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; }
  .hero__art { height: 520px; max-width: none; }
  .fan { bottom: 70px; }
  .fan span { width: 64px; left: -32px; height: 380px; }
  .hero__card { width: 64%; padding: 22px; }
  .hero__cardmark { width: 72px; height: 48px; }
  .hero__cardtxt b { font-size: 24px; }
  .ink-c { width: 80px; height: 80px; }
  .marquee { margin-top: 56px; }
  .marquee span { font-size: 22px; }

  .sec { padding: 112px 0; }
  .sec__head { margin-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; column-gap: 40px; }
  .sec__head .eyebrow { grid-column: 1 / -1; justify-self: start; }
  .sec__sub { margin: 0; justify-self: end; text-align: right; max-width: 28em; }
  .toolbar { grid-template-columns: 320px 1fr; align-items: center; position: sticky; top: 76px; z-index: 5; background: linear-gradient(var(--paper) 80%, transparent); }
  .chips { margin: 0; padding: 2px; flex-wrap: wrap; justify-content: flex-end; overflow: visible; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .card--custom.is-wide { flex-direction: row; align-items: center; gap: 24px; padding: 28px 32px; }
  .card--custom.is-wide .card--custom__body { flex: 1; }
  .card--custom .card__name { font-size: 24px; }
  .card--custom .btn { margin: 0; flex: none; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .steps li { padding: 32px 28px 36px; min-height: 260px; }
  .steps h3 { font-size: 26px; margin-top: 60px; }

  .about { grid-template-columns: 1fr 1.1fr; gap: 80px; }
  .faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
  .faq .sec__head { display: block; position: sticky; top: 120px; }

  .cta { padding: 120px 0; }

  .dock { display: none; }
  .toast { bottom: 32px; }

  .pp { padding: 32px 0 80px; }
  .pp__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .pp__gallery { position: sticky; top: 100px; }
  .pp__main { max-height: calc(100vh - 220px); }
  .pp__thumbs button { width: 84px; height: 84px; }
  .pp__info { padding-top: 8px; }
  .pp__actions { position: static; margin: 12px 0 0; padding: 0; background: none; }
  .pp__actions .btn { min-height: 56px; font-size: 16px; }
  .pp__nav { margin-top: 64px; }
  .pp__more { margin-top: 72px; }
  .drawer { inset: 0 0 0 auto; height: 100%; width: 440px; }
  .drawer[open] { animation: slideIn .45s var(--ease); }
  @keyframes slideIn { from { transform: translateX(100%); } }
  .drawer__in { height: 100%; max-height: none; border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .drawer__head { padding: 24px 28px; }
  .drawer__body { padding: 20px 28px; }
  .drawer__foot { padding: 18px 28px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
