:root {
  --carbono: #1C1C1F;
  --grafite: #2A2A2E;
  --grafite-2: #34343A;
  --laranja: #FF7A1A;
  --ambar: #FFB347;
  --ferrugem: #C2440F;
  --creme: #F4E6D0;
  --claro: #F4F1EC;
  --muted: #B8B4AC;
  --linha: rgba(244,230,208,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--carbono); color: var(--creme); font: 400 16px/1.6 Montserrat, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--laranja); color: var(--carbono); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Cabeçalho ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(28,28,31,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.word { font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
.word b { color: var(--laranja); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 14px; font-weight: 500; }
nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; background: linear-gradient(var(--laranja), var(--laranja)) no-repeat left calc(100% - 10px) / 0 2px; transition: background-size .3s var(--ease), color .2s; }
nav a:hover { background-size: 100% 2px; }
nav .nav-cta { background: var(--laranja); color: var(--carbono); font-weight: 600; border-radius: 999px; padding: 0 18px; transition: transform .2s var(--ease), background-color .2s; }
nav .nav-cta:hover { background: var(--ambar); transform: translateY(-1px); }

/* ---------- Tipografia ---------- */
section { padding-block: clamp(72px, 10vw, 140px); scroll-margin-top: 68px; }
h1 { font-size: clamp(56px, 10.5vw, 148px); line-height: .92; font-weight: 900; letter-spacing: -.035em; }
h1 span, h2 span { color: var(--laranja); }
h2 { font-size: clamp(40px, 6.6vw, 92px); line-height: .98; font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.sub { color: var(--muted); max-width: 42ch; font-size: 17px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.num { color: var(--laranja); font-weight: 800; font-size: 13px; letter-spacing: .12em; }

/* ---------- Botões ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; text-decoration: none; font-weight: 600; border-radius: 12px; padding: 0 26px; border: 2px solid var(--laranja); transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.primary { background: var(--laranja); color: var(--carbono); }
.primary:hover { background: var(--ambar); border-color: var(--ambar); box-shadow: 0 10px 24px -10px rgba(255,122,26,.7); }
.ghost:hover { background: rgba(255,122,26,.12); }

/* ---------- Topo ---------- */
.hero { min-height: calc(100svh - 68px); display: flex; align-items: center; padding-block: 48px; overflow: hidden;
  background: radial-gradient(60% 70% at 78% 50%, rgba(255,122,26,.13) 0%, transparent 70%), var(--carbono); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); margin-top: 28px; max-width: 40ch; }
.hero-art { position: relative; display: grid; justify-items: center; }
.facets { position: absolute; inset: -6% -4%; width: 108%; height: 112%; z-index: 0; }
.facets polygon { fill: none; stroke: rgba(255,122,26,.22); stroke-width: 1.2; }
.facets polygon.hot { fill: rgba(255,122,26,.18); stroke: none; }

.enter { animation: enter .9s var(--ease) both; }
.hero-art.enter { animation-delay: .15s; }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } }


