/* =========================================================
   MEGA VALE ATIVOS · TEMPLATE DE LEILÃO (PÚBLICO)
   Estilo conservador: preto / branco / cinza, clean
   Desenvolvido por Citricus.Digital · by Lucas Barbosa
   ========================================================= */
.mvax, .mvax * { box-sizing: border-box; }
.mvax {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    line-height: 1.7;
    font-size: 16px;
    --mvax-red: #E30613;
    --mvax-ink: #16181c;
    --mvax-ink-soft: #3a3f47;
    --mvax-muted: #6b7280;
    --mvax-line: #e6e8ec;
    --mvax-line-soft: #eef0f3;
    --mvax-bg: #f6f7f9;
    --mvax-bg-soft: #fafbfc;
    --mvax-radius: 6px;
    --mvax-radius-lg: 8px;
}
.mvax h1, .mvax h2, .mvax h3, .mvax h4, .mvax p, .mvax ul, .mvax li { margin: 0; padding: 0; list-style: none; }

/* ============ CONTAINER ============ */
.mvax-container { max-width: 1180px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 24px !important; padding-right: 24px !important; box-sizing: border-box !important; width: 100% !important; float: none !important; }

/* ============ BARRA DE TÍTULO (FULL WIDTH + BG + OVERLAY) ============ */
.mvax-titlebar {
    width: 100%;
    position: relative;
    background-color: #16181c;
    background-image: url('https://megavaleativos.com.br/wp-content/uploads/2026/07/bg-megavale-ativos-leiloes.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 32px;
}
.mvax-titlebar::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,17,20,0.82) 0%, rgba(15,17,20,0.88) 100%);
    z-index: 1;
}
.mvax-titlebar-inner {
    position: relative; z-index: 2;
    padding: 30px 0 28px;
}
.mvax-titlebar .mvax-status { margin-bottom: 10px; }
.mvax-titlebar h1 {
    font-size: 28px; font-weight: 800; line-height: 1.2;
    letter-spacing: -0.5px; color: #ffffff;
    margin: 0 0 12px;
}
.mvax-titlebar h1 span { color: #ffffff; font-weight: 800; }
.mvax-titlebar h1 .mvax-comitente {
    display: block; font-size: 15px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.6); margin-bottom: 10px;
}
.mvax-titlebar p {
    font-size: 14.5px; line-height: 1.55;
    color: rgba(255,255,255,0.78); max-width: 720px; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 768px) {
    .mvax-titlebar-inner { padding: 24px 0 22px; }
    .mvax-titlebar h1 { font-size: 21px; }
    .mvax-titlebar p { font-size: 15px; }
}

