/**
 * MÓVEIS 3D - RESET & BASE (v1.0)
 * Normalização para comportamento de App (No-Scroll, Touch-Friendly).
 */

/* 1. Box Sizing Universal: Facilita cálculos de tamanho */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove flash azul no toque em Mobile */
}

/* 2. Configuração de App Fullscreen */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* IMPERATIVO: Impede scroll da página inteira (o 3D cuida disso) */
    background-color: var(--color-bg-canvas);
    color: var(--text-high-emphasis);
    
    /* 3. Tipografia do Sistema (Performance Máxima) */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* 4. UX de App: Impede seleção de texto na UI (exceto inputs) */
    user-select: none;
    -webkit-user-select: none;
}

/* Permitir seleção apenas em campos de texto */
input, textarea, [contenteditable] {
    user-select: text;
    -webkit-user-select: text;
}

/* 5. Reset de Botões para Estilização Limpa */
button {
    border: none;
    margin: 0;
    padding: 0;
    width: auto;
    overflow: visible;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: normal;
    -webkit-font-smoothing: inherit;
    -moz-osx-font-smoothing: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* 6. Imagens Responsivas por Padrão */
img, svg {
    display: block;
    max-width: 100%;
}

/* 7. Links sem decoração padrão */
a {
    text-decoration: none;
    color: inherit;
}