@import url('variables.css');

.botao-proximo-passo, .btn-aplicar-cupom {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 6px var(--color-shadow);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.botao-proximo-passo:hover, .btn-aplicar-cupom:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
}

.botao-proximo-passo:active, .btn-aplicar-cupom:active {
    background-color: var(--color-accent-darker);
    transform: translateY(0);
}

.botao-voltar {
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 6px var(--color-shadow);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.botao-voltar:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-2px);
}

.botao-voltar:active {
    background-color: #039BE5;
    transform: translateY(0);
}


.card-resumo-carrinho {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin: 20px 0;
    font-size: 16px;
}

.card-resumo-carrinho h3 {
    margin-top: 0;
    font-weight: bold;
    text-align: center;
}

.card-resumo-carrinho .linha-total,
.card-resumo-carrinho .linha-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-resumo-carrinho .linha-total {
    font-weight: bold;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}


/*================Itens cards carrinho Inicio=====================*/

#titulo-selecao {
    text-align: center;
    margin: 20px 0 30px 0;
}

#titulo-selecao h1 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}

.tituloLateral {
    background-color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
}

.tituloLateral h3 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.card-carrinho {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    padding: 12px;
    margin: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; /* se estava 100%, remova para deixar altura automática */
    max-width: 240px; /* opcional para limitar o tamanho */
    margin-left: auto;
    margin-right: auto;
}

.card-carrinho:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    border-color: #ccc; /* borda um pouco mais escura no hover */
}

.card-carrinho img {
    max-width: 70px;
    max-height: 70px;
    margin-bottom: 10px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.card-carrinho-header {
    font-size: 14px; /* era 16 ou 18 */
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    text-align: center;
    text-transform: uppercase;
}

.card-carrinho-body {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.card-carrinho-footer {
    margin-top: auto;
    width: 100%;
}

.btn-remover-item {
    background-color: #f44336;
    color: #fff;
    border: none;
    padding: 10px 0;
    width: 100%;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-remover-item:hover {
    background-color: #d32f2f;
}


/*================Itens cards carrinho Fim=====================*/
