
* {
    /* Garante que padding e bordas não aumentem o tamanho final dos elementos */
    box-sizing: border-box;
}

/* --- Estilos Globais da Página --- */
body {
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
    margin: 0;
    padding-bottom: 120px;
    overflow-x: hidden; 
}
header{
    height: 45px;
}
/* --- Cabeçalho --- */
header .header-cima {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 70px;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

header .limpar {
    background: none;
    border: none;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
}
header .limpar:hover {
    color: #fff;
}


/* --- Conteúdo Principal --- */
main {
    padding: 15px;
}

.secao-card {
    background-color: rgba(255, 255, 255, 0.916);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0 15px 0;
}

.secao-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 25px;
    color: #121212d7;
}

/* --- Itens no Carrinho --- */
.item-carrinho {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.item-carrinho img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
}

.item-info {
    flex-grow: 1;
}
.item-info p {
    margin: 0;
}

.item-nome {
    font-weight: 700;
    font-size: 0.9rem;
    color: #484848d7;
}
.item-complementos {
    font-size: 0.6rem;
    color: #707070d7;
    margin: 6px 0 !important;
    line-height: 1.4;
}
.item-preco {
    font-weight: bold;
    color: #484848d7;
    font-size: 0.9rem;
}

.btn-remover-carrinho {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-remover-carrinho svg {
    stroke: #ff6b6b;
}

.adicionar-mais-itens {
    display: block;
    text-align: center;
    color: #6c1fc4;
    font-weight: 700;
    text-decoration: none;
    margin-top: 16px;
    font-size: 1.1rem;
}

.carrinho-vazio {
    text-align: center;
    color: #aaa;
    font-size: 1.1rem;
    padding: 20px 0;
}

/* --- Seção de Cupom --- */
.cupom-container {
    display: flex;
    gap: 10px;
}



.cupom-container button {
     background-color: rgba(92, 12, 142, 0.892);
    border: none;
    border-radius: 8px;
    padding: 0 25px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

/* O container que segura o input e o label */
.input-flutuante {
    position: relative; 
    flex-grow: 1; 
}

/* O label (texto que vai flutuar) */
.input-flutuante label {
    position: absolute; 
    top: 50%;
    left: 15px;
    transform: translateY(-50%); /* Centraliza o label verticalmente */
    
    color: #484848d7; 
    font-size: 1rem;
    pointer-events: none; /* Permite clicar "através" do label no input */
    transition: all 0.2s ease-in-out;
}

/* O campo de input em si */
.input-flutuante input {
    width: 100%;
    border: 1px solid #c5c5c5; 
    border-radius: 8px;
    padding: 14px 15px;
    font-size: 1rem;
    background-color: #FFFFFF;
    color: #121212;
    
}

/* A MÁGICA: Quando o input está clicado OU quando não está mostrando o texto */
.input-flutuante input:focus + label,
.input-flutuante input:not(:placeholder-shown) + label {
    top: 0; 
    transform: translateY(-50%) translateX(-10%) scale(0.75); /* Sobe, centraliza e diminui um pouco */
    background-color: #FFFFFF;
    padding: 0 5px; 
    color: #6c1fc4; /* Muda a cor para o roxo quando ativo */
    font-weight: 600;
}

/* Adiciona a borda roxa no input quando ele está focado */
.input-flutuante input:focus {
    outline: none;
    border-color: #6c1fc4;
}



/* --- Resumo de Valores --- */
.resumo-linha {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #484848d7;
}
.resumo-linha span:last-child {
    font-weight: 500;
    color: #484848d7;
}

.resumo-linha.total {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #484848d7;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Footer Fixo --- */
.footer-fixo {
    position: fixed;
    bottom: 0;
    height: 65px;
    left: 0;
    width: 100%;
    background-color: rgba(64, 4, 102, 0.738);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}
.continuar{
    text-decoration: none;
}
.total-footer p {
    margin: 0;
    font-size: 0.6rem;
    color: #ccc;
}
.total-footer strong {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
}

.footer-fixo .continuar {
    background-color: #5b0e79af;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 30px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background-color 0.2s ease;
}
.footer-fixo .continuar:hover {
    background-color: #9932CC;
}
.resumo-linha-desconto{
    color: #121212a9;
     display: flex;
    justify-content: space-between;
}
/* Estilos para o Estado de Cupom Aplicado */

.cupom-container.aplicado {
    justify-content: space-between;
    align-items: center;
    background-color: #e8dff3; 
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #c1a2e1;
}

.cupom-container.aplicado p {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #4A148C; 
}

.btn-remover-cupom {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 0; 
}

.btn-remover-cupom svg {
    stroke: #8A2BE2; 
    transition: stroke 0.2s ease;
    height: 1.8rem;
    
}

.btn-remover-cupom:hover svg {
    stroke: #ff6b6b; 
}
#remover-cupom-btn{
    height: 70%;
    background-color: #12121200;
    
}
#cupom-aplicado-texto{
    font-size: 0.9rem;
}


/* Estilos para Notificações Toast */

/* Container que segura os toasts */
#toast-container {
    position: fixed; 
    bottom: 80px; 
    left: 50%;
    transform: translateX(-50%); /* Centraliza horizontalmente */
    z-index: 3000; /* Garante que fique por cima de tudo */
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 10px; 
    pointer-events: none; /* Permite cliques "através" do container */
}

/* Estilo individual de cada toast */
.toast {
    background-color: rgba(49, 7, 87, 0.9);
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px; 
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0; 
    transform: translateY(20px); 
    animation: toast-in 0.5s ease forwards; 
}

/* Estilo para toast de sucesso */
.toast.success {
    background-color: rgba(49, 130, 70, 0.9); 
    border-color: rgba(255, 255, 255, 0.3);
}

/* Animação de entrada */
@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classe para animação de saída */
.toast.fade-out {
    animation: toast-out 0.5s ease forwards;
}

/* Animação de saída */
@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* O container principal que alinha o '-', o '1' e o '+' */
.controle-quantidade-carrinho {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px; 
}

/* O número que fica no meio */
.qtd-carrinho {
    font-size: 1rem; 
    font-weight: 700;
    color: #333;
    min-width: 30px; 
    text-align: center;
}

/* Estilo base para os botões '+' e '-' */
.btn-qtd-carrinho {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; 
    height: 30px; 
    
    background-color: #f0f0f0; 
    color: #553D8C; 
    
    border: none;
    border-radius: 50%; 
    
    font-size: 1.4rem; 
    font-weight: 700;
    line-height: 1;
    
    cursor: pointer;
    transition: background-color 0.2s ease;
}


/* Efeito ao clicar */
.btn-qtd-carrinho:active {
    transform: scale(0.95);
}