/* ============================================================
   Tema · Stripe Modern (B2B SaaS)
   Inter, neutros frios, acento roxo Stripe, gradiente sutil.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Inter', sans-serif;
    --font-base: 15px;
    --font-h1: 56px;
    --font-h2: 32px;
    --font-h3: 20px;

    --bg-base:          #f5f5f7;
    --bg-surface:       rgba(255,255,255,0.92);
    --bg-surface-solid: #ffffff;
    --bg-elevated:      #ffffff;
    --bg-hover:         rgba(60,66,87,0.05);
    --bg-active:        rgba(60,66,87,0.10);

    --text-primary:   #0a2540;
    --text-secondary: #425466;
    --text-tertiary:  #8898aa;

    --border:        rgba(60,66,87,0.10);
    --border-strong: rgba(60,66,87,0.18);

    --blue:            #e31e24;
    --accent:          #e31e24;
    --accent-rgb:      227, 30, 36;
    --accent-hover:    #c81a20;
    --accent-dark:     #a8141a;
    --accent-soft:     #fff1f1;
    --accent-contrast: #ffffff;
    --brand-red:       #e31e24;
    --footer-dark:     #1f2937;

    --shadow-sm: 0 1px 3px rgba(60,66,87,0.08);
    --shadow-md: 0 4px 16px rgba(60,66,87,0.10), 0 1px 3px rgba(60,66,87,0.06);
    --shadow-lg: 0 12px 40px rgba(60,66,87,0.14), 0 4px 16px rgba(60,66,87,0.08);
    --shadow-window: 0 30px 60px rgba(60,66,87,0.18), 0 0 0 1px rgba(60,66,87,0.06);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-base:          #0a2540;
        --bg-surface:       rgba(15,38,67,0.92);
        --bg-surface-solid: #0f2647;
        --bg-elevated:      #16345e;
        --bg-hover:         rgba(255,255,255,0.05);
        --bg-active:        rgba(255,255,255,0.10);
        --text-primary:     #f7fafc;
        --text-secondary:   #adbdcc;
        --text-tertiary:    #6b7c93;
        --border:           rgba(255,255,255,0.10);
        --border-strong:    rgba(255,255,255,0.20);
    }
}

html, body {
    background: #ffffff;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-feature-settings: "cv11";
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.1;
    color: var(--text-primary);
}
h1 { font-weight: 800; letter-spacing: -0.028em; }

/* Cards: white, soft shadow, generous radius */
.mac-card, .map-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: none;
    backdrop-filter: none;
}
.mac-window { border-radius: 12px; box-shadow: none; backdrop-filter: none; background: var(--bg-surface-solid); }
.mac-titlebar { background: var(--bg-base); border-bottom: 1px solid var(--border); border-radius: 12px 12px 0 0; backdrop-filter: none; }

/* Buttons */
.mac-btn {
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-strong);
    box-shadow: none;
    backdrop-filter: none;
    transition: all 0.15s;
}
.mac-btn:hover { border-color: var(--accent); color: var(--accent); }
.mac-btn-primary {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent);
    box-shadow: none;
}
.mac-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.mac-btn-ghost { background: transparent; box-shadow: none; border-color: transparent; }
.mac-btn-ghost:hover { background: var(--bg-hover); border-color: transparent; color: var(--text-primary); }
.mac-btn-danger {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: none;
}
.mac-btn-danger:hover { background: #d9302a; border-color: #d9302a; color: #fff; }

/* Inputs */
.mac-input, .mac-textarea, .mac-select {
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface-solid);
    box-shadow: none;
    font-family: var(--font-sans);
}
.mac-input:focus, .mac-textarea:focus, .mac-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.mac-sidebar { background: var(--bg-surface-solid); border-right: 1px solid var(--border); backdrop-filter: none; }
.mac-sidebar-item.active { background: var(--accent); color: #fff; }

/* ===== LOJA =====
   Estilos do header/hero ficam em shop.css (definição única).
   Aqui só ajustamos tipografia e cores específicas da seção. */
.shop-section h2 { font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }

.cat-pill {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}
.cat-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: none; }

.product-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
}
.product-card:hover { transform: translateY(-2px); box-shadow: none; }
.product-card .thumb { aspect-ratio: 1/1; background: var(--bg-base); }
.product-card .pname { font-weight: 600; font-size: 16px; color: var(--text-primary); letter-spacing: -0.01em; }
.product-card .pmeta { font-size: 12px; color: var(--text-tertiary); }
.product-card .pprice { font-weight: 700; font-size: 17px; color: var(--text-primary); }
.product-card .pprice .from { font-size: 11px; color: var(--text-tertiary); font-weight: 500; }

.product-detail h1 { font-weight: 800; letter-spacing: -0.03em; }
.product-gallery .main { border-radius: 12px; box-shadow: none; }

.shop-footer { background: var(--bg-surface-solid); border-top: 1px solid var(--border); }
.shop-footer h4 { color: var(--text-tertiary); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.shop-footer .brand-block .logo { font-weight: 700; color: var(--text-primary); }

/* Mapa */
.map-hero h1 {
    font-weight: 800;
    background: linear-gradient(135deg, #0a2540 0%, var(--accent) 80%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.map-card { box-shadow: none; }
.api-table th { background: var(--bg-base); }
.flow-step { background: var(--bg-base); border-radius: 8px; }
::selection { background: rgba(var(--accent-rgb), 0.28); color: var(--text-primary); }
