/* assets/css/style.css - Adicione estas regras ao final do arquivo */

:root {
    --primary-red: #E4002B;
    --secondary-red: #B22222;
    --yellow: #FFC72C;
    --dark: #1A1A1A;
    --gray: #4A4A4A;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
}

/* Header com botão voltar */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-voltar-header {
    background: none;
    border: none;
    color: var(--primary-red);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-voltar-header:hover {
    background: var(--light-gray);
}

/* Dropdown do usuário */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--dark);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

/* Botões */
.btn-login {
    padding: 8px 20px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-login:hover {
    background: var(--secondary-red);
}

.btn-user {
    padding: 8px 20px;
    background: var(--light-gray);
    color: var(--dark);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-user:hover {
    background: #e0e0e0;
}

.btn-cart {
    position: relative;
    color: var(--dark);
    font-size: 20px;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Alertas */
.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #dc3545;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 20px;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav {
        display: none;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }
    
    .dropdown-content {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 15px 15px 0 0;
    }
}