
:root {
  --bg: #090a0c;
  --bg-soft: #0e1013;
  --surface: #121418;
  --surface-2: #17191e;
  --surface-3: #1d2025;
  --border: #272a30;
  --border-strong: #3b3f47;
  --text: #f4f4f1;
  --text-soft: #c3c4c7;
  --muted: #8d9097;
  --faint: #5f6269;
  --gold: #d7a63d;
  --gold-light: #f0c760;
  --gold-dark: #7e5d1b;
  --gold-glow: rgba(215, 166, 61, .22);
  --green: #35c77a;
  --red: #ef6262;
  --blue: #6ba9ff;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 26px 70px rgba(0,0,0,.38);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --page: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 5%, rgba(215,166,61,.08), transparent 28rem),
    radial-gradient(circle at 5% 30%, rgba(255,255,255,.025), transparent 24rem),
    var(--bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: #111; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 74px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(9,10,12,.82);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand-link { display: inline-flex; align-items: center; min-width: 0; }
.brand-logo { width: 150px; height: 52px; object-fit: contain; object-position: left center; }
.header-nav { display: flex; align-items: center; gap: 28px; color: var(--text-soft); font-size: 13px; font-weight: 600; }
.header-nav > a:not(.header-cta) { position: relative; }
.header-nav > a:not(.header-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transition: right .2s ease;
}
.header-nav > a:hover::after { right: 0; }
.header-cta {
  padding: 10px 16px;
  border: 1px solid rgba(215,166,61,.45);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(215,166,61,.07);
}
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: var(--text); transition: transform .2s ease; }
.mobile-menu {
  position: fixed;
  top: 74px;
  left: 12px;
  right: 12px;
  z-index: 39;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(18,20,24,.98);
  box-shadow: var(--shadow);
}
.mobile-menu a { display: block; padding: 13px 14px; border-radius: 10px; color: var(--text-soft); }
.mobile-menu a:last-child { margin-top: 6px; background: var(--gold); color: #181204; font-weight: 800; text-align: center; }

.hero {
  width: var(--page);
  margin: 0 auto;
  min-height: 690px;
  padding: 82px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, .97fr);
  align-items: center;
  gap: 72px;
}
.hero-copy { max-width: 690px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow > span { width: 22px; height: 1px; background: currentColor; }
.eyebrow.center { justify-content: center; }
.hero h1 {
  margin: 20px 0 22px;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 600;
}
.hero h1 strong { display: block; color: var(--gold-light); font-weight: 600; }
.hero-copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #181204; box-shadow: 0 12px 30px rgba(215,166,61,.18); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary { border-color: var(--border-strong); background: rgba(255,255,255,.025); color: var(--text); }
.btn-secondary:hover { border-color: var(--gold-dark); background: rgba(215,166,61,.05); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.04); }
.btn-danger { background: rgba(239,98,98,.14); color: #ff9090; border-color: rgba(239,98,98,.36); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 12px; }
.btn-wide { width: 100%; }
.hero-metrics { display: flex; gap: 34px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-metrics div { display: grid; gap: 4px; }
.hero-metrics strong { font-family: var(--font-display); font-size: 18px; }
.hero-metrics span { color: var(--faint); font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; }

.printer-stage {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 48%),
    rgba(13,14,17,.72);
  overflow: hidden;
  box-shadow: inset 0 1px rgba(255,255,255,.04), var(--shadow);
}
.printer-stage::before, .printer-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.printer-stage::before {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.printer-stage::after { box-shadow: inset 0 0 90px rgba(0,0,0,.62); }
.stage-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(215,166,61,.14); filter: blur(70px); animation: glowPulse 4s ease-in-out infinite; }
.printer-frame { position: relative; z-index: 2; width: 78%; height: 340px; border-left: 11px solid #36383e; border-right: 11px solid #36383e; border-top: 11px solid #36383e; border-radius: 8px 8px 0 0; }
.printer-topbar { position: absolute; top: 28px; left: 0; right: 0; height: 8px; background: #25282d; box-shadow: 0 1px rgba(255,255,255,.05); }
.printer-rail { position: absolute; top: 74px; left: 24px; right: 24px; height: 5px; border-radius: 6px; background: #494d55; }
.printer-carriage { position: absolute; top: 55px; left: 18%; width: 78px; height: 90px; animation: carriageMove 4.8s cubic-bezier(.55,.05,.45,.95) infinite; }
.printer-head { width: 78px; height: 56px; border-radius: 8px 8px 13px 13px; background: linear-gradient(#393c43, #202228); box-shadow: 0 8px 24px rgba(0,0,0,.42); }
.printer-tip { width: 13px; height: 26px; margin: -2px auto 0; clip-path: polygon(20% 0,80% 0,100% 70%,62% 100%,38% 100%,0 70%); background: linear-gradient(#b9bdc6, #d7a63d); }
.print-object {
  position: absolute;
  left: 50%;
  bottom: 49px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 112px;
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.1em;
  color: var(--gold-light);
  filter: drop-shadow(0 14px 28px rgba(215,166,61,.2));
  clip-path: inset(100% 0 0 0);
  animation: printReveal 4.8s linear infinite;
}
.print-object span:last-child { color: #f3f3ef; }
.print-line { position: absolute; left: 20%; right: 20%; bottom: 38px; height: 4px; border-radius: 50%; background: var(--gold); filter: blur(.3px); animation: linePulse 4.8s ease infinite; }
.printer-bed { position: absolute; left: -5%; right: -5%; bottom: 17px; height: 22px; border-radius: 4px; background: linear-gradient(#3d4148, #1f2126); transform: perspective(160px) rotateX(35deg); box-shadow: 0 18px 30px rgba(0,0,0,.5); }
.stage-caption { position: absolute; z-index: 3; left: 24px; bottom: 20px; display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: livePulse 1.3s ease infinite; }
@keyframes carriageMove { 0%,100% { left: 18%; } 50% { left: calc(82% - 78px); } }
@keyframes printReveal { 0% { clip-path: inset(100% 0 0 0); } 80%,100% { clip-path: inset(0 0 0 0); } }
@keyframes linePulse { 0%,100% { opacity: .3; transform: scaleX(.2); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes livePulse { 50% { opacity: .35; } }
@keyframes glowPulse { 50% { transform: scale(1.15); opacity: .7; } }
@keyframes revealIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal-on-load { animation: revealIn .65s ease both; }

.trust-strip {
  width: var(--page);
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(18,20,24,.72);
}
.trust-strip > div { min-height: 94px; padding: 20px 24px; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-content: center; border-right: 1px solid var(--border); }
.trust-strip > div:last-child { border-right: 0; }
.trust-icon { grid-row: span 2; align-self: center; width: 34px; height: 34px; border: 1px solid rgba(215,166,61,.3); border-radius: 10px; display: grid; place-items: center; color: var(--gold-light); }
.trust-strip strong { font-size: 13px; }
.trust-strip small { color: var(--muted); font-size: 11px; margin-top: 3px; }

.catalog-section, .how-section { width: var(--page); margin: 0 auto; padding: 10px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-heading.compact { margin-bottom: 24px; }
.section-heading h2, .custom-cta h2 { margin: 12px 0 8px; font-family: var(--font-display); font-size: clamp(30px, 3.5vw, 46px); letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.catalog-count { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.demo-notice, .demo-banner { margin-bottom: 20px; padding: 14px 16px; border: 1px solid rgba(215,166,61,.3); border-radius: 12px; background: rgba(215,166,61,.07); color: var(--text-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12px; }
.demo-notice strong, .demo-banner strong { color: var(--gold-light); }
.demo-notice code { color: var(--gold-light); }
.catalog-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 16px; }
.search-box { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--muted); }
.search-box:focus-within { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(215,166,61,.06); }
.search-box input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-box kbd { padding: 3px 6px; border: 1px solid var(--border-strong); border-radius: 5px; color: var(--faint); background: var(--surface-2); font-size: 9px; }
.sort-box { min-width: 230px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.sort-box span { color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.sort-box select { flex: 1; height: 48px; border: 0; outline: 0; background: transparent; color: var(--text-soft); font-size: 12px; }
.sort-box option, select option { background: var(--surface-2); color: var(--text); }
.filters-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 20px; scrollbar-width: none; }
.filters-bar::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.active { background: var(--gold); border-color: var(--gold); color: #161104; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-4px); border-color: #45403a; box-shadow: 0 18px 44px rgba(0,0,0,.26); }
.project-card:focus-visible { outline-offset: 5px; }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(145deg, #1a1c20, #101114); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.project-card:hover .card-media img { transform: scale(1.035); }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.card-placeholder img { width: 42%; height: 42%; object-fit: contain; opacity: .3; }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,8,10,.65), transparent 48%); pointer-events: none; }
.card-badges { position: absolute; top: 11px; left: 11px; right: 11px; display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.card-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(9,10,12,.72); backdrop-filter: blur(8px); color: var(--text-soft); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.card-badge.featured { border-color: rgba(215,166,61,.5); color: var(--gold-light); }
.card-badge.model { margin-left: auto; }
.card-code { position: absolute; left: 13px; bottom: 12px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.card-body { padding: 17px 17px 18px; }
.card-category { color: var(--gold-light); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.card-title { margin: 7px 0 10px; min-height: 46px; font-family: var(--font-display); font-size: 18px; line-height: 1.25; letter-spacing: -.02em; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.card-price { color: var(--text); font-size: 13px; font-weight: 800; }
.card-price.consult { color: var(--muted); font-size: 11px; }
.card-open { color: var(--gold-light); font-size: 11px; font-weight: 800; }
.empty-state, .loading-row { grid-column: 1 / -1; min-height: 250px; padding: 60px 20px; display: grid; place-items: center; align-content: center; gap: 12px; border: 1px dashed var(--border); border-radius: 18px; color: var(--muted); text-align: center; font-size: 13px; }
.spinner { width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.how-section { padding-top: 20px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps-grid article { min-height: 210px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--surface); }
.steps-grid article > span { color: var(--gold-light); font-family: var(--font-display); font-size: 12px; }
.steps-grid h3 { margin: 48px 0 10px; font-family: var(--font-display); font-size: 20px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.filament-section { width: var(--page); margin: 0 auto; padding: 10px 0 100px; }
.filament-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.filament-chip { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 700; }
.filament-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); flex-shrink: 0; }

.custom-cta { width: var(--page); margin: 0 auto 100px; padding: 42px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border: 1px solid rgba(215,166,61,.22); border-radius: 26px; background: radial-gradient(circle at 92% 15%, rgba(215,166,61,.17), transparent 20rem), var(--surface); }
.custom-cta > div { max-width: 740px; }
.custom-cta h2 { font-size: clamp(28px, 3vw, 42px); }
.custom-cta p { margin: 0; max-width: 660px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.site-footer { width: var(--page); margin: 0 auto; padding: 38px 0 50px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 42px; border-top: 1px solid var(--border); }
.footer-brand img { width: 130px; height: 42px; object-fit: contain; object-position: left; }
.footer-brand p { margin: 5px 0 0; color: var(--faint); font-size: 10px; }
.footer-links { display: flex; gap: 22px; color: var(--muted); font-size: 11px; align-items: center; }
.footer-copy { color: var(--faint); font-size: 10px; }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 30; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #25d366; box-shadow: 0 14px 34px rgba(37,211,102,.23); transition: transform .2s ease; }
.floating-whatsapp:hover { transform: translateY(-3px) scale(1.03); }
.floating-whatsapp svg { width: 28px; fill: white; }

.floating-cart { position: fixed; right: 22px; bottom: 86px; z-index: 30; width: 52px; height: 52px; display: grid; place-items: center; border: none; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); box-shadow: 0 14px 34px rgba(0,0,0,.28); transition: transform .2s ease; }
.floating-cart:hover { transform: translateY(-3px) scale(1.03); }
.floating-cart svg { width: 24px; height: 24px; }
.floating-cart .cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: #181204; font-size: 11px; font-weight: 800; }

.card-cart-btn { width: 100%; margin-top: 10px; padding: 9px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: transparent; color: var(--text-soft); font-size: 11px; font-weight: 800; letter-spacing: .02em; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.card-cart-btn:hover { border-color: var(--gold-dark); color: var(--gold-light); }
.card-cart-btn.in-cart { border-color: var(--gold); background: rgba(215,166,61,.12); color: var(--gold-light); }

.detail-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.detail-actions .whatsapp-btn { margin-top: 0; }
.cart-toggle-btn { min-height: 48px; }
.cart-toggle-btn.in-cart { border-color: var(--gold); color: var(--gold-light); background: rgba(215,166,61,.08); }

.cart-overlay { position: fixed; inset: 0; z-index: 100; padding: 24px; display: grid; place-items: center; background: rgba(3,4,5,.78); backdrop-filter: blur(10px); animation: overlayIn .18s ease both; }
.cart-panel { position: relative; width: min(460px, 100%); max-height: min(84vh, 700px); overflow-y: auto; padding: 28px; border: 1px solid var(--border-strong); border-radius: 24px; background: var(--surface); box-shadow: 0 40px 110px rgba(0,0,0,.62); }
.cart-panel h2 { margin: 0 0 6px; font-family: var(--font-display); }
.cart-subtitle { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.cart-empty { color: var(--muted); font-size: 13px; }
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.cart-item img, .cart-item-placeholder { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.cart-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-item-info strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-info span { font-size: 11px; color: var(--muted); }
.cart-item-remove { width: 28px; height: 28px; border: 1px solid var(--border-strong); border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; }
.cart-item-remove:hover { color: var(--red); border-color: var(--red); }
.cart-footer { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.cart-footer .btn { width: 100%; justify-content: center; }
.cart-footer .whatsapp-btn { margin-top: 0; }

.detail-overlay { position: fixed; inset: 0; z-index: 100; padding: 24px; display: grid; place-items: center; background: rgba(3,4,5,.78); backdrop-filter: blur(10px); animation: overlayIn .18s ease both; }
@keyframes overlayIn { from { opacity: 0; } }
.detail-panel { position: relative; width: min(1120px, 100%); max-height: min(90vh, 850px); display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(350px, .82fr); overflow: hidden; border: 1px solid var(--border-strong); border-radius: 24px; background: var(--surface); box-shadow: 0 40px 110px rgba(0,0,0,.62); }
.detail-close { position: absolute; top: 14px; right: 14px; z-index: 12; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(8,9,11,.72); color: var(--text); font-size: 24px; line-height: 1; backdrop-filter: blur(8px); }
.detail-visual { min-width: 0; min-height: 590px; display: grid; grid-template-rows: auto 1fr auto; background: #0d0f12; border-right: 1px solid var(--border); }
.viewer-tabs { min-height: 56px; padding: 10px 58px 10px 12px; display: flex; align-items: center; gap: 7px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.viewer-tabs::-webkit-scrollbar { display: none; }
.viewer-tab { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 800; }
.viewer-tab.active { color: #181204; background: var(--gold); border-color: var(--gold); }
.media-stage { position: relative; min-height: 470px; overflow: hidden; }
.detail-photo, #viewer3d-canvas-wrap { position: absolute; inset: 0; }
.model-download { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; background: radial-gradient(circle at 50% 35%, rgba(214,169,65,.14), transparent 42%), #0d0f12; }
.model-download[hidden] { display: none; }
.model-download-icon { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(214,169,65,.38); border-radius: 20px; color: var(--gold-light); background: rgba(214,169,65,.08); font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.model-download strong { margin-top: 6px; color: var(--text); font-family: var(--font-display); font-size: 20px; }
.model-download small { max-width: 420px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.model-download .btn { margin-top: 8px; min-width: 150px; }
.detail-photo img { width: 100%; height: 100%; display: block; object-fit: contain; background: #0d0f12; }
#viewer3d-canvas-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.gallery-nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(8,9,11,.72); color: var(--text); font-size: 24px; backdrop-filter: blur(8px); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.viewer-status { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 30px; background: rgba(8,9,11,.6); color: var(--muted); text-align: center; font-size: 12px; }
.viewer-controls { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 7px; }
.viewer-controls button { min-height: 34px; padding: 0 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: rgba(9,10,12,.75); color: var(--text-soft); font-size: 9px; font-weight: 800; backdrop-filter: blur(8px); }
.viewer-controls button[aria-pressed="false"] { color: var(--muted); }
.photo-thumbs { min-height: 72px; padding: 9px 12px; display: flex; gap: 8px; overflow-x: auto; border-top: 1px solid var(--border); }
.photo-thumb { flex: 0 0 64px; height: 52px; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.photo-thumb.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(215,166,61,.12); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { min-width: 0; overflow-y: auto; padding: 34px 32px; display: flex; flex-direction: column; }
.detail-topline { display: flex; align-items: center; gap: 9px; margin-right: 36px; }
.product-code { color: var(--gold-light); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.copy-code { border: 0; background: none; color: var(--faint); font-size: 9px; text-decoration: underline; }
.detail-info h2 { margin: 14px 0 12px; font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tag { min-height: 26px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 800; }
.detail-desc { margin: 22px 0; color: var(--muted); font-size: 13px; line-height: 1.75; white-space: pre-line; }
.spec-list { margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.spec-list > div { padding: 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spec-list > div:nth-child(2n) { border-right: 0; }
.spec-list > div:nth-last-child(-n+2) { border-bottom: 0; }
.spec-list dt { color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.spec-list dd { margin: 5px 0 0; color: var(--text-soft); font-size: 11px; line-height: 1.4; }
.detail-price { margin-top: auto; padding-top: 10px; color: var(--text); font-family: var(--font-display); font-size: 27px; font-weight: 700; }
.detail-price small { display: block; margin-bottom: 4px; color: var(--faint); font-family: var(--font-body); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.detail-price.consult { color: var(--muted); font-size: 15px; }
.whatsapp-btn { margin-top: 16px; min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-radius: 11px; background: #25d366; color: #07160c; font-size: 13px; font-weight: 800; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); min-width: 220px; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 11px; background: rgba(24,26,30,.96); box-shadow: var(--shadow); color: var(--text-soft); text-align: center; font-size: 12px; animation: toastIn .2s ease both; }
.toast.success { border-color: rgba(53,199,122,.4); color: #91e4b7; }
.toast.error { border-color: rgba(239,98,98,.45); color: #ff9b9b; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Admin */
.admin-page { background: var(--bg); }
.admin-header { position: sticky; }
.admin-header-actions { display: flex; align-items: center; gap: 10px; }
.version-pill { padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--faint); font-size: 9px; }
.admin-shell { width: min(1180px, calc(100vw - 40px)); margin: 0 auto; padding: 54px 0 100px; }
.login-view { min-height: calc(100vh - 180px); display: grid; place-items: center; }
.gate-card { width: min(440px, 100%); padding: 38px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.025), transparent), var(--surface); box-shadow: var(--shadow); text-align: center; }
.gate-mark { width: 110px; height: 92px; object-fit: contain; margin-bottom: 12px; }
.gate-card h1 { margin: 14px 0 10px; font-family: var(--font-display); font-size: 29px; letter-spacing: -.03em; }
.gate-card > p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.gate-card .btn + .btn { margin-top: 10px; }
.login-help { min-height: 18px; margin-top: 14px; color: var(--faint); font-size: 10px; line-height: 1.5; }
.status-icon { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.status-icon.danger { color: #ff9898; border: 1px solid rgba(239,98,98,.35); background: rgba(239,98,98,.1); }
.panel-topbar { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.panel-topbar h1 { margin: 10px 0 5px; font-family: var(--font-display); font-size: 35px; letter-spacing: -.04em; }
.panel-topbar p { margin: 0; color: var(--faint); font-size: 10px; }
.panel-top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.admin-stats article { min-height: 95px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.admin-stats span { color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-stats strong { font-family: var(--font-display); font-size: 29px; }
.admin-card { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; }
.editor-card { margin-bottom: 18px; }
.card-heading { min-height: 88px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.card-heading h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 22px; letter-spacing: -.025em; }
.section-kicker { color: var(--gold-light); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.form-section { padding: 26px 24px; border-bottom: 1px solid var(--border); }
.form-section-title { margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.form-section-title > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(215,166,61,.32); border-radius: 9px; color: var(--gold-light); font-family: var(--font-display); font-size: 10px; }
.form-section-title div { display: grid; gap: 2px; }
.form-section-title strong { font-size: 13px; }
.form-section-title small { color: var(--faint); font-size: 10px; }
.field-grid { display: grid; gap: 16px; }
.field-grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.field-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.field-grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.span-2 { grid-column: span 2; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea, .field select, .admin-filters input, .admin-filters select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input, .field select { height: 44px; padding: 0 12px; }
.field textarea { min-height: 120px; padding: 12px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus, .admin-filters input:focus, .admin-filters select:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(215,166,61,.06); }
.field input.invalid, .field textarea.invalid { border-color: rgba(239,98,98,.65); }
.field small { color: var(--faint); font-size: 9px; line-height: 1.4; }
.field-error { min-height: 0; color: #ff8a8a !important; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; }
.check-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.switch-field { display: flex; align-items: center; gap: 9px; color: var(--text-soft); font-size: 11px; cursor: pointer; }
.switch-field input { position: absolute; opacity: 0; }
.switch-field span { position: relative; width: 34px; height: 19px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); transition: background .2s ease; }
.switch-field span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); transition: transform .2s ease, background .2s ease; }
.switch-field input:checked + span { background: rgba(215,166,61,.16); border-color: var(--gold-dark); }
.switch-field input:checked + span::after { transform: translateX(15px); background: var(--gold-light); }
.switch-field b { font-weight: 600; }
.upload-field { position: relative; min-width: 0; }
.upload-field > label:first-child { display: grid; gap: 3px; margin-bottom: 8px; }
.upload-field > label strong { color: var(--text-soft); font-size: 10px; }
.upload-field > label small { color: var(--faint); font-size: 9px; font-weight: 400; }
.upload-field > input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-drop { min-height: 120px; padding: 20px; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--bg-soft); color: var(--muted); text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.upload-drop:hover, .upload-field.dragging .upload-drop { border-color: var(--gold-dark); background: rgba(215,166,61,.04); }
.upload-drop > span { color: var(--gold-light); font-family: var(--font-display); font-size: 17px; }
.upload-drop > b { color: var(--text-soft); font-size: 11px; }
.upload-drop > small { color: var(--faint); font-size: 9px; }
.upload-drop.compact { min-height: 104px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upload-preview:empty { display: none; }
.preview-thumb { position: relative; width: 72px; height: 62px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-thumb span { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 2px 3px; overflow: hidden; border-radius: 4px; background: rgba(0,0,0,.68); color: white; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.inline-option { margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.media-existing { margin-bottom: 16px; padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.existing-media-item { position: relative; width: 84px; }
.existing-media-item img { width: 84px; height: 64px; object-fit: cover; border-radius: 7px; border: 1px solid var(--border); }
.existing-media-item button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border: 1px solid rgba(239,98,98,.4); border-radius: 50%; background: #251517; color: #ff8c8c; line-height: 1; }
.existing-file-chip { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 9px; color: var(--muted); font-size: 9px; }
.form-footer { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,255,255,.012); }
.save-status { min-height: 18px; color: var(--muted); font-size: 10px; }
.save-status.success { color: #85dfaf; }
.save-status.error { color: #ff9090; }
.form-actions { display: flex; gap: 8px; }
.list-card { overflow: visible; }
.list-heading { border-radius: 18px 18px 0 0; }
.admin-filters { display: flex; gap: 8px; }
.admin-filters input { width: 230px; height: 38px; padding: 0 11px; }
.admin-filters select { width: 130px; height: 38px; padding: 0 10px; }
.project-list { padding: 14px; }
.admin-row { min-height: 84px; padding: 12px; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.admin-row + .admin-row { margin-top: 8px; }
.admin-row-thumb { width: 64px; height: 58px; overflow: hidden; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.admin-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-row-main { min-width: 0; }
.admin-row-main h3 { margin: 0 0 5px; overflow: hidden; color: var(--text-soft); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.admin-row-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--faint); font-size: 9px; }
.status-pill { padding: 3px 7px; border: 1px solid var(--border); border-radius: 999px; }
.status-pill.published { color: #7de0aa; border-color: rgba(53,199,122,.25); }
.status-pill.draft { color: #d5a6a6; border-color: rgba(239,98,98,.22); }
.admin-row-actions { display: flex; gap: 6px; }
.icon-btn { min-height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 9px; font-weight: 800; }
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }
.icon-btn.danger:hover { border-color: rgba(239,98,98,.45); color: #ff8e8e; }
.confirm-dialog { width: min(410px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(3,4,5,.75); backdrop-filter: blur(6px); }
.confirm-dialog form { padding: 28px; text-align: center; }
.confirm-dialog h2 { margin: 0 0 8px; font-family: var(--font-display); }
.confirm-dialog p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr 420px; gap: 36px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .field-grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .detail-panel { grid-template-columns: 1fr 390px; }
}

@media (max-width: 820px) {
  :root { --page: min(100% - 32px, 720px); }
  .site-header { height: 66px; padding: 0 16px; }
  .brand-logo { width: 128px; height: 46px; }
  .header-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { top: 66px; }
  .hero { min-height: auto; padding: 58px 0 52px; grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(42px, 11vw, 66px); }
  .printer-stage { min-height: 430px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .trust-strip > div:last-child { border-bottom: 0; }
  .detail-overlay { align-items: end; padding: 0; }
  .detail-panel { width: 100%; max-height: 94vh; grid-template-columns: 1fr; border-radius: 22px 22px 0 0; overflow-y: auto; }
  .detail-visual { min-height: 500px; border-right: 0; border-bottom: 1px solid var(--border); }
  .detail-info { overflow: visible; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: 170px; }
  .steps-grid h3 { margin-top: 30px; }
  .custom-cta { flex-direction: column; align-items: flex-start; padding: 30px; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { flex-wrap: wrap; }
  .panel-topbar { align-items: flex-start; flex-direction: column; }
  .panel-top-actions { justify-content: flex-start; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .field-grid.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .field-grid.cols-3 .span-2 { grid-column: span 2; }
  .list-heading { align-items: flex-start; flex-direction: column; }
  .admin-filters { width: 100%; }
  .admin-filters input { flex: 1; width: auto; }
}

@media (max-width: 560px) {
  :root { --page: calc(100% - 24px); }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 43px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-metrics { gap: 12px; justify-content: space-between; }
  .hero-metrics div { max-width: 31%; }
  .hero-metrics strong { font-size: 15px; }
  .hero-metrics span { font-size: 8px; }
  .printer-stage { min-height: 340px; border-radius: 22px; }
  .printer-frame { height: 250px; border-width: 8px; }
  .printer-carriage { top: 52px; transform: scale(.78); transform-origin: top; }
  .print-object { bottom: 45px; font-size: 82px; }
  .catalog-section, .how-section { padding-bottom: 72px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading h2 { font-size: 34px; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .sort-box { min-width: 0; }
  .catalog-grid { grid-template-columns: 1fr; }
  .project-card { border-radius: 15px; }
  .card-title { min-height: 0; }
  .custom-cta { margin-bottom: 70px; padding: 24px; border-radius: 20px; }
  .custom-cta .btn { width: 100%; }
  .floating-whatsapp { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .floating-cart { right: 14px; bottom: 72px; width: 48px; height: 48px; }
  .cart-panel { padding: 22px; border-radius: 20px; }
  .detail-visual { min-height: 430px; }
  .media-stage { min-height: 350px; }
  .detail-info { padding: 26px 20px 24px; }
  .spec-list { grid-template-columns: 1fr; }
  .spec-list > div { border-right: 0; }
  .spec-list > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .spec-list > div:last-child { border-bottom: 0; }
  .viewer-controls { right: auto; }
  .viewer-controls button { font-size: 8px; }
  .admin-header .version-pill { display: none; }
  .admin-shell { width: calc(100vw - 20px); padding-top: 26px; }
  .gate-card { padding: 30px 22px; }
  .admin-stats { gap: 8px; }
  .admin-stats article { min-height: 82px; padding: 14px; }
  .card-heading, .form-section, .form-footer { padding-left: 16px; padding-right: 16px; }
  .card-heading { align-items: flex-start; flex-direction: column; }
  .field-grid.cols-2, .field-grid.cols-3, .field-grid.cols-4 { grid-template-columns: 1fr; }
  .field-grid .span-2, .field-grid.cols-3 .span-2 { grid-column: span 1; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .form-actions .btn:only-child { grid-column: 1/-1; }
  .admin-filters { flex-direction: column; }
  .admin-filters input, .admin-filters select { width: 100%; }
  .admin-row { grid-template-columns: 54px minmax(0,1fr); }
  .admin-row-thumb { width: 54px; height: 54px; }
  .admin-row-actions { grid-column: 1/-1; justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--border); }
}

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


.drive-setup-banner { margin: 0 0 18px; padding: 16px 18px; border: 1px solid rgba(214,169,65,.32); border-radius: 14px; background: linear-gradient(135deg, rgba(214,169,65,.09), rgba(255,255,255,.025)); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.drive-setup-banner > div { min-width: 0; display: grid; gap: 5px; }
.drive-setup-banner strong { color: var(--gold); font-size: 13px; }
.drive-setup-banner span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.drive-setup-banner code { display: block; max-width: 100%; overflow: auto; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.26); color: var(--text); font-size: 11px; white-space: nowrap; }
@media (max-width: 680px) { .drive-setup-banner { align-items: stretch; flex-direction: column; } .drive-setup-banner .btn { width: 100%; } }

/* Admin visual catalog — mirrors the public storefront */
.admin-order-help {
  margin: 0;
  padding: 14px 24px 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}
.admin-catalog-grid {
  padding: 18px 24px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-project-card {
  cursor: default;
  user-select: none;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}
.admin-project-card.is-draft { opacity: .68; }
.admin-project-card.dragging { opacity: .38; transform: scale(.98); }
.admin-project-card.drag-target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,166,61,.12); }
.admin-card-topbar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  grid-template-columns: 34px 1fr 38px;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}
.admin-card-topbar button { pointer-events: auto; }
.admin-drag-handle,
.admin-pencil {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(8,9,11,.82);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.admin-drag-handle { cursor: grab; letter-spacing: -4px; padding-right: 4px; }
.admin-drag-handle:active { cursor: grabbing; }
.admin-pencil {
  width: 38px;
  height: 38px;
  justify-self: end;
  border-color: rgba(215,166,61,.48);
  background: rgba(20,16,8,.88);
  color: var(--gold-light);
  font-size: 20px;
}
.admin-position {
  justify-self: start;
  min-width: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(8,9,11,.75);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.admin-project-card .card-badges { top: 56px; }
.draft-badge {
  color: #ffd0d0;
  border-color: rgba(239,98,98,.34) !important;
  background: rgba(64,19,23,.8) !important;
}
.admin-card-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.admin-card-actions button {
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.admin-card-actions button:hover {
  border-color: var(--gold-dark);
  background: rgba(215,166,61,.07);
  color: var(--gold-light);
}
.admin-card-actions button.danger:hover {
  border-color: rgba(239,98,98,.5);
  background: rgba(239,98,98,.08);
  color: #ff9d9d;
}
.admin-catalog-grid > .empty-state { grid-column: 1 / -1; }

@media (max-width: 1020px) {
  .admin-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .admin-catalog-grid { padding: 14px; grid-template-columns: 1fr; }
  .admin-order-help { padding: 12px 14px 0; }
  .admin-project-card .card-media { min-height: 235px; }
  .admin-card-actions button { height: 36px; }
}


/* Prévia 3D no editor — v0.5.2 */
.primary-model-upload .primary-model-drop {
  min-height: 92px;
  border-color: rgba(215,166,61,.34);
  background: linear-gradient(135deg, rgba(215,166,61,.08), rgba(215,166,61,.02));
}
.primary-model-upload .primary-model-drop > span { min-width: 48px; color: var(--gold); }
.model-preview-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.model-preview-heading {
  min-height: 58px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.model-preview-heading > div { min-width: 0; display: grid; gap: 4px; }
.model-preview-heading strong { color: var(--text); font-size: 11px; }
.model-preview-heading small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.model-preview-badge {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 7px 9px;
  border: 1px solid rgba(215,166,61,.35);
  border-radius: 999px;
  background: rgba(215,166,61,.1);
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}
.model-preview-stage {
  position: relative;
  height: clamp(260px, 42vw, 430px);
  min-height: 260px;
  background: radial-gradient(circle at 50% 38%, rgba(215,166,61,.12), transparent 42%), #0d0f13;
}
.model-preview-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.model-preview-status {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}
.model-preview-status.error { color: #ff9b92; }
.model-preview-actions {
  padding: 10px 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.model-preview-actions .btn { min-height: 34px; padding-inline: 12px; }
.additional-models {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.015);
}
.additional-models > summary {
  padding: 13px 14px;
  cursor: pointer;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  list-style-position: inside;
}
.additional-models[open] > summary { border-bottom: 1px solid var(--border); color: var(--text-soft); }
.additional-model-grid { padding: 14px; }
@media (max-width: 680px) {
  .model-preview-stage { height: 300px; }
  .model-preview-actions { justify-content: stretch; }
  .model-preview-actions .btn { flex: 1; }
}

/* ---------- seletor de placas do visualizador 3D (v0.7.2) ---------- */
.viewer-plates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 8px 10px 0;
}

.viewer-plate-chip {
  border: 1px solid rgba(140, 130, 110, .34);
  background: rgba(255, 255, 255, .08);
  color: inherit;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.viewer-plate-chip:hover { border-color: rgba(180, 131, 42, .6); }

.viewer-plate-chip.active {
  background: #b4832a;
  border-color: #b4832a;
  color: #fff;
}

.slice-light .viewer-plate-chip { background: rgba(255, 255, 255, .7); }