/* ============ STATUS BADGE ============ */
.mvax-status {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 13px; border-radius: 4px;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: 0.8px; text-transform: uppercase;
}
.mvax-status-dot { width: 7px; height: 7px; border-radius: 50%; }
.mvax-titlebar .mvax-status-aberto { background: rgba(255,255,255,0.12); color: #ffffff; border: 1px solid rgba(255,255,255,0.2); }
.mvax-titlebar .mvax-status-aberto .mvax-status-dot { background: #4ade80; box-shadow: 0 0 7px rgba(74,222,128,0.9); }
.mvax-titlebar .mvax-status-breve { background: rgba(255,255,255,0.12); color: #ffffff; border: 1px solid rgba(255,255,255,0.2); }
.mvax-titlebar .mvax-status-breve .mvax-status-dot { background: #fbbf24; }
.mvax-titlebar .mvax-status-encerrado { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); }
.mvax-titlebar .mvax-status-encerrado .mvax-status-dot { background: #9ca3af; }

/* ============ LAYOUT 2 COLUNAS ============ */
.mvax-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
    padding-bottom: 60px;
}
@media (max-width: 900px) {
    .mvax-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ GALERIA ============ */
.mvax-gallery {
    border-radius: var(--mvax-radius-lg); overflow: hidden;
    border: 1px solid var(--mvax-line);
    margin-bottom: 32px; background: var(--mvax-bg);
}
.mvax-gallery img { width: 100%; height: auto; display: block; }

/* ============ SEÇÃO / HEADINGS (alinhados ao grid) ============ */
.mvax-section { margin-bottom: 34px; }
.mvax-section-title {
    font-size: 15px; font-weight: 700; color: var(--mvax-ink);
    letter-spacing: 0.5px; text-transform: uppercase;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--mvax-line);
    display: flex; align-items: center; gap: 10px;
}
.mvax-section-title::before {
    content: ''; width: 3px; height: 15px; border-radius: 2px;
    background: var(--mvax-red);
}

/* ============ DESCRIÇÃO ============ */
.mvax-desc p { color: var(--mvax-ink-soft); font-size: 15.5px; line-height: 1.8; }
.mvax-desc p + p { margin-top: 14px; }

/* ============ ITENS ============ */
.mvax-items {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (max-width: 620px) { .mvax-items { grid-template-columns: 1fr; } }
.mvax-item {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--mvax-line);
    border-radius: var(--mvax-radius); padding: 13px 16px;
    font-weight: 500; font-size: 14.5px; color: var(--mvax-ink);
    transition: border-color 0.2s ease;
}
.mvax-item:hover { border-color: #cfd3da; }
.mvax-item-check {
    flex-shrink: 0; width: 20px; height: 20px; border-radius: 4px;
    background: var(--mvax-ink);
    display: flex; align-items: center; justify-content: center;
}
.mvax-item-check svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; }

/* ============ BLOCO INFO OFICIAL ============ */
.mvax-info-official {
    background: #fff;
    border: 1px solid var(--mvax-line);
    border-radius: var(--mvax-radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}
.mvax-info-official-head {
    background: var(--mvax-bg-soft);
    border-bottom: 1px solid var(--mvax-line);
    padding: 15px 22px;
    display: flex; align-items: center; gap: 11px;
}
.mvax-info-official-head svg { width: 19px; height: 19px; stroke: var(--mvax-ink); stroke-width: 2; fill: none; flex-shrink: 0; }
.mvax-info-official-head h3 {
    color: var(--mvax-ink); font-size: 13px; font-weight: 700;
    letter-spacing: 0.6px; text-transform: uppercase;
}
.mvax-info-rows { padding: 4px 0; }
.mvax-info-row {
    display: grid; grid-template-columns: 190px 1fr;
    gap: 16px; padding: 15px 22px;
    border-bottom: 1px solid var(--mvax-line-soft);
    align-items: start;
}
.mvax-info-row:last-child { border-bottom: 0; }
@media (max-width: 560px) {
    .mvax-info-row { grid-template-columns: 1fr; gap: 4px; }
}
.mvax-info-label {
    display: flex; align-items: center; gap: 9px;
    font-size: 12px; font-weight: 600; color: var(--mvax-muted);
    text-transform: uppercase; letter-spacing: 0.4px;
}
.mvax-info-label svg { width: 16px; height: 16px; stroke: var(--mvax-muted); stroke-width: 2; fill: none; flex-shrink: 0; }
.mvax-info-value { font-size: 15px; font-weight: 600; color: var(--mvax-ink); line-height: 1.5; }
.mvax-info-value strong { color: var(--mvax-ink); font-weight: 700; }

/* ============ ALERTA ============ */
.mvax-alert {
    display: flex; gap: 13px; align-items: flex-start;
    background: var(--mvax-bg-soft); border: 1px solid var(--mvax-line);
    border-left: 3px solid var(--mvax-red);
    border-radius: var(--mvax-radius); padding: 16px 18px; margin-bottom: 32px;
}
.mvax-alert svg { width: 20px; height: 20px; stroke: var(--mvax-red); stroke-width: 2; fill: none; flex-shrink: 0; margin-top: 2px; }
.mvax-alert-text { font-size: 13.5px; color: var(--mvax-ink-soft); line-height: 1.6; }
.mvax-alert-text strong { font-weight: 700; color: var(--mvax-ink); }

/* ============ SIDEBAR ============ */
.mvax-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) { .mvax-sidebar { position: static; } }

.mvax-bid-card {
    background: #fff;
    border: 1px solid var(--mvax-line);
    border-radius: var(--mvax-radius-lg);
    padding: 24px 22px;
}
.mvax-bid-label {
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--mvax-muted); margin-bottom: 12px;
}

.mvax-countdown { display: flex; gap: 8px; margin-bottom: 22px; }
.mvax-count-box {
    flex: 1; background: var(--mvax-bg);
    border: 1px solid var(--mvax-line);
    border-radius: var(--mvax-radius); padding: 12px 6px; text-align: center;
}
.mvax-count-num { display: block; font-size: 26px; font-weight: 800; line-height: 1; color: var(--mvax-ink); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.mvax-count-lbl { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--mvax-muted); margin-top: 7px; }
.mvax-countdown-ended {
    background: var(--mvax-bg); border: 1px solid var(--mvax-line);
    border-left: 3px solid var(--mvax-muted);
    border-radius: var(--mvax-radius); padding: 15px; text-align: center;
    font-weight: 700; font-size: 14px; color: var(--mvax-muted); margin-bottom: 22px;
}

.mvax-btn-main {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; padding: 15px 22px;
    background: var(--mvax-red); color: #fff !important;
    border-radius: var(--mvax-radius); font-weight: 700; font-size: 15.5px;
    text-decoration: none !important; text-align: center;
    transition: background 0.2s ease; border: 0; cursor: pointer;
}
.mvax-btn-main:hover { background: #c40511; }
.mvax-btn-main svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.5; fill: none; }

.mvax-btn-secondary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px 20px; margin-top: 9px;
    background: #fff; color: var(--mvax-ink) !important;
    border: 1px solid var(--mvax-line); border-radius: var(--mvax-radius);
    font-weight: 600; font-size: 13.5px; text-decoration: none !important;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.mvax-btn-secondary:hover { border-color: #cfd3da; background: var(--mvax-bg-soft); }
.mvax-btn-secondary svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

.mvax-trust {
    display: flex; align-items: center; gap: 11px;
    padding: 14px 16px; background: var(--mvax-bg-soft);
    border: 1px solid var(--mvax-line); border-radius: var(--mvax-radius);
    font-size: 12.5px; color: var(--mvax-muted); line-height: 1.45;
}
.mvax-trust svg { width: 22px; height: 22px; stroke: var(--mvax-ink); stroke-width: 2; fill: none; flex-shrink: 0; }

/* ============ CTA FINAL (FULL WIDTH + BG + OVERLAY) ============ */
.mvax-cta-full {
    width: 100%;
    position: relative;
    background-color: #16181c;
    background-image: url('https://megavaleativos.com.br/wp-content/uploads/2026/07/bg-megavale-ativos-leiloes-01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 20px;
}
.mvax-cta-full::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,11,13,0.85) 0%, rgba(10,11,13,0.9) 100%);
    z-index: 1;
}
.mvax-cta-full-inner {
    position: relative; z-index: 2;
    padding: 68px 0; text-align: center;
}
.mvax-cta-full h2 {
    color: #fff; font-size: 30px; font-weight: 800;
    margin-bottom: 12px; line-height: 1.2; letter-spacing: -0.5px;
}
.mvax-cta-full p {
    color: rgba(255,255,255,0.78); font-size: 16.5px;
    margin: 0 auto 28px; max-width: 560px;
}
.mvax-cta-full .mvax-btn-main {
    display: inline-flex; width: auto; padding: 16px 34px; font-size: 16px;
}
@media (max-width: 768px) {
    .mvax-cta-full-inner { padding: 48px 0; }
    .mvax-cta-full h2 { font-size: 24px; }
}

/* ============ FULL-WIDTH BREAKOUT (escapar do container do tema) ============ */
/* Faz a titlebar e o CTA ocuparem 100% da viewport mesmo dentro de um
   container limitado do Avada, mantendo o texto interno alinhado ao container. */
.mvax { width: 100%; overflow: visible; }
.mvax-titlebar,
.mvax-cta-full {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box;
}

/* Neutraliza os containers do Avada que limitam a largura e cortam o breakout.
   Sobe pela árvore de pais na página de leilão para liberar o full-width. */
.single-mva_lote #main,
.single-mva_lote #main .fusion-row,
.single-mva_lote #main .post-content,
.single-mva_lote .fusion-content-widget-area,
.single-mva_lote #main .fusion-fullwidth,
.single-mva_lote #content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
}
.single-mva_lote #content { padding: 0 !important; }

