/* Karto — vitrine pública. Independente do mac.css (que é do painel). */
:root {
    --brand: #c9a227;
    --brand-ink: #0a0a0a;
    --brand-soft: #f2e6c2;
    --paper: #f6f2ea;
    --paper-2: #efe9dd;
    --card: #fffdf8;
    --ink: #151412;
    --ink-2: #4d4a44;
    --ink-3: #8b867c;
    --line: rgba(21, 20, 18, 0.10);
    --line-2: rgba(21, 20, 18, 0.18);
    --ok: #1f7a4d;
    --warn: #b45309;
    --danger: #b42318;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 26px;
    --shadow: 0 1px 2px rgba(20, 16, 8, .05), 0 8px 28px rgba(20, 16, 8, .07);
    --shadow-lg: 0 30px 70px rgba(20, 16, 8, .16);
    --display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
    --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wrap: 1200px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font: 400 16px/1.6 var(--body); overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ===== Botões ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
    transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s;
    white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--brand-ink); color: #fff; }
.btn-dark:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .22); transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { filter: brightness(1.05); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 40%, transparent); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #178f47; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ===== Aviso de exemplos ===== */
.demo-bar {
    background: repeating-linear-gradient(-45deg, #1a1916, #1a1916 12px, #23221e 12px, #23221e 24px);
    color: #f2e6c2; font-size: 13px; text-align: center; padding: 8px 16px;
}
.demo-bar b { color: var(--brand); }
.tag-exemplo {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
    background: #1a1916; color: #f2e6c2; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ===== Header ===== */
.hdr {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s;
}
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.nav a:hover, .nav a.on { background: var(--paper-2); color: var(--ink); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 17px; transition: transform .2s var(--ease); }
.cart-btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.cart-btn .n {
    position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
    background: var(--brand); color: var(--brand-ink); font-size: 11.5px; font-weight: 800;
    display: none; align-items: center; justify-content: center; border: 2px solid var(--paper);
}
.cart-btn .n.on { display: inline-flex; }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); font-size: 17px; cursor: pointer; }
@media (max-width: 860px) {
    .hdr-in { gap: 12px; height: 64px; }
    .nav { display: none; }
    .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .hdr-actions .btn { display: none; }
    .logo { flex: 1; }
    .logo img { height: 30px; }
    .nav.open {
        display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--paper); padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .nav.open a { padding: 12px 14px; font-size: 17px; }
}

/* ===== Seções ===== */
.sec { padding: 88px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }
.h2 { font-size: clamp(30px, 4.4vw, 48px); max-width: 16ch; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 640px) { .sec { padding: 60px 0; } .wrap { padding: 0 16px; } }

/* ===== Hero ===== */
.hero { padding: 48px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: min(640px, 78vh); }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero .lead { margin: 22px 0 32px; font-size: clamp(17px, 1.6vw, 20px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-facts div { font-size: 14px; color: var(--ink-2); }
.hero-facts b { display: block; font-family: var(--display); font-size: 26px; color: var(--ink); }
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 12px; }
    .hero-stage { order: -1; height: 320px; }
}

/* Caixa 3D do hero (CSS puro) */
.hero-stage { position: relative; height: 520px; perspective: 1400px; display: flex; align-items: center; justify-content: center; }
.hero-stage::before {
    content: ''; position: absolute; inset: 8% 6%; border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 26%, transparent), transparent);
    filter: blur(10px);
}
/* Caixa: o plano do div é o fundo (X/Y); Z sobe em direção a quem olha.
   Paredes nascem numa aresta do fundo e giram 90° para "levantar". Sem
   backface-visibility: o navegador ordena as faces pela profundidade. */
