/* ========================================
   ESTILOS ISOLADOS - CATÁLOGO DE EQUIPAMENTOS
======================================== */

#binox-catalog-wrapper {
    display: block;
    width: 100%;
    background: #f8fafc;
    padding-bottom: 80px;
}

#binox-catalog-wrapper .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    #binox-catalog-wrapper .container {
        padding: 0 40px;
    }
}

/* ========================================
   PAGE HERO - DESIGN PREMIUM
======================================== */

#binox-catalog-wrapper .page-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    text-align: center;
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Efeito de fundo decorativo */
#binox-catalog-wrapper .page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#binox-catalog-wrapper .page-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#binox-catalog-wrapper .page-hero-content {
    position: relative;
    z-index: 1;
}

/* Tag de Seção Premium */
#binox-catalog-wrapper .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 20px;
    padding: 10px 24px;
    background: linear-gradient(135deg,
            rgba(220, 38, 38, 0.08) 0%,
            rgba(220, 38, 38, 0.12) 100%);
    border-radius: 100px;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

/* Título da Página */
#binox-catalog-wrapper .page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #111827;
    margin: 0 0 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Gradiente no texto */
#binox-catalog-wrapper .text-gradient {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Subtítulo */
#binox-catalog-wrapper .page-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Animação de entrada do hero */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#binox-catalog-wrapper .page-hero-content.animate-in {
    animation: fadeInDown 0.8s ease-out;
}

/* ========================================
   FILTER SYSTEM - DESIGN RESPONSIVO PREMIUM
======================================== */

.filter-section {
    padding: 0;
    background: rgba(248, 250, 252, 0.8);
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
}

.filter-btn {
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
}

/* Animações de Filtragem */
.equip-card.hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.95);
}

@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.equip-card:not(.hidden) {
    animation: filterFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Otimização Mobile para Filtros */
@media (max-width: 768px) {
    .filter-section {
        padding: 0;
    }

    .filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 15px 0;
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ========================================
   GRID SYSTEM - LAYOUT DOS CARDS
======================================== */

#binox-catalog-wrapper .equipment-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    width: 100%;
}

@media (min-width: 768px) {
    #binox-catalog-wrapper .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (min-width: 1200px) {
    #binox-catalog-wrapper .equipment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    /* Single Page Related Posts: 4 columns on large screens */
    body.single #binox-catalog-wrapper .equipment-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Estado de loading das imagens */
#binox-catalog-wrapper .equip-image-wrapper.loading {
    background: linear-gradient(90deg,
            #f3f4f6 0%,
            #e5e7eb 50%,
            #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

#binox-catalog-wrapper .equip-image-wrapper.loaded img {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================
   CARDS PREMIUM - DESIGN MODERNO
======================================== */

#binox-catalog-wrapper .equip-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid rgba(220, 38, 38, 0.08);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02);
    text-decoration: none;
    position: relative;
    isolation: isolate;
}

/* Efeito de brilho sutil no card */
#binox-catalog-wrapper .equip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(220, 38, 38, 0.3) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

#binox-catalog-wrapper .equip-card:hover::before {
    opacity: 0;
}

#binox-catalog-wrapper .equip-card:hover {
    cursor: pointer;
}

/* Container da Imagem com Overlay Gradiente */
#binox-catalog-wrapper .equip-image-wrapper {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay escuro sutil na imagem */
#binox-catalog-wrapper .equip-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

#binox-catalog-wrapper .equip-card:hover .equip-image-wrapper::after {
    opacity: 0;
}

/* Imagem com efeito de zoom suave */
#binox-catalog-wrapper .equip-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(1) contrast(1.05);
}

#binox-catalog-wrapper .equip-card:hover .equip-image-wrapper img {
    transform: scale(1);
}

/* Placeholder da imagem com gradiente */
#binox-catalog-wrapper .equip-image-placeholder {
    font-size: 4rem;
    opacity: 0.3;
    filter: grayscale(1);
}

/* Badge Premium com Glassmorphism */
#binox-catalog-wrapper .equip-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