/* Cobertura extra: qualquer wrapper do Avada na página de leilão */
.mvax-fullwidth-page .fusion-sides-frame,
.mvax-fullwidth-page .avada-page-titlebar-wrapper,
.mvax-fullwidth-page .fusion-page-title-bar {
    display: none !important;
}
/* Remove o sidebar do tema (espaço vazio à direita) e ocupa 100% */
.mvax-fullwidth-page .fusion-content-sidebar,
.mvax-fullwidth-page aside.fusion-sidebar,
.mvax-fullwidth-page .has-sidebar .content-boxes,
.mvax-fullwidth-page #sidebar {
    display: none !important;
    width: 0 !important;
}
.mvax-fullwidth-page .fusion-content-layout,
.mvax-fullwidth-page .fusion-main-content,
.mvax-fullwidth-page .content-area,
.mvax-fullwidth-page #content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.mvax-fullwidth-page #main {
    padding: 0 !important;
    border: 0 !important;
}
.mvax-fullwidth-page #main .fusion-row {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Evita barra de rolagem horizontal criada pelo 100vw (largura da scrollbar) */
body.single-mva_lote,
body.mvax-fullwidth-page { overflow-x: hidden !important; }

/* ============ EXTRAS DO LOTE (galeria + lance) ============ */
.mvax-bid-value {
    font-size: 32px; font-weight: 800; letter-spacing: -1px;
    color: var(--mvax-ink, #16181c); line-height: 1.1; margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.mvax-bid-meta {
    font-size: 12.5px; color: var(--mvax-muted, #6b7280);
    margin-bottom: 18px; padding-bottom: 16px;
    border-bottom: 1px solid var(--mvax-line, #e6e8ec);
}
.mvax-gallery img { max-height: 560px; object-fit: contain; background: #fff; }
.mvax-thumbs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px; margin: -22px 0 32px;
}
.mvax-thumb {
    padding: 0; border: 2px solid var(--mvax-line, #e6e8ec); border-radius: 6px;
    overflow: hidden; cursor: pointer; background: #fff; line-height: 0;
    transition: border-color 0.15s ease;
}
.mvax-thumb:hover { border-color: #9ca3af; }
.mvax-thumb.is-active { border-color: var(--mvax-red, #E30613); }
.mvax-thumb img { width: 100%; height: 64px; object-fit: cover; display: block; }

/* ============ ÍNDICE /lotes/ (filtros + paginação) ============ */
.mvax-filters {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin: 0 0 28px; align-items: center;
}
.mvax-filters select,
.mvax-filters input[type="search"],
.mvax-filters input[type="text"] {
    padding: 10px 14px !important;
    border: 1px solid var(--mvax-line, #e6e8ec) !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    height: auto !important;
    color: #16181c;
    min-width: 170px; max-width: 320px;
    margin: 0 !important;
    box-shadow: none !important;
}
.mvax-filters input[type="search"] { flex: 1 1 200px; min-width: 180px; }
.mvax-filters input[type="search"]:focus,
.mvax-filters select:focus { outline: none; border-color: #9ca3af !important; }
.mvax-filter-btn {
    width: auto !important; padding: 10px 22px !important;
    font-size: 14px !important; margin: 0 !important;
    line-height: 1.3 !important; white-space: nowrap;
}
@media (max-width: 640px) {
    .mvax-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .mvax-filters select, .mvax-filters input[type="search"] { min-width: 0; max-width: none; width: 100%; }
    .mvax-filter-btn { grid-column: 1 / -1; }
}
.mvax-pagination { margin: 34px 0 60px; text-align: center; }
.mvax-pagination .page-numbers {
    display: inline-block; padding: 8px 14px; margin: 0 3px;
    border: 1px solid #e6e8ec; border-radius: 6px;
    color: #16181c; text-decoration: none; font-weight: 600; font-size: 14px;
}
.mvax-pagination .page-numbers.current { background: #16181c; color: #fff; border-color: #16181c; }
.mvax-pagination .page-numbers:hover:not(.current) { border-color: #9ca3af; }
.archive-mva_lote .mva-grid { margin-bottom: 20px; }

/* ============ V2: FAIXA SLIM + SIDEBAR ESTILO PLATAFORMA ============ */
.mvax-titlebar-slim .mvax-titlebar-inner { padding: 14px 0 13px; }
.mvax-titlebar-slim .mvax-container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mvax-titlebar-slim .mvax-status { margin-bottom: 0; }
.mvax-crumb { color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500; }
.mvax-crumb a { color: rgba(255,255,255,0.78); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
.mvax-crumb a:hover { color: #ffffff; border-bottom-color: rgba(255,255,255,0.7); }
.mvax-titlebar-slim { margin-bottom: 28px; }

.mvax-side-title {
    font-size: 19px !important; font-weight: 800 !important; line-height: 1.3 !important;
    color: var(--mvax-ink, #16181c) !important; margin: 0 0 14px !important;
    padding-bottom: 14px !important; border-bottom: 1px solid var(--mvax-line, #e6e8ec);
    letter-spacing: -0.2px;
}
.mvax-side-bid { margin-bottom: 14px; }
.mvax-side-bid .mvax-bid-value { font-size: 28px; margin-bottom: 4px; }
.mvax-side-bid .mvax-bid-meta { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

.mvax-count-wrap {
    background: var(--mvax-bg, #f6f7f9); border: 1px solid var(--mvax-line, #e6e8ec);
    border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; text-align: center;
}
.mvax-count-label {
    display: block; font-size: 10px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--mvax-muted, #6b7280); margin-bottom: 8px;
}
.mvax-countdown.mvax-compact {
    display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 6px;
}
.mvax-compact .mvax-count-box {
    flex: 0 0 auto; background: #fff; border: 1px solid var(--mvax-line, #e6e8ec);
    border-radius: 6px; padding: 6px 8px; min-width: 44px; text-align: center;
}
.mvax-compact .mvax-count-num { font-size: 18px; font-weight: 800; letter-spacing: 0; }
.mvax-compact .mvax-count-lbl { font-size: 9px; margin-top: 2px; }
.mvax-count-sep { font-weight: 800; color: var(--mvax-muted, #6b7280); font-size: 15px; }
.mvax-count-date { display: block; font-size: 11.5px; color: var(--mvax-muted, #6b7280); }

.mvax-side-desc {
    font-size: 13px; line-height: 1.65; color: var(--mvax-ink-soft, #3a3f47);
    margin: 0 0 16px !important;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============ CARDS: título controlado (home/shortcode/índice) ============ */
.mva-card-lote .mva-card-title,
.mva-card-lote h3.mva-card-title {
    font-size: 15px !important; line-height: 1.4 !important; font-weight: 700 !important;
    margin: 0 0 4px !important; letter-spacing: 0 !important; text-transform: none !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 42px;
}
.mva-card-lote .mva-card-title a { font-size: inherit !important; }
.mva-card-lote .mva-card-price strong { font-size: 18px !important; }