.box3d { --w: 240px; --d: 240px; --h: 96px; --lip: 26px; position: relative; width: var(--w); height: var(--d); transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg); transition: transform .6s var(--ease); }
.box3d .f { position: absolute; left: 0; top: 0; }
.box3d .floor { width: var(--w); height: var(--d); background: #161513; box-shadow: 0 0 90px 30px rgba(0,0,0,.16); }
.box3d .paper { width: calc(var(--w) - 16px); height: calc(var(--d) - 16px); left: 8px; top: 8px; transform: translateZ(calc(var(--h) - 26px)); background: repeating-linear-gradient(45deg, #fbf6ea 0 14px, #f0e7d3 14px 28px); }
.box3d .item { width: 74px; height: 74px; left: 34px; top: 40px; border-radius: 50%; transform: translateZ(calc(var(--h) - 24px)); background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--brand) 70%, #fff), var(--brand) 60%, color-mix(in srgb, var(--brand) 70%, #000)); }
.box3d .item.i2 { width: 64px; height: 104px; left: 138px; top: 104px; border-radius: 10px; background: linear-gradient(135deg, #ffffff, #e9e1d0); }
.box3d .wx { width: var(--w); height: var(--h); transform-origin: top; background: linear-gradient(180deg, #1d1c1a, #2f2d29); }
.box3d .wx.back { transform: rotateX(90deg); background: #252320; }
.box3d .wx.front { top: var(--d); transform: rotateX(90deg); background: linear-gradient(0deg, #2b2a27, #121110); }
.box3d .wy { width: var(--h); height: var(--d); transform-origin: left; background: #22211e; }
.box3d .wy.left { transform: rotateY(-90deg); }
.box3d .wy.right { left: var(--w); transform: rotateY(-90deg); background: linear-gradient(90deg, #0d0d0c, #1c1b19); }
.box3d .lid { position: absolute; left: -6px; top: -6px; width: calc(var(--w) + 12px); height: calc(var(--d) + 12px); transform-style: preserve-3d; transform: translateZ(calc(var(--h) - var(--lip) + 4px)); animation: lid 7s var(--ease) infinite; }
.box3d .lid .f { transform-origin: top; }
.box3d .lid .top {
    width: 100%; height: 100%; transform: translateZ(var(--lip));
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 80%, #fff), var(--brand) 45%, color-mix(in srgb, var(--brand) 72%, #000));
    display: flex; align-items: center; justify-content: center;
}
.box3d .lid .top span { font-family: var(--display); font-weight: 800; font-size: 28px; color: rgba(10, 10, 10, .72); letter-spacing: .08em; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.box3d .lid .lx { width: 100%; height: var(--lip); transform: rotateX(90deg); background: color-mix(in srgb, var(--brand) 55%, #000); }
.box3d .lid .lx.front { top: 100%; background: color-mix(in srgb, var(--brand) 70%, #000); }
.box3d .lid .ly { width: var(--lip); height: 100%; transform-origin: left; transform: rotateY(-90deg); background: color-mix(in srgb, var(--brand) 60%, #000); }
.box3d .lid .ly.right { left: 100%; background: color-mix(in srgb, var(--brand) 42%, #000); }
@keyframes lid {
    0%, 18% { transform: translateZ(calc(var(--h) - var(--lip) + 4px)); }
    40%, 72% { transform: translateZ(calc(var(--h) + var(--lift, 150px))) translate(var(--lx, -40px), var(--ly, -70px)) rotateX(-14deg) rotateY(10deg); }
    94%, 100% { transform: translateZ(calc(var(--h) - var(--lip) + 4px)); }
}
.float-pill {
    position: absolute; z-index: 2; padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
    box-shadow: var(--shadow); font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
    animation: floaty 6s ease-in-out infinite;
}
.float-pill i { color: var(--brand); }
.float-pill.p1 { top: 12%; left: 4%; }
.float-pill.p2 { top: 22%; right: 2%; animation-delay: -2s; }
.float-pill.p3 { bottom: 12%; left: 12%; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
    .box3d { --w: 150px; --d: 150px; --h: 62px; --lip: 18px; --lift: 80px; --lx: -10px; --ly: -30px; }
    .box3d .item { width: 46px; height: 46px; left: 22px; top: 24px; }
    .box3d .item.i2 { width: 40px; height: 64px; left: 86px; top: 66px; }
    .box3d .lid .top span { font-size: 18px; }
    .float-pill { font-size: 12px; padding: 7px 11px; }
    .float-pill.p3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .box3d .lid, .float-pill { animation: none; }
    html { scroll-behavior: auto; }
}

/* ===== Passos ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; position: relative; overflow: hidden; }
.step .num { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: color-mix(in srgb, var(--brand) 55%, transparent); }
.step h3 { font-size: 21px; margin: 14px 0 8px; }
.step p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ===== Categorias ===== */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: 22px;
    border-radius: var(--r-lg); overflow: hidden; text-decoration: none; background: var(--paper-2); isolation: isolate;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.cat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(12, 11, 9, .72)); }
.cat:hover img { transform: scale(1.06); }
.cat h3 { color: #fff; font-size: 24px; }
.cat p { color: rgba(255, 255, 255, .82); font-size: 14px; margin-top: 4px; }
.cat .go { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease); }
.cat:hover .go { transform: rotate(-45deg); }
.cat .tag-exemplo { position: absolute; top: 18px; left: 18px; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } .cat { min-height: 220px; } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }

/* ===== Cards de produto ===== */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1060px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.pcard { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard .ph { position: relative; aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.pcard .ph img.alt { position: absolute; inset: 0; opacity: 0; }
.pcard:hover .ph img.alt { opacity: 1; }
.pcard:hover .ph img:first-child { transform: scale(1.04); }
.pcard .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--card); color: var(--ink); }
.badge.sob { background: var(--brand-ink); color: var(--brand-soft); }
.badge.pronta { background: var(--brand); color: var(--brand-ink); }
.pcard .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .cat-n { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.pcard h3 { font-family: var(--body); font-size: 15.5px; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.pcard .pr { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.pcard .pr small { color: var(--ink-3); font-size: 12px; display: block; }
.pcard .pr b { font-family: var(--display); font-size: 20px; }
.pcard .min { font-size: 12px; color: var(--ink-3); }
@media (max-width: 520px) { .pcard .bd { padding: 12px; } .pcard h3 { font-size: 14px; } .pcard .pr b { font-size: 17px; } }

/* ===== Faixa sob medida ===== */
.custom-band { background: var(--brand-ink); color: #f6f2ea; border-radius: var(--r-lg); padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.custom-band h2 { font-size: clamp(30px, 4vw, 46px); }
.custom-band p { color: rgba(246, 242, 234, .72); margin: 16px 0 26px; font-size: 17px; }
.custom-band .opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.custom-band .opt { border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-sm); padding: 14px; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.custom-band .opt i { color: var(--brand); width: 18px; text-align: center; }
@media (max-width: 860px) { .custom-band { grid-template-columns: 1fr; padding: 32px 22px; } }

/* ===== Portfólio ===== */
.cases { columns: 3 280px; column-gap: 16px; }
.case { break-inside: avoid; margin-bottom: 16px; border-radius: var(--r-md); overflow: hidden; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; display: block; width: 100%; text-align: left; padding: 0; }
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.case img { width: 100%; aspect-ratio: var(--ar, 1); object-fit: cover; }
.case .bd { padding: 14px 16px; }
.case .st { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.case h3 { font-family: var(--body); font-size: 16px; letter-spacing: 0; margin-top: 4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.chip i { color: var(--brand); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }

/* ===== Setores ===== */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sector { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; font-weight: 700; transition: border-color .2s, transform .2s var(--ease); }
.sector:hover { border-color: var(--ink); transform: translateY(-2px); }
.sector i { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.sector span { flex: 1; }
@media (max-width: 860px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sectors { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; font-weight: 400; transition: transform .25s var(--ease); color: var(--ink-3); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* ===== CTA final e rodapé ===== */
.cta-end { text-align: center; padding: 96px 24px; }
.cta-end h2 { font-size: clamp(34px, 5vw, 60px); max-width: 18ch; margin: 0 auto 18px; }
.cta-end .lead { margin: 0 auto 30px; }
.cta-end .hero-cta { justify-content: center; }
.ftr { background: #0f0e0c; color: rgba(246, 242, 234, .7); padding: 56px 0 28px; font-size: 14px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.ftr h4 { color: #fff; font-family: var(--body); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.ftr a { text-decoration: none; display: block; padding: 4px 0; }
.ftr a:hover { color: #fff; }
.ftr .logo { color: #fff; margin-bottom: 12px; }
.ftr .logo img { filter: none; background: #fff; border-radius: 8px; padding: 4px 8px; }
.ftr-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr; } }

/* ===== Página de listagem ===== */
.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); }
.page-head .lead { margin-top: 12px; }
.crumbs { font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar .search { flex: 1; min-width: 220px; position: relative; }
.toolbar .search input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); padding: 0 18px 0 44px; font-size: 15px; outline: none; }
.toolbar .search input:focus { border-color: var(--ink); }
.toolbar .search i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.select { height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); padding: 0 16px; font-weight: 600; font-size: 14px; }
.empty { text-align: center; padding: 64px 16px; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.empty i { font-size: 30px; margin-bottom: 10px; display: block; }

/* Esqueleto de carregamento */
.skel { background: linear-gradient(90deg, var(--paper-2), #f7f3ea, var(--paper-2)); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: var(--r-md); }
@keyframes skel { to { background-position: -200% 0; } }

/* ===== Produto ===== */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 24px 0 64px; align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }
.gallery { position: sticky; top: 94px; }
@media (max-width: 900px) { .gallery { position: static; } }
.gallery .main-img { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); position: relative; cursor: zoom-in; }
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery .main-img.zoom img { transform: scale(1.8); cursor: zoom-out; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery .thumbs button { width: 76px; height: 76px; flex-shrink: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--paper-2); }
.gallery .thumbs button.on { border-color: var(--ink); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo h1 { font-size: clamp(30px, 3.6vw, 44px); margin: 10px 0 12px; }
.pinfo .resumo { font-size: 17px; color: var(--ink-2); }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 24px 0; }
.specs div { background: var(--card); padding: 12px 16px; }
.specs small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.specs b { font-size: 15px; }
.blk { margin: 26px 0; }
.blk-t { font-weight: 800; font-size: 15px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.blk-t small { font-weight: 600; color: var(--ink-3); font-size: 13px; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opt-card { border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; cursor: pointer; background: var(--card); display: flex; flex-direction: column; gap: 2px; text-align: left; transition: border-color .15s, box-shadow .15s; }
.opt-card:hover { border-color: var(--ink-3); }
.opt-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-card b { font-size: 14px; }
.opt-card small { color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 420px) { .opts { grid-template-columns: 1fr; } }

/* Régua de quantidade */
.qty-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 50px; background: var(--paper); }
.stepper button { width: 46px; height: 100%; border: 0; background: transparent; font-size: 18px; cursor: pointer; border-radius: 999px; }
.stepper button:hover { background: var(--paper-2); }
.stepper input { width: 84px; text-align: center; border: 0; background: transparent; font-weight: 800; font-size: 18px; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-price { flex: 1; text-align: right; min-width: 140px; }
.qty-price .u { font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; }
.qty-price .u small { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--ink-3); }
.qty-price .t { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.ruler { margin-top: 22px; position: relative; }
.ruler input[type=range] { width: 100%; accent-color: var(--brand-ink); height: 26px; }
.ruler .ticks { display: flex; justify-content: space-between; gap: 4px; margin-top: 6px; }
.ruler .tick { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; font-size: 12px; color: var(--ink-3); cursor: pointer; border: 1px solid transparent; background: transparent; line-height: 1.3; }
.ruler .tick b { display: block; font-size: 13px; color: var(--ink); }
.ruler .tick.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 50%, transparent); }
.ruler .tick.on b { color: var(--brand-ink); }
.save-hint { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--ok); display: flex; gap: 8px; align-items: center; min-height: 20px; }
.save-hint.warn { color: var(--warn); }
textarea.field, input.field, select.field {
    width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); padding: 12px 14px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.field { min-height: 96px; resize: vertical; }
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
.buy { display: flex; gap: 10px; margin-top: 18px; }
.buy .btn { flex: 1; height: 56px; font-size: 16px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.trust div { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.trust i { color: var(--brand); }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }
.desc { white-space: pre-line; color: var(--ink-2); }

/* Barra fixa de compra no celular */
.mbar { display: none; }
@media (max-width: 900px) {
    .mbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line);
        transform: translateY(110%); transition: transform .3s var(--ease);
    }
    .mbar.on { transform: none; }
    .mbar .p { flex: 1; font-size: 13px; color: var(--ink-3); line-height: 1.2; }
    .mbar .p b { display: block; font-size: 18px; color: var(--ink); font-family: var(--display); }
}

/* ===== Carrinho ===== */
.cart-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; padding-bottom: 80px; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }
.citem { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.citem img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; background: var(--paper-2); }
.citem h3 { font-family: var(--body); font-size: 16px; letter-spacing: 0; }
.citem h3 a { text-decoration: none; }
.citem .meta { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.citem .ctrl { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.citem .stepper { height: 40px; }
.citem .stepper button { width: 38px; }
.citem .stepper input { width: 70px; font-size: 15px; }
.citem .rm { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 13px; font-weight: 600; padding: 6px; }
.citem .rm:hover { color: var(--danger); }
.citem .val { text-align: right; font-weight: 800; white-space: nowrap; }
.citem .val small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.citem .obs { margin-top: 10px; }
.citem .obs textarea { min-height: 60px; font-size: 14px; }
@media (max-width: 520px) {
    .citem { grid-template-columns: 72px 1fr; }
    .citem img { width: 72px; height: 72px; }
    .citem .val { grid-column: 2; text-align: left; }
}
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: sticky; top: 94px; }
@media (max-width: 900px) { .summary { position: static; } }
.summary h2 { font-size: 24px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 18px; }
.note { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err { color: var(--danger); font-size: 14px; font-weight: 600; margin-top: 10px; min-height: 20px; }

.done { max-width: 620px; margin: 40px auto 100px; text-align: center; }
.done .ok-ico { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 22px; background: var(--brand); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-size: 38px; animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
.done h1 { font-size: clamp(32px, 5vw, 48px); }
.done .num { display: inline-block; margin: 14px 0 8px; padding: 8px 18px; border-radius: 999px; background: var(--brand-ink); color: var(--brand-soft); font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.done .timeline { text-align: left; margin: 32px auto; display: grid; gap: 0; max-width: 440px; }
.done .timeline div { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.done .timeline div::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.done .timeline div:last-child::before { display: none; }
.done .timeline span { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.done .timeline div.on span { background: var(--brand); color: var(--brand-ink); }
.done .timeline b { display: block; }
.done .timeline small { color: var(--ink-3); font-size: 13.5px; }

/* ===== Modal (portfólio) ===== */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(12, 11, 9, .6); display: none; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(6px); }
.modal.on { display: flex; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { background: var(--card); border-radius: var(--r-lg); max-width: 960px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr; animation: rise .3s var(--ease); }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.modal-card img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal-card .bd { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.modal-card h2 { font-size: 30px; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; cursor: pointer; }
@media (max-width: 760px) { .modal-card { grid-template-columns: 1fr; } .modal-card img { min-height: 0; aspect-ratio: 1; } .modal-card .bd { padding: 22px; } }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 80; background: var(--brand-ink); color: #fff; padding: 12px 14px 12px 18px; border-radius: 999px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg); transition: all .3s var(--ease); font-weight: 600; font-size: 14.5px; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast a { background: var(--brand); color: var(--brand-ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
@media (max-width: 900px) { .toast { bottom: 90px; } }

/* Entrada suave dos blocos ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
