/* ===== BANNER DAS CATEGORIAS ===== */
.category-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: clamp(20px, 5vh, 40px) 0;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Cores dos banners por categoria */
.category-banner.manual {
    background: linear-gradient(135deg, #005fac 0%, #004d8c 100%);
}

.category-banner.eletrica {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

.category-banner.pneumatica {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.category-banner.corte {
    background: linear-gradient(135deg, #005fac 0%, #004d8c 100%);
}

.category-banner.medicao {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

.category-banner.solda {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.category-banner.consumiveis-solda {
    background: linear-gradient(135deg, #005fac 0%, #004d8c 100%);
}

.category-banner.maquinas-equipamentos {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);

}

.category-banner.construcao-civil {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}


.category-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.08"><path fill="white" d="M20,50 Q30,30 40,50 T60,50 T80,50"/><circle cx="30" cy="60" r="2"/><circle cx="50" cy="70" r="2"/><circle cx="70" cy="55" r="2"/></svg>');
    background-repeat: repeat;
    z-index: 1;
}

.category-banner .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Imagem do banner (à esquerda) */
.banner-image {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    animation: fadeInUp 0.8s ease;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

/* Conteúdo do banner (texto à direita) */
.banner-content {
    flex: 1;
    max-width: 550px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.banner-badge {
    display: inline-block;
    background: var(--transparent);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: white;
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.banner-description {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: white;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Botão de download do catálogo */
.banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: white;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 36px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
}

.banner-btn:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.banner-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* Responsividade do banner */
@media screen and (max-width: 992px) {
    .category-banner {
        padding: clamp(15px, 4vh, 30px) 0;
    }

    .category-banner .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .banner-image {
        justify-content: center;
    }

    .banner-image img {
        max-height: 280px;
    }

    .banner-content {
        max-width: 100%;
        text-align: center;
    }

    .banner-description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 768px) {
    .category-banner {
        padding: clamp(10px, 3vh, 25px) 0;
    }

    .banner-badge {
        font-size: 0.7rem;
        padding: 6px 18px;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .banner-description {
        font-size: 0.95rem;
    }

    .banner-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .banner-image img {
        max-height: 220px;
    }
}

@media screen and (max-width: 576px) {
    .category-banner {
        padding: clamp(8px, 2vh, 20px) 0;
    }

    .banner-badge {
        font-size: 0.6rem;
        padding: 4px 14px;
    }

    .banner-title {
        font-size: 1.3rem;
    }

    .banner-description {
        font-size: 0.85rem;
    }

    .banner-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
    }

    .banner-image img {
        max-height: 160px;
    }
}

/* ===== HERO DA CATEGORIA (IMAGEM + TEXTO) ===== */
.category-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 20px 0 30px;
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.category-hero.reverse {
    direction: rtl;
}

.category-hero.reverse .category-hero-text {
    direction: ltr;
}

.category-hero-image {
    overflow: hidden;
    height: 100%;
    min-height: 350px;
}

.category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-hero:hover .category-hero-image img {
    transform: scale(1.05);
}

.category-hero-text {
    padding: 40px 30px;
    direction: ltr;
}

.category-hero-text h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.category-hero-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 3px;
}

.category-hero-text p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.hero-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--muted);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.hero-features span i {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* ===== PRODUTOS PREVIEW ===== */
.products-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: var(--card-shadow);
}

.product-image {
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, var(--muted) 0%, var(--surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.product-image i {
    font-size: 4rem;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.product-card:hover .product-image i {
    transform: scale(1.1);
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.product-card:hover .product-image::after {
    left: 100%;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== CTA CATÁLOGO ===== */
.catalog-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: clamp(40px, 8vw, 60px);
    text-align: center;
    color: white;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    margin-top: 20px;
}

.catalog-cta:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.catalog-cta h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.catalog-cta p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-cta .btn {
    background: white;
    color: var(--primary);
    border: 2px solid white;
    padding: 14px 36px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.catalog-cta .btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.catalog-cta .btn i {
    font-size: 1.2rem;
}

@media screen and (max-width: 768px) {
    .catalog-cta .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 576px) {
    .catalog-cta {
        padding: clamp(30px, 5vw, 40px);
    }

    .catalog-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== RESPONSIVIDADE GERAL ===== */
@media screen and (max-width: 992px) {
    .category-hero {
        grid-template-columns: 1fr;
        gap: 0;
        margin: 20px 0 25px;
    }

    .category-hero.reverse {
        direction: ltr;
    }

    .category-hero-image {
        min-height: 280px;
    }

    .category-hero-text {
        padding: 30px 25px;
    }
}

@media screen and (max-width: 768px) {
    .products-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 15px;
        margin-bottom: 30px;
    }

    .hero-features {
        justify-content: center;
    }

    .category-hero-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .category-hero-text {
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    .products-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 15px;
        margin-bottom: 30px;
    }
    
    /* Ajuste para telas muito pequenas (menos de 400px) */
    @media screen and (max-width: 400px) {
        .products-preview {
            gap: 10px;
        }
        
        .product-info {
            padding: 12px;
        }
        
        .product-info h4 {
            font-size: 0.9rem;
        }
        
        .product-info p {
            font-size: 0.75rem;
        }
    }
}

/* ===== ANIMAÇÕES ===== */
.catalog-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.catalog-section:nth-child(2) {
    animation-delay: 0.1s;
}

.catalog-section:nth-child(3) {
    animation-delay: 0.2s;
}

.catalog-section:nth-child(4) {
    animation-delay: 0.3s;
}

.catalog-section:nth-child(5) {
    animation-delay: 0.4s;
}

.catalog-section:nth-child(6) {
    animation-delay: 0.5s;
}

.catalog-section:nth-child(7) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--secondary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Empty Message */
.empty-message {
    text-align: center;
    padding: 60px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.empty-message i {
    font-size: 4rem;
    margin-bottom: 16px;
    color: var(--secondary);
    opacity: 0.5;
}

.empty-message p {
    margin: 0;
    font-size: 1.1rem;
}