* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Permite seleção de texto apenas em inputs e áreas de texto */
input[type="text"],
input[type="number"],
textarea,
select {
    -webkit-user-select: text;
    user-select: text;
}

.carrinho-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.carrinho-items {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carrinho-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto 40px; /* Adiciona coluna para a lixeira */
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.item-remove {
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s;
    justify-self: end;
}

.item-imagem {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.item-preco {
    color: var(--primary-color);
    font-weight: bold;
}

.item-quantidade {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantidade-container {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .quantidade-controles {
            display: flex;
            position: relative;
            align-items: center;
            gap: 5px;
            background: #f8f9fa;
            padding: 5px;
            border-radius: 40px;
        }

        .quantidade-btn {
            width: 38px;
            height: 38px;
            border: 2px solid var(--border-color);
            background: white;
            border-radius: 30px;
            cursor: pointer;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            color: var(--text-color);
        }

        .quantidade-btn:hover:not(:disabled) {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .quantidade-input {
            width: 50px;
            height: 38px;
            text-align: center;
            border: 2px solid var(--border-color);
            border-radius: 30px;
            font-size: 1rem;
            font-weight: bold;
            background: white;
            color: var(--text-color);
        }

        .quantidade-input::-webkit-inner-spin-button,
        .quantidade-input::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }






.item-total {
    font-weight: bold;
    color: var(--primary-color);
}

.item-remove {
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.item-remove:hover {
    transform: scale(1.2);
}

.carrinho-resumo {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.resumo-linha {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: 2px dashed var(--primary-color);
    
}


.btn-finalizar {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-finalizar:hover {
    transform: translateY(-2px);
}



.btn-limpar {
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-limpar:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
    
}


.carrinho-vazio {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.carrinho-vazio i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.voltar-btn {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s;
}

.voltar-btn:hover {
    background: white;
    color: var(--primary-color);
}

@media (max-width: 1000px) {
    .carrinho-container {
        grid-template-columns: 1fr;
    }
    
    .carrinho-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
    }
    
    .item-imagem {
        grid-row: span 2;
    }
    
    .item-info {
        grid-column: 2;
    }
    
    .item-quantidade {
        grid-column: 2;
        grid-row: 2;
    }
    
    .item-total {
        grid-column: 2;
        grid-row: 2;
        margin-left: 120px;
    }
}