:root {
    --mc-primary: #6d28d9;
    --mc-primary-dark: #5b21b6;
    --mc-bg: #f5f3ff;
    --mc-sidebar: #1e1b2e;
    --mc-sidebar-active: #6d28d9;

    /* Paleta clara (lilás + rosa) usada nas telas públicas voltadas pro
       cliente final (catálogo) - mais convidativa que o roxo escuro do
       painel administrativo, que continua escuro por ser uma ferramenta
       de trabalho, não uma vitrine. */
    --mc-lilac-light: #ede9fe;
    --mc-pink-light: #fce7f3;
    --mc-pink: #ec4899;
    --mc-catalog-text: #581c87;
}

body {
    background-color: var(--mc-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.mc-shell { display: flex; min-height: 100vh; }

.mc-sidebar {
    width: 250px;
    background: var(--mc-sidebar);
    color: #e5e7eb;
    flex-shrink: 0;
    min-height: 100vh;
}
.mc-sidebar .brand {
    padding: 1.25rem 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.mc-sidebar .brand small { display: block; font-weight: 400; color: #a78bfa; font-size: .75rem; }
.mc-sidebar .brand .brand-logo { display: block; max-height: 40px; max-width: 100%; margin-bottom: .4rem; border-radius: .35rem; background: #fff; padding: .15rem; }
.mc-sidebar nav { padding: .75rem 0; }
.mc-sidebar a.nav-link {
    color: #cbd5e1;
    padding: .6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .92rem;
    border-left: 3px solid transparent;
}
.mc-sidebar a.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.mc-sidebar a.nav-link.active {
    background: rgba(109,40,217,.25);
    color: #fff;
    border-left-color: var(--mc-sidebar-active);
    font-weight: 600;
}

.mc-main { flex: 1; min-width: 0; }
.mc-topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: .85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mc-content { padding: 1.5rem; }

.mc-card {
    background: #fff;
    border-radius: .75rem;
    border: 1px solid #ede9fe;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.stat-tile {
    background: #fff;
    border-radius: .75rem;
    border: 1px solid #ede9fe;
    padding: 1.1rem 1.25rem;
}
.stat-tile .stat-label { font-size: .8rem; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; }
.stat-tile .stat-value { font-size: 1.6rem; font-weight: 700; color: #1e1b2e; }

.badge-plano-erp_site { background: #6d28d9; }
.badge-plano-erp { background: #2563eb; }
.badge-plano-lite { background: #059669; }

.btn-primary, .bg-mc-primary { background-color: var(--mc-primary) !important; border-color: var(--mc-primary) !important; }
.btn-primary:hover { background-color: var(--mc-primary-dark) !important; border-color: var(--mc-primary-dark) !important; }
.text-mc-primary { color: var(--mc-primary) !important; }

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mc-sidebar), var(--mc-primary));
}
.auth-card { width: 100%; max-width: 400px; border-radius: 1rem; }

.catalog-header {
    background: linear-gradient(135deg, var(--mc-lilac-light), var(--mc-pink-light));
    color: var(--mc-catalog-text);
    padding: 2rem 1rem;
    border-bottom: 1px solid #f5d0e8;
}
.catalog-header small,
.catalog-header .opacity-75 { color: var(--mc-catalog-text); opacity: .75 !important; }
.catalog-header .btn-light { border: 1px solid #f0d9ee; }
.product-card img { height: 220px; object-fit: cover; width: 100%; background: #f3f4f6; }
.product-card { border-radius: .75rem; overflow: hidden; transition: transform .15s; }
.product-card:hover { transform: translateY(-3px); }
.product-card .text-mc-primary { color: var(--mc-pink) !important; }

@media (max-width: 768px) {
    .mc-sidebar { position: fixed; left: -260px; top: 0; z-index: 1050; transition: left .2s; }
    .mc-sidebar.open { left: 0; }
    .mc-content { padding: 1rem; }
}

/* ---------------------------------------------------------------------
   Landing page (site de vendas do Upgest Moda para lojistas)
   --------------------------------------------------------------------- */
.landing-page { background: #fff; }

.landing-nav {
    background: var(--mc-sidebar);
    padding: .75rem 0;
}
.landing-nav .navbar-brand,
.landing-nav .nav-link { color: #fff; }
.landing-nav .nav-link:hover { color: var(--mc-pink); }

.landing-hero {
    background: linear-gradient(135deg, var(--mc-sidebar), var(--mc-primary));
    color: #fff;
}
.landing-badge {
    background: rgba(236, 72, 153, .18);
    color: #fbcfe8;
    border: 1px solid rgba(236, 72, 153, .4);
    font-weight: 500;
    padding: .4rem .8rem;
}
.landing-hero-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1rem;
    padding: 2rem;
    color: #fff;
}
.landing-hero-card i.display-4 { color: var(--mc-pink); }
.landing-hero-card .bi-check-circle-fill { color: var(--mc-pink); margin-right: .4rem; }

.landing-hero-bullets li { margin-bottom: .6rem; color: #f3e8ff; }
.landing-hero-bullets i { color: var(--mc-pink); margin-right: .5rem; }

.landing-mockup {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(30, 27, 46, .35);
}
.landing-mockup-bar {
    background: #e5e7eb;
    padding: .55rem .75rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.landing-mockup-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.landing-mockup-url {
    margin-left: .75rem;
    background: #fff;
    border-radius: 999px;
    padding: .15rem .75rem;
    font-size: .75rem;
    color: #6b7280;
    flex: 1;
}
.landing-mockup-body {
    background: #f3f4f6;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.landing-mockup-img { width: 100%; display: block; max-height: 520px; object-fit: cover; }
.landing-mockup-placeholder { color: #9ca3af; text-align: center; padding: 3rem 1.5rem; }

.landing-feature {
    background: var(--mc-lilac-light);
    border-radius: 1rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
}
.landing-feature i { font-size: 2rem; color: var(--mc-primary); }

.landing-planos-bg { background: linear-gradient(180deg, var(--mc-lilac-light), var(--mc-pink-light)); }

.landing-plano-card {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 10px 25px rgba(88, 28, 135, .08);
}
.landing-plano-destaque { border: 2px solid var(--mc-pink); }
.landing-plano-tag {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: var(--mc-pink);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .7rem;
    border-radius: 999px;
}
.landing-plano-preco { font-size: 2rem; font-weight: 700; color: var(--mc-primary); }
.landing-plano-preco span { font-size: 1rem; font-weight: 400; color: #6b7280; }

.landing-cta { background: linear-gradient(135deg, var(--mc-primary), var(--mc-sidebar)); color: #fff; }

.landing-footer { background: #f5f3ff; color: #4b5563; }
.landing-footer a { color: var(--mc-primary); text-decoration: none; }
.landing-footer a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   Paletas do catálogo público - cada lojista escolhe uma em
   Admin > Configurações. "feminino" é a paleta padrão (mesmos valores
   já definidos em :root), as outras sobrescrevem as variáveis só
   dentro do <body> do catálogo - não afeta o admin nem a landing page.
   --------------------------------------------------------------------- */
body.catalog-theme-pink {
    --mc-lilac-light: #ffd6e8;
    --mc-pink-light: #ff8fc7;
    --mc-pink: #c2185b;
    --mc-catalog-text: #4a0e2c;
}
body.catalog-theme-pastel {
    --mc-lilac-light: #f5ebe0;
    --mc-pink-light: #e8d9c5;
    --mc-pink: #8b5e34;
    --mc-catalog-text: #2b211a;
}
body.catalog-theme-azul_cinza {
    --mc-lilac-light: #dbeafe;
    --mc-pink-light: #e5e7eb;
    --mc-pink: #2563eb;
    --mc-catalog-text: #111827;
}
body.catalog-theme-classico {
    --mc-lilac-light: #ffffff;
    --mc-pink-light: #f3f4f6;
    --mc-pink: #111827;
    --mc-catalog-text: #111827;
}
body.catalog-theme-classico .catalog-header { border-bottom: 1px solid #e5e7eb; }