.print3d { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; background: var(--laranja); color: var(--carbono); border-radius: 24px; padding: clamp(28px, 5vw, 64px); overflow: hidden; }
.print3d .num { color: var(--carbono); }
.print3d h3 { font-size: clamp(36px, 5vw, 68px); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 10px 0 18px; }
.print3d p { font-size: 18px; max-width: 34ch; margin-bottom: 22px; }
.print3d .tags li { border-color: rgba(28,28,31,.3); }
.print3d .btn { margin-top: 28px; background: var(--carbono); color: var(--creme); border-color: var(--carbono); }
.print3d .btn:hover { background: var(--grafite); border-color: var(--grafite); box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.p-img { background: var(--carbono); border-radius: 18px; padding: 8%; overflow: hidden; }
.p-img img { transition: transform .6s var(--ease); }
.print3d:hover .p-img img { transform: scale(1.03); }

/* ---------- Processo ---------- */
.light { background: var(--claro); color: var(--carbono); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(40px, 5vw, 64px); }
.steps li { counter-increment: step; border-top: 2px solid var(--carbono); padding-top: 20px; }
.steps li::before { content: "0" counter(step); display: block; color: var(--ferrugem); font-weight: 900; font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -.03em; margin-bottom: 18px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: #4A4A50; font-size: 15px; }

/* ---------- Manifesto ---------- */

/* ---------- Contato ---------- */
.contact { background: var(--grafite); border-top: 1px solid var(--linha); }
.contact h2 { max-width: 14ch; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 48px; }
.big-btn { min-height: 64px; font-size: 18px; padding: 0 36px; border-radius: 14px; }
.mail { font-size: clamp(22px, 3vw, 36px); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; background: linear-gradient(var(--laranja), var(--laranja)) no-repeat left bottom / 0 3px; transition: background-size .35s var(--ease), color .2s; }
.mail:hover { background-size: 100% 3px; color: var(--laranja); }

/* ---------- Rodapé ---------- */
footer { padding-block: 48px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--linha); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 24px 40px; align-items: start; }
.foot .word { color: var(--creme); font-size: 18px; }
.foot p { margin-top: 4px; }
.foot nav { flex-direction: column; align-items: flex-start; gap: 0; }
.foot nav a { min-height: 36px; }
.copy { align-self: end; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-grid, .case, .print3d { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .case-img { min-height: 220px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .s-line { display: none; }
  .services summary { grid-template-columns: 44px 1fr 44px; }
  .s-body { grid-template-columns: 1fr; padding-left: 60px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .top { position: static; }
  nav { width: 100%; justify-content: space-between; gap: 0 12px; font-size: 13px; }
  nav .nav-cta { padding: 0 14px; }
  .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .services summary { gap: 12px; padding-block: 20px; }
  .s-body { padding-left: 0; }
  .contact-row { flex-direction: column; align-items: stretch; }
  .foot { grid-template-columns: 1fr; }
}
/* =========== M/X Produtos: loja =========== */
.word small { font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--muted); margin-left: 4px; }
.tag-line { display: inline-block; color: var(--laranja); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; font-weight: 500; border: 1px solid var(--linha); border-radius: 999px; padding: 6px 14px; }
h1 { font-size: clamp(48px, 8.4vw, 120px); }
.foot p a { text-decoration: none; font-weight: 700; letter-spacing: .1em; }
.foot p a b { color: var(--laranja); }

/* cubo do topo: inclina com o mouse e as faces "imprimem" em camadas */
.cube { position: relative; z-index: 1; width: min(100%, 440px); aspect-ratio: 320/360; cursor: pointer;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease);
  filter: drop-shadow(0 30px 50px rgba(255,122,26,.25)); }
.cube svg { width: 100%; height: 100%; overflow: visible; }
.layers polygon { transform-box: fill-box; transform-origin: center; animation: layer .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + .3s); transition: transform .4s var(--ease); }
@keyframes layer { from { opacity: 0; transform: translateY(40px) scale(.9); } }
.cube:hover .layers polygon { transform: scale(.96); }

/* botão carrinho */
.cart-btn { font: inherit; font-weight: 600; color: var(--carbono); background: var(--laranja); border: 0; border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform .2s var(--ease), background-color .2s; }
.cart-btn:hover { background: var(--ambar); transform: translateY(-1px); }
.count { min-width: 24px; height: 24px; border-radius: 999px; background: var(--carbono); color: var(--creme); font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }

/* filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { font: inherit; font-size: 14px; font-weight: 500; color: var(--creme); background: none; border: 1px solid var(--linha); border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: rgba(255,122,26,.5); }
.chip[aria-pressed="true"] { background: var(--laranja); border-color: var(--laranja); color: var(--carbono); font-weight: 600; }

/* cards de produto */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--grafite); border: 1px solid var(--linha); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), border-color .25s; animation: enter .6s var(--ease) both; }
.card:hover { transform: translateY(-3px); border-color: rgba(255,122,26,.5); }
.c-img { aspect-ratio: 1; background: radial-gradient(70% 70% at 50% 40%, rgba(255,122,26,.16), transparent 70%), var(--carbono); display: grid; place-items: center; overflow: hidden; position: relative; }
.c-img img, .c-img svg { width: 62%; transition: transform .6s var(--ease); }
.card:hover .c-img img, .card:hover .c-img svg { transform: scale(1.06) rotate(-2deg); }
.badge { position: absolute; top: 14px; left: 14px; background: var(--laranja); color: var(--carbono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 5px 12px; }
.c-info { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.c-cat { color: var(--laranja); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.c-info h3 { font-size: 18px; }
.c-info p { color: var(--muted); font-size: 14px; }
.c-row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.add { min-height: 44px; padding: 0 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.add.ok { background: var(--creme); border-color: var(--creme); }

.print3d .btn { margin-top: 28px; background: var(--carbono); color: var(--creme); border-color: var(--carbono); }
.p-img { display: grid; place-items: center; }
.p-img img { width: min(100%, 360px); }

/* carrinho lateral */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); animation: fade .3s both; }
.scrim[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; height: 100dvh; width: min(420px, 100%); background: var(--grafite); border-left: 1px solid var(--linha); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease), visibility .4s; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.d-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--linha); }
.close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linha); background: none; color: var(--creme); cursor: pointer; position: relative; transition: transform .3s var(--ease), background-color .2s; }
.close::before, .close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%,-50%) rotate(45deg); }
.close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.close:hover { transform: rotate(90deg); background: var(--laranja); color: var(--carbono); border-color: var(--laranja); }
.d-items { list-style: none; flex: 1; overflow-y: auto; padding: 8px 24px; }
.d-items li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.d-items .empty { display: block; color: var(--muted); border: 0; padding-top: 24px; }
.d-items .n { font-weight: 600; }
.d-items select { justify-self: start; font: inherit; font-size: 13px; color: var(--creme); background: var(--carbono); border: 1px solid var(--linha); border-radius: 8px; padding: 6px 8px; min-height: 36px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--linha); border-radius: 999px; }
.qty button { width: 36px; height: 36px; background: none; border: 0; color: var(--creme); font: inherit; font-size: 18px; cursor: pointer; border-radius: 50%; }
.qty button:hover { color: var(--laranja); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.d-foot { padding: 20px 24px 24px; border-top: 1px solid var(--linha); display: grid; gap: 14px; }
.d-foot .btn { width: 100%; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--muted); }
.total strong { font-size: 28px; color: var(--creme); letter-spacing: -.02em; }
.note { color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .cube { width: min(80%, 320px); }
}
@media (max-width: 560px) {
  .word small { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .c-info { padding: 14px; }
  .c-info p { display: none; }
  .c-row { flex-direction: column; align-items: stretch; }
  .price { font-size: 18px; }
}
/* ---------- Tema claro ---------- */
:root[data-theme="light"] {
  --carbono: #F4F1EC; --grafite: #FFFFFF; --grafite-2: #E9E3D8;
  --creme: #1C1C1F; --claro: #2A2A2E; --muted: #5E5A54;
  --linha: rgba(28,28,31,.14);
}
:root[data-theme="light"] .top { background: rgba(244,241,236,.9); }
:root[data-theme="light"] .steps p { color: #C9C4BB; }
:root[data-theme="light"] :is(.skip, nav .nav-cta, .primary, .print3d, .print3d .num, .cart-btn, .chip[aria-pressed="true"], .badge, .close:hover) { color: #1C1C1F; }
:root[data-theme="light"] .print3d .btn { background: #1C1C1F; color: #F4E6D0; border-color: #1C1C1F; }
:root[data-theme="light"] .p-img { background: #1C1C1F; }
:root[data-theme="light"] .count { background: #1C1C1F; color: #F4E6D0; }
.theme-btn { font: inherit; color: var(--creme); background: transparent; border: 1px solid var(--linha); border-radius: 999px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.theme-btn:hover { border-color: var(--laranja); transform: rotate(-15deg); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }

/* ---------- Conta, favoritos e painel ---------- */
.c-info { position: relative; }
.fav { position: absolute; top: -22px; right: 16px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--linha); background: var(--grafite); color: var(--muted); font-size: 18px; cursor: pointer; transition: transform .2s var(--ease), color .2s; }
.fav:hover { transform: scale(1.08); }
.fav[aria-pressed="true"] { color: var(--laranja); border-color: var(--laranja); }
.page { padding: clamp(32px, 6vw, 72px) 0; min-height: 70vh; }
.page h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 8px; }
.panel { background: var(--grafite); border: 1px solid var(--linha); border-radius: 20px; padding: clamp(20px, 3vw, 32px); margin-top: 24px; }
.panel h2 { font-size: 20px; margin-bottom: 16px; }
.form { display: grid; gap: 14px; max-width: 520px; }
.form.wide { max-width: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--creme); background: var(--carbono); border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.form textarea { min-height: 80px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--laranja); outline: none; box-shadow: 0 0 0 3px rgba(255,122,26,.25); }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form .check input { min-height: 0; width: 18px; height: 18px; accent-color: var(--laranja); }
.form .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.msg { font-size: 14px; min-height: 1.4em; color: var(--ambar); }
.msg.err { color: #FF6B5B; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tbl .thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--carbono); }
.tbl .off { opacity: .5; }
.tbl-wrap { overflow-x: auto; }
.mini { min-height: 36px; padding: 0 12px; font-size: 13px; }
.order { border-bottom: 1px solid var(--linha); padding: 12px 0; font-size: 14px; }
.order strong { color: var(--laranja); }
.acc-link { text-decoration: none; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
button.btn.ghost { background: transparent; color: var(--creme); }
button.btn.ghost:hover { background: rgba(255,122,26,.12); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
