/* ============================================================
   Pombo3D — tema público (dark, "filamento quente")
   ============================================================ */
:root {
  --bg: #0c0d13;
  --bg-2: #11131c;
  --surface: #171a26;
  --surface-2: #1e2230;
  --text: #eaecf5;
  --muted: #8c92a8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff4d7d;
  --accent-2: #ffa23a;
  --accent-3: #9b5cff;
  --grad: linear-gradient(120deg, #ffa23a 0%, #ff4d7d 48%, #9b5cff 100%);
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --font: "Sora", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--muted); }
.sm { font-size: 0.85rem; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 13, 19, 0.72);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; }
.brand-mark { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.3rem; }
.main-nav { display: flex; gap: 1.6rem; align-items: center; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: .95rem; position: relative; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav-admin { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #140a10; box-shadow: 0 10px 30px -8px rgba(255, 77, 125, .55); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn-block { width: 100%; justify-content: center; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 11vw, 8rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 140%;
  background:
    radial-gradient(45% 55% at 80% 15%, rgba(255, 77, 125, .28), transparent 70%),
    radial-gradient(40% 50% at 15% 10%, rgba(155, 92, 255, .22), transparent 70%),
    radial-gradient(50% 60% at 50% 100%, rgba(255, 162, 58, .14), transparent 70%);
  filter: blur(10px); z-index: 0;
  animation: floatbg 16s ease-in-out infinite alternate;
}
@keyframes floatbg { to { transform: translate3d(0, -4%, 0) scale(1.05); } }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  display: inline-block; margin-bottom: 1.5rem; background: rgba(255,255,255,.02);
}
.hero-title { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; margin-bottom: 1.3rem; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 48ch; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-badges { list-style: none; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-badges li { display: flex; flex-direction: column; }
.hero-badges strong { font-size: 1.15rem; }
.hero-badges span { color: var(--muted); font-size: .85rem; font-family: var(--mono); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-top { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.link-more { color: var(--accent); font-weight: 700; font-size: .95rem; }
.block-title { font-size: 1.3rem; margin: 2.5rem 0 1.2rem; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip {
  font-size: .85rem; font-weight: 600; padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.02); transition: .2s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip-on { background: var(--grad); color: #140a10; border-color: transparent; }

/* ---------- Grid + Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-featured { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(255,77,125,.35); }
.card-media { position: relative; aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-big .card-media { aspect-ratio: 1/1; }
.card-noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-family: var(--mono); font-size: .85rem; }
.card-noimg.big { aspect-ratio: 1/1; }
.tag { position: absolute; top: .8rem; left: .8rem; font-size: .75rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; backdrop-filter: blur(6px); }
.tag-out { background: rgba(0,0,0,.6); color: #fff; }
.tag-hot { left: auto; right: .8rem; background: var(--grad); color: #140a10; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-cat { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); }
.card-title { font-size: 1.15rem; }
.card-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.price { font-weight: 800; font-size: 1.15rem; }
.card-cta { color: var(--accent); font-weight: 700; font-size: .9rem; }

.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); display: flex; flex-direction: column; gap: 1.2rem; align-items: center; }

/* ---------- Product detail ---------- */
.back-link { color: var(--muted); font-size: .9rem; display: inline-block; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--text); }
.admin-banner { background: rgba(255,162,58,.12); border: 1px solid rgba(255,162,58,.4); color: var(--accent-2); padding: .7rem 1rem; border-radius: 12px; margin-bottom: 1.5rem; font-size: .9rem; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 1/1; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: .7rem; margin-top: .9rem; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--accent); }
.product-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .4rem 0 .6rem; }
.product-price { font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.product-stock { display: flex; align-items: center; gap: .5rem; color: var(--muted); margin: 1rem 0; font-size: .9rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-in { background: #35d07f; box-shadow: 0 0 10px #35d07f; }
.dot-out { background: #ff5a5a; }
.lead { font-size: 1.1rem; margin: 1.2rem 0; }
.product-desc { color: var(--muted); line-height: 1.8; }
.product-specs { list-style: none; padding: 0; margin: 1.2rem 0; display: flex; flex-direction: column; gap: .7rem; }
.product-specs li { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.product-specs .spec-k { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 72px; }
.product-specs .spec-v { font-weight: 600; }
.product-specs .spec-v.chips { display: flex; gap: .4rem; flex-wrap: wrap; font-weight: 400; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; place-items: center; z-index: 100; padding: 2rem; }
.lightbox.on { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* ---------- Footer ---------- */
/* ---------- CTA encomenda personalizada ---------- */
.cta-band {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.cta-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: .5rem 0 .7rem; }
.cta-sub { color: var(--muted); max-width: 62ch; }
.cta-steps {
  list-style: none; padding: 0; margin: 2rem 0 1.2rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.4rem;
}
.cta-steps li { display: flex; gap: .7rem; align-items: flex-start; }
.cta-steps .step-n {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: .9rem; color: #140a10; background: var(--grad);
}
.cta-steps strong { display: block; margin-bottom: .25rem; font-size: .98rem; }
.cta-steps p { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.cta-note {
  font-size: .9rem; color: var(--muted); background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1.6rem;
}
.cta-note strong { color: var(--accent-2); }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-insta {
  display: inline-flex; align-items: center; gap: .5rem; color: #fff; border: 0;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.btn-insta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.btn-insta:hover { transform: translateY(-2px); filter: brightness(1.07); }
.cta-social-hint { margin-top: 1.1rem; font-size: .88rem; color: var(--muted); }
.cta-social-hint a { color: var(--accent); font-weight: 600; }
.cta-social-hint a:hover { text-decoration: underline; }

.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 3.5rem 0 2rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid h4 { font-size: .95rem; margin-bottom: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); font-weight: 600; }
.footer-grid a:hover { color: var(--accent); }

/* ---------- Redes / onde comprar ---------- */
.footer-social { display: flex; flex-direction: column; gap: .55rem; }
.social-link {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .02); color: var(--text); font-size: .9rem; font-weight: 600;
  width: fit-content; transition: border-color .2s, color .2s, transform .2s;
}
.social-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
a.social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.social-link.soon { opacity: .45; cursor: default; }
.social-link.soon::after { content: "em breve"; font-family: var(--mono); font-size: .62rem; font-weight: 400; color: var(--muted); margin-left: .15rem; }
.site-footer p { margin-bottom: .3rem; }
.copy { border-top: 1px solid var(--line); padding-top: 1.5rem; color: var(--muted); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: var(--bg-2);
    padding: 1.5rem 2rem; gap: 1.2rem; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s; align-items: flex-start;
  }
  .main-nav.open { transform: none; }
  .burger { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  .p3d-head, .p3d-build, .p3d-fil { animation: none; }
  .p3d-slot1 { transform: scaleY(1); opacity: 1; }
  .p3d-slot2, .p3d-slot3 { opacity: 0; }
}

/* ---------- Mini impressora 3D (decorativa no hero) ---------- */
.printer3d {
  position: absolute; right: clamp(-10px, 2vw, 48px); bottom: 0;
  width: clamp(190px, 23vw, 310px); height: auto; z-index: 0;
  opacity: .55; pointer-events: none;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
}
.p3d-frame { fill: rgba(255, 255, 255, .02); stroke: var(--line); stroke-width: 2; }
.p3d-post { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.p3d-rail, .p3d-plate, .p3d-carriage { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.p3d-foot { fill: var(--surface); }
.p3d-nozzle { fill: var(--accent-2); }
.p3d-led { fill: var(--accent); }
.p3d-fil {
  stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 2 7; animation: p3dFlow .7s linear infinite;
}
.p3d-fill { fill: url(#p3dGrad); opacity: .95; }
.p3d-wing { fill: rgba(0, 0, 0, .22); }
.p3d-eye { fill: var(--bg); }
.p3d-shade-a { fill: rgba(0, 0, 0, .34); }
.p3d-shade-b { fill: rgba(0, 0, 0, .16); }
.p3d-layers line { stroke: rgba(0, 0, 0, .28); stroke-width: 1.4; }

/* cada peça ocupa 1/3 do ciclo (7s de 21s); troca quando a anterior acaba */
.p3d-build {
  transform-box: fill-box; transform-origin: center bottom;
  opacity: 0; animation: p3dCycle 21s ease-in-out infinite;
}
.p3d-slot1 { animation-delay: 0s; }
.p3d-slot2 { animation-delay: 7s; }
.p3d-slot3 { animation-delay: 14s; }
.p3d-head { animation: p3dTravel 1.25s ease-in-out infinite alternate; }

@keyframes p3dTravel { from { transform: translateX(-54px); } to { transform: translateX(54px); } }
@keyframes p3dFlow { to { stroke-dashoffset: -36; } }
@keyframes p3dCycle {
  0%   { transform: scaleY(0); opacity: 0; }
  2%   { opacity: 1; }
  24%  { transform: scaleY(1); }
  30%  { transform: scaleY(1); opacity: 1; }
  33%  { transform: scaleY(1); opacity: 0; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 860px) { .printer3d { opacity: .16; right: -28px; width: 230px; } }
@media (max-width: 560px) { .printer3d { display: none; } }