#binox-catalog-wrapper .equip-card:hover .equip-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #111827;
}

/* Conteúdo do Card */
#binox-catalog-wrapper .equip-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 1) 100%);
    position: relative;
}

/* Linha decorativa no topo do conteúdo */
#binox-catalog-wrapper .equip-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 3px;
    background: linear-gradient(90deg,
            rgba(220, 38, 38, 0) 0%,
            rgba(220, 38, 38, 0.6) 50%,
            rgba(220, 38, 38, 0) 100%);
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#binox-catalog-wrapper .equip-card:hover .equip-content::before {
    opacity: 0;
    transform: scaleX(0);
}

/* Título do Equipamento */
#binox-catalog-wrapper .equip-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

#binox-catalog-wrapper .equip-card:hover .equip-content h3 {
    color: #111827;
}

/* Descrição/Excerpt */
#binox-catalog-wrapper .equip-excerpt {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Link "Ver Detalhes" Premium */
#binox-catalog-wrapper .equip-content .btn-details {
    margin-top: auto;
    color: #dc2626;
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 12px 24px;
    background: linear-gradient(135deg,
            rgba(220, 38, 38, 0.08) 0%,
            rgba(220, 38, 38, 0.12) 100%);
    border-radius: 100px;
    border: 1px solid rgba(220, 38, 38, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    align-self: flex-start;
    letter-spacing: 0.3px;
}

#binox-catalog-wrapper .equip-content .btn-details:hover {
    background: linear-gradient(135deg,
            rgba(220, 38, 38, 0.08) 0%,
            rgba(220, 38, 38, 0.12) 100%);
    color: #dc2626;
}

#binox-catalog-wrapper .equip-content .btn-details span {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1.1rem;
}

#binox-catalog-wrapper .equip-content .btn-details:hover span {
    transform: translateX(0);
}

/* Animação de entrada dos cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#binox-catalog-wrapper .equip-card.animate-in {
    animation: fadeInUp 0.6s ease-out backwards;
}

#binox-catalog-wrapper .equip-card:nth-child(1) {
    animation-delay: 0.1s;
}

#binox-catalog-wrapper .equip-card:nth-child(2) {
    animation-delay: 0.2s;
}

#binox-catalog-wrapper .equip-card:nth-child(3) {
    animation-delay: 0.3s;
}

#binox-catalog-wrapper .equip-card:nth-child(4) {
    animation-delay: 0.4s;
}

#binox-catalog-wrapper .equip-card:nth-child(5) {
    animation-delay: 0.5s;
}

#binox-catalog-wrapper .equip-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsividade dos Cards */
@media (max-width: 768px) {
    #binox-catalog-wrapper .equip-image-wrapper {
        height: 260px;
    }

    #binox-catalog-wrapper .equip-content {
        padding: 24px;
    }

    #binox-catalog-wrapper .equip-content h3 {
        font-size: 1.25rem;
    }

    #binox-catalog-wrapper .equip-content a {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   CTA SECTION - DESIGN PREMIUM
======================================== */

#binox-catalog-wrapper .cta-section {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 32px;
    padding: 60px 50px;
    color: #ffffff;
    margin: 80px 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 50px -10px rgba(220, 38, 38, 0.3),
        0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

/* Efeito de brilho no fundo */
#binox-catalog-wrapper .cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#binox-catalog-wrapper .cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

#binox-catalog-wrapper .cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

#binox-catalog-wrapper .cta-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
}

/* Botão CTA Premium */
#binox-catalog-wrapper .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #dc2626;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
}

#binox-catalog-wrapper .btn-primary:hover {
    background: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

#binox-catalog-wrapper .btn-primary span {
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#binox-catalog-wrapper .btn-primary:hover span {
    transform: translateX(5px);
}

/* Responsividade da CTA */
@media (max-width: 768px) {
    #binox-catalog-wrapper .cta-section {
        padding: 40px 30px;
        margin: 60px 20px 0;
    }

    #binox-catalog-wrapper .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    #binox-catalog-wrapper .btn-primary {
        padding: 14px 28px;
    }
}