
/* ============================================
   SEÇÃO DE CONTEÚDO DINÂMICO DAS CATEGORIAS
   Adicionar ao main.css (usa as variáveis já
   definidas em variaveis.css / globalClasses.css)
   ============================================ */

.categoria-conteudo-section {
    padding: var(--spacing-lg) 0 100px;
    background: var(--white);
    min-height: 400px;
}

/* --------------------------------------------
   BOTÃO VOLTAR
   -------------------------------------------- */
.voltar-categorias {
    display: none;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--red);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: var(--spacing-md);
    padding: 8px 0;
    transition: var(--transition-fast);
}

.voltar-categorias.visivel {
    display: inline-flex;
}

.voltar-categorias span {
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.voltar-categorias:hover {
    color: var(--red-dark);
}

.voltar-categorias:hover span {
    transform: translateX(-4px);
}

/* --------------------------------------------
   RESUMO (ESTADO INICIAL) — meia seção
   imagem de um lado, texto do outro, alternando
   -------------------------------------------- */
.categorias-resumo.escondido {
    display: none;
}

.resumo-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.resumo-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.resumo-feature {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(220, 38, 38, 0.08);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    opacity: 0;
    animation: resumoFeatureFadeIn 0.8s ease-out forwards;
}

.resumo-feature:nth-child(1) { animation-delay: 0.05s; }
.resumo-feature:nth-child(2) { animation-delay: 0.15s; }
.resumo-feature:nth-child(3) { animation-delay: 0.25s; }
.resumo-feature:nth-child(4) { animation-delay: 0.35s; }

.resumo-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.2);
}

/* Alterna o lado da imagem a cada item */
.resumo-feature:nth-child(even) {
    flex-direction: row-reverse;
}

.resumo-feature-imagem {
    flex: 0 0 42%;
    position: relative;
    overflow: hidden;
}

.resumo-feature-imagem img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.95);
}

.resumo-feature:hover .resumo-feature-imagem img {
    transform: scale(1.08);
    filter: brightness(1.02);
}

.resumo-feature-texto {
    flex: 1;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resumo-feature-numero {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 4px;
}

.resumo-feature-titulo {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.resumo-feature:hover .resumo-feature-titulo {
    color: var(--red);
}

.resumo-feature-texto .accent-line {
    margin: 12px 0 var(--spacing-sm);
}

.resumo-feature-descricao {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    max-width: 480px;
}

.resumo-feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-weight: 600;
    transition: var(--transition-fast);
}

.resumo-feature-cta i {
    transition: transform 0.3s ease;
}

.resumo-feature:hover .resumo-feature-cta i {
    transform: translateX(6px);
}

@keyframes resumoFeatureFadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .resumo-feature,
    .resumo-feature:nth-child(even) {
        flex-direction: column;
    }

    .resumo-feature-imagem {
        flex: 0 0 auto;
        width: 100%;
    }

    .resumo-feature-imagem img {
        min-height: 220px;
    }

    .resumo-feature-texto {
        padding: var(--spacing-md);
    }

    .resumo-feature-titulo {
        font-size: 1.5rem;
    }
}

/* --------------------------------------------
   PAINEL DE CATEGORIA
   -------------------------------------------- */
.categoria-painel {
    display: none;
}

.categoria-painel.ativo {
    display: block;
    animation: fadeInPainel 0.01s linear;
}

@keyframes fadeInPainel {
    from { opacity: 1; }
    to { opacity: 1; }
}

.painel-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.painel-header .badge {
    margin-bottom: var(--spacing-sm);
}

.painel-header .accent-line {
    margin: var(--spacing-sm) auto;
}

/* Estado vazio ("Em breve") */
.categoria-painel-vazio {
    display: none;
}

.categoria-painel-vazio.ativo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.painel-vazio-conteudo {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.painel-vazio-icone {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.5;
}

/* --------------------------------------------
   LAYOUT DE COLUNAS INDEPENDENTES (equipamentos)
   -------------------------------------------- */
.equipamentos-wrapper {
    display: flex;
    gap: 30px;
    margin-top: var(--spacing-md);
}

.equipamentos-coluna {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --------------------------------------------
   CARD DE EQUIPAMENTO
   -------------------------------------------- */
.equipamento-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(220, 38, 38, 0.1);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.equipamento-card:hover:not(.expanded) {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
}

.equipamento-card.expanded {
    cursor: default;
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.2);
}

.equipamento-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    background: var(--gray-light);
}

.equipamento-info-basic {
    padding: var(--spacing-sm);
}

.equipamento-nome {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.equipamento-caracteristica {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.caracteristica-icon {
    color: var(--red);
    font-weight: bold;
}

/* Conteúdo expandido */
.equipamento-expandido {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 var(--spacing-sm);
}

.equipamento-card.expanded .equipamento-expandido {
    max-height: 1000px;
    padding: 0 var(--spacing-sm) var(--spacing-sm);
}

.equipamento-descricao {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.equipamento-detalhes {
    background: var(--gray-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.detalhes-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detalhes-lista {
    list-style: none;
}

.detalhes-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-border);
    display: flex;
    align-items: start;
    gap: 10px;
}

.detalhes-item:last-child {
    border-bottom: none;
}

.item-icone {
    color: var(--red);
    font-weight: bold;
    margin-top: 3px;
}

.item-texto {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* Botão de compra: usa a classe global .cta-button, só ajustamos a largura aqui dentro */
.equipamento-expandido .cta-button {
    width: 100%;
    text-align: center;
    font-size: 1.05rem;
}

/* Indicador de expansão */
.expand-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--red-gradient);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    pointer-events: none;
    z-index: 5;
}

.equipamento-card.expanded .expand-indicator {
    top: 15px;
    bottom: auto;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.equipamento-card.expanded .expand-indicator::before {
    content: '−';
    position: absolute;
    font-size: 1.5rem;
}

.equipamento-card:not(.expanded) .expand-indicator::before {
    content: '+';
    position: absolute;
    font-size: 1.2rem;
}

/* --------------------------------------------
   DESTAQUE DA CATEGORIA ATIVA NO SELETOR (cabeçalho)
   -------------------------------------------- */
.category-card.active .category-card-inner {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.18);
}

.category-card.active .category-title {
    color: var(--red);
}

.category-card.active .category-number {
    background: var(--red-gradient);
    color: white;
}

/* --------------------------------------------
   RESPONSIVIDADE
   -------------------------------------------- */
@media (max-width: 768px) {
    .equipamentos-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .equipamento-image {
        height: 230px;
    }

    .equipamento-nome {
        font-size: 1.3rem;
    }

    .equipamento-caracteristica {
        font-size: 0.9rem;
    }
}