/* =========================================================
   MV Forma 3D — Loja pública
   1. Tokens   2. Base   3. Cabeçalho   4. Hero e impressora
   5. Seções   6. Catálogo   7. Rodapé   8. Modais
   9. Responsivo
   ========================================================= */

/* 1. Tokens ------------------------------------------------ */
:root {
    --brand-950: #05101b;
    --brand-900: #0d1f32;
    --brand-800: #1a3548;
    --navy: #1e3a5f;
    --navy-light: #2d4a6f;
    --brand-600: #2b4f7c;
    --brand-100: #e6edf5;
    --brand-50: #f3f7fb;
    --orange: #f97316;
    --orange-strong: #ea580c;
    --orange-soft: #fff9f4;
    --orange-line: #fed7b5;

    --ink: #050e1b;
    --ink-2: #1f2d42;
    --muted: #475569;
    --subtle: #94a3b8;
    --line: #e5ecf4;
    --line-strong: #d0dce9;
    --bg: #ffffff;
    --bg-soft: #f7fafc;
    --bg-lighter: #f0f4f9;

    --danger: #c0262d;
    --success: #10b981;
    --accent: #06b6d4;

    --font-ui: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", var(--font-ui);
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

    --container: 1220px;
    --gutter: 24px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(11, 27, 46, 0.06), 0 1px 2px rgba(11, 27, 46, 0.04);
    --shadow-md: 0 4px 12px rgba(11, 27, 46, 0.08), 0 2px 6px rgba(11, 27, 46, 0.05);
    --shadow-lg: 0 12px 32px rgba(11, 27, 46, 0.12), 0 6px 16px rgba(11, 27, 46, 0.06);
    --shadow-xl: 0 20px 48px rgba(11, 27, 46, 0.15);
    --ring: 0 0 0 3px rgba(43, 79, 124, 0.16);
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 2. Base -------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.65 var(--font-ui);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.2px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: 0;
    background: none;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
}

img {
    max-width: 100%;
}

/* 3. Cabeçalho --------------------------------------------- */
.store-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.8) blur(16px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
}

.brand strong,
.brand small {
    display: block;
    line-height: 1;
}

.brand strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand small {
    margin-top: 4px;
    color: var(--orange-strong);
    font: 600 10px var(--font-mono);
    letter-spacing: 0.32em;
}

.brand-logo { width: 58px; height: 58px; flex: 0 0 58px; object-fit: contain; border-radius: 10px; }
.footer-logo { height: 64px; width: auto; padding: 6px; border-radius: 14px; background: #fff; }
.logo-box {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--orange);
    color: var(--brand-900);
    font: 700 13px/1 var(--font-display);
    letter-spacing: -0.02em;
    box-shadow: inset 0 -2px 0 rgba(7, 19, 31, 0.18);
}

.store-header nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
}

.store-header nav > a {
    padding: 8px 14px;
    border-radius: var(--radius);
    color: var(--muted);
    transition: all 0.2s var(--ease);
}

.store-header nav > a:hover {
    background: var(--brand-50);
    color: var(--navy);
}

.cart-button {
    display: inline-flex;
    height: 44px;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    padding: 0 10px 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-900) 0%, #0d2942 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(13, 31, 50, 0.25);
    transition: all 0.3s var(--ease);
}

.cart-button:hover {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3548 100%);
    box-shadow: 0 6px 16px rgba(13, 31, 50, 0.35);
    transform: translateY(-1px);
}

