:root {
    --prod-bg: #020617;
    --prod-surface: #0f172a;
    --prod-surface-2: #111c34;
    --prod-surface-3: #0b1120;
    --prod-primary: #000d52;
    --prod-primary-hover: #001a80;
    --prod-text: #e5e7eb;
    --prod-text-soft: #cbd5e1;
    --prod-text-muted: #94a3b8;
    --prod-border: rgba(255, 255, 255, 0.08);
    --prod-border-strong: rgba(255, 255, 255, 0.14);
    --prod-success: #22c55e;
    --prod-danger: #ef4444;
    --prod-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.produtos-page {
    width: 85%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px 20px 32px;
}

.produtos-page * {
    box-sizing: border-box;
}

.produtos-page a {
    text-decoration: none;
}

/* =========================
   TOPO
========================= */

.produtos-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    background: #000d52;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 34px;
    margin-bottom: 20px;
    box-shadow: none;
}

.produtos-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000d52;
    background: #ffffff;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.produtos-topo h1 {
    font-size: clamp(2rem, 3vw, 2.7rem);
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.12;
    font-weight: 800;
}

.produtos-subtitulo {
    color: #e5e7eb;
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 920px;
    opacity: 1;
}

/* =========================
   PAINEL
========================= */

.painel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(11, 17, 32, 0.96));
    border: 1px solid var(--prod-border);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--prod-shadow);
}

.painel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.painel-header h2 {
    font-size: 1.12rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.painel-header-busca {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.painel-subtexto {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* =========================
   FORMULÁRIOS / FILTROS
========================= */

.filtros-form {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.campo {
    grid-column: span 4;
    min-width: 0;
}

.campo-largo {
    grid-column: span 12;
}

.campo label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--prod-text-soft);
    margin-bottom: 7px;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 13px 14px;
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.campo textarea {
    resize: vertical;
    min-height: 120px;
}

.campo input::placeholder,
.campo textarea::placeholder {
    color: #7c8aa5;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
    background: #0a1224;
}

.campo select {
    background: #0b1120;
    color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #94a3b8 50%),
        linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.campo select option {
    background: #0b1120;
    color: #ffffff;
}

.filtros-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

/* =========================
   BOTÕES
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primario {
    background: linear-gradient(135deg, var(--prod-primary), #0b1970);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.05);
}

.btn-primario:hover {
    background: linear-gradient(135deg, var(--prod-primary-hover), #142a99);
}

.btn-secundario {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.btn-secundario:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.22);
}

/* =========================
   BUSCA
========================= */

.busca-tempo-real-wrap {
    width: 100%;
    max-width: 420px;
}

.busca-tempo-real {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: #0f172a;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
}

.busca-tempo-real::placeholder {
    color: #94a3b8;
}

.busca-tempo-real:focus {
    border-color: rgba(59,130,246,0.6);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.resultado-busca-info {
    margin-bottom: 16px;
    color: #94a3b8;
    font-size: 0.92rem;
}

/* =========================
   CARDS DE CURSOS
========================= */

.produtos-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.produto-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, rgba(17, 28, 52, 0.96), rgba(15, 23, 42, 0.96));
    border: 1px solid var(--prod-border);
    padding: 18px;
    box-shadow: var(--prod-shadow);
    min-width: 0;
}

.produto-card-imagem {
    width: 100%;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(255,255,255,0.06);
}

.produto-card-imagem img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.produto-card-topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.produto-card-topo-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.produto-card-header h3 {
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.3;
    margin: 0 0 8px;
}

.produto-card-descricao {
    color: var(--prod-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.produto-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.produto-meta {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px;
    min-width: 0;
}

.produto-meta-label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--prod-text-muted);
    margin-bottom: 6px;
}

.produto-meta strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: break-word;
}

.destaque-preco {
    background: linear-gradient(180deg, rgba(11, 25, 112, 0.34), rgba(15, 23, 42, 0.95));
    border-color: rgba(59, 130, 246, 0.24);
}

.produto-meta-boleto {
    grid-column: span 2;
}

.sem-registros-card {
    padding: 20px;
    text-align: center;
    color: var(--prod-text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* =========================
   BADGES
========================= */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.badge-curso {
    background: rgba(22, 163, 74, 0.22);
    color: #dcfce7;
    border-color: rgba(34, 197, 94, 0.18);
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 1200px) {
    .produtos-page {
        width: 92%;
    }

    .campo {
        grid-column: span 6;
    }

    .produtos-grid-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .produtos-page {
        width: 96%;
        padding: 18px 12px 28px;
    }

    .produtos-topo {
        flex-direction: column;
        align-items: stretch;
    }

    .campo,
    .campo-largo {
        grid-column: span 12;
    }

    .painel,
    .produtos-topo {
        padding: 16px;
    }

    .produtos-grid-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .produtos-page {
        width: 100%;
        padding: 14px 10px 24px;
    }

    .produtos-topo h1 {
        font-size: 1.35rem;
    }

    .produtos-subtitulo {
        font-size: 0.92rem;
    }

    .btn,
    .filtros-acoes .btn {
        width: 100%;
    }

    .filtros-acoes {
        flex-direction: column;
    }

    .produto-card-grid {
        grid-template-columns: 1fr;
    }

    .produto-meta-boleto {
        grid-column: span 1;
    }
}

.produto-card-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.produto-card-acoes .btn {
    flex: 1 1 220px;
}
.parcela-destaque {
    color: #facc15;
    font-size: 1.45em;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.18);
}

.painel-filtros-retratil .toggle-filtros-avancados {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #223046 !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    color: #ffffff !important;
    padding: 18px 22px;
    margin: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 1.12rem;
    font-weight: 700;
    box-shadow: none;
}

.toggle-filtros-avancados:hover {
    background: linear-gradient(180deg, rgba(22, 34, 58, 0.98), rgba(13, 21, 38, 0.98));
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.toggle-filtros-avancados:focus-visible {
    outline: none;
    border-color: rgba(250, 204, 21, 0.75);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.toggle-filtros-avancados.ativo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-filtros-titulo {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toggle-filtros-titulo strong {
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.toggle-filtros-titulo span {
    font-size: 0.92rem;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.3;
}

.toggle-filtros-icone {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 1rem;
    transition: transform 0.28s ease, background 0.25s ease, border-color 0.25s ease;
}

.toggle-filtros-avancados:hover .toggle-filtros-icone {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.16);
}

.toggle-filtros-avancados.ativo .toggle-filtros-icone {
    transform: rotate(180deg);
}

.filtros-avancados-conteudo {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.25s ease, margin-top 0.25s ease, padding 0.25s ease;
    margin-top: 0;
    padding: 0 22px;
}

.filtros-avancados-conteudo.aberto {
    max-height: 1200px;
    opacity: 1;
    margin-top: 0;
    padding: 20px 22px 22px;
}