
:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --light: #ecf0f1;
    --dark: #1a252f;
    --accent: #3498db;
}

a{
    color: white !important;
    text-decoration: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html{
    height: 100% !important;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    height: 100% !important;
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    margin: 0;
    width: 100%;
    height: 70px;
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;

    
    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-menu{
    display: none;
}

.logo {
    font-size: 30px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--secondary);
}

.nav-links, .nav-menu{
    margin: 0 !important;
    height: 100%;
    display: flex;
    list-style: none;
}

.nav-links li, .nav-menu li{
    margin-left: 2rem;
    display: flex;
    align-items: center;

}

.nav-links a, .nav-menu a{
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-menu a:hover{
    color: var(--secondary);
}

.boxUser{
    position: relative;
    margin: 0;
    width: auto;
    max-width: 300px;
    height: 100%;
    padding: 0;

    cursor: pointer;

    .imageUser{
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    p{
        padding: 0px 10px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .menu-user{
        position: absolute;
        top: 40px;
        background-color: var(--primary);
        width: 100%;
        height: auto;
        display: none;
        z-index: 100;

        li{
            margin: 0;
            width: 100%;
            height: auto;
            padding: 10px;
        }

        li:hover{
            background-color: #495d72;
        }
    }

}

.boxUser:hover{
    p{
        color: var(--secondary);
    }

    .menu-user {
        display: block;
    }

}

.boxUser img{
    margin: 0;
    width: 40px;
    height: 40px;
    padding: 5px;
    border: none;
    border-radius: 10px;
}

.boxUser p{
    margin: 0;
    width: auto;
    height: 100%;
    padding: 0;    
    font-size: 18px;
    align-items: center;
    text-align: left;

}

.cart-icon-container{
    position: relative;
}

.btn-shop a{
    font-size: 25px;
}

.cart-count-bubble {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #e74c3c; /* Vermelho para destacar */
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: pulse 2s infinite; /* Efeito de pulsar opcional */
}

.cart-icon-container a{
    color: white !important; /* Herda a cor do elemento pai */
    text-decoration: none !important; /* Remove o sublinhado */
}



.conteudo{
    margin: 0;
    width: 100%;
    min-height: 80%;
    padding: 0;
    overflow: hidden;
    overflow-y: auto;
}


.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #c0392b;
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 1rem 0;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    header{
        height: auto;
    }

    header nav{
        width: 100%;
        flex-direction: column;
    }

    
    .logo {
        width: 100%;
        font-size: 30px;
        font-weight: bold;
        color: white;
        text-decoration: none;
        display: flex;
        flex-direction: row;
    }

    .btn-menu{
        width: 40px;
        height: 45px;
        padding: 0px;
        padding-right: 10px;
        text-align: left;
        font-size: 30px;
        display: block;
    }

    .logo a{
        height: 45px;
        flex: 1;
        font-size: 25px;
        align-items: center;
        text-align: center;
        color: white !important;
        text-decoration: none !important;
    }


    .nav-menu {
        position: absolute;
        top: 50px;
        left: -100%;
        background-color: var(--primary);
        margin: 0 ;
        width: 100%;
        height: auto;
        padding: 5px 0px;
        display: flex;
        flex-direction: column-reverse;
        z-index: 100;

        transition: 1s;
        
        li{
            margin: 0 !important;
            height: auto !important;
        }

        .btn-shop{
            display: none;
        }

        .boxUser{
            width: 100%;
            height: auto;
            max-width: 100%;
            padding: 10px;
            display: flex;
            flex-direction: column;

            p{
                padding-left: 10px;
                font-size: 20px;
            }

            .imageUser{
                width: 100%;
                height: auto;
                display: flex;
                flex-direction: row;

                p{
                    width: 80% !important;
                    padding: 0px 10px !important;
                    white-space: nowrap !important;
                    overflow: hidden !important;
                    text-overflow: ellipsis;
                }

            }
            
            .menu-user{
                top: 0;
                position: relative;
                width: 100%;
                height: auto;
                display: none;
                flex-direction: column;
                z-index: 100;
            }
        }
    }

    
    .cart-count-bubble {
        width: 25px;
        height: 25px;
        color: white !important;

        a{
            color: white !important; /* Herda a cor do elemento pai */
            text-decoration: none !important; /* Remove o sublinhado */
        }
    }


    .nav-links{
        width: 100%;
        height: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .nav-links li{
        width: 100%;
        height: 50px;
        padding: 10px;
        align-items: center;
        border-bottom: 1px solid gray;

        a{
            width: 100%;
        }

    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        display: block;
        width: 80%;
        margin: 0 auto 1rem;
    }
    
}

@media print {
    body * {
        visibility: hidden;
    }
    .permitido-imprimir, .permitido-imprimir * {
        visibility: visible;
    }
}