.cart-button b {
    display: inline-grid;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    place-items: center;
    border-radius: 999px;
    background: var(--orange);
    color: var(--brand-900);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* 4. Hero -------------------------------------------------- */
.hero-glow {
    background-image:
        radial-gradient(640px 380px at 86% 6%, rgba(249, 115, 22, 0.1), transparent 70%),
        radial-gradient(520px 320px at 8% 100%, rgba(30, 58, 95, 0.06), transparent 70%),
        linear-gradient(to right, rgba(30, 58, 95, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(30, 58, 95, 0.045) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px, 32px 32px;
    border-bottom: 1px solid var(--line);
}

/* O fundo quadriculado ocupa a largura toda; o conteúdo fica no container. */
.hero {
    display: grid;
    min-height: 640px;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
    padding: 80px max(var(--gutter), calc((100% - var(--container)) / 2)) 88px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-sm);
    color: var(--navy);
    font: 600 11px var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pill i {
    position: relative;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.hero h1 {
    margin: 28px 0 24px;
    font: 700 clamp(44px, 5.8vw, 72px) / 1.08 var(--font-display);
    letter-spacing: -0.035em;
    color: var(--ink);
}

.hero h1 span {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.12em;
}

.hero p {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease);
}

.button b {
    transition: transform 0.3s var(--ease);
}

.button:hover b {
    transform: translateX(4px);
}

.button.navy {
    background: linear-gradient(135deg, var(--brand-900) 0%, #1a3548 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13, 31, 50, 0.2);
}

.button.navy:hover {
    background: linear-gradient(135deg, var(--navy) 0%, #2d4a6f 100%);
    box-shadow: 0 12px 28px rgba(13, 31, 50, 0.3);
    transform: translateY(-2px);
}

.button.orange {
    background: linear-gradient(135deg, var(--orange) 0%, #fb8a3c 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.button.orange:hover {
    background: linear-gradient(135deg, #fb8a3c 0%, #f97316 100%);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
    transform: translateY(-2px);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.stats div {
    padding: 14px 16px;
}

.stats div + div {
    border-left: 1px solid var(--line);
}

.stats b,
.stats small {
    display: block;
}

.stats b {
    color: var(--ink);
    font: 600 15px/1.3 var(--font-display);
    letter-spacing: -0.01em;
}

.stats small {
    margin-top: 4px;
    color: var(--subtle);
    font: 500 10px var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Painel animado da impressora (textos e progresso vêm do loja.js) */
.printer-console {
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 1 / 1.06;
    margin: auto;
    padding: 12px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    background: linear-gradient(160deg, #e9eef3, #d9e2ea);
    box-shadow: var(--shadow-lg), inset 0 1px 0 #fff;
}

.console-grid {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background-color: #f1f5f8;
    background-image:
        linear-gradient(#d3dde5 1px, transparent 1px),
        linear-gradient(90deg, #d3dde5 1px, transparent 1px);
    background-size: 24px 24px;
    box-shadow: inset 0 0 0 1px rgba(11, 27, 46, 0.06);
}

.console-head {
    z-index: 3;
    display: flex;
    height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: var(--brand-900);
    color: #cbd8e5;
    font: 500 10px var(--font-mono);
    letter-spacing: 0.14em;
}

.console-brand {
    font-weight: 600;
}

.console-live {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffb27e;
}

.console-live i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 10px var(--orange);
    animation: statusBlink 1.1s ease-in-out infinite;
}

.console-stage {
    position: relative;
    flex: 1;
    min-height: 240px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 78%, rgba(255, 255, 255, 0.9), transparent 55%);
}

.printer-svg {
    position: absolute;
    inset: 4% 4% 0;
    width: 92%;
    height: 96%;
    filter: drop-shadow(0 14px 18px rgba(13, 31, 50, 0.16));
}

#pf-gantry,
#pf-head {
    will-change: transform;
}

#pf-glow {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.printer-console.is-printing #pf-glow {
    opacity: 1;
}

.pf-fan {
    transform-box: fill-box;
    transform-origin: center;
    animation: gearSpin 0.6s linear infinite;
}

.console-metrics {
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
}

.metric-card {
    padding: 11px 13px;
    border: 1px solid #d8e1ea;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 16px rgba(25, 50, 75, 0.06);
}

.metric-card small,
.metric-card em {
    display: block;
    color: #6b7d92;
    font: 500 9px var(--font-mono);
    font-style: normal;
    letter-spacing: 0.14em;
}

.metric-card strong {
    display: block;
    margin: 4px 0 3px;
    color: var(--navy);
    font: 700 20px var(--font-display);
    font-variant-numeric: tabular-nums;
}

.metric-card em {
    color: var(--orange-strong);
    font-size: 8.5px;
}

.console-footer {
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--brand-900);
    color: #a6b6c6;
    font: 500 9px var(--font-mono);
    letter-spacing: 0.1em;
}

.console-progress {
    flex: 1;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.console-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange), #ffd2a1);
    transition: width 0.12s ease-out;
}

.console-footer > b {
    min-width: 34px;
    color: #fff;
    font-size: 10px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@keyframes gearSpin { to { transform: rotate(360deg); } }
@keyframes statusBlink { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* 5. Seções ------------------------------------------------ */
.differentials,
.steps {
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: auto;
    padding: 96px var(--gutter);
}

.section-intro,
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--orange-strong);
    font: 600 11px var(--font-mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.section-intro h2,
.section-heading h2 {
    margin: 12px 0 0;
    font: 600 clamp(28px, 3.2vw, 38px) / 1.12 var(--font-display);
    letter-spacing: -0.035em;
}

h2 span {
    color: var(--navy);
}

.section-intro p,
.section-heading p {
    max-width: 420px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.section-intro > p {
    margin: 0;
}

.diff-grid,
.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.diff-grid article,
.step-grid article {
    position: relative;
    padding: 32px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: all 0.3s var(--ease);
}

.diff-grid article:hover,
.step-grid article:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.diff-grid b {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid var(--orange-line);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange-soft) 0%, #fffbf8 100%);
    color: var(--orange-strong);
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.08);
    margin-bottom: 8px;
}

.diff-grid b svg {
    width: 22px;
    height: 22px;
}

.diff-grid h3,
.step-grid h3 {
    margin: 18px 0 6px;
    font-size: 17px;
    letter-spacing: -0.015em;
}

.diff-grid p,
.step-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Como funciona */
.steps {
    padding-top: 96px;
}

.step-grid {
    counter-reset: step;
}

.step-grid article {
    padding-top: 26px;
}

.step-grid article > b {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: var(--brand-900);
    color: #fff;
    font: 600 13px var(--font-mono);
    letter-spacing: 0.04em;
}

.step-grid article:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 45px;
    right: -17px;
    width: 18px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 7px);
}

/* Chamada para peça personalizada */
.custom-callout {
    position: relative;
    display: flex;
    max-width: var(--container);
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 0 auto 96px;
    padding: 52px 56px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-900) 0%, #1a3548 100%);
    background-image:
        radial-gradient(640px 380px at 100% 0%, rgba(249, 115, 22, 0.18), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
    color: #b6c5d6;
    box-shadow: 0 16px 40px rgba(13, 31, 50, 0.25);
}

.custom-callout .eyebrow {
    color: #fb9a5a;
}

.custom-callout h2 {
    margin: 12px 0 8px;
    color: #fff;
    font: 600 clamp(24px, 2.6vw, 30px) / 1.2 var(--font-display);
    letter-spacing: -0.03em;
}

.custom-callout p {
    max-width: 560px;
    margin: 0;
    color: #a9b8c9;
    font-size: 15px;
}

.custom-callout .button {
    flex: 0 0 auto;
}

/* 6. Catálogo ---------------------------------------------- */
.catalog-section {
    padding: 96px max(var(--gutter), calc((100% - var(--container)) / 2));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}

.catalog-filters {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.search {
    display: flex;
    width: 260px;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #fff;
    color: var(--subtle);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.search svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.search:focus-within {
    border-color: var(--brand-600);
    box-shadow: var(--ring);
}

.search input {
    width: 100%;
    min-height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
}

.search input::placeholder {
    color: var(--subtle);
}

.catalog-filters select {
    min-height: 46px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23526077' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    appearance: none;
    cursor: pointer;
}

.catalog-filters select:focus {
    border-color: var(--brand-600);
    outline: 0;
    box-shadow: var(--ring);
}

.notice {
    padding: 13px 16px;
    border: 1px solid var(--orange-line);
    border-radius: var(--radius);
    background: var(--orange-soft);
    color: #8a3d0c;
    font-size: 14px;
    line-height: 1.55;
}

.notice.error {
    border-color: #fbd0d0;
    background: #fef2f2;
    color: #a51f25;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: all 0.3s var(--ease);
}

.product-card:hover {
    border-color: var(--orange-line);
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.product-visual {
    position: relative;
    display: grid;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(rgba(30, 58, 95, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 95, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, #f3f6f9, #e8eef4);
    background-size: 20px 20px, 20px 20px, auto;
    color: rgba(30, 58, 95, 0.28);
    font: 700 44px var(--font-display);
    letter-spacing: -0.03em;
}

.product-visual img {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s var(--ease);
}

.product-card:hover .product-visual img {
    transform: scale(1.03);
}

.product-info {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.product-info h3 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 22px;
    margin: 10px 0;
}

.category-tags span {
    padding: 2px 9px;
    border: 1px solid #d6e1ee;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--navy);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.5;
}

.product-info p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.product-price {
    color: var(--ink);
    font: 600 16px var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.small-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand-900) 0%, #1a3548 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(13, 31, 50, 0.12);
    transition: all 0.3s var(--ease);
}

.small-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--navy) 0%, #2d4a6f 100%);
    box-shadow: 0 6px 16px rgba(13, 31, 50, 0.2);
    transform: translateY(-1px);
}

/* 7. Rodapé ------------------------------------------------ */
footer {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px max(var(--gutter), calc((100% - var(--container)) / 2));
    background: linear-gradient(135deg, var(--brand-900) 0%, #1a3548 100%);
    color: #c6d2e0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer strong {
    font: 700 16px var(--font-display);
    color: #fff;
}

footer span {
    flex: 1;
    color: #8e9baa;
}

footer a {
    color: #fb9a5a;
    font-weight: 600;
    transition: all 0.3s var(--ease);
}

footer a:hover {
    color: #fdba8c;
}

/* 8. Modais ------------------------------------------------ */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 19, 31, 0.55);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.18s var(--ease);
}

.modal {
    width: min(660px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    animation: modalIn 0.25s var(--ease-bounce);
}

.modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
}

.modal-head h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.modal-head .close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
}

.modal-head .close:hover {
    background: var(--brand-100);
    color: var(--ink);
}

.modal-body {
    padding: 22px 24px 24px;
}

.modal-body > p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

.product-modal-gallery {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.product-modal-gallery:empty {
    display: none;
}

.product-modal-gallery img {
    flex: 0 0 auto;
    width: 100%;
    max-height: 340px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    scroll-snap-align: start;
}

.product-modal-gallery img + img {
    width: 42%;
    max-height: 200px;
}

.cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.cart-row b {
    color: var(--ink);
    font-weight: 700;
}

.cart-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.cart-row strong {
    font: 600 15px var(--font-display);
    font-variant-numeric: tabular-nums;
}

.cart-row button {
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
}

.cart-row button:hover {
    background: #fef2f2;
}

.total-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 0;
    font-weight: 700;
}

.total-line strong {
    font: 600 20px var(--font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.modal-body > .notice {
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid label {
    display: grid;
    gap: 6px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 700;
}

.form-grid label.full {
    grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    outline: 0;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 400;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s var(--ease);
}

.form-grid select {
    padding-right: 36px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23526077' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
}

.form-grid input:hover,
.form-grid textarea:hover,
.form-grid select:hover {
    border-color: var(--line-strong);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
    color: var(--subtle);
}

.form-grid textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}

.form-grid input[type="file"] {
    padding: 8px;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
}

.form-grid input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--ink-2);
    font: 700 13px var(--font-ui);
    cursor: pointer;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.modal-actions .small-button {
    min-height: 44px;
    padding: 10px 20px;
}

.secondary {
    min-height: 46px;
    padding: 11px 20px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.secondary:hover {
    border-color: var(--muted);
    background: var(--bg-lighter);
}

.empty {
    padding: 36px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
    color: var(--muted);
    text-align: center;
}

.success {
    padding: 40px 28px 32px;
    text-align: center;
}

.success::before {
    content: "";
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #ecfdf3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
    box-shadow: 0 0 0 8px #f4fdf7;
}

.success strong {
    display: block;
    margin-bottom: 8px;
    font: 600 24px var(--font-display);
    letter-spacing: -0.02em;
}

.success p {
    max-width: 420px;
    margin: 0 auto 22px;
    color: var(--muted);
    line-height: 1.65;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

/* 9. Responsivo -------------------------------------------- */
@media (max-width: 1024px) {
    .hero {
        gap: 40px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats div:nth-child(3) {
        border-left: 0;
    }

    .stats div:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 860px) {
    :root {
        --gutter: 18px;
    }

    .store-header {
        height: 64px;
    }

    .store-header nav > a {
        display: none;
    }

    .cart-button {
        margin-left: 0;
    }

    .hero {
        min-height: 0;
        grid-template-columns: 1fr;
        padding-top: 52px;
        padding-bottom: 64px;
    }

    .hero h1 {
        font-size: clamp(38px, 10vw, 52px);
    }

    .hero p {
        font-size: 16px;
    }

    .printer-console {
        width: min(100%, 420px);
        aspect-ratio: 1 / 1.08;
    }


    .section-intro,
    .section-heading,
    .custom-callout {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-intro,
    .section-heading {
        gap: 18px;
        margin-bottom: 28px;
    }

    .differentials,
    .steps,
    .catalog-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .diff-grid,
    .step-grid {
        grid-template-columns: 1fr;
    }

    .step-grid article:not(:last-child)::after {
        display: none;
    }

    .catalog-filters {
        width: 100%;
        flex-direction: column;
    }

    .search,
    .catalog-filters select {
        width: 100%;
    }

    .custom-callout {
        margin: 0 var(--gutter) 72px;
        padding: 32px 24px;
        gap: 22px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid label.full {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .button {
        flex: 1 1 auto;
    }

    .overlay {
        padding: 0;
        place-items: end center;
    }

    .modal {
        width: 100%;
        max-height: 94vh;
        border-radius: 18px 18px 0 0;
    }

    .modal-head {
        padding: 16px 18px;
    }

    .modal-body {
        padding: 18px;
    }

    .modal-actions > button {
        flex: 1 1 auto;
    }

    .cart-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .cart-row button {
        grid-column: 1 / -1;
        justify-self: start;
        padding-left: 0;
    }

    .product-modal-gallery img + img {
        width: 70%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
