/* Estilos gerais */
.carrinho-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#carrinh {
    margin-top: 10%;
}
.carrinho-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.carrinho-container h1 i {
    margin-right: 10px;
    color: #4CAF50;
}

/* Mensagens */
.mensagem {
    padding: 15px;
    margin-bottom: 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    text-align: center;
}

/* Carrinho vazio */
.carrinho-vazio {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.carrinho-vazio i {
    font-size: 50px;
    color: #ccc;
    margin-bottom: 20px;
}

.carrinho-vazio p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* Tabela de produtos */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.produto-info {
    display: flex;
    align-items: center;
}

.produto-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.produto-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.produto-info p {
    margin: 3px 0;
    color: #666;
    font-size: 14px;
}

/* Controle de quantidade */
.form-quantidade {
    display: flex;
    justify-content: center;
}

.quantidade-wrapper {
    display: flex;
    align-items: center;
}

.btn-quantidade {
    width: 30px;
    height: 30px;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-quantidade:hover {
    background-color: #e6e6e6;
}

.quantidade-wrapper input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
}

/* Botões de ação */
.btn-remover {
    color: #e74c3c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-remover:hover {
    background-color: #fdeaea;
}

.btn-remover i {
    margin-right: 5px;
}

/* Resumo do carrinho */
.resumo-carrinho {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 20px;
}

.total-carrinho {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 350px;
    margin-bottom: 20px;
}

.total-carrinho h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.total-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.total-geral {
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

/* Botões principais */
.acoes-carrinho {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.btn-continuar, .btn-finalizar {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-continuar {
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid #ddd;
}

.btn-continuar:hover {
    background-color: #e6e6e6;
}



.btn-finalizar:hover {
    background-color: #113a13;
}

.btn-continuar i, .btn-finalizar i {
    margin: 0 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .produto-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .produto-info img {
        margin-bottom: 10px;
    }
    
    .acoes-carrinho {
        flex-direction: column;
    }
    
    .total-carrinho {
        max-width: 100%;
    }
}



/* Estilo do ícone do carrinho */
.carrinho-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 24px;
    color: #333;
    background: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.carrinho-contador {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

.mensagem {
    position: fixed;
    top: 70px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}