/* servidor/publico/css/carrinho.css */

/* Estilos específicos para a página do carrinho (carrinho.html) */

#carrinho-container {
    padding-bottom: 2rem; /* Espaço para não ficar colado na navbar inferior */
}

.carrinho-vazio-msg,
.loading-message {
    text-align: center;
    color: #888;
    margin-top: 50px;
    font-size: 1.1rem;
}

.carrinho-loja-titulo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.carrinho-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.carrinho-item:last-child {
    border-bottom: none;
}

.carrinho-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
    background-color: #f0f0f0;
}

.carrinho-item-info {
    flex-grow: 1;
}

.carrinho-item-nome {
    font-weight: 600;
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.carrinho-item-preco {
    color: #555;
    font-size: 0.9rem;
}

.carrinho-item-controles {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carrinho-item-controles button {
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.carrinho-item-controles button:hover {
    background-color: #e0e0e0;
}

.carrinho-item-controles .remover-btn {
    color: #FF3B30;
}

.carrinho-item-quantidade {
    font-weight: bold;
    min-width: 25px;
    text-align: center;
    font-size: 1.1rem;
}

.carrinho-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.carrinho-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.finalizar-pedido-btn {
    width: 100%;
    padding: 1rem;
    background-color: #25D366; /* Verde WhatsApp */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.finalizar-pedido-btn:hover {
    background-color: #1EBE57;
}


/* --- NOVOS ESTILOS PARA OS CONTROLOS NA PÁGINA DA LOJA --- */

/* Estilos para o botão inicial de adicionar ao carrinho */
.add-carrinho-btn {
    background-color: #007aff;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.add-carrinho-btn:hover {
    background-color: #0056b3;
}

.add-carrinho-btn.adicionado {
    background-color: #34C759; /* Verde sucesso */
}

/* Estilos para o controlo de quantidade que aparece depois de adicionar */
.item-controles-loja {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-controles-loja button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.item-controles-loja button:hover {
    background-color: #e0e0e0;
}

.item-controles-loja .remover-btn {
    color: #FF3B30;
}

.item-controles-loja .quantidade {
    font-weight: bold;
    min-width: 25px;
    text-align: center;
    font-size: 1.1rem;
}

