.finance-main {
    padding-top: 24vh;
    font-family: "Montserrat", sans-serif;
    color: #000;
}

.finance-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

.whatsapp-icon {
    margin-right: 8px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 50px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #000;
}

.hero-text p {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.hero-image-card {
    flex: 1;
    background-color: #F5F5F5;
    border-radius: 20px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.hero-image-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 60px;
}

.btn-vermelho {
    background-color: #FF0000;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    transition: transform 0.2s;
    text-transform: uppercase;
}

.btn-vermelho:hover {
    transform: scale(1.05);
    background-color: #d90000;
}

.whatsapp-btn-float {
    position: absolute;
    right: 0;
    background-color: #25D366;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
    line-height: 1.2;
}

.whatsapp-btn-float i {
    font-size: 2rem;
}

.whatsapp-btn-float:hover {
    transform: scale(1.05);
}


.finance-products {
    text-align: center;
    padding: 40px 20px 80px 20px;
}

.finance-products h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.finance-products p {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    color: #666;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.carousel-container {
    max-width: 1100px;
    margin: 0 auto;
    background-color: #F5F5F5;
    border-radius: 30px;
    padding: 0 70px;
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-item {
    position: absolute;
    top: 0;
    width: 25%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease-in-out;
    pointer-events: none;
    padding: 10px;
}


.product-item img {
    max-height: 70px;
    max-width: 90%;
    width: auto;
    object-fit: contain;


    filter: none;
    opacity: 1;
    transition: transform 0.3s;
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.product-item.pos-0 {
    left: 0%;
    z-index: 10;
}

.product-item.pos-1 {
    left: 25%;
    z-index: 10;
}

.product-item.pos-2 {
    left: 50%;
    z-index: 10;
}

.product-item.pos-3 {
    left: 75%;
    z-index: 10;
}

.nav-btn {
    background: #ccc;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: #481E9C;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

@media (max-width: 900px) {
    .btn-vermelho {
        font-size: 1.0rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .product-item {
        width: 33.33%;
    }

    .product-item.pos-3 {
        opacity: 0;
        pointer-events: none;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image-card {
        width: 100%;
        height: 250px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .whatsapp-btn-float {
        position: static;
    }
}

#adminButtons {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .product-item {
        width: 80%;
    }

    .product-item.pos-2,
    .product-item.pos-3 {
        opacity: 0;
        pointer-events: none;
    }

    .product-item.pos-0 {
        left: 15%;
    }

    .product-item.pos-1 {
        left: 15%;
    }

    .product-item img {
        max-height: 120px;
    }
}