/* Top Bar */

.top-bar {
    background-color: #e5e7eb;
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 50;
}

.colorWelcome {
    color: #a19f9f;
}

.social-icons a {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #4b5563;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background-color: #1f2937;
}

@media (max-width: 640px) {
    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-icons a {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.8rem;
    }
}


/* Logo, Busca e Carrinho */

.header-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
}

.header-middle .logo img {
    height: 40px;
}

.header-middle .search-bar {
    flex-grow: 1;
    margin: 0 1rem;
}

.header-middle .search-bar input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 9999px;
    /* Matches rounded-full */
}

.header-middle .cart-icon {
    font-size: 1.5rem;
    color: #333;
}

@media (max-width: 640px) {
    .header-middle {
        padding: 0.5rem;
    }

    .header-middle .logo img {
        height: 32px;
    }

    .header-middle .search-bar {
        margin: 0.5rem 0;
    }

    .header-middle .cart-icon {
        font-size: 1.25rem;
    }
}



@media (max-width: 640px) {
    /* Aplica apenas em telas de celular (até 640px) */

    .cart-preview-responsive {
        /* 1. Faz o carrinho ocupar 95% da largura da tela */
        width: 95vw;

        /* 2. Remove o posicionamento fixo à direita */
        right: auto;

        /* 3. Centraliza o carrinho na tela */
        left: 50%;
        transform: translateX(-50%);

        /* 4. (Opcional) Aumenta a distância do topo para um melhor visual */
        top: 4.5rem;
    }

}

/* Slideshow */

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin-top: 0;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
    object-fit: cover;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    user-select: none;
    z-index: 10;
    font-size: 1.5rem;
}

.next {
    right: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 640px) {
    .slide img {
        aspect-ratio: 4/3;
    }

    .prev,
    .next {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
}


/* Navigation Menu */

.nav-menu {
    background-color: #f9fafb;
    padding: 0.5rem 1rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: flex-start;
}

.nav-items {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-item {
    position: relative;
    margin: 0 0.5rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    color: #1f2937;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem;
    font-size: 1rem;
}

.nav-item a i {
    margin-right: 0.5rem;
}

.dropdown {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    top: 100%;
    left: 0;
    min-width: 150px;
    z-index: 40;
}

.dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: #1f2937;
    font-weight: normal;
}

.dropdown a:hover {
    background-color: #f3f4f6;
}

.dropdown-parent:hover .dropdown {
    display: block;
}

@media (max-width: 768px) {
    .nav-menu {
        padding: 0.25rem 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-items {
        display: none;
        flex-direction: column;
        align-items: stretch;
        background-color: #f9fafb;
        width: 100%;
        margin-top: 0.25rem;
    }

    .nav-items:not(.hidden) {
        display: flex;
    }

    .nav-item {
        margin: 0;
        width: 100%;
        text-align: left;
    }

    .nav-item a {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #e5e7eb;
    }

    .dropdown a {
        padding-left: 2rem;
    }

    .dropdown-parent.active .dropdown {
        display: block;
    }
}


/* Hover no menu */

.nav-item a:hover,
.nav-item a.active {
    background-color: #1f2937;
    /* Cor de fundo ao passar o mouse */
    color: white;
    /* Cor do texto ao passar o mouse */
    border-radius: 0.375rem;
    /* Rounded padrão Tailwind */
    transition: background-color 0.3s, color 0.3s;
}


/* Client Slider */

.marc {
    background: #fff;
    height: 100px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    cursor: default;
    user-select: none;
    touch-action: none;
}

.marc:before,
.marc:after {
    background: linear-gradient(to right, #fff 0%, hsla(0, 0%, 100%, 0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 100px;
    z-index: 2;
}

.marc:before {
    left: 0;
    top: 0;
}

.marc:after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.marc .gui-track-1 {
    animation: scroll-l 30s linear infinite;
    display: flex;
    width: 5500px;
}

.marc .gui {
    height: 100px;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marc .gui img {
    max-width: 80px;
    height: auto;
    padding: 4px;
}

@keyframes scroll-l {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-120px * 7));
    }
}

@media (max-width: 640px) {
    .marc {
        height: 80px;
    }

    .marc:before,
    .marc:after {
        height: 80px;
        width: 50px;
    }

    .marc .gui {
        width: 100px;
    }

    .marc .gui img {
        max-width: 60px;
    }

    @keyframes scroll-l {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-100px * 7));
        }
    }
}


/* Footer */

.footer-middle {
    background-color: #1f2937;
    color: white;
    padding: 2rem 0;
}

.footer-middle a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-middle a:hover {
    text-decoration: underline;
}

.footer-middle h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-middle ul {
    list-style: none;
    padding: 0;
}

.footer-middle ul li {
    margin-bottom: 0.5rem;
}

.contact-info li span {
    font-weight: bold;
}

@media (max-width: 640px) {
    .footer-middle h4 {
        font-size: 1rem;
    }

    .footer-middle ul {
        font-size: 0.9rem;
    }
}


/* Content Section */

.content-section {
    background-color: #f3f4f6;
}

.benefits-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card-pagamentos-interno {
    display: flex;
    align-items: center;
}

.card-title {
    font-weight: bold;
    color: #1f2937;
    line-height: 1.2;
}

.card {
    background: transparent;
}

@media (max-width: 640px) {
    .benefits-wrapper {
        flex-direction: column;
        gap: 0.125rem;
    }

    .card-pagamentos {
        width: 100%;
    }

    .card-pagamentos-interno {
        justify-content: start !important;
    }

    .card-title {
        font-size: 0.55rem;
    }

    .fa-whatsapp,
    .fa-truck,
    .fa-credit-card,
    .fa-shield-alt {
        font-size: 1rem;
    }

    .card {
        width: 100%;
        max-width: 320px;
    }

    .card div {
        aspect-ratio: 4/3;
    }
}


/* Copyright Bar */

.copyright-bar {
    background-color: #273549;
    color: #ffffff;
    padding: 0.5rem 1rem;
}

.copyright-bar p {
    margin: 0;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .copyright-bar p {
        font-size: 0.75rem;
    }
}


/* Floating Buttons */

.back-to-top {
    background-color: #4b5563;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #1f2937;
}

.whatsapp-button {
    background-color: #25D366;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #1ebe57;
}

@media (max-width: 640px) {

    .back-to-top,
    .whatsapp-button {
        width: 2.5rem;
        height: 2.5rem;
    }

    .back-to-top i,
    .whatsapp-button i {
        font-size: 1rem;
    }

    .whatsapp-button {
        bottom: 5rem;
    }
}


/* About Section */

.about-section,
.about-cards,
.why-choose-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
}

.about-section {
    background-color: #fcfcfce1;
}

.about-cards {
    background-color: #ebebeb;
}

.why-choose-section {
    background-color: #fcfcfce1;
}

.about-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: bold;
}

.about-card p,
.about-card ul {
    font-size: 0.875rem;
    color: #4b5563;
    text-align: justify;
}

.about-card ul {
    list-style-type: disc;
    padding-left: 1.25rem;
}

.about-card ul li {
    margin-bottom: 0.25rem;
}

@media (max-width: 640px) {

    .about-section,
    .about-cards,
    .why-choose-section {
        margin-bottom: 1rem;
        padding: 0.75rem;
        border-radius: 0.5rem;
    }

    .about-card {
        padding: 0.75rem;
    }

    .about-card h3 {
        font-size: 1rem;
        text-align: center;
        font-weight: bold;
    }

    .about-card p,
    .about-card ul {
        font-size: 0.75rem;
    }
}


/* Carousel Automação */

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 20%;
    /* 20% width for 5 items */
    padding: 0 0.5rem;
    opacity: 0.4;
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.carousel-item img {
    width: 100%;
    height: 12rem;
    /* h-48 */
    object-fit: cover;
    border-radius: 0.5rem;
}

.carousel-prev,
.carousel-next {
    display: none;
}

.carousel-container:hover .carousel-prev,
.carousel-container:hover .carousel-next {
    display: flex;
}

@media (max-width: 640px) {
    .carousel-item {
        flex: 0 0 33.33%;
        /* 33.33% width for 3 items */
    }

    .carousel-item.active {
        opacity: 1;
        transform: scale(1.25);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        z-index: 5;
    }

    .carousel-item img {
        height: 8rem;
        /* h-32 */
    }
}

/* Zoom Imagem */
#zoom-container {
    position: relative;
}

#zoom-result {
    position: absolute;
    top: 0;
    left: 102%;
    /* Posiciona a janela de zoom um pouco à direita da imagem principal */
    width: 100%;
    height: 100%;
    border: 1px solid #d1d5db;
    /* Borda cinza */
    background-repeat: no-repeat;
    pointer-events: none;
    /* Evita que o mouse interaja com a janela de zoom */
    z-index: 10;
    opacity: 0;
    /* Começa totalmente transparente */
    visibility: hidden;
    /* Começa inacessível e escondido */
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

#zoom-container:hover #zoom-result {
    opacity: 1;
    /* Fica totalmente visível */
    visibility: visible;
    /* Torna-se acessível */
}

/* Em telas menores (mobile), desativa o efeito */
@media (max-width: 767px) {
    #zoom-container:hover #zoom-result {
        display: none;
    }

    #main-image {
        cursor: default;
        /* Remove o cursor de crosshair no mobile */
    }
}

#cart-preview p {
    display: none;
}


/* Estilos para a Barra de Cookies */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2d3748;
    /* Um cinza escuro, combina com seu site */
    color: #ffffff;
    padding: 15px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Permite que o texto e o botão quebrem a linha em telas pequenas */
    gap: 15px;
    transition: transform 0.5s ease-in-out;
    transform: translateY(100%);
    /* Começa escondida para baixo */
}

/* Cookies */
#cookie-banner p {
    margin: 0;
    font-size: 14px;
    flex-grow: 1;
    /* Faz o parágrafo ocupar o espaço disponível */
}

#cookie-banner a {
    color: #4299e1;
    /* Um azul para o link */
    text-decoration: underline;
}

#cookie-banner button {
    background-color: #48bb78;
    /* Um verde para o botão de aceitar */
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    /* Impede que o texto do botão quebre */
}

/* Classe para mostrar a barra com uma animação suave */
#cookie-banner.show {
    transform: translateY(0);
